summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2021-12-13Handle multi-port controllers in uslcom(4)Visa Hankala
A multi-port CP210x device presents each COM port as a separate USB virtual COM port interface. When attaching uslcom(4), take the USB interface from the attach arguments instead of using interface 0. This lets the driver access the different ports of a quad-port CP2108. Tested with a single-port CP2102 by jsg@ OK jsg@ deraadt@
2021-12-12Add vnode parameter to VOP_STRATEGY()Visa Hankala
Pass the device vnode as a parameter to VOP_STRATEGY() to allow calling the correct vop_strategy callback. Now the vnode is also available in the callback. OK mpi@
2021-12-09Broken ACPI tables containing scopes that are larger than their outer shellPatrick Wildt
are caught by our ACPI parser. Unfortunately in such cases our reaction was to start parsing AML somewhere outside our current scope. The intention was to clamp down the inner scope to the maximum of the outer one. So, rectify it. This issue has shown up in EDK2's QEMU SBSA target, where the SSDT table was generated incorrectly. Surprisingly neither Linux nor ACPICA's iASL noticed that the table was broken. ok kettenis@ millert@
2021-12-09We only have one syscall table: inline sysent/SYS_MAXSYSCALL andPhilip Guenther
SYS_syscall as the nosys() function into the MD syscall entry routines and the SYSCALL_DEBUG support. Adjust alpha's syscall check to match the other archs. Also, make sysent const to get it into .rodata. With that, 'struct emul' is unused: delete it and all its references ok millert@
2021-12-08drm/amd/display: Allow DSC on supported MST branch devicesJonathan Gray
From Nicholas Kazlauskas 775191dd4c1bcf546ab7ce87f3476537615437b7 in linux 5.10.y/5.10.84 94ebc035456a4ccacfbbef60c444079a256623ad in mainline linux
2021-12-08drm/amd/amdgpu: fix potential memleakJonathan Gray
From Bernard Zhao c746945fb6bcbe3863c9ea6369c7ef376e38e5eb in linux 5.10.y/5.10.84 27dfaedc0d321b4ea4e10c53e4679d6911ab17aa in mainline linux
2021-12-08drm/amd/amdkfd: Fix kernel panic when reset failed and been triggered againJonathan Gray
From shaoyunl 74aafe99efb68f15e50be9f7032c2168512f98a8 in linux 5.10.y/5.10.84 2cf49e00d40d5132e3d067b5aa6d84791929ab15 in mainline linux
2021-12-07Fix typo in Tiger Lake H configuration.Mark Kettenis
From James Hastings
2021-12-07print the failed method numberTheo de Raadt
2021-12-07Fix parsing of SR_IRQ resource descriptors here as well.Mark Kettenis
ok patrick@, anton@
2021-12-07Fix parsing of SR_IRQ resource descriptors.Mark Kettenis
ok patrick@, anton@
2021-12-06Add missing short-circuit in bcmpcie_dmamap_load_raw().Mark Kettenis
ok patrick@
2021-12-05add missing mtx_leave() calls in error pathsJonathan Gray
ok anton@
2021-12-04Previous diff was incomplete, we also need to do DMA translation forMark Kettenis
bus_dmamap_load_raw(9). This fixes xhci(4) on the rpi4 with the U-Boot from ports that is installed on the arm64 installation media. ok mglocker@, patrick@
2021-12-04Consolidate error paths in usbd_new_device, shaving of 14 lines.Anton Lindqvist
ok bluhm@
2021-12-03add Allwinner H6 supportSASANO Takayoshi
ok kettenis@
2021-12-03support AXP805 PMICSASANO Takayoshi
ok kettenis@
2021-12-03Perform DMA address translation if required.Mark Kettenis
ok patrick@
2021-12-03Switch iwx(4) to new -67 firmware images.Stefan Sperling
iwx-firmware-20211101 must be installed with fw_update(1) before booting a new kernel. sysupgrade(8) will take care of this. Intel has published a related security advisory: https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00509.html iwx(4) devices which are using the iwx-Qu-c0-hr-b0-63 image did not receive a firmware update. I have no idea why. Tested: ax200: jmc, stsp, Matthias Schmidt ax201: fkr, stsp
2021-12-03Disable probe requests during scans in iwx(4) again.Stefan Sperling
While this is working well for many, some people see device timeouts when using the device unless we disable probe requests during scans. The issue was a lot more visible on iwx(4) with earlier firmware. In fact, iwx(4) did ship with probe requests disabled for most of its existence. I re-enabled them along with a firmware upgrade since I no longer saw the problem. However, the issue prevails for other people. I still have no idea what is causing this. I have already spent enough time trying to track down a proper fix. Unless we receive help from someone who knows about firmware internals the best we can do is trial and error. The problem also existed on iwm(4) 9k devices which we now run with probe requests disabled, too. The only upside of probe requests is that scans can complete faster, with the downside of a potential privacy leak (the previously selected SSID is exposed). So, overall, we do not lose much here. Patch tested for a week by Laurence Tratt who is no longer seeing device timeouts which were relatively frequent before.
2021-12-03Implement a bgscan_done() handler for iwm(4).Stefan Sperling
Required to prevent breakage of roaming with new Intel firmware on 9k devices. Tested: 8265: Aaron Poffenberger, stsp 9260: florian 9560: sthen
2021-12-03Implement a bgscan_done() handler for iwx(4).Stefan Sperling
Fixes roaming-related hangs observed by jmc@. Tested: ax200: jmc, stsp
2021-12-03Bring back the recently reverted change, this time without the invertedAnton Lindqvist
conditional. Repeating the previous commit messsage: Assert that at least one report id is claimed during multiple report ids attachment. Should prevent uhidev drivers from doing the wrong thing in their corresponding match routine. Tested by dv@
2021-12-01drm/amdgpu/gfx9: switch to golden tsc registers for renoir+Jonathan Gray
From Alex Deucher 45b42cd05391197d5426a9097043d5e77bdbefc9 in linux 5.10.y/5.10.83 53af98c091bc42fd9ec64cfabc40da4e5f3aae93 in mainline linux
2021-12-01drm/amd/display: Set plane update flags for all planes in resetJonathan Gray
From Nicholas Kazlauskas 3187623096091d8c60231de5ca0e020bfa5e6ee9 in linux 5.10.y/5.10.83 21431f70f6014f81b0d118ff4fcee12b00b9dd70 in mainline linux
2021-11-28SpacingMarcus Glocker
2021-11-28utvfu(4) only has one frame size, either for PAL or NTSC. ThereforeMarcus Glocker
return EINVAL after the first frame size has been returned in the VIDIOC_ENUM_FRAMESIZES ioctl. ok mpi@
2021-11-28Align with the recent memory allocation changes we did for the otherMarcus Glocker
USB HC drivers; M_DEVBUF -> M_USBHC. ok kettenis@
2021-11-27previous commit causes gcc to perform an unaligned access to the tcphdrTheo de Raadt
(at least on sparc64) since it accesses the bitfield using an "int sized" instructions, rather than the minimally sized byte instruction. This is permitted by the language laywers who probably prefer we change the tcphdr in every packet. It is not clear how to convince gcc to avoid this behaviour, and a week of futzing hasn't found fast path solutions yet. In the meantime the tree may not be broken.
2021-11-27Let iwm(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". I have only observed this problem on iwx(4) hardware but it won't hurt to add this workaround to iwm(4) as well.
2021-11-27drm/amdgpu: fix set scaling mode Full/Full aspect/Center not works on vga ↵Jonathan Gray
and dvi connectors From hongao 04c586a601dc0acb8e739205db350ab660dffc4f in linux 5.10.y/5.10.82 bf552083916a7f8800477b5986940d1c9a31b953 in mainline linux
2021-11-27drm/i915/dp: Ensure sink rate values are always validJonathan Gray
From Imre Deak 47901b77bf7dc801a084a0b377aee5974d9bc4ce in linux 5.10.y/5.10.82 6c34bd4532a3f39952952ddc102737595729afc4 in mainline linux
2021-11-27drm/amd/display: Update swizzle mode enumsJonathan Gray
From Alvin Lee 3d68d6ee83144044f610d67304cc194c2af7d0c5 in linux 5.10.y/5.10.82 58065a1e524de30df9a2d8214661d5d7eed0a2d9 in mainline linux
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