summaryrefslogtreecommitdiff
path: root/sys/dev/pci
AgeCommit message (Collapse)Author
2016-08-31Support A Radio Free Europe!Ted Unangst
remove long disabled radio devices ok deraadt
2016-08-26correct INTR_MSG_MASK to include INTR_MSG_1Jonathan Gray
ok dlg@
2016-08-24pool_setipl for oce(4)David Gwynne
ok mikeb@
2016-08-24pool_setipl for cardbus and drm pools.David Gwynne
ok kettenis@
2016-08-23remove duplicated test for em_82574Jonathan Gray
2016-08-17Add support for RT5390 and RT5392 chipsets to the ral(4) driver.Stefan Sperling
Tested by procter@ on RT2860 and by me on RT2790 and RT3090. Ported from FreeBSD by James Hastings.
2016-08-17wpi(4) scans all bands at once, as far as the net80211 stack is concerned.Stefan Sperling
So set the appropriate scan capability flags in the ic. ok sthen@
2016-08-17regenStefan Sperling
2016-08-17Add PCI ID for Ralink RT5392 and additional IDs for RT5390 devices.Stefan Sperling
Part of a larger patch by James Hastings.
2016-08-17iwn(4) scans all bands at once, as far as the net80211 stack is concerned.Stefan Sperling
So set the appropriate scan capability flags in the ic. ok sthen@
2016-08-17If the stack demands protection by setting the USEPROT flag then set theStefan Sperling
corresponding bit in the iwm(4) Tx command regardless of frame length. ok sthen@
2016-08-17Make error handling (esp. DATA_UNDERRUN) clearer and avoid losing residKenneth R Westerback
value. Specs from mikeb@, ok dlg@
2016-08-15Remove IWM_CMD_SYNC, which expands to zero while all the otherStefan Sperling
IWM_CMD_* values are bit flags. The same was done 2 years ago in Linux git commit a10229271946731959b2269370d0492d88cfab23.
2016-08-14u_quad_t -> uint64_tDavid Gwynne
de is amazing(tm). it really should be cut back and simplified a bit.
2016-08-14change some types in bio from u_quad_t to uint64_t, and fix casts inDavid Gwynne
drivers that fill that field in too. quad types are going away.
2016-08-09Check xs->status for SCSI_CHECK even in underrun situations.Kenneth R Westerback
Lets Bacula find the end of medium on LTO5 drive. Reported & fix tested by Kor son of Rynar. ok mikeb@ deraadt@
2016-08-07Make iwm(4) automagically recover from fatal firmware errors by leaving theStefan Sperling
interface marked UP and scheduling the init task. Matches iwn(4) behaviour.
2016-07-31regenJonathan Gray
2016-07-31Add Xeon E3-1200 v5 host bridge and some more Sunrise Point H PCH ids.Jonathan Gray
2016-07-26Fix byteswap errors in rtwn(4) and urtwn(4) introduced by me on June 17.Stefan Sperling
Repairs urtwn(4) on macppc. Problem reported by juanfra@. ok millert@ deraadt@
2016-07-21Make rtwn(4) and urtwn(4) respect the RTS threshold set by net80211.Stefan Sperling
ok mpi@
2016-07-20Disable the beacon filter in iwm(4). This allows beacons to pass through toStefan Sperling
the stack while associated, which in turn makes it possible to keep track of HT protection changes. ok mpi@
2016-07-20Make the iwn(4) LED flash 10 times slower in monitor mode.Stefan Sperling
Makes running monitor mode over extended periods of time much less annoying. ok benno@
2016-07-20Bring iwn_update_htprot() back, so iwn(4) will properly keep trackStefan Sperling
of HT protection changes while associated. HT protection affects behaviour on Tx but is configured along with Rx settings (because Intel likes it that way). And our previous iwn_update_htprot() implementation had a bug where it would accidentally clear bits which enable CCK rates for Rx. The Intel Wireless-N 2200 chip accordingly stopped receiving some frames (most notably broadcast frames) and the link broke down. Also, restore the power-saving level after updating the Rx config (like Linux does), and add some DELAYs for good measure to ensure the firmware has time to process asynchronous commands we send. tested by myself and mlarkin@ ok mlarkin@
2016-07-20ATI controllers seem to need the same workaround as VIA controllers.Martin Pieuchot
This should hopefully help people reporting errors with SB700. From FreeBSD, ok kettenis@, krw@
2016-07-19virtio_pci: Always allow MSI/MSI-XStefan Fritsch
For virtio devices, ignore the black/white-listing depending on the PCI bridge. This enables MSI-X with qemu's old "82441FX" pci-bridge. Suggested by kettenis@
2016-07-18Explicitly set iwm(4) firmware Tx aggregation limit to one (which disablesStefan Sperling
Tx aggregation), instead of the maximum (63 frames). Tx aggregation should already be disabled, so this change should be a no-op. It just avoids any side effects in case the firmware happens to interpret the limit we set here. ok mpi@
2016-07-18Fix inverted logic in iwm_tx(). The PROT_REQUIRE flag in should be set forStefan Sperling
data frames above a certain length, but we were setting it for !data frames above a certain length, which makes no sense at all. Found while comparing our driver's Tx code to iwlwifi. ok mpi@
2016-07-18Make iwm(4) retry Tx of management frames less often. We now retry managementStefan Sperling
frames the same number of times as Linux iwlwifi does.
2016-07-16Support MSI-X in virtioStefan Fritsch
This increases performance for interrupt heavy loads. While suspend/resume support for MSI-X is missing, this is also missing for virtio. So no new issue there. Currently, qemu's old "82441FX" pci-bridge is still blacklisted for MSI. But MSI-X is used if qemu is started with "-M q35".
2016-07-14vioblk: Properly handle poll timeoutStefan Fritsch
The only way to ensure that the device does not do DMA for the timed out request is a device reset. Also increase the timeout to 15s
2016-07-14rename virtio_ops.intr to poll_intrStefan Fritsch
This describes more accurately what it is good for. Also introduce a virtio_poll_intr macro.
2016-07-14virtio: Move interrupt handler into transport specific codeStefan Fritsch
For MSI-X (and also possibly for other transports), the interrupt handler must do different things. Move it out of virtio.c and into virtio_pci. ARM part tested by patrick@
2016-06-27Revert if_iwm.c r1.166. We are still seeing links dropping upon HT protectionStefan Sperling
updates with some iwn chips, such as the 2200. Reported by mlarkin and krw.
2016-06-22In iwm(4), clear the in_assoc flag when going down. This flag affects behaviourStefan Sperling
early during startup, e.g. where the BSSID for the MAC context is copied from. Pointed out by Imre Vadasz.
2016-06-22Remove code from iwm(4) which sends DTIM and TSF information to theStefan Sperling
firmware based on information from the wireless stack. Letting the firmware deal with these details by itself seems to work better. Fixes association issues with 8260 hardware for me and Bryan Vyhmeister. Also tested by jcs@.
2016-06-22Make iwm(4) explicitly send multicast frames at the lowest rate, instead ofStefan Sperling
picking a rate from the firmware RS table. This matches what other drivers do. Also, pass the correct Tx rate to BPF (tcpdump) for 5GHz, and don't loop over CCK rates when building the Link-Quality command's RS table for 5GHz. tested by myself and jcs@
2016-06-20In iwm(4), send PHY DB commands as async commands.Stefan Sperling
This means we won't sleep and wait for the firmware to send an interrupt when it's done processing the command. For unknown reasons, sometimes the firmware never wakes the driver after a phy db command so the driver gives up partway through the hardware init sequence. We already have a DELAY in place after each phy db command we send to give the firmware some time for processing, so skipping the sleep is not expected to cause problems. If it does, we'll have to revisit this change. For now, this change makes iwm(4) work better in bsd.rd. Problem reported by Remi Locherer on bugs@, and confirmed by kettenis@. Lots of help with testing and ok tb@
2016-06-19Make some noise in dmesg when iwm(4) fails to bring up the hardware.Stefan Sperling
ok tb@ earlier version
2016-06-18Plug some memory leaks in error paths of iwm(4).Stefan Sperling
Patch by Imre Vadasz.
2016-06-17Merge a lot of code from urtwn(4) into rtwn(4). Both drivers now share codeStefan Sperling
in the file sys/dev/ic/rtwn.c. This reduces kernel bloat and will make it easier to have both drivers benefit from future enhancements. ok mpi@
2016-06-05Continue preparing a future merge of urtwn(4) and rtwn(4).Stefan Sperling
This mostly copies r88e support code to ic/rtwn.c and moves some functions which are not trivial to merge with USB counterparts back to pci/if_rtwn.c. ok mpi@
2016-06-03Put iwn_update_htprot() back, with a fixed implementation this time.Stefan Sperling
I hope this will fix problems due to collisions and interference. tested by tb@ and Marcus MERIGHI ok tb@
2016-06-03In iwm(4), fix multicast Rx by updating the MAC context again afterStefan Sperling
sending multicast filter and STA settings during association. Makes ARP and inet6 autoconf work again. ok kettenis@
2016-06-02Fix two issues in the MSI-X code. First, actually read the MSI-X capabilityMark Kettenis
register. Second, correctly decode the table sizefromits contents. First issue pointed out by David Hill (with the help of clang). Second issue spotted after seeing a diff from Christiano Hasbaert.
2016-06-01Fix the loop iterating on extended capabilities. It turns out that weMartin Pieuchot
never did the handoff between the BIOS and the OS correctly. Should make xhci(4) usable on machines with xHCI BIOS support like most of the recent DELL. Tested by Hrvoje Popovski and David Hill. ok kettenis@, mikeb@
2016-06-01regenDavid Gwynne
2016-06-01intel use the same device id for multiple nvme parts, so just callDavid Gwynne
it NVMe. samsung do the same. pointed out by Evgeniy Sudyr who has a SSD 750 using the same id as the DC parts.
2016-05-30replace m_copym2 with m_dup_pkt.David Gwynne
ok mpi@
2016-05-28Add support for Intel Wireless 3165 devices to iwm(4).Stefan Sperling
Patch by Imre Vadasz.