summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2011-06-17M_WAITOK cleanup of two cases:Michael Knudsen
1) Allocating with M_WAITOK, checking for NULL, and calling panic() is pointless (malloc() will panic if it can't allocate) so remove the check and the call. 2) Allocating with M_WAITOK, checking for NULL, and then gracefully handling failure to allocate is pointless. Instead also pass M_CANFAIL so malloc() doesn't panic so we can actually handle it gracefully. 1) was done using Coccinelle. Input from oga. ok miod.
2011-06-17Unbreak tree. $OpenBSD$ tag needs to be in a comment! BadKenneth R Westerback
pirofti@.
2011-06-16Import acpitoshiba driver.Paul Irofti
This is originally written by Hiroyuki Aizu, ported and integrated in our tree by Javier Vazquez <javama4 AT gmail> with tweaks and suggestions by me. Import prodded by deraadt@ and the lack of testers on tech@.
2011-06-16Enable msi support on iwn.Owain Ainsworth
tested by many for over a week. ok kettenis@ phessler@.
2011-06-16Enable MSI on newish PCIe hardware, essentially everything handled by the LinuxMark Kettenis
e1000e driver (which enables MSI as well), leaving everything handled by the old Linux e1000 driver (which doesn't enable MSI) use legacy interrupts. tested by many; ok jsg@
2011-06-16Uses generic confargs to attach the apm(4) and piic(4) drivers instead ofMartin Pieuchot
the specifics adb arguments. Now apm(4) no longer depends on adb stuff and piic(4) doesn't attach on a via-cuda machine (e.g. my color G3 iMac). ok miod@
2011-06-16dont respond to VPD inquiries with standard inquiry data. add aDavid Gwynne
check to make sure cmdlen is correct while there. ok miod@
2011-06-15Add a const char* as first member of struct adb_attach_args, so that we canMiod Vallat
pass a struct confargs * on macppc for some specific children of the adb node, and not confuse real adb device attachments. ok mpi@
2011-06-15Add support for ZTE AC2746.Jonathan Gray
Slightly changed version of a diff from Martin Furter.
2011-06-15regenJonathan Gray
2011-06-15ZTE AC2746Jonathan Gray
from Martin Furter
2011-06-15Set RL_FLAG_INVMAR for RTL8105E/RTL8401E/RTL8168E VL so multicastJonathan Gray
will work and add PHY wake up code for RTL8401E. From brad
2011-06-15Silence unneeded conversion warning. Okay jordan@.Paul Irofti
2011-06-15try to make critical messages make more sense. help from sthen.Marco Peereboom
2011-06-15if the system runs out of mbufs and cannot provide any when fillingDavid Gwynne
the rx ring, schedule a timeout to keep trying until it gets some. a timeout is used here cos the chip doesnt have a way of reporting if its out of descriptors or when there's a ring overflow. we have to manage that ourselves in software. mikeb reported this issue on an ipsec gateway. ipsec would consume all the mbufs while they were stuck in crypto waiting for the cpu to catch up, by which time it was too late to give more to the hardware. without any rx descriptors the chip would never interrupt and we'd never try to fill the ring again. the fix was tested by and is ok mikeb@
2011-06-14Intel 3400 AHCI responds to PMP probes like ATI SBx00 chips.Jonathan Matthew
Unknown whether this also applies to product id 3b23 as well as 3b22. Problem reported by John Danks in PR6630 ok dlg@
2011-06-13Not need define KEYBOARD_ARRAY (keyboard array used only in dev/adb/akbd.cAlexandr Shadchin
if defined WSDISPLAY_COMPAT_RAWKBD). Move keyboard array from dev/adb/keyboard.h to dev/adb/akbdmap.h. ok miod@
2011-06-12Some devices, like parts of the NVIDIA C51 chipset, have a broken CapabilitiesMark Kettenis
List. So turn a DIAGNOSTIC panic into returning failure. ok mglocker@, miod@
2011-06-10Monster update of ix(4). This brings ix(4) close to what is currentlyClaudio Jeker
in FreeBSD. This seems to fix a lot of problems on 82599 based cards including the VLAN problems and the corrupted receives. Putting this in now to work on it in tree since a few additional things need to be merged. Tested by myself, deraadt@ and jsg@ on both 98er and 99er cards. OK jsg@, deraadt@
2011-06-10RegenClaudio Jeker
2011-06-10Fix numeric order of a 82598 chip and add the id of 82599VF for theClaudio Jeker
upcomming ix(4) update.
2011-06-10Do not set the dying flag in wdc_wait_for_status, since there is atTheo de Raadt
least one chip sii3112 or sii314, owned by henning) that spuriously returns failure. This is only backing out one of the dying cases. As well, I have found one other case where attempts are made to advance IO even after obvious failure. I suspect that I should find that issue next. discussed with henning, kettenis, and matthew
2011-06-09Backout MSI change. People are seeing watchdog timeouts, which must be causedMark Kettenis
by missed interrupts. Commits to the FreeBSD driver suggest that the hardware has issues. Having MSI for this driver isn't terribly important anyway.
2011-06-09shorted code with a lovely gotoTheo de Raadt
ok matthew
2011-06-09MSI interrupts work here, too.Theo de Raadt
2011-06-08Use static scope during AML disassembly, fixes splassert errorJordan Hargrave
2011-06-06Backout vmmap in order to repair virtual address selection algorithmsAriane van der Steldt
outside the tree.
2011-06-06regenMark Kettenis
2011-06-06The host and PCIe bridge parts of the RS780 northbridge crry the AMD vendor ID.Mark Kettenis
2011-06-06Microphone mute button support from acpithinkpad (or elsewhere).Theo de Raadt
The audio side is a bit lacking; it does not yet mute all types of devices. from Alexander Polakov ok jakemsr
2011-06-06Delete the long dead LOCKED and WANTED flags from cd(4), sd(4), andMatthew Dempsky
wd(4). They haven't been used for 10+ years, since the drivers were switched to use disk_lock() and disk_unlock() instead. No binary change.
2011-06-05Revert previous commit; it makes us run out of interrupt slots too fast onMark Kettenis
amd64, and fixing things is going to take some time. ok deraadt@
2011-06-05fix mpu attachment at isapnp which resulted in amd64 (no isapnp) gettingTheo de Raadt
a file compiled. spotted by guenther, but this is the right fix ok miod
2011-06-05Drop kernel support for the useless DIOCWLABEL ioctl and prune a lotMatthew Dempsky
of silly flag twiddling code in various disk drivers. ok deraadt@, miod@ N.B., users will need a -current disklabel(8) to be able to write new disklabels to disk now.
2011-06-05Access a presumably 32-bit wide register at a properly aligned address.Christian Weisgerber
Fixes an unaligned access panic on sparc64. ok miod@, kettenis@, deraadt@, jakemsr@
2011-06-05Fix function names in debug printfs and use a more user-friendly errorStefan Sperling
message if the key disk cannot be opened. ok marco (some time ago)
2011-06-04regenMark Kettenis
2011-06-04ATI Radeon HD 4290 internal graphics as found on the AMD 890FX chipset.Mark Kettenis
2011-06-04regenMark Kettenis
2011-06-04Another mislabeled AMD northbridge.Mark Kettenis
2011-06-03Get rid of the wlabel argument to bounds_check_with_label(). It'sMatthew Dempsky
never done anything in OpenBSD and just clutters disk drivers with silly flag handling. More cleanup to follow. ok deraadt@, millert@; no objections krw@
2011-06-03Fix two compile errors in mcd(4) due to bitrot:Matthew Dempsky
1. Need to include <sys/dkio.h> since <sys/ioctl.h> no longer includes it. 2. readdisklabel() returns an int, not an error string, so update mcdgetdisklabel() accordingly. The return value is just ignored currently, but that's no worse than cdgetdisklabel() in cd(4)... Apparently no one has needed mcd(4) in the last two years.
2011-06-03Change acpi_xfoo to acpi_foo names.Jordan Hargrave
Fix return value for Acquire/Wait (TRUE = -1)
2011-06-03Fix em_write_pci_cfg() and em_read_pci_cfg() to avoid unaligned access, andMark Kettenis
make em_write_pci_cfg() do a proper read/modify/write cycle, to avoid changing the neighbouring 16 bits. Also remove the comment in em_pci_set_mwi() and em_pci_clear_mwi(); writting 0 to the status bits in the command/status word is the right thing to do. Fixes a panic on sparc64 and other strict alignment architectures. ok deraadt@
2011-06-03regenMark Kettenis
2011-06-03PLX PEX 8613Mark Kettenis
2011-06-03Track depth of scope stackJordan Hargrave
2011-06-03Remove unused structure members. Add depth field.Jordan Hargrave
2011-06-02Fix index for Mid() opcodeJordan Hargrave
2011-06-02No need to set error to 0, when it is still 0 from the start of the function.Theo de Raadt
ok thib matthew