summaryrefslogtreecommitdiff
path: root/sys/dev/pci
AgeCommit message (Collapse)Author
2012-08-30Use only one macro instead of two to turn debug printf on.Martin Pieuchot
ok kettenis@
2012-08-28oops. a bit of debugging code has sneaked inMike Belopuhov
2012-08-28Get rid of several ill-defined concepts and use more informationMike Belopuhov
provided by the IOC. Cleanup scatter-gather code and add more comments. Tested by a "make build" and bonnie++ torturing on a SAS2004 with an IR firmware.
2012-08-25Make sure we disable interrupts on attachment before re-enabling.Christiano F. Haesbaert
ok dlg@.
2012-08-25Small cleanup.Christiano F. Haesbaert
ok dlg@.
2012-08-25some endian fixes.David Gwynne
2012-08-23cleanup calculations in iocfacts a bit: number of reply frames doesn'tMike Belopuhov
have to be not multiple of 16, recalculate request credit and number of replies if their sum exceeds MaxReplyDescriptorPostQueueDepth. tested on SAS2004 with bonnie++.
2012-08-23whitespace cleanup; no functional changeMike Belopuhov
2012-08-23use BUS_DMA_ZEROMike Belopuhov
2012-08-23the chain_offset in mfii requests are in 16 byte units, not 4 likeDavid Gwynne
mpii. this stops the chip from freaking out on me when doing chained sgls. found by alex wilson who wins prizes.
2012-08-23turns out - is not commutative.David Gwynne
correctly determine the number of segments in the next chain, and also figure out the correct offset for the chain element at the end of the request frame.
2012-08-23stupid code bug.David Gwynne
instead of initting the ccbs sgl dma virtual address, i was assigning it to the sense memories dva. this means we wouldnt be getting sense data where we thought it was, and passing NULL (does NULL mean anything over a pci bus?) to the hardware when we have long sgl chains. hopefully this fixes the NMIs ive been getting.
2012-08-22Split out the bar functions required to attach drm(4) to share themMartin Pieuchot
with macppc's vgafb(4) and maybe later on sparc64 drivers too. suggested by and ok kettenis@
2012-08-22cleanup mpii_alloc_queues, use caddr_t for kva plus a bit of cleanupMike Belopuhov
2012-08-22remove last remnants of mpii_[e]cfg_header and mpii_[e]cfg_pageMike Belopuhov
2012-08-22for device pages of the fixed size there's no need to query theirMike Belopuhov
lengths nor to allocate the storage dynamically so place them on the stack and initialize the header by hand.
2012-08-22minor style nits for the function prototypesMike Belopuhov
2012-08-22Unbreak drm when DRM_NO_AGP is defined.Martin Pieuchot
ok miod@
2012-08-22kill several unused or useless defines; no functional changeMike Belopuhov
2012-08-22Add memory barriers for powerpc.Martin Pieuchot
ok kettenis@, miod@
2012-08-21Define the endianness macro used in drm code corresponding to theMartin Pieuchot
value of BYTE_ORDER, this makes radeondrm(4) usable on big-endian archs. ok kettenis@, deraadt@
2012-08-20add support for chaining a scatter gather list off a request frame if itDavid Gwynne
runs out of space for entries.
2012-08-17cleanup mpii_get_ioc_pg8 mess, no functional changeMike Belopuhov
2012-08-16display board model and firmware revision like mfi/mfii do; ok dlgMike Belopuhov
2012-08-16we are past the point where timecounters may disappearTed Unangst
ok miod
2012-08-16we're not going to loop in rxeof here as well so remove the leftoversMike Belopuhov
from brad, ok jsg
2012-08-16revert previous; wrong diffMike Belopuhov
2012-08-16mfii_exec_done clears ccb_cookie, so mfii_exec should test that, notDavid Gwynne
ccb_done.
2012-08-16white space, no real changesDavid Gwynne
2012-08-16move completions of ccbs out of the postq mutex. avoids the unlikely butDavid Gwynne
still possible deadlock that can occur if a completion starts a polled command.
2012-08-16replace the SLIST for ccbs with a SIMPLEQ so i can add stuff to the endDavid Gwynne
of ccb lists.
2012-08-16rewrite the mfii_mgmt path to be a bit more... symmetrical.David Gwynne
2012-08-15we're not going to loop in rxeof here as well so remove the leftoversMike Belopuhov
from brad, ok jsg
2012-08-14whitespace cleanup; no binary changeMike Belopuhov
2012-08-14dont maintain tables of all the pci subtypes just so we can print thingsDavid Gwynne
like "Dell PERC 5/i" in dmesg. the firmware on the board knows its own name so we can use that instead. saves some bytes in the kernel.
2012-08-14gc sc_flags now that the iop struct can tell us where the different IDBsDavid Gwynne
are. noted by haesbaert@
2012-08-14wire in mfii(4)David Gwynne
ok by mikeb@ haesbaert@ deraadt@ matthew@
2012-08-14introduce mfii(4), a driver for the generation of megaraid sas boardsDavid Gwynne
after the ones currently supported by mfi(4). mfii is to mfi what mpii is to mpi. it is also strange in that it reuses bits of both mfi(4) and mpii(4) hardware structures. the register layout is sort of like mfi, but the majority of the messaging (post and completion paths) are like mpii. the new logical disk io message is the same as the scsi io command in mpii with an extra raid context bit on the end. other operating systems have supported the new hardware in their existing megaraid sas drivers by cutting them in half and using a metric buttload of function pointers at pretty much every driver entry point to switch between the non-fusion behaviour and the fusion behavior. the only really common code seems to be the handling of the management commands before branching off into the chip specific message handling to move it on and off the hardware. i'll deal with abstracting the mgmt stuff out later. this is working so im getting it in now to polish further in the tree. ok by mikeb@ haesbaert@ deraadt@ matthew@
2012-08-14split the definitions of the hardware out into a separate file so it canDavid Gwynne
be reused by a driver for the recent megaraid sas fusion boards. mikeb was also interested in doing this a while back to make working on mpii.c easier. ok by mikeb@ haesbaert@ deraadt@ matthew@
2012-08-13sync a comment with reality and remove an error path duplicate; from bradMike Belopuhov
2012-08-12Make sure snooping is enabled on Intel 7 Series HD Audio.Mark Kettenis
Tested by naddy@.
2012-08-11Fix state tracking for the error ccb, and pay attention when the READ_LOG_EXTJonathan Matthew
command used in ncq error recovery fails. Fixes 'ccb->ccb_xa.state == ATA_S_ONCHIP' assertion failures when talking to dying disks. broken disk supplied by Aidan Rowe ok dlg@
2012-08-11Add support for another 82599 SFP+ card. Original diff and tests byMike Belopuhov
Chris Maxwell <chris ! maxwell () hootsuite.com> ok jsg
2012-08-11regenMike Belopuhov
2012-08-11another 82599Mike Belopuhov
2012-08-10cleanup some #define's and #ifdef'sMike Belopuhov
2012-08-10cleanup ixgbe_start routine; from brad, ok jsgMike Belopuhov
2012-08-09don't compile rss functions in unless OCE_RSS is specifiedMike Belopuhov
2012-08-09oops. missed these conflicts in the previous commitMike Belopuhov
2012-08-09try to make sense of the firmware statistics by counting rx and tx erorrsMike Belopuhov