summaryrefslogtreecommitdiff
path: root/sys/dev/pci
AgeCommit message (Collapse)Author
2017-01-22move counting if_opackets next to counting if_obytes in if_enqueue.David Gwynne
this means packets are consistently counted in one place, unlike the many and various ways that drivers thought they should do it. ok mpi@ deraadt@
2017-01-21non-PCI virtio files have been moved to sys/dev/pvReyk Floeter
2017-01-21Switch include of virtio header from dev/pci/to dev/pv/Reyk Floeter
2017-01-21In iwm(4), cancel mira timeouts in iwm_stop() and iwm_newstate() instead ofStefan Sperling
relying on the newstate task to do so. Fixes races of driver code against mira timeouts leading to crashes in some situations, e.g. occasionally when changing channels while the interface is up. ok procter@
2017-01-21Move virtio config from files.pci to files.pciReyk Floeter
virtio itself is not PCI, it is a paravirtual bus on top of either PCI or MMIO (arm). This is the first step of moving the virtio files to dev/pv. No functional change. arm kernel changes tested by jsg@ and patrick@ no objections from sf@ mlarkin@
2017-01-19Zero a return value variable at the start of hifn_process() to avoidJonathan Gray
using it uninitialised in one path.
2017-01-19Export the host time to the guest, add it as a timedelta sensor in vmmci(4)Reyk Floeter
OK kettenis@ mlarkin@
2017-01-16Let it compile with debugging enabledMike Belopuhov
2017-01-16Clean up SCSI operation status and state definesMike Belopuhov
2017-01-13Add vmmci(4) (VMM control interface), a simple guest-side driver for vmm(4) VMsReyk Floeter
While we don't have ACPI in vmm(4), we need a simple way to shutdown and reboot VMs gracefully but the device also allows to add more direct communications between host and guest later. OK mlarkin@
2017-01-13syncReyk Floeter
2017-01-13Add PCI ID for vmm control interfaceReyk Floeter
OK mlarkin@
2017-01-12Rename ieee80211_mira_node_destroy() to ieee80211_mira_cancel_timeouts().Stefan Sperling
No functional change. The previous name was chosen at a time when I could not yet anticipate what this function would really end up doing. The new name should make this function's purpose more obvious, especially where it appears at strategic places in driver code.
2017-01-12Finish initial 11n support for athn(4).Stefan Sperling
The heavy lifting was done by damien@ years ago. I didn't even have to figure out what the hardware expects, the code was already there. This driver now supports MCS 0-15 in client and hostap mode. No Tx aggregation and no 40 MHz channels yet. tested by vgross@, bmercer@, tb@, jmc@, Vadim Vygonets, Peter Kay ok bmercer@ tb@ phessler@
2017-01-10Enable snooping on Braswell. Fixes audio distortion on Acer TravelMateJonathan Gray
B117-M. From Martin Ziemer.
2017-01-08Use a macro for the Tx timeout value.Visa Hankala
OK deraadt@ kettenis@
2017-01-08Display color depth alongside resolution when attaching inteldrm andFrederic Cambus
radeondrm, using the same scheme as efifb(4). OK mpi@, visa@, kettenis@
2017-01-07regenMike Larkin
2017-01-07Some newer Intel Xeon E5v4 PCI ids, from Hrvoje PopovskiMike Larkin
ok deraadt
2016-12-26Fix typo, happend -> happenedJeremie Courreges-Anglas
2016-12-24Remove some unused variables that have been removed upstream as well.Mark Kettenis
Fixes some clang warnings. ok jsg@
2016-12-24Put a bit more unused code under #ifdef notyet to prevent a clang warning.Mark Kettenis
2016-12-23Hide static inline functions that are only used in debug code behind the sameMark Kettenis
#ifdef as the debug code itself. Prevents clang from warning about these functions being unused. ok stsp@, deraadt@
2016-12-20Fix compiler warnings generated by clang. This matches upstream commitMark Kettenis
1cd73ff70d13a22faa95db8323382dd6d036554e by Alex Deucher, whose commit message makes me suspect that Brad Smith mailed us a diff back in 2013 that we ignored. ok jsg@
2016-12-20Simplify the activate() functions of auglx(4), autri(4), andAlexandre Ratchov
auvia(4). From Michael W. Bombardieri <mb at ii.net>. Thanks.
2016-12-20Set free(9) size argument. From Michael W. Bombardieri <mb at ii.net>.Alexandre Ratchov
Thanks.
2016-12-18While copying out channel flags to userspace, omit the HT channel flag ifStefan Sperling
we're not in 11n mode. This will allow tcpdump to show the mode correctly. ok mpi@
2016-12-13Fix up tsleep priorities and make them interruptibleMike Belopuhov
With help from and OK sf, OK mpi on the previous version.
2016-12-12Remove (likely wrong) code commented since revision 1.1. FromAlexandre Ratchov
Michael W. Bombardieri <mb at ii.net>
2016-12-12Simplify auacer_activate(). From Michael W. Bombardieri <mb at ii.net>Alexandre Ratchov
2016-12-10Add support for MIMO Tx rates (MCS 8-15) to iwm(4).Stefan Sperling
The nominal maximum Tx rate is now 144Mbit/s (MCS 15, 20MHz channel, SGI). In practice it's more around 30Mbit/s, though. The most significant limiting factor is probably lack of Tx aggregation support. (Due to protocol overhead, reaching the nominal max is pretty much impossible anyway. When shopping wifi devices, do not believe what stickers on the box are saying; full of lies!) But APs will send us aggregates, so Rx should be faster than Tx (which was already the case, just less pronounced). Tested by phessler@, bmercer@, tb@ ok tb@
2016-12-10In iwm(4), do not enable HT protection (RTS) unconditionally if the AP requiresStefan Sperling
protection from 20MHz-only STAs on a 40MHz channel. We do not support 40MHz channels yet so there is nothing to protect ourselves from. It is the 40MHz users who need to start using RTS when a 20MHz-only user shows up.
2016-12-10Make retry-heavy rates less attractive to mira.Stefan Sperling
The number of retried frames shrinks significantly. ok tb@
2016-12-09Update the media as the last step in the SFP module configurationMike Belopuhov
The problem noticed, fix tested and OK procter@
2016-12-08iwm(4) was stripping some bits from the MCS index value before passingStefan Sperling
it to bpf for tcpdump(8). Fix it so MCS >= 8 get passed on correctly. ok phessler@
2016-12-08Return ENODEV if playback is requested on devices with no DACs orAlexandre Ratchov
recording is requested on devices with no ADCs. Many thanks to Bryan Vyhmeister <bryan at bsdjournal.net> for testing & debugging this.
2016-12-07Add mira support to iwn(4).Stefan Sperling
Please let me know about any regressions. Tested by myself, tb@, okan@, jca@, naddy@, mlarkin@ ok tb@ jca@
2016-12-06regenMike Belopuhov
2016-12-06X557 is the name of an external PHY not the PCI deviceMike Belopuhov
Rename 8086:15a[abce] back to X552, give 8086:15ad a proper moniker X552/X557-AT and the yet-unreleased parts 8086:15c* are tentatively named X553.
2016-12-06Don't forget to return an errorMike Belopuhov
2016-12-06Improve error handling and don't fail if SFP module is not present;Mike Belopuhov
tested by Hrvoje Popovski, thanks!
2016-12-06Let X552 SFP+ boot without a module plugged inMike Belopuhov
Due to insufficient error handling X552 SFP+ card isn't configured properly on boot when an SFP+ module is not plugged in. As a side effect the interface becomes completely unusable afterwards. The issue was discovered and fix tested by Hrvoje Popovski, thanks!
2016-12-06Make sure iwm(4) only calls ieee80211_mira_choose() while in RUN state.Stefan Sperling
Should fix "panic: timeout_add: not initialized" reported by danj@
2016-12-02regenMike Belopuhov
2016-12-028086:154a is not a QSFP model, possibly just a quad portMike Belopuhov
Cleanup trailing whitespaces from the previous change while here.
2016-12-02Don't overwrite the selected flow control settingsMike Belopuhov
procter@ has noticed that flow control settings survive module change when they should be forgotten. It became clear that we're overwriting the selected FC mode with the requested version instead of keeping negotiated settings. Tested by procter@.
2016-12-02Disable the TX laser when interface is going down for all fiber modulesMike Belopuhov
Previously only multi-rate fiber modules would disable the TX laser, but newer Intel driver does it for single rate modules as well. Reminded by kettenis@, tested by procter@ and Hrvoje Popovski. Thanks!
2016-12-02regenDavid Gwynne
2016-12-02have a better go at naming xl710 devicesDavid Gwynne
intel use xl710 to refer to 40 gig parts (and 20 for some reason), and x710 to refer to 10g parts. there's allegedly going to be 25g parts called xxv710. i havent included the xl722 parts yet. im naming the devices by the speed and connector rather than going for actual intel product names like XL710-QDA1 because other vendors will use the same chips in product with other names. intel also put the XL710-QDA1 product id on the XL710-QDA2, which is a good argument not to use product names too.
2016-12-01Add noop drm SET_MASTER and DROP_MASTER ioctls. This will allowJonathan Gray
reducing the local diff in libdrm. We only handle a single master as xorg privdrop has already occurred at the point where the ioctls are issued.