summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2019-11-19Set isr to the correct value (sc->rl_intrs).kevlo1-2/+2
ok deraadt@
2019-11-19Don't assign ifp twice in the re_txeof().kevlo1-3/+1
ok deraadt@
2019-11-19Correct the link speed constant variables. From Shoichi Yamaguchi.yasuoka1-7/+7
ok jmatthew
2019-11-18Delete commented out VNDIOCGET60 ioctljca1-3/+1
Spotted by Benjamin Baier
2019-11-18Fix off-by-one TRB issue in bulk transfers larger than 64k.mglocker1-2/+2
This makes udl(4) on xhci(4) work fine. Help and ok patrick@
2019-11-18Fix actual length calculation of short transfers in xhci(4). So farpatrick1-8/+37
we have subtracted the remaining length from the total transfer length, which essentially means that we assume that all TRBs have successfully been transferred apart from the remainder. Actually we might get a short completion in the middle of a chain of TRBs, which means that all TRBs until this TRB have completed successfully apart from a remainder. Thus we have to count the length of all TRBs until and including the one that we went short on, and remove the remainder. All following TRBs in the same transfer must be ignored. Found by and fixed with gerhard@ ok mglocker@
2019-11-18Add support for 9260 and 9560 devices to iwm(4).stsp3-60/+593
Joint work with patrick@ Parts lifted from FreeBSD's r354492, r354502, r354508, r354516, r354508. Firmware is available with fw_update(1) thanks to sthen@ 7265 device tested by myself (still works) 8260 device tested by phessler@ (still works) 9260 devices tested by Travis Cole and myself 9560 devices tested by jcs@, mlarkin@, kevlo@, guenther@ Some 9560 devices have known issues. Those are being worked on. ok patrick@
2019-11-18regenkevlo2-2/+12
2019-11-18Introduce rge(4), a new driver for Realtek 8125 PCI Express 2.5Gb Ethernetkevlo4-2/+3876
device. "just commit!" deraadt@ "looks good to me" jmatthew@
2019-11-17print firmware version as unsigned intsjcs1-2/+2
ok stsp
2019-11-16- Don't enable/disable efuse access protection for rtl8188c/rtl8192c;kevlo2-19/+7
it may prevent incorrect mac address read from efuse - Disable BB/RF is not needed in urtwn_r92c_power_on() ok stsp@
2019-11-14Unleash all the available openings and let the midlayer sort thingskrw1-2/+2
out like other "modern" devices. ok dlg@
2019-11-14Remove hardcoding of NetChip vendor/product id so that urndis(4) can attachabieber1-2/+1
when Linux has g_ether configured as RNDIS. OK patrick@, sthen@
2019-11-13Send uhid(4) reports via the optional interrupt out pipe. Somepatrick1-16/+45
tiny devices don't accept reports using control transfers since they think that offering the interrupt pipe is enough. Discussed with djm@ ok mpi@
2019-11-13drm/i915/cmdparser: Fix jump whitelist clearingjsg1-3/+2
From Ben Hutchings fee619bb813648ea90bf024171acfaaec2f031fc in linux 4.19.y/4.19.84 ea0b163b13ffc52818c079adb00d55e227a6da6f in mainline linux
2019-11-13drm/i915/gen8+: Add RC6 CTX corruption WAjsg6-4/+126
From Imre Deak 255ed51599dea571ac15afc676b2705cf2f83975 in linux 4.19.y/4.19.84 7e34f4e4aad3fd34c02b294a3cf2321adf5b4438 in mainline linux
2019-11-13drm/i915: Lower RM timeout to avoid DSI hard hangsjsg2-0/+12
From Uma Shankar 011b7173cbdbd1a5f1826656693ea51516f15dc1 in linux 4.19.y/4.19.84 1d85a299c4db57c55e0229615132c964d17aa765 in mainline linux
2019-11-13drm/i915/cmdparser: Ignore Length operands during command matchingjsg1-1/+1
From Jon Bloomfield a7bda639a17fe92b66b8bb28e81b558cb8678c85 in linux 4.19.y/4.19.84 926abff21a8f29ef159a3ac893b05c6e50e043c3 in mainline linux
2019-11-13drm/i915/cmdparser: Add support for backward jumpsjsg5-26/+179
From Jon Bloomfield 6e53c71a69138059c8a4dcd1f9a2967c85fede64 in linux 4.19.y/4.19.84 f8c08d8faee5567803c8c533865296ca30286bbf in mainline linux
2019-11-13drm/i915/cmdparser: Use explicit goto for error pathsjsg1-12/+13
From Jon Bloomfield f27bc2b5950dccac563706a764aa0c2d387db8e9 in linux 4.19.y/4.19.84 0546a29cd884fb8184731c79ab008927ca8859d0 in mainline linux
2019-11-13drm/i915: Add gen9 BCS cmdparsingjsg3-11/+112
From Jon Bloomfield cdd77c6b4be41d35000611e2dc9a17a3db808976 in linux 4.19.y/4.19.84 0f2f39758341df70202ae1c42d5a1e4ee392b6d3 in mainline linux
2019-11-13drm/i915: Allow parsing of unsized batchesjsg1-4/+5
From Jon Bloomfield fea688c5dd8197fe1ad14a5a2596fee36f993bb8 in linux 4.19.y/4.19.84 435e8fc059dbe0eec823a75c22da2972390ba9e0 in mainline linux
2019-11-13drm/i915: Support ro ppgtt mapped cmdparser shadow buffersjsg3-19/+68
From Jon Bloomfield 7ce726b61c577344655436d6bf49a13e911b6f0a in linux 4.19.y/4.19.84 4f7af1948abcb18b4772fe1bcd84d7d27d96258c in mainline linux
2019-11-13drm/i915: Add support for mandatory cmdparsingjsg3-9/+17
From Jon Bloomfield fc3510fe6f6bcee80279238daf1c5de4d6570210 in linux 4.19.y/4.19.84 311a50e76a33d1e029563c24b2ff6db0c02b5afe in mainline linux
2019-11-13drm/i915: Remove Master tables from cmdparserjsg3-68/+26
From Jon Bloomfield fba4207cf15e462c8b388bde1dabb1b64eca21b0 in linux 4.19.y/4.19.84 66d8aba1cd6db34af10de465c0d52af679288cb6 in mainline linux
2019-11-13drm/i915: Disable Secure Batches for gen6+jsg3-3/+13
From Jon Bloomfield f1ff77080fa1828dfd67b3082053da1fbb80dfff in linux 4.19.y/4.19.84 44157641d448cbc0c4b73c5231d2b911f0cb0427 in mainline linux
2019-11-13drm/i915: Rename gen7 cmdparser tablesjsg1-35/+35
From Jon Bloomfield b4b1abdc6b181cb78a072b95557ae392d423c3eb in linux 4.19.y/4.19.84 0a2f661b6c21815a7fa60e30babe975fee8e73c6 in mainline linux
2019-11-13Fix off-by-one (truncation) in k{v,}asprintf().mpi1-4/+4
ok jsg@
2019-11-13drm/amd/display: Passive DP->HDMI dongle detection fixjsg1-6/+18
From Michael Strauss 99d5f18cebbf3f01f269368923e9b9c3ac134700 in linux 4.19.y/4.19.84 bc2fde42e2418808dbfc04de1a6da91d7d31cf1a in mainline linux
2019-11-13drm/amdgpu: If amdgpu_ib_schedule fails return back the error.jsg1-1/+3
From Andrey Grodzovsky e5edbf9c45cec143526d9d1708d216228a197cd8 in linux 4.19.y/4.19.84 57c0f58e9f562089de5f0b60da103677d232374c in mainline linux
2019-11-13drm/radeon: fix si_enable_smc_cac() failed issuejsg1-0/+1
From Alex Deucher e3fdd0c1a3d0d15d3367216e60304ca28475f66b in linux 4.19.y/4.19.84 2c409ba81be25516afe05ae27a4a15da01740b01 in mainline linux
2019-11-12Convert tsleep(9) that wait for a multiple of `hz' to tsleep_nsec(9).mpi7-17/+21
ok cheloha@
2019-11-12Fix support for 3168 iwm(4) devices, and load new firmware for them.stsp3-15/+56
Based on FreeBSD r345002 and Linux 44fd09dad5d2b78efbabbbbf623774e561e36cca. Tested for regressions by phessler@ (8260), kevlo@ (3165), and myself (7265) ok kevlo@
2019-11-11drm/amdgpu: fix potential VM faultsjsg1-1/+2
From Christian Koenig 1df8da335d40e3037d7207c47102b4edff0f3446 in linux 4.19.y/4.19.83 3122051edc7c27cc08534be730f4c7c180919b8a in mainline linux
2019-11-09Add support for active scan to bwfm(4). So far we only have donepatrick2-10/+31
passive scans, which works well enough as long as you don't use hidden networks. Even without hidden networks, using an active scan seems to be quicker and feels like it works better. ok stsp@
2019-11-09drm/amdgpu/powerplay/vega10: allow undervolting in p7jsg1-3/+1
From Pelle van Gils fd9a708c7bde2175357acf87ff3a4416b9807f59 in linux 4.19.y/4.19.82 e6f4e274c1e52d1f0bfe293fb44ddf59de6c0374 in mainline linux
2019-11-09drm/amdgpu: fix memory leakjsg1-7/+7
From Nirmoy Das f2824a020746ec60fbb780756e42ac13efb221d0 in linux 4.19.y/4.19.82 083164dbdb17c5ea4ad92c1782b59c9d75567790 in mainline linux
2019-11-09drm/amd/display: fix odm combine pipe resetjsg1-4/+2
From Dmytro Laktyushkin a0d8a590d983d55fc48293ff573ae31a23b3c7d0 in linux 4.19.y/4.19.82 f25f06b67ba237b76092a6fc522b1a94e84bfa85 in mainline linux
2019-11-09Ack the interrupt first, so that it can receive interrupts for newyasuoka1-3/+3
arrival packets. diff from IIJ. ok dlg
2019-11-08Switch 8260 and 8265 iwm(4) devices to -34 firmware.stsp1-3/+3
2019-11-08Add support to iwm(4) for new umac scan API in newer firmware versions.stsp2-70/+352
Tested by phessler@, Tracey Emery, and myself on 8260 and 8265.
2019-11-08Add support to iwm(4) for ADD_STA commands used by newer firmware.stsp3-14/+127
Tested by phessler@, Tracey Emery, and myself on 8260 and 8265.
2019-11-08Add support for button 2 and 3 to imt(4).yasuoka2-8/+19
ok jcs
2019-11-07Showing kernel WEP keys to userland has been disabled in genericbluhm2-33/+9
ieee80211 ioctl(2) implementation. Do the same for the driver specific code of ac(4) and wi(4) wireless network devices. OK mpi@
2019-11-07Only root is allowed to set the WEP key. Add an suser() check tobluhm1-1/+3
enforce this for the an(4) wireless network device. found by Ilja Van Sprundel; OK dlg@ deraadt@ mpi@
2019-11-06Make udl(4) and uts(4) compile again in debug mode by fixing IOCGROUPmglocker2-7/+7
and IOCPARM_LEN macros types.
2019-11-06Make iwn(4) flush remaining frames on the Tx aggregation queue whenstsp1-1/+5
Tx aggregation is stopped. Fixes a bug where outstanding frames on the aggregation queue interfere with roaming to another AP. net80211 will only roam once all outstanding frames destined for the old AP have been sent, i.e. once that AP node's Tx refcount goes to 0. Any outstanding frames sitting in the Tx aggregation queue, waiting to be ACKed, will keep this refcount above zero. To make roaming work reliably in combination with Tx aggregation, the driver must ensure that ieee80211_release_node() gets called for each frame on the queue when Tx aggregation is stopped. Problem observed by tobhe@ Fix tested + ok tobhe@ jca@
2019-11-06Raise net80211's "beacon miss" threshold to avoid frequent re-connectsstsp2-3/+14
to APs that are relatively far away and suffer some packet loss. The former threshold was 7 beacons (about 700 ms). This raises the threshold to 30 beacons (about 3 seconds). Should still be good enough for detecting APs that have disappeared, and makes wifi networks provided by the University of Bucharest more reliable in the p2k19 hackroom. While here, make 'ifconfig iwm0/iwn0 debug' print an obvious message when we believe that the AP has disappeared. Problem reported and fix tested by landry@ / pirofti@ ok mpi@ sthen@
2019-11-04Switch iwm 3160, 7260, and 7265 to -17 firmware images.stsp1-5/+5
7260 tested by florian 7265 tested by kettenis 3160 should work as it's a trimmed-down variant of 7260 Please report any problems as soon as possible.
2019-11-04Make iwm send the DQA command later, as Linux does. We were sending it tostsp1-15/+18
the init firmware which does not need it. The main runtime firmware needs it. This actually enables DQA mode, and two further problems showed up: 1) Correctly configure the AUX station queue in the DQA case. 2) Always transmit our own frames via the AP's station. The AUX station is meant to be used for firmware-generated frames only. Tested on 7260, 7265, and 8265 with standard -current firmware images. Required for newer firmware versions. ok patrick@