summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2015-03-13convert to if_input()Jasper Lievisse Adriaanse
tested by landry@ ok mpi@
2015-03-12If while attaching pckbdc device slots, we find a slot has failed toTheo de Raadt
attach and it happens to be the AUX port, aha: we are a kernel without the pms driver. In that case, we should reset that pms back into 'stupid mode'. It seems some BIOS initialize newer-style nubbins/touchpads into strange (advanced) modes, which can muddle up the pckbc pipe. This is experienced as 10-second typing pauses and strange repeat behaviour on the RAMDISK, but was eventually tied to "lightly brushing" the touchpad... work done at s2k15 with jcs
2015-03-12Print the current link speed for SATA devices attached on ahci(4).Bryan Steele
The port numbers correspond to scsibus(4) targets: ahci0: port 0, at 6Gbps ahci0: port 2, at 3Gbps scsibus1 at ahci0: 32 targets sd0 at scsibus1 targ 0 .. sd1 at scsibus1 targ 2 .. ok deraadt@, tested by bmercer@
2015-03-09In wdcintr, do not attempt to read the status register unless WDCF_IRQ_WAITMiod Vallat
is not set; this used to be the case but got broken in 1.113. Fixes pciide0 at pci0 dev 2 function 0 "Acard ATP865-R" rev 0x07: DMA on armish (I/O Data).
2015-03-08properly set sgl related flags on skinny controllers. this fixesDavid Gwynne
io against physical disks on my dell perc h310s. logical disks still work fine. ok deraadt@ yasuoka@
2015-03-08Revert patch responsible for locking up machines withTobias Ulmer
"Realtek 8168" rev 0x01: RTL8168 2 (0x3800). You will never guess who commited it without OK ;) ok deraadt revision 1.45 date: 2015/01/26 09:58:47; author: brad; state: Exp; lines: +22 -2; commitid: AppNYocFYbD7Hqgj; Set PCIe max read request size to 2K to help with TX performance. From FreeBSD Tested with 8168C, 8168D and 8168G. revision 1.46 date: 2015/02/19 04:58:34; author: dlg; state: Exp; lines: +2 -2; commitid: GSWXECXQW0LeGFmq; when reading the max packet size in the pcie device config and status register, correctly mask things so we're left with the mps field instead of everything but the mps field. tested by bcallah@ and jim smith
2015-02-28Remove duplicated defines for window 7 registers.Miod Vallat
2015-02-12Convert to if_input().Martin Pieuchot
ok dlg@
2015-02-11include extended capabilities in ahci debug outputJonathan Matthew
ok dlg@
2015-02-11recognise ahci 1.3.1Jonathan Matthew
ok dlg@
2015-02-10Wireless drivers call if_input() via ieee80211_input() which set `rcvif'Martin Pieuchot
on every received mbuf, so there's no need to initialize this pointer in the drivers. Tested by and ok phessler@
2015-02-10First step towards making uiomove() take a size_t size argument:Miod Vallat
- rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
2015-02-09turn off QLA_DEBUG noise, requested by deraadt@Jonathan Matthew
2015-02-09we want to defer work traditionally (in openbsd) handled in anDavid Gwynne
interrupt context to a taskq running in a thread. however, there is a concern that if we do that then we allow accidental use of sleeping APIs in this work, which will make it harder to move the work back to interrupts in the future. guenther and kettenis came up with the idea of marking a proc with CANTSLEEP which the sleep paths can check and panic on. this builds on that so you create taskqs that run with CANTSLEEP set except when they need to sleep for more tasks to run. the taskq_create api is changed to take a flags argument so users can specify CANTSLEEP. MPSAFE is also passed via this flags field now. this means archs that defined IPL_MPSAFE to 0 can now create mpsafe taskqs too. lots of discussion at s2k15 ok guenther@ miod@ mpi@ tedu@ pelikan@
2015-02-09tweak the new if_input function so it takes an mbuf_list insteadDavid Gwynne
of a single mbuf. this forces us to batch work between the hardware rx handlers and the stack. this includes a converstion of bge from ether_input to if_input. ok claudio@ pelikan@ mpi@
2015-02-08Fix mfi ioctl to set drive state properly.YASUOKA Masahiko
diff from Tsubai Masanari test dlg jmatthew ok dlg
2015-02-08Convert to if_input().Martin Pieuchot
2015-02-08Convert to if_input().Martin Pieuchot
ok pelikan@, reyk@, blambert@, henning@
2015-02-05Do what the comments suggest and check for port-[ab]-ignore-cd properties,Miod Vallat
and if so, force soft carrier mode.
2015-01-27remove the second void * argument on tasks.David Gwynne
when workqs were introduced, we provided a second argument so you could pass a thing and some context to work on it in. there were very few things that took advantage of the second argument, so when i introduced pools i suggested removing it. since tasks were meant to replace workqs, it was requested that we keep the second argument to make porting from workqs to tasks easier. now that workqs are gone, i had a look at the use of the second argument again and found only one good use of it (vdsp(4) on sparc64 if you're interested) and a tiny handful of questionable uses. the vast majority of tasks only used a single argument. i have since modified all tasks that used two args to only use one, so now we can remove the second argument. so this is a mechanical change. all tasks only passed NULL as their second argument, so we can just remove it. ok krw@
2015-01-26Set PCIe max read request size to 2K to help with TX performance.Brad Smith
From FreeBSD Tested with 8168C, 8168D and 8168G.
2015-01-23break after return is useless.David Gwynne
2015-01-21Add a comment above the autopad checking.Brad Smith
2015-01-21Use the RL_FLAG_AUTOPAD flag when trying to determine whenBrad Smith
to pad short frames.
2015-01-20Fix size of the bcopy when extracting the MAC address.Brad Smith
From FreeBSD
2015-01-20Remove use of the link change interrupt handling, not all controllersBrad Smith
support this interrupt. Link state changes are noticed via the PHY status change callback or via the timeout for re_tick(). From FreeBSD
2015-01-20Some fixes for handling link state changes.Brad Smith
2015-01-15Remove a variable no longer used in re_tick().Brad Smith
From Fabian Raetz <fabian dot raetz at gmail dot com>
2015-01-15Fix subtle breakage for polled commands introduced during iopool conversion.Miod Vallat
2015-01-10Remove pointless empty 64bit support code stubs from bwi(4).Stefan Sperling
It seems no 64bit bus space support is forthcoming. Nothing has happened in DragonflyBSD for several years and FreeBSD has a different driver for 64bit chips called bwn(4). ok mpi@ some time ago
2015-01-10Merge two bwi(4) fixes from FreeBSD:Stefan Sperling
------------------------------------------------------------------------ r192306 | imp | 2009-05-18 17:31:26 +0200 (Mon, 18 May 2009) | 10 lines Fix a typo from the original driver. We need to write ctrl2 into RF register 0x52, not ctrl1. This appears to be a mistake in the bcm reverse engineering page, and has been corrected there. Tracing through the code, this is more in keeping with the "documented" register. Sephe thinks it looks interesting and may be worth fixing. :) Submitted by: ddkprog at yahoo com Reviewed by: Sepherosa Ziehau ------------------------------------------------------------------------ r192042 | nwhitehorn | 2009-05-13 16:25:55 +0200 (Wed, 13 May 2009) | 4 lines Add a short delay after programming PHY registers to give some time for the engine to catch up. This prevents a machine check exception from illegal memory requests with a BCM4318. ------------------------------------------------------------------------ No regressions observed by myself, miod@, and Vesa Norrman (vesbula at gmail).
2015-01-09Add support DIOC{G,S}CACHE to mfi(4). Cache of disk on mfi(4) willYASUOKA Masahiko
be enabled by default. Also if the controller doesn't have any RAM, the cache on the physical disk will be enabled. discuss with jsg tsubai ok dlg
2015-01-08Use the correct config registers for the RTL8139 family. Unlike the RTL8169Brad Smith
and RTL8168 family, the RTL8139 has different register map for config registers. From FreeBSD WoL bits reviewed and tested by stsp@
2015-01-04Fix error handling for re_encap() within re_start() and some tidying up.Brad Smith
2014-12-29Some cleaning up of the ioctl handling bits to bring things in lineBrad Smith
with the other drivers.
2014-12-26unifdef INET. missed a few headers in previous roundsTed Unangst
2014-12-22unifdef INETTed Unangst
2014-12-19Use <sys/endian.h> instead of <machine/endian.h>Philip Guenther
ok dlg@ mpi@ bcook@ millert@ miod@
2014-12-19another handful of bcopy -> memcpy because there is no overlapTheo de Raadt
2014-12-19Make use of m_defrag() in re_encap().Brad Smith
2014-12-16Protect memory allocation and disposal with splvm(); gets rid of splassertMiod Vallat
complaints during boot on i386. ok stsp@
2014-12-13yet more mallocarray() changes.Doug Hogan
ok tedu@ deraadt@
2014-12-08Have foo_init() call foo_reset() to reset the chip to a known stateBrad Smith
as is the case for a lot of the other drivers. Remove some redundant calls to foo_stop() and foo_reset() before foo_init(). Tested with DP83815, 3c905C, 8139 and ST201. Mostly from FreeBSD.
2014-12-06A few last 'easy' #include dedups.Kenneth R Westerback
ok tedu@
2014-12-03Turn ahci port start into a callback so sxiahci can do some magic toJonathan Gray
setup dma. Modified version of a patch from Edwin Amsler which was based on changes made in Bitrig by Artturi Alm. ok dlg@
2014-11-27Garbage collect some bits that were never used.Brad Smith
ok mikeb@
2014-11-27rxr ioctl handling.Brad Smith
2014-11-24rxr ioctl handling.Brad Smith
2014-11-24- Check IFF_RUNNING in xl_intr().Brad Smith
From FreeBSD - Clear IFF_RUNNING at the top of xl_stop() before freeing resources. Tested with 3c905C.
2014-11-24use the correct capitalization for Realtek.Brad Smith