summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2010-04-25introducing a 64-bit type to the disklabel structure leads some architecturesTheo de Raadt
to pad-align the size of the structure; it grows, the disklabel ioctl's are break ABI. Change the uid to a character array. this also simplifies some other stuff ok jsing
2010-04-24This code is only called during autoconf, and never ever from anMark Kettenis
interrupt handler.  So the locking and spl manipulation can simply go away. ok deraadt@, oga@
2010-04-23Make raidframe compile after recent #include rectification. Noted byKenneth R Westerback
oga@. ok deraadt@
2010-04-23Add a barrier before we submit the ringbuffer and before we do anythingOwain Ainsworth
that kills gtt mappings. In both of these case we want all writes to hit the bus before we do whatever we're about to do. Doesn't solve any problems that I know of but it may help.
2010-04-23Allow for lazy fence disable on tiling change.Owain Ainsworth
When we disable tiling (for example whenever we free an object to out userland cache), we stall the gpu so that we can get rid of the fence register covering its bit of the gtt. Instead, mark it as invalid and then free it on next use, leading to less of a gpu stall if any. Leads to some slight performance improvement on 8xx, 91x and 94x chipsets which are fence constrained.
2010-04-23give AR9287 some chance to work.Damien Bergamini
2010-04-23Recycle unused disklabel fields in order to create a disklabel uniqueJoel Sing
identifier, allowing the disk to be identified without relying on the device name. ok deraadt@ krw@ beck@ marco@ todd@
2010-04-23the SAT spec from t10.org defines messages for tunnelling ATA commands overDavid Gwynne
SCSI when you're talking to a scsi to ata translation layer (satl). this implements the ata command ioctl handler in scsi_ioctl.c that wraps the ata command requests up in these scsi commands and then issues them against the hardware. this cuts atascsi over to interpreting these scsi commands rather than the ioctls directly. this should allow mpi users (with a relatively recent firmware) to use atactl against their SATA disks. i cant test cos my mpi(4) parts are too old to either support these scsi commands or too old to take recent firmwares. ok marco@ @krw tested by krw@ and me on ahci/atascsi
2010-04-22Don't include sysctl.h, and remove an unused struct from the softc.Stuart Henderson
ok deraadt@
2010-04-22Remove unused sysctl.h include. Inspired by claudio's commit the other day.Michael Knudsen
ok sthen
2010-04-22use BUS_DMA_ZERO on alloc instead of bzeroing after.Owain Ainsworth
ok dlg@, marco@
2010-04-22Fix cut 'n paste typoMarco Peereboom
2010-04-22cut atascsi over to providing and using iopools. this gets rid of NO_CCBDavid Gwynne
and makes the ioctl path more reliable on busy disks by allowing it to sleep in the runqueue for an io to use. mk@ did the original diff and figured most of the problems out. ok mk@
2010-04-21let this compile on RAMDISKS, which have no ioctlTheo de Raadt
2010-04-21Directly comparing pcitag_t's doesn't work on all platforms so decompose theMark Kettenis
tag and compare the individual components.
2010-04-21sys/sysctl.h is not needed here. OK deraadt@Claudio Jeker
2010-04-21First stab at a VGA arbiter. The VGA arbiter makes sure that only a singleMark Kettenis
VGA device can be active, and is responsible for routing IO to the active VGA device. Processes can use the new PCIOC_GETVGA and PCIOC_SETVGA ioctls to manipulate the VGA arbiter. ok deraadt@, oga@
2010-04-21Add support for PLX I/O 9016 based 8 port serial cardBob Beck
ok deraadt@
2010-04-20remove proc.h include from uvm_map.h. This has far reaching effects, asTed Unangst
sysctl.h was reliant on this particular include, and many drivers included sysctl.h unnecessarily. remove sysctl.h or add proc.h as needed. ok deraadt
2010-04-20- Fix a calculation bug with the RX ring buffer memory address whichTheo de Raadt
slipped into the original NetBSD code around sixteen years ago. Although it has been working so far because some devices used address zero and other devices ignored the wrong higher bits. - Remove the mem_ring override in ne2000_attach() now that dp8390_config() calculates mem_ring correctly. From NetBSD, via brad
2010-04-20mii_activate() is unusedTheo de Raadt
2010-04-20Allow MD oosiop(4) attachment to override default values for a few of theMiod Vallat
chip initialization values (SCNTL0, DMODE, DWT, CTEST7). No functional change on hppa; required by another upcoming attachment.
2010-04-20Nuke a few dead stores and one newly created unused variable.Owain Ainsworth
found by clang static analyser
2010-04-20A few more uninitialised variables (mostly in incredibly uncommon cases).Owain Ainsworth
found by clang static analyser.
2010-04-20Don't ask for ipv6 checksum offloading as we aren't ready for it.Jonathan Gray
Due to the messy context setup code this was breaking ipv6 forwarding when ipv4 offloading was enabled. All checksum offloading remains disabled for now. Debugged with and ok claudio@
2010-04-20some misc cleanup of dmesgTheo de Raadt
2010-04-20start the sensors off invalid... ok yuoTheo de Raadt
2010-04-20Don't write garbage to the config space for phison,Jonathan Gray
we shouldn't be touching the config space at all here. Found by the clang static analyser. ok deraadt
2010-04-20for some systems we need to try harder; from Mikko TolmunenTheo de Raadt
2010-04-20- an unsolicited response contains the codec address, not the codecJacob Meuser
index - we only care about unsolicited responses from the codec we're using - no need to enable unsolicited responses until we know which codec we're using fixes crash reported by jacekm@
2010-04-19cckinc is signed.Damien Bergamini
fixes TX power settings for CCK rates on AR9280 devices in open-loop power control mode.
2010-04-19Enable VS timer dispatch, from Eric Anholt upstream.Owain Ainsworth
The spec says this bit should always be set. It can help resolve hardware deadlocks where a unit downstream of the VS is waiting for more input, the VS has one vertex queueed up but not dispatched because it hope to get one more vertex so it can dispatch a 2x4 block, and software isn't handing any more vertices due to waiting on rendering.
2010-04-19Fix use of uninitialised variable.Owain Ainsworth
found by Clang static analyser.
2010-04-19Add flags for chipset generation in with the other chipset type flagsOwain Ainsworth
prevent the horrible constructs we use to determine generation otherwise.
2010-04-19Correct fence pitch checking code and fence register writing on 9{1,4}x.Owain Ainsworth
The tiling check was insufficient and allowing too large pitches, which in some cases could cause graphical corruption, strengthen the check so that only valid values are used. Solved and patch ported from one by Daniel Vetter on intel-gfx. tested by Dorian Buettner (first dot last @ gmx dot de); thanks!
2010-04-19move the stupid throwing away of ata_xfers out the run of the first scsiDavid Gwynne
inquiry against the device up to when the port is probed. this has been bugging me for ages.
2010-04-19i thought mpi gave each device all the openings on the bus, which was aDavid Gwynne
big motivation to implementing iopools. while looking at another issue i noticed that openings were cut up for each disk. this cranks openings to maxcmds.
2010-04-18Make key disks use their own optional metadata type, rather than reusingJoel Sing
crypto optional metadata. ok marco@
2010-04-17syncMark Kettenis
2010-04-17Add Sitecom WL-349 v1.Mark Kettenis
2010-04-17regenMiod Vallat
2010-04-17A few more devices found on sgi hardware.Miod Vallat
2010-04-16Remove Intel RAID IDs for now. They can be added back when code has beenMark Kettenis
written to detect the Intel RAID metadata format such that we no longer risk overwriting it. If this makes you lose your disks, you'll need to change the controller type from RAID to AHCI in the BIOS to get them back. ok marco@, deraadt@
2010-04-16syncMark Kettenis
2010-04-16Add ID for Sitecom WL-353.Mark Kettenis
2010-04-16Additional gtt alignment paranoia:Owain Ainsworth
when we go to pin, additionally check alignment against that required for tiling and unbind/rebind if needed. We shouldn't hit this case, but it is a good to check (would have found the bug in the last commit). tested by mlarkin and matthieu (and myself, of course)
2010-04-16Correct reversed test in set_tiling. this should deal with the fenceOwain Ainsworth
alignment errors that matthieu and mlarkin saw. Tested by both of them, and by me.
2010-04-16Correct some comments and cleanup some whitespace.Owain Ainsworth
2010-04-16paranoia: NULL check before free.Owain Ainsworth
2010-04-16If we fail to idle the chip in leavvt don't disable the interrupt,Owain Ainsworth
retrying that will hurt.