summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2021-11-26Add interfaces to enable all power domains for a node.Mark Kettenis
ok patrick@, visa@
2021-11-25revert recent change, breakage reported by dv@Anton Lindqvist
2021-11-25Prepare iwx(4) for using new firmware (API version -67) in the future.Stefan Sperling
Bump command versions array size as required for -67 firmware. Ignore new TLVs found in -67 images. Add room for another ucode section needed for -67 on AX201 devices.
2021-11-25Assert that at least one report id is claimed during multiple report idsAnton Lindqvist
attachment. Should prevent uhidev drivers from doing the wrong thing in their corresponding match routine.
2021-11-24Spacing and remove an unused macro.Marcus Glocker
2021-11-24SpacingMarcus Glocker
2021-11-24Fix panic when running utvfu(4) on xhci(4).Marcus Glocker
tested and ok ian@
2021-11-24Add a few dt(4) TRACEPOINTS to SMR. Should help to better understand whatClaudio Jeker
goes on in SMR. OK mpi@
2021-11-23Fix mbuf leaks after reception error in rge_rxeof().Kevin Lo
Being that rge(4) is derived from re(4) it looks like it has the same issues as fixed in re(4) rev 1.211. From Brad ok gnezdo@
2021-11-23avoid clang -Wsometimes-uninitialized warnings in fms(4)Jonathan Gray
feedback and ok millert@
2021-11-22use ISC license for ubcmtpJoshua Stein
2021-11-22Add pcyrtc(4), a driver for the NXP PCF85063A/TP RTC chips.Mark Kettenis
ok patrick@
2021-11-22Remove unused header files and make some cosmetic changes.Mark Kettenis
ok patrick@
2021-11-22avoid uninitialised variable use in igc(4)Jonathan Gray
read icr reg before testing bit in result add missing block in rxeof from ix ok kevlo@ patrick@
2021-11-22M_USB -> M_USBHCMarcus Glocker
2021-11-22Drop the old problematic claim multiple report ids logic now that allAnton Lindqvist
uhidev drivers have been fixed.
2021-11-22Add missing claim multiple report ids conditionals to uhidev drivers.Anton Lindqvist
2021-11-22Make iwx(4) update an Rx BA session's last_rx timestamp when a frameStefan Sperling
is received which matches the session. Same change as just made in iwm(4).
2021-11-22Make iwm(4) update an Rx BA session's last_rx timestamp when a frameStefan Sperling
is received which matches the session. Tested by myself and bket@
2021-11-22Let iwx(4) use per-Tx-queue interface timers to ensure that the interfaceStefan Sperling
watchdog will trigger a device timeout if a particular Tx queue gets stuck while other Tx queues keep working. The Linux driver is using a similar workaround for "stuck queues". Tested by myself and jmc@
2021-11-22In iwx(4), fix off-by-one errors during TID value bounds checks.Stefan Sperling
The TID is used as an array index and, according to the Linux driver, must be smaller than IWX_MAX_TID_COUNT (8). The AP might request an Rx aggregation session using TID 8. Our driver uses the TID as an index into an array of IEEE80211_NUM_TID (16) elements, and hence would not crash. However, the index is exposed to firmware which could potentially crash or raise an assertion failure for values >= 8. ok kettenis@
2021-11-22Fix iwx(4) Tx ring array size which was one entry too short.Stefan Sperling
Fortunately, this bug was harmless. The last Tx agg queue is never used because ieee80211_classify() only returns TID values in the range 0 - 3. And iterations over the txq array use nitems() to find the upper bound. The possiblity of shrinking the txq array by 4 elements to get rid of unused Tx agg queues could be investigated later. For now, just fix the off-by-one error. ok kettenis@
2021-11-22Let iwm(4) resume directly in DVACT_WAKEUP instead of running the init task.Stefan Sperling
Same change as made for iwx(4) some time ago. tested by myself and bket@
2021-11-22Align memory allocation for USB device drivers and USB HC drivers:Marcus Glocker
* USB device drivers use M_USBDEV instead of M_DEVBUF. * USB HC drivers use M_USBHC instead of M_DEVBUF. In a vanilla setup, this enlarges the USB memory pool. ok anton@
2021-11-22avoid clang -Wsometimes-uninitialized warning with SMALL_KERNELJonathan Gray
2021-11-21correct the vnd-on-vnd dev_t test, and avoid leaking a cred in anTheo de Raadt
obscure condition ok tb
2021-11-21Add iicmux(4), a driver that switches between I2C busses connected toMark Kettenis
a single I2C controller by using the pin muxing facilities of an SoC. ok visa@
2021-11-21Register i2c bus.Mark Kettenis
ok jsg@
2021-11-19Fix monitor mode on iwm(4) and iwx(4).Stefan Sperling
Set sc->ns_nstate when bypassing the driver's newstate handler while bringing the interface down. Otherwise, if the interface was already running, the INIT->RUN transition which kicks off monitor mode will appear as a RUN->RUN transition to the driver's newstate handler, and the handler will do nothing. Monitor mode did not work as a result.
2021-11-19whitespace tweaks. no functional change.David Gwynne
a lot more knf could be sprinkled in this file...
2021-11-19let CH340 chips keep working in 8N1 mode.David Gwynne
they get confused if you try to configure them and don't work at all otherwise. CH341 seems fine otherwise. from miod tested by me and Felix Kronlage-Dam
2021-11-19drm/plane-helper: fix uninitialized variable referenceJonathan Gray
From Alex Xu 2e548581fe5b48730d814916bd6bb8f8d8b5375a in linux 5.10.y/5.10.80 7be28bd73f23e53d6e7f5fe891ba9503fc0c7210 in mainline linux
2021-11-19drm/amdgpu/gmc6: fix DMA mask from 44 to 40 bitsJonathan Gray
From Alex Deucher ae1f588ca1b0c9e2f82c14479e408759a786f701 in linux 5.10.y/5.10.80 403475be6d8b122c3e6b8a47e075926d7299e5ef in mainline linux
2021-11-19drm/amdgpu: fix warning for overflow checkJonathan Gray
From Arnd Bergmann 375150b3aaf8cf7d01f6f0b582e264dd2fded814 in linux 5.10.y/5.10.80 335aea75b0d95518951cad7c4c676e6f1c02c150 in mainline linux
2021-11-19drm/ttm: stop calling tt_swapin in vm_accessJonathan Gray
From Matthew Auld cbbf816cb7f9a84696b1f6277fee85c67a1c590c in linux 5.10.y/5.10.80 f5d28856b89baab4232a9f841e565763fcebcdf9 in mainline linux
2021-11-19drm/amd/display: dcn20_resource_construct reduce scope of FPU enabledJonathan Gray
From Anson Jacob 6f038b1a941e87886f6bbced0a65aea343a9859e in linux 5.10.y/5.10.80 bc39a69a2ac484e6575a958567c162ef56c9f278 in mainline linux
2021-11-19drm/amdkfd: fix resume error when iommu disabled in PicassoJonathan Gray
From Yifan Zhang 832fad367cac9ca075a1aff92e21dc77ea308e96 in linux 5.10.y/5.10.80 6f4b590aae217da16cfa44039a2abcfb209137ab in mainline linux
2021-11-19drm/amdgpu: Fix MMIO access page faultJonathan Gray
From Andrey Grodzovsky 2114f80889d89f96e65e0f8a74bd0ecf10b658f5 in linux 5.10.y/5.10.80 c03509cbc01559549700e14c4a6239f2572ab4ba in mainline linux
2021-11-19drm/panel-orientation-quirks: add Valve Steam DeckJonathan Gray
From Simon Ser 7987f31e54a2a453c54bdc516fe7a48035fddf03 in linux 5.10.y/5.10.80 9eeb7b4e40bfd69d8aaa920c7e9df751c9e11dce in mainline linux
2021-11-19drm: panel-orientation-quirks: Add quirk for the Samsung Galaxy Book 10.6Jonathan Gray
From Hans de Goede 509ae4a4f0745bff108723e5d9a61b1113ea89fe in linux 5.10.y/5.10.80 88fa1fde918951c175ae5ea0f31efc4bb1736ab9 in mainline linux
2021-11-19drm: panel-orientation-quirks: Add quirk for KD Kurio Smart C15200 2-in-1Jonathan Gray
From Hans de Goede 62b90d7eeb6deb0124dcfe1b12f41c1524d26352 in linux 5.10.y/5.10.80 a53f1dd3ab9fec715c6c2e8e01bf4d3c07eef8e5 in mainline linux
2021-11-19drm: panel-orientation-quirks: Update the Lenovo Ideapad D330 quirk (v2)Jonathan Gray
From Hans de Goede 780fff2c75f096f3bc46855b105b83b4cec5cba7 in linux 5.10.y/5.10.80 820a2ab23d5eab4ccfb82581eda8ad4acf18458f in mainline linux
2021-11-19drm: panel-orientation-quirks: Add quirk for GPD Win3Jonathan Gray
From Mario Risoldi 7d1fb5c12cc0c88159ebf946385141ed3019f009 in linux 5.10.y/5.10.80 61b1d445f3bfe4c3ba4335ceeb7e8ba688fd31e2 in mainline linux
2021-11-19drm: panel-orientation-quirks: Add quirk for Aya Neo 2021Jonathan Gray
From Bryant Mairs bc3e73ebb79b01abc121703669c65f54f0023cfe in linux 5.10.y/5.10.80 def0c3697287f6e85d5ac68b21302966c95474f9 in mainline linux
2021-11-18vndsetcred: don't a reference to credentials in error path.Theo Buehler
ok deraadt
2021-11-17Disable active scanning on iwm(4) 9260 and 9560.Stefan Sperling
For some reason, if we send a scan command that actively scans for a particular SSID with probe requests, the device will occasionally lock up after associating to the AP, with no interrupts, totally dead. The symptom of this is an interface that shows as "active" in ifconfig but does not receive or transmit any packets. Observed by kmos@ for some time already, and myself while testing new Intel wifi firmware versions on iwm(4) 9560. This problem was also observed on AX200 by me with old firmware. We had the same workaround in place for iwx(4) for some time, until we upgraded that driver to use newer firmware which uses a different scan command. Workaround tested by kmos@ and myself.
2021-11-17uhidpp does claim multiple report idsAnton Lindqvist
2021-11-17ucc does not claim multiple report idsAnton Lindqvist
2021-11-17Fix a double free in uhidev_close() caused by a race betweenAnton Lindqvist
uhidev_open() and uhidev_close(). In uhidev_close() the UHIDEV_OPEN flag is cleared early on but the same thread can end up sleeping while closing the input or output pipe. This allows another thread to enter uhidev_open() but only to fail opening either the input or output pipe since they are already open for exclusive use. The uhidev_open() error path frees the input buffer but leaves a dangling pointer around; causing uhidev_close() to free the same buffer. This can at least happen on xhci(4) which can end up sleeping in xhci_pipe_close(). Reported by and ok gnezdo@
2021-11-16fix typo in an error message printed by iwx_phy_ctxt_update()Stefan Sperling