summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2011-04-22Turning on SCSIDEBUG (for debugging other drivers, of course) shouldTheo de Raadt
not make these drivers spew millions of lines of output. spotted as missing by miod
2011-04-22delete a bogus blank lineTheo de Raadt
2011-04-22Turning on SCSIDEBUG (for debugging other drivers, of course) shouldTheo de Raadt
not make these drivers spew millions of lines of output. ok krw
2011-04-22Fix regression in vndopen() behaviour introduced in previous commit.Miod Vallat
2011-04-22Fix uninitialzied variables and formatting strings (-Wxxx errors)Jordan Hargrave
2011-04-22pf_pooladdr_pl does not exist anymore. Remove its extern declaration.Alexander Bluhm
ok henning@
2011-04-22Remove unused structure member.Mark Kettenis
ok marco@, deraadt@
2011-04-22Stop printing the PCI interrupt line programmed by the BIOS for APICMark Kettenis
interrupts. It is irreleveant, confuses people and the information is available in pcidump(8) output anyway. ok oga@, jsg@, deraadt@
2011-04-22spacesMarco Peereboom
2011-04-22Add support for PCH2 (Sandy Bridge) MAC with 82579 PHY.Jonathan Gray
From Laurence Tratt. ok claudio@ deraadt@
2011-04-21A plausible iopoolification. Utter dearth of interested partiesKenneth R Westerback
after more than a year of grovelling emails shows further effort is pointless. ok matthew@ dlg@
2011-04-21match on 6 series smbus, tested by Laurence TrattJonathan Gray
2011-04-21fenv for amd64; from matthew@Martynas Venckus
feedback & ok guenther@, matthew@
2011-04-21fenv for hppaMartynas Venckus
2011-04-21Speedup XORP/XORQ operations in RAID6, do 32-bits at a timeJordan Hargrave
2011-04-21Fix dma_constraint upper limit computation. Logical or is not the same asMiod Vallat
arithmetic add.
2011-04-21Print memory sizes as longs. Stolen from sparc64.Miod Vallat
2011-04-21Use 64 bit integer types to compute IP35 memory ranges, to give machinesMiod Vallat
with memory beyond 4GB physical a chance to run. For some reason IP27 was already correct.
2011-04-21Provide a HPPA_FRAME_ARGS macro. This only works correctly for theJoel Sing
first eight arguments saved, due to the layout of the call frame. ok kettenis@
2011-04-21Move interrupt related defines and prototypes from cpu.h to intr.h.Joel Sing
ok kettenis@
2011-04-21steal the ccb for error handling before it might be needed during theDavid Gwynne
port init. problem reported by RD Thrush in PR6590
2011-04-21Revert the ``remove the `skip splraise/splx for IPL_NONE mutexes' optimization''Miod Vallat
change. It seems to have unexpected side effects, especially on MP systems, and drahn@ disagrees with the way this change has been done and think there is a better way to solve the original problem of msleep() fiddling with mutex internals.
2011-04-21ahci asks atascsi to reserve a ccb to use for error handling, but thenDavid Gwynne
atascsi goes and throws away all the ccbs that the disk wont use, including the reserved one. this makes ahci reserve its own ccb. light testing by krw@ without regression.
2011-04-20fenv for m68kMartynas Venckus
2011-04-20Fix possible NULL dereference for emul data. Okay miod@.Paul Irofti
2011-04-20Back out r1.10 of mutex.c as this breaks serial on hppa (at least for MP).Joel Sing
2011-04-20Interrupt handlers should only return 1 if they did some work. TheClaudio Jeker
intrstat on arc may have other status bits set which are masked as interrupt cause and not handled by our driver. So the intrstat == 0 check does not work reliably. It is better to do use a variable that is set to 1 when work is done and the cause is cleared. This makes arc(4) behave on systems where interrupts are shared. OK deraadt@ dlg@
2011-04-20Potential NULL deref in an error case spotted by chl on one copy;Theo de Raadt
correct fix applied to 3 similar drivers ok chl
2011-04-20Support for Intel GM45 SOL (Serial-over-LAN, part of Intel AMT) as aMike Larkin
generic puc(4) device. ok deraadt@
2011-04-20do not disable interrupts in the isr and then enable them againDavid Gwynne
when leaving. when you're handling an interrupt it is masked. whacking the chip is work for no gain. diff from chris@ tested by marco@ ok by me :)
2011-04-19Iopoolification. Much simpler version than the one revived at k2k11.Kenneth R Westerback
This one works. For me at least. Botch spotted by matthew@. ok matthew@ dlg@
2011-04-19clean out some tiny nitsTheo de Raadt
2011-04-19regenJonathan Gray
2011-04-19add some more Core 2G/6 Series PCH entriesJonathan Gray
2011-04-19Simplify umass devid generation. Only use the last 12 characters ofMatthew Dempsky
the USB serial number so as to limit the overall devid to just 20 characters. "Lovely!" deraadt@
2011-04-19as confirmed by my 11mo old son, this makes midi keyboards work with macppcTodd T. Fries
"no objection" drahn@
2011-04-19Put splice cleanup code into a common function sounsplice().Alexander Bluhm
ok claudio@
2011-04-19add some more intel cpuid modelsJonathan Gray
ok kettenis@
2011-04-19Fix potential null dereference.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok marco@ krw@
2011-04-19Fix potential null dereference.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok henning@
2011-04-19Remove dead assignments and newly created unused variables.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok miod@ jsg@
2011-04-19Fix dead store. Instead of just remove it, use it properly.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok miod@ krw@
2011-04-19Disable the 88110 branch prediction logic unconditionnaly on all 88110Miod Vallat
revisions; despite what the ``official'' (yet unpublished, confidential proprietary, will cause a tree to fall on your house if you quote it, etc) errata says, disabling data decoupling is not enough to workaround its malfunction in processor revisions 5.x. Enough missing-SFU instructions (each causing a `disabled SFU' trap) in a tight loop will eventually (but quickly) trigger the (unrecoverable, not even by NMI) processor hang. Of course, most such instructions are not privileged, and can be easily issued by an evil userland process; crashme happens to be a good example of this, when invoked with the proper settings (which are left as an exercise to the reader). Now, can I have my hair back? Come on! Please... pretty please... with sugar on top... people are looking at my head, you know.
2011-04-19Cease to pretend RAW SCSI mode exists. Eradicate all traces.Kenneth R Westerback
2011-04-19Add missing call to pmap_update() in km_alloc().Matthew Dempsky
ok deraadt@, miod@
2011-04-19Free the correct pages when we failed to allocate va.Artur Grabowski
2011-04-19use "orl" to test the return value from an interrupt handler not "orq"David Gwynne
since its an int, not a long. ok deraadt@
2011-04-19reintroduce using the RB tree for local address lookups. this isDavid Gwynne
confusing because both addresses and broadcast addresses are put into the tree. there are two types of local address lookup. the first is when the socket layer wants a local address, the second is in ip_input when the kernel is figuring out the packet is for it to process or forward. ip_input considers local addresses and broadcast addresses as local, however, the handling of broadcast addresses is different depending on whether ip_directedbcast is set. if if ip_directbcast is unset then a packet coming in on any interface to any of the systems broadcast addresses is considered local, otherwise the broadcast packet must exist on the interface it was received on. the code also needs to consider classful broadcast addresses so we can continue some legacy applications (eg, netbooting old sparcs that use rarp and bootparam requests to classful broadcast addresses as per PR6382). this diff maintains that support, but restricts it to packets that are broadcast on the link layer (eg, ethernet broadcasted packets), and it only looks up addresses on the local interface. we now only support classful broadcast addresses on local interfaces to avoid weird side effects with packets routed to us. the ip4 socket layer does lookups for local addresses with a wrapper around the global address tree that rejects matches against broadcast addresses. we now no longer support bind sockets to broadcast addresses, no matter what the value of ip_directedbcast is. ok henning@ testing (and possibly ok) claudio@
2011-04-19Include USB vendor and product ids when manufacturing a unique disk idMatthew Dempsky
from a USB serial number, as recommended by the umass spec. ok dlg@
2011-04-18Revert the sigacts diff: NFS can apparently retain pointers to processesPhilip Guenthe
until they're zombies and then send them signals (for intr mounts). Until that is untangled, the sigacts change is unsafe. sthen@ was the victim for this one