summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2014-08-27rxr ioctl handling.dlg1-1/+6
2014-08-26dont base the mru on the mtu. unconditionally make it what thedlg1-22/+7
hardware can do (9k). implement the rxr ioctl while here. ok jsg@
2014-08-26Revert part of the if_rxr diff that incorrectly moves RX ring tailmikeb3-11/+9
index update code from the buf_get success path to the do it all the time code path. Tested by millert; ok dlg, deraadt
2014-08-25We have never limited the definition of "supported SPF modules"mikeb4-32/+10
to the vendor/make whitelist maintained by Intel so there's no reason to start doing it now. When syncing the driver to the FreeBSD codebase I have decided to take this chunk as is but it appears that it breaks cheap chinese SFP+ fiber optics modules that we all love. And while there's still a lot of places where we check for the vendor OUI, most of these checks are not necessary. Issue reported and fix tested by Tony Sarendal. Thanks!
2014-08-24Fix wrong IEEE 802.11 ioctl's:zhuk2-10/+10
* SIOCG80211ALLNODES operates on struct ieee80211_nodereq_all, not struct ieee80211_nodereq. * Six SIOC* from wi(4) were using same codes with generic parts of IEEE 802.11 framework. Things worked due to the fact that size of data struct being passed is encoded in actual SIOC*, too. This commit means that ifconfig and some ports will need to be rebuilt, if any of affected SIOC* codes is used. Port bumps to follow. First part okay reyk@, whole diff okay mpi@ Heavy prodding to commit now from deraadt@
2014-08-24Add some TX BD flags for BCM5717 family chips.brad1-2/+13
2014-08-21Set the sensor's status when docking and undocking, not just its value.kspillner1-1/+3
With this change sensorsd(8) now correctly detects state changes when docking and undocking. ok mlarkin@
2014-08-21Now that DVACT_DEACTIVATE is propagated to the children of a device whenmpi4-116/+21
a driver does not implement a specific *_activate() handler and that our USB stack sets the dying flag before detaching a device, these specific handlers can die.
2014-08-21Fix a copy and pasto with the standard ring setup with calling if_rxr_init()brad1-2/+2
to use BGE_STD_RX_RING_CNT instead of BGE_JUMBO_RX_RING_CNT. ok dlg@
2014-08-20after allocating an mbuf and cluster you still need to init the lengthdlg1-1/+3
fields. found by steven roberts, who also tested this fix for me
2014-08-20Implement rxrinfo ioctl for cluster usage statisticsmikeb1-1/+36
2014-08-20Call audio_{pint,rint}() call-backs with the mutex held. Found byratchov1-2/+2
Izumi Tsutsui, thanks! ok miod@
2014-08-20Release CPU mutexes on EINVAL.doug1-1/+3
ok guenther@
2014-08-20brad said i had some whitespace screwups in my previous diff. this cleansdlg1-53/+53
them up and the others i found in this file. no functional change.
2014-08-20remove the custom jumbo allocator. its never been enabled or used.dlg2-235/+34
putting this into the tree to make it easier to test.
2014-08-20replace the custom jumbo allocator with MCLGETI.dlg2-240/+46
putting this in the tree to make it easier for people to test.
2014-08-20replace the custom jumbo allocator with MCLGETI.dlg2-179/+4
putting this in the tree to make it easier for people to test.
2014-08-20replace the custom jumbo allocator with MCLGETI.dlg2-199/+4
putting this in the tree to make it easier for people to test.
2014-08-20replace sks jumbo allocator with MCLGETI. the system provides jumbos indlg2-254/+102
the right shape now, we dont have to do it by hand all over the place any more. rework the rxr ring management to use if_rxring while here. largely based on if_sk.c r1.152 and if_skvar.h r1.4 by kettenis. tested by me on: skc0 at pci3 dev 11 function 0 "Schneider & Koch SK-98xx" rev 0x12, GEnesis (0x0): apic 3 int 5 sk0 at skc0 port A: address 00:00:5a:99:8a:ec xmphy0 at sk0 phy 0: XMAC II Gigabit PHY, rev. 2 and this from ian mcwilliam skc0 at pci0 dev 9 function 0 "D-Link DGE-530T B1" rev 0x11, Yukon Lite (0x9): apic 2 int 17 sk0 at skc0 port A: address 00:17:9a:ba:b5:39 eephy0 at sk0 phy 0: 88E1011 Gigabit PHY, rev. 5 tested by brad@ too
2014-08-19yet another typomiod1-2/+2
2014-08-19Enable rts5227, as found in my new Thinkpad x240.phessler3-12/+23
Shuffle the code around slightly, so we special case the 5209 chipset instead of semi-randomly. Tested on rts5227 by me, and rts5209 by stsp@ OK stsp@
2014-08-19Three independent typos for `independent' or `independently'.miod2-4/+4
2014-08-19Make sure state changes are properly serialized.mpi1-3/+22
When pms(4) is attached to a touchpad it generally presents two different wsmouse(4) devices: one for the touchpad itself and one for the clitpad and/or some interleaved packets. But since both devices are writing to the same pckbc slot, a race can occur if they try to change the state at the same time. So prevent two process opening the two /dev/wsmouse* node at the same time to corrupt the magic sequences needed to enable/disable the touchpad. ok schadchin@
2014-08-19in myx_start, replacedlg1-11/+7
while (space) { IFQ_POLL; myx_dequeue(free descr); IFQ_DEQUEUE; etc; } with while (space && myx_dequeue(free descr)) { IFQ_DEQUEUE; etc; }
2014-08-18dont rely on mbuf.h to provide pool.h.dlg1-1/+2
ok miod@, who has offerred to help with any MD fallout ok guenther@
2014-08-18its a bit silly to include mbuf.h to get to malloc.h. just includedlg1-2/+2
malloc.h instead.
2014-08-15Remove support for public key operationsmikeb2-287/+2
2014-08-15Remove support for public key operationsmikeb2-939/+2
2014-08-15With deprecation of crypto(4) interface lofn(4) and nofn(4) becomemikeb6-1885/+0
obsolete. No objections from the usual suspects.
2014-08-15unlink lofn(4) and nofn(4)mikeb1-11/+1
2014-08-15Create a function which loads sgd in the mfi_iop_ops struct so that skinnyyasuoka3-22/+74
adapters can use "IEEE sgl". tested dlg yasuoka ok dlg jsg
2014-08-14regenmillert2-4/+14
2014-08-14Add USB hubs found on Intel Z97 chipset boards (one attached tomillert1-1/+3
each EHCI root hub). OK deraadt@ jsg@
2014-08-14Implement rxrinfo ioctl for cluster usage statisticsmikeb1-1/+35
2014-08-14add some definitions from libdrm 2.4.56jsg2-3/+95
2014-08-13match on Intel 9 series and 9 series LP PCH, and add 8 series KT to pucjsg4-12/+45
ok millert@
2014-08-13regenjsg2-16/+191
2014-08-13Add some more 9 series ids, correct some existing ones and addjsg1-8/+43
9 series LP/Wildcat Point-LP entries. ok millert@
2014-08-11regenmillert2-2/+52
2014-08-11Add some Intel Z97 chipset devices; ok deraadt@millert1-1/+11
2014-08-11Fewer <netinet/in_systm.h>mpi27-133/+28
2014-08-10Ask for the descriptor size corresponding to the number of ports presentmpi1-4/+5
in the hub, not from some random value from the stack.
2014-08-10Do not allocate space for the whole structure when we just want to storempi1-3/+2
a pointer, found by clang.
2014-08-10sizeof() a pointer of the right struct to appease clang.mpi1-2/+2
2014-08-10Merge xhci_device_setup() into xhci_pipe_init() there's no reason tompi1-34/+24
have a separate function anymore, it is just a wrapper around the "set address" command.
2014-08-10Since USB xfer pools are accessed in interrupt context, initialize themmpi7-13/+17
with the correct ipl to prevent your CPU from locking against itself.
2014-08-10Set and check for XFER_BUSY in the common methods instead of doing itmpi5-59/+21
in every HC driver.
2014-08-09Add support for non-root hubs now that uhub(4) can deal with them. Formpi1-12/+16
the moment only Super and High Speed devices are properly recognized. Some TT love is required for Full and Low speed devices.
2014-08-09Correctly recognize Super Speed devices, this is part of the work tompi1-6/+24
be able to use USB 3.0 devices behind an external hub. This is a bit tricky because the SS status use a different power bit that maps to the Low speed one. So no longer accept devices without power bit and fallback to the parent hub's speed in case the status does not report any particular speed. Note that xhci(4) root hubs still set the traditionnal UPS_PORT_POWER bit with the correct device speed.
2014-08-09Handle super speed hub descriptors.mpi1-10/+27