summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-09-18For some dark reason there's a bit on the VLINK device of this chipsetMark Kettenis
that makes the PCIE device show up as a host bridge instead of a PCI-PCI bridge. As a result any devices sitting behind it won't be detected. Whack the device into PCI-PCI mode such that we can walk the PCI bus hierarchy the normal way and detect all devices. Fixes PR 6215. ok dlg@
2009-09-18Fix conversion of symbolic IPL level to hardware PSL value in the mutex code.Miod Vallat
This is a noop on all arches but hp300, where this fixes (at least) IPL_BIO mutexes.
2009-09-18Make sure to always initialize the scsi_xfer timeout with timeout_set() earlyMiod Vallat
in spc_scsi_cmd(), so that it is safe to pass it to timeout_del() anytime (recent scsi changes no longer cause the scsi_xfer timeout to be in an initialized state).
2009-09-17Use __builtin_va_start instead of __builtin_stdarg_startJonathan Gray
for va_start() which was only present for backwards compat and has been removed from recent versions of GCC. Our in tree GCC 3.3.5 has __builtin_va_start and this section of code is only run if __GNUC__ >= 3 already. ok espie@ kettenis@ millert@ miod@
2009-09-17Fail bus_space_map() calls if the flags can't be honoured (such asMiod Vallat
BUS_SPACE_MAP_LINEAR in i/o space, or noncacheable linear TURBOchannel mappings). From NetBSD
2009-09-17Return a dense mapping for BUS_SPACE_MAP_PREFETCHABLE mappings; repairesMiod Vallat
tga on non-bwx machines. Reported and fix tested by kurt@
2009-09-17Remove the comaptibility structures for routing socket version 3.Claudio Jeker
The RTM_VERSION bump is 2 years ago and so there is no need for this. Diff made by tedu@ some time ago but got never commited so I do it now.
2009-09-17Wrap trunk_enqueue() calls in splnet() since sending out lacp packetsClaudio Jeker
starts in a timeout handler which runs at a lower spl. This fixes the problems with lacp trunks where some interfaces suddenly fail for no obvious reason. Problem report and fix tested by Stephan A. Rickauer. OK henning, reyk, mpf
2009-09-17Add an splassert check trunk_enqueue() calling this function at anythingClaudio Jeker
below splnet() is a good recipe for doom. OK henning, reyk, mpf
2009-09-16fix ENETRESET handling in run_ioctl() and run_media_change().Damien Bergamini
fixes a kernel panic reported by ckuethe@ on amd64
2009-09-16style: in pf_test_state_other, fix indentation, kill excessive newlines,Henning Brauer
add break in the last case block
2009-09-16fix copy & paste error from almost a year ago (bad ryan)Henning Brauer
PF_ANEQ call in pf_test_state_other in the IPVshit case used AF_INET, found by claudio
2009-09-15Make sure we block clock interrupts at IPL_CLOCK and higher.Mark Kettenis
ok miod@
2009-09-15TP-LINK TL-WN821NDamien Bergamini
2009-09-15usb id for TP-LINK TL-WN821N (otus(4)).Damien Bergamini
2009-09-15SyncClaudio Jeker
2009-09-15Better product names for the newest Intel cards. Include the productClaudio Jeker
number in the name to simplify identifying the card in dmesg. OK dms
2009-09-15cpu status flag, cpuid added to cpu_info.Takuya ASADA
cpu_info pointer array, cpu_info iterator, cpu_number() implementation added. constraint modifier fixed in lock.h to output correct assembly. calling proc_trampoline_mp in exception.S.
2009-09-14simplify code in preparation for other things. tested by many.Federico G. Schwindt
2009-09-14Deal with the fact that we need to control an external PHY attached to TSEC2Mark Kettenis
through the registers of TSEC1. Makes the first ethernet port on the rb600 usable.
2009-09-14Add a way to convert the ifi_link_state to a string without the use ofClaudio Jeker
if_media. This makes link state tracking a lot easier as there is no need to convert if types to if_media types, etc. Additionally this allows us to extend the link states to include states tracked on higher protocol layers. gre(4) keepalives packets, bfd and udld can be implemented without ugly hacks. OK henning, michele, sthen, deraadt
2009-09-14don't try to manipulate an invalid node. fixes codec detectionJacob Meuser
problem reported by martynas@. this bug has been there a long time (r1.61), but sloppy RIRB handling was hiding it ...
2009-09-14Correctly empty the tty rings in wsdisplaystart() if the display isMiod Vallat
in SCR_GRAPHICS mode; spotted by martynas@
2009-09-14rework the scsi midlayer to start addressing some problems i haveDavid Gwynne
with it which became extremely annoying with what mpath wants to do. the major change is a new interface for submitting scsi commands. previously the only way for drivers like sd, cd, st, etc to push commands onto the hardware was via scsi_scsi_cmd(). the problem with scsi_scsi_cmd is that it doesnt tell the caller if the command failed, was queued, or completed unless you shoved a buf down with it. this is important for mpath which wants to know what the physical path to the device did so it can report it back to the midlayer which called it. this provides a new api which lets drivers like cd/sd/st/mpath etc allocate an xs, fill it in, and provide a completion routine which the midlayer will call with the state of the command when it is finished with it. the caller is then responsible for freeing the xs. from the hba side of thing, the return code from the scsi_cmd entrypoint is largely ignored now, and it is now always the responsibility of the hba driver to call scsi_done when it has completed the io, rather than returning COMPLETE and expecting the midlayer to do it for you. i have emulated scsi_scsi_cmd on top of this new api so existing users of it will continue to work. sd(4) has been reworked to use the new api directly to both demonstrate its use and test that the new api actually does work. this diff was mostly written in a day at f2k9. thanks to miod for poking through hba drivers to help mitigate against fallout from the change to the COMPLETE semantic. this has been reviewed by krw who didnt spot anything wrong. thanks to dave del debbio for testing. ok deraadt@
2009-09-13Don't try to check for ECC with fbdimm as the offset exceedsJonathan Gray
the number of bytes currently read into the sm_data array. Problem found by recent version of gcc.
2009-09-13Unchecked copyout() calls cause premature death in furry animals, soMiod Vallat
check their return values in the ATA_S_COMPLETE ioctl handler. dlg@ agrees.
2009-09-13Remove (last) obsolete panic() case.Marcus Glocker
2009-09-13M_DUP_PKTHDR() define -> m_dup_pkthdr() function to properly dealKenneth R Westerback
with m_tag_copy_chain() failures. Use m_defrag() to eliminate hand rolled defragging of mbufs and some uses of M_DUP_PKTHDR(). Original diff from thib@, claudio@'s feedback integrated by me. Tests kevlo@ claudio@, "reads ok" blambert@ ok thib@ claudio@, "m_defrag() bits ok" kettenis@
2009-09-13ATI SB700 can be handled in ahci mode like SB600. suggested byMatthieu Herrb
and ok kettenis@
2009-09-13Fix command undo for compression. Fixes artifacts seen in some cases.Marcus Glocker
2009-09-13Make sure we really have pending interrupts such that we don't do anMark Kettenis
out-of-bounds array access later on. ok drahn@, dms@
2009-09-13Move some real noisy operations to a higher debug level.Marcus Glocker
2009-09-13Use function pointers in erasecols and eraserows for framebufferMarcus Glocker
operations, so we do compression in there as well.
2009-09-12Catch up with recent changes to GENERIC.Mark Kettenis
2009-09-12Don't use function pointers at places where we always call the sameMarcus Glocker
function.
2009-09-12Compensate for the fact the the FDT uses a different offset for the registersMark Kettenis
than the hardcoded ones we used before. Replace a few magic numbers with #defines while I'm there. Based on suggestions from dms@.
2009-09-12Initialize global pointer to interrupt controller softc earlier such that weMark Kettenis
don't crash if we unmask a preconfigured interrupt.
2009-09-12Correctly report copyout() failure in SIOCG80211STATS ioctl; ok damien@ jsg@Miod Vallat
2009-09-12Re-sort some functions. Fix comment. No functional changes.Marcus Glocker
2009-09-12GPIO quirk for Dell Inspiron 1400Jacob Meuser
2009-09-12there are machines that have more than one fixed speaker. useJacob Meuser
the one with the lowest association.
2009-09-12move code for getting controller capabilities out of azalia_init()Jacob Meuser
and into it's own function, azalia_get_ctrlr_caps()
2009-09-12Add DIOCSDINFO support to the three fd drivers. No change to existingKenneth R Westerback
behaviour.
2009-09-11Don't panic if the command buffer runs full. Instead try to flush it,Marcus Glocker
and continue operation afterwards. If we can't flush immediately, we will undo the operation and return EAGAIN to wsdisplay (like we do already for the xfer queue). This allows us to set higher resolutions (tested up to 1280x1024) without bumping the command buffer or xfer buffer memory further.
2009-09-11bump versionDariusz Swiderski
suggested by maja@, ok by kettenis@
2009-09-11add 'machine fdt' command that dumps device tree if presentDariusz Swiderski
ok by kettenis@
2009-09-10better to wait for codecs to finish resetting in azalia_reset()Jacob Meuser
rather than in it's user(s)
2009-09-10Remove zssoftpending; it isn't of any use anymore.Mark Kettenis
ok miod@
2009-09-09reorganize attach/initialization into more task specific functions.Jacob Meuser
2009-09-09Use information from the FDT to set up bus tags and extents.Mark Kettenis