summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2011-04-18keep an eye out for wdc registers returning 0xff. if they return 0xff,Theo de Raadt
this probably means the controller is dead -- as in, a hot plug eject event. in that case, mark the driver dead and try harder to return -1 in the interrupt handler. tested by many ok dlg, miod did not object
2011-04-17Add wol support to xl(4). Not really tested, but hopefully someone willStefan Sperling
test it now that it's in-tree. ok deraadt ("It causes no harm")
2011-04-17Don't increase if_oerrors for every multicast frame leaving the interface.Stefan Sperling
ok deraadt
2011-04-16Initialize variables before use.Kenneth R Westerback
2011-04-15Change wdc_reset_channel() to take a `no wait' argument. Pass in turn thisMiod Vallat
argument to wdcreset(), to have it skip waiting until active channels see their BUSY bit clear in the status register. Use this feature in the resume path, during the first reset operation. The first reset is supposed to only wake up the controller, and the disks don't come back until the second reset is issued, therefore waiting for them to report themselves as ready after the first reset, but before the second, is moot - and as a matter of fact some controllers, such as the AMD 754 and clones/offspring (e.g. Geode) keep the BUSY bit asserted after the first reset. Last, but not least, make sure wd@ata invokes wd_get_params() again before returning from the resume code, as we will still be using polled transfers for a short while. This causes the Lemote Yeelong to resume within less than one second, instead of the lousy 30 seconds wait between the two resets; and the wd_get_params() voodoo prevents it from getting spurious ide interrupts afterwards. wd_get_params() magic from dlg; rest of the work by yours truly after enough prodding by dlg@ and pirofti@, among others. ok deraadt@ dlg@
2011-04-14Add several additional adapter types and correct definition ofJonathan Gray
RTL8103E, from FreeBSD. ok sthen@
2011-04-11Fix SPL handling when PCDISPLAY_SOFTCURSOR is enabled.Matthew Dempsky
Discovered, narrowed down, and tested by jmc@. "definitely commit that" deraadt@, ok miod@
2011-04-09add all 64 bit dma plumbing but stick with 32 for now by default.Marco Peereboom
ok deraadt
2011-04-09make sure the upper 32 bits are always written to instead of assuming itMarco Peereboom
is 0. ok deraadt.
2011-04-08more spacesMarco Peereboom
2011-04-08kill some stray spacesMarco Peereboom
2011-04-08rename wiat channel to something less than 8 chars.Marco Peereboom
prompted by deraadt
2011-04-08use dma_alloc for transient management commands.Marco Peereboom
prodded and ok deraadt
2011-04-07Do not use NULL in integer comparisons. No functional change.Miod Vallat
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
2011-04-07Make sure the eeprom pointer is correctly initialized inMiod Vallat
ar9380_spur_mitigate_ofdm().
2011-04-06Correctly protect the arguments of the AIC_ASSERT() macro.Miod Vallat
2011-04-05pull the dmamam wrapper in from all my other drivers and use it to replaceDavid Gwynne
the siop command buffers and add dmaable buffers for sense data. matthew@ found that siop used to try to dma to the xs->sense bufer, which is not guaranteed to be dma safe. tested by matthew@ kettenis@
2011-04-05wd_hibernate_io() is a standalone disk io writer which tries to notTheo de Raadt
damage kernel memory very much while doing the job. It is not very pretty yet, but improving it will need some MI work. ok mlarkin jsg dlg
2011-04-05- use nitems() no binary change on amd64Jasper Lievisse Adriaanse
"reads OK" claudio@
2011-04-05mechanic rename M_{TCP|UDP}V4_CSUM_OUT -> M_{TCP|UDP}_CSUM_OUTHenning Brauer
ok claudio krw
2011-04-05add a scsi probe routine so isp(4) can reject high luns when the midlayerDavid Gwynne
is probing, rather than every time it issues an io. ok krw@
2011-04-05Deep below wdc_ioc_ata_cmd() it is possible that some controller (present orTheo de Raadt
future) will try to dma the command buffer to the disk in some way. Use dma_alloc() to get ahead of this potential failure path. ok dlg krw
2011-04-04Kill some #if 0'ed code (the 'raw' scsi path). Move splx()Kenneth R Westerback
to before scsi_done(). This doesn't mean aac will ever enabled! ok dlg@
2011-04-03move twe over to iopools so we can get rid of another NO_CCB user. thisDavid Gwynne
also cuts the aen drain over to using an iohandler so it can be made reliable. this compiles, but i havent got hardware to test with. its going in as a way to force testing. if there's a problem with the code then let me know or back it out. "man up" k2k11
2011-04-03Sprinkle spltty around code which plays with either the video memory orMiod Vallat
the backing store. The state of a VT is only coherent if both the active flag and the backing store are in order, which is not the case during VT switches. This fixes display glitches occuring during VT switches if one of the VT involved is doing a lot of tty updates. Noticed by deraadt@ on a machine too fast for mere mortals.
2011-04-03Iopoolification of some less common scsi drivers.Kenneth R Westerback
ok dlg@ ("miod will not object" dlg@)
2011-03-23only read from the UART if there is something to read. fix beagle, otherwiseFederico G. Schwindt
it will crash with 'External Non-Linefetch Abort (S)'. similar diff provided by drahn@. tested by jasper@, deraadt@ ok.
2011-03-18Fix firmware loading at startup (and resume); from Tim van der MolenTheo de Raadt
based on discussion with damien; tested by others on the lists
2011-03-13Wake On LAN support for re(4).Stefan Sperling
ok deraadt
2011-03-06Make sure MEMORYBARRIER(SYNC_REG) performs a read/write bus_space_barrier,Miod Vallat
instead of a read barrier only, as it is used in read-modify-write cycles. ok mjacob
2011-03-05Wait until the DMA engine is stopped before unmapping buffers and descriptors.Mark Kettenis
Fixes DMA errors seen on sparc64. ok miod@
2011-03-04Peek at the interrupt status register before poking with the reply postMike Belopuhov
queue. In some situations this prevents us from reading a garbled reply. If this commit breaks your mpi, please report ASAP. The issue was reported and the fix was verified by Emeric Boit. Thanks! Ok dlg, kettenis, marco (who warned us and wanted to test more)
2011-03-01back out r1.162, the one that bumps openings up on sas and fcDavid Gwynne
devices. my theory is that some devices report queue full conditions in ways the firmware doesnt understand, or some firmwares default to NOT doing the queue full handling internally. either way it reports queue full conditions as faulted io which gets passed up to the block layer as errors. this makes us conservative again and safe. this fixes panics from ajacout ok sthen@ deraadt@
2011-02-22Mark descriptors as invalid *before* unmapping the associated mbuf.Mark Kettenis
Might prevent the unrecoverable DMA error mentioned in PR 6557. ok damien@
2011-02-22ami figures out the names of the enclosure attached to it by snoopingDavid Gwynne
commands on the passthru busses after the kernel becomes !cold. however, if the enclosure doesnt have any sensors then we dont issue regular commands to it, so ami cant see what its name is. this moves the name fetch from the passthru io path to a walk of all the devices on the bus just after they were attached. problem reported and fix tested by henning@ ok miod@
2011-01-26Add port multiplier support, has been in snaps for a while with no reportedDale Rahn
issues. No actual OKs, but general acknowledgement and 'get it in' from several.
2011-01-15carrier leakage calibration workaround for high temperature is notDamien Bergamini
applicable on AR9271.
2011-01-08fix LEDs handling.Damien Bergamini
do not read back the LED GPIO pin since it is configured in output only mode. makes the link LED blink on the WiFiStation EXT when scanning (the LEDs indicating the signal strength are not working yet).
2011-01-08the USB frontend has its own switch_chan() function, so no need toDamien Bergamini
do AR9271-specific stuff here.
2011-01-06"athn* at uhub? port ?"Damien Bergamini
this adds preliminary support for the Atheros AR9271 chipset and probably the AR9280+AR7010 and AR9287+AR7010 too though those were not tested. scanning still takes a very long time (~1 sec per channel) but otherwise, operation in STA mode seems stable. will implement fast channel change soon. committed over the Ubiquiti WifiStation EXT (AR9271) on i386 with WPA. requires firmware (see man page for details) ok deraadt@ (who checked the .h files)
2011-01-05cosmetic, no binary change.Damien Bergamini
2011-01-03use host_flags directly as they're initialized during attach time.Federico G. Schwindt
jakemsr@ ok.
2011-01-03the flags method of the ac97 host interface is optional. check thatJacob Meuser
it not NULL before using it. fixes crash reported by jmc@
2011-01-02Prevent a few more NULL pointer dereferences in troublesome situations; fromMiod Vallat
NetBSD
2011-01-01cleanup, no binary change.Damien Bergamini
2011-01-01more AR9380/AR9485 bits.Damien Bergamini
add Tx gain initvals for high-power AR9380 solutions.
2011-01-01unbreak kernel builds; sorry guys.Damien Bergamini
pointed out by Benoit Lecocq.
2011-01-01add code to read OTPROM on the AR9485Damien Bergamini
2010-12-31when stopping Rx, set the AR_DIAG_RX_ABORT bit too.Damien Bergamini
2010-12-31limit the number of Tx chains used on some 3-stream AR9380 chipsDamien Bergamini
for MCS0~15 to not exceed the PCIe power requirements.