summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2024-01-02set attached flag properly when fw fails to load during config_mountroot()Stefan Sperling
2024-01-02Prevent simultaneous dt(4) open.Alexander Bluhm
Syskaller has hit the assertion "dtlookup(unit) == NULL" by opening dt(4) device in two parallel threads. Convert kassert into if condition. Move check that device is not used after sleep points in malloc. The list dtdev_list is protected by kernel lock which is released during sleep. Reported-by: syzbot+6d66c21f796c817948f0@syzkaller.appspotmail.com OK miod@
2024-01-02Revert "drm/amd/display: Do not set DRR on pipe commit"Jonathan Gray
From Aric Cyr b09a67617621f41e12ad9ec771ff320fc8b88a94 in linux-6.1.y/6.1.70 36951fc9460fce96bafd131ceb0f343cae6d3cb9 in mainline linux
2024-01-01drm/i915: Reject async flips with bigjoinerJonathan Gray
From Ville Syrjala 7d09c84df5ab9e18464a2f048e393a7860a043e9 in linux-6.1.y/6.1.70 88a173e5dd05e788068e8fa20a8c37c44bd8f416 in mainline linux
2024-01-01drm/i915: Fix ADL+ tiled plane stride when the POT stride is smaller than ↵Jonathan Gray
the original From Ville Syrjala 900c1b3c62f920a50352f5dff6995bca5836b0c7 in linux-6.1.y/6.1.70 324b70e997aab0a7deab8cb90711faccda4e98c8 in mainline linux
2024-01-01drm/i915/mtl: Add MTL for remapping CCS FBsJonathan Gray
From Clint Taylor de4349bdf9f3ba46d0e5e298924432957328ddfd in linux-6.1.y/6.1.70 0da6bfe857ea9399498876cbe6ef428637b6e475 in mainline linux
2024-01-01drm/i915/dpt: Only do the POT stride remap when using DPTJonathan Gray
From Ville Syrjala 52c1a67dd3039ba254484cb7740d9079663a80bd in linux-6.1.y/6.1.70 ef5cb493a9acd7d97870d6e542020980ae3f3483 in mainline linux
2024-01-01drm/i915: Fix intel_atomic_setup_scalers() plane_state handlingJonathan Gray
From Ville Syrjala 7afe8109456d94d6cc9374da869b2d64852b8535 in linux-6.1.y/6.1.70 c3070f080f9ba18dea92eaa21730f7ab85b5c8f4 in mainline linux
2024-01-01drm/i915: Relocate intel_atomic_setup_scalers()Jonathan Gray
From Ville Syrjala b097184f80269f384e9f5556e6b3592441e955f4 in linux-6.1.y/6.1.70 8976b18249407df8bf6ea18ecae0640a15341a50 in mainline linux
2024-01-01drm/i915/mtl: limit second scaler vertical scaling in ver >= 14Jonathan Gray
From Luca Coelho 99767368b7fad6bee30ca89ef96877d86e3181a1 in linux-6.1.y/6.1.70 8d4312e2b228ba7a5ac79154458098274ec61e9b in mainline linux
2024-01-01drm/amd/display: fix hw rotated modes when PSR-SU is enabledJonathan Gray
From Hamza Mahfooz 913463f8e6cd8b0567c44d7eef350b9592a369dd in linux-6.1.y/6.1.70 f528ee145bd0076cd0ed7e7b2d435893e6329e98 in mainline linux
2023-12-31Add TCP Segmentation Offload (TSO) support for em(4). Following chip-setsMarcus Glocker
are currently known to support TSO; 82575, 82576, 82580, I350, and I210. Suggested by claudio@. Feedback and testing from many on tech@. OK bluhm@
2023-12-30Set ixl(4) IXL_TX_PKT_DESCS to 8.Alexander Bluhm
Mark Patruck has reported problems with ixl revision 1.90 TSO diff. He uses ixl device passthrough from Linux via KVM to OpenBSD guest. After a few hours of operation, interface locks up with oactive. The problem also occures with TSO disabled, after the TSO diff had been commited. deraadt@ has seen similar problems with ixl interface on sparc64. Changing IXL_TX_PKT_DESCS back to the original value 8 fixes the lockup and even TSO on the hardware still works. FreeBSD and NetBSD also use this value. The 32 was copied from ix(4) TSO diff and is not necessary for ixl(4). debugged with jan@; lot of bisecting and testing by Mark Patruck OK mglocker@ patrick@
2023-12-30Fix iwx(4) device info table entries for So+Hr devices.Stefan Sperling
Some non-160MHz So+Hr devices were misdetected, causing iwx(4) to select the wrong firmware image for them. Patch by Miguel Landaeta
2023-12-30Protect em(4) refill timeout with splnet.Alexander Bluhm
From time to time "pkt->pkt_m == NULL" or "m != NULL" assertions were hit in the em driver. Stack trace shows that em refill timeout was interrupted by em interrupt. Doing em_rxfill() and em_rxeof() simultaneously cannot be correct. Protect softclock in em_rxrefill() with splnet(). OK mglocker@
2023-12-29Support for "control" nodes was removed from the drm subsystem some timeMark Kettenis
ago, but some code in drmopen() remained which means that opening a drm device node with a minor that matches the range for the "control" nodes will hit a kernel assertion. A similar issue exists for "render" nodes corresponding to a driver that only supports KMS (such as rkdrm(4)). Add checks to see if the minor is valid and return ENXIO if that isn't the case to prevent a kernel crash. ok jsg@, miod@
2023-12-28Introduce qwx(4), a work-in-progress port of the Linux ath11k driver.Stefan Sperling
This driver is not working yet. Scanning almost works but a lot more work remains to be done. So far most of the porting work was done by myself, with some help from mpi, patrick, and kettenis. Obviously this driver remains disabled for now. Enable relevant lines in the kernel config if you want to help out with development. At present firmware files must be obtained manually and placed in the directory /etc/firmware/qwx/WCN6855/hw2.1/ This will be improved later. Thanks to the OpenBSD Foundation for supporting this effort.
2023-12-28fix Tx watchdog trigger and freeze in dwqe(4)Uwe Stuehler
dwqe(4) interfaces may trigger the "dwqe_watchdog" function and stop transmitting packets under heavy Tx load. In this situation, ifconfig(8) will permanently show OACTIVE until the interface is restarted (ifconfig down/up). The problem seems to be triggered by writing to the Tx ring tail pointer register multiple times during dwqe_start(). Updating the Tx ring tail pointer only after all Tx descriptors have been updated seems to fix it. The fix is based on the eqos(4) driver in NetBSD. Verified on an Intel Elkhart Lake machine but might affect other platforms with DesignWare Ethernet Quality-of-Service Controller version 4. Testing by bluhm@, ok kettenis@
2023-12-28assume RGMII-to-Copper mode by default in eephy(4) for 88E151x PHYsUwe Stuehler
The desired MII mode must be programmed explicitly for Marvel Atlantis 88E1512/88E1514 variants and we already do this for SGMII. This change adds a missing case for RGMII-to-Copper that assumes RGMII, unless the MAC driver sets MII_SGMII before calling mii_attach() or the mode has already been programmed. (RGMII-to-Copper is also the hardware default for E1510 and E1518.) Suggestions and ok kettenis@
2023-12-26Apple machines with multiple speakers typically have the shutdown pin ofMark Kettenis
the digital amplifier codecs wired up to a single GPIO. This is apparently problematic for Linux and Asahi Linux changed their device trees to use a regulator instead to such that reference counting makes sure that shutdown isn't asserted until all codecs are ready for it. Follow suit, even though our regulator code doesn't do the proper reference counting yet. ok patrick@
2023-12-23Remove unused variables.Mark Kettenis
2023-12-23Provide more complete implementations of some of the Linux compatMark Kettenis
interfaces that are needed for the upcoming apple kms driver. ok jsg@
2023-12-23Change the type of dma_addr_t to uint64_t. It is a 64-bit type on mostMark Kettenis
Linux architectures (including the most popular 32-bit ones) and a new driver I'm working on tries to print a dma_addr_t variable using %llx. ok jsg@
2023-12-22Update microcode, initialization and reset behavior.Kevin Lo
Remove two chip versions (identified by MAC_CFG2 and MAC_CFG4) support that may not be available in the market, and also raise rxring lwm to 32. Tested by Nick Owens.
2023-12-21New TEMPerGold sensor; reported by Mikolaj Kucharski on bugs@Miod Vallat
2023-12-21drm/i915: Fix remapped stride with CCS on ADL+Jonathan Gray
From Ville Syrjala 7b0faa541f15af170607e565ceca1ae44e6daa35 in linux-6.1.y/6.1.69 0ccd963fe555451b1f84e6d14d2b3ef03dd5c947 in mainline linux
2023-12-21drm/amd/display: Disable PSR-SU on Parade 0803 TCON againJonathan Gray
From Mario Limonciello 20907717918f0487258424631b704c7248a72da2 in linux-6.1.y/6.1.69 e7ab758741672acb21c5d841a9f0309d30e48a06 in mainline linux
2023-12-21drm/amdgpu: fix tear down order in amdgpu_vm_pt_freeJonathan Gray
From Christian Koenig a9e2de19433fe0b63c080e910cce9954745cd903 in linux-6.1.y/6.1.69 ceb9a321e7639700844aa3bf234a4e0884f13b77 in mainline linux
2023-12-21drm/amdgpu/sdma5.2: add begin/end_use ring callbacksJonathan Gray
From Alex Deucher 78b2ba39beef21c8baebb1868569c2026ad76de0 in linux-6.1.y/6.1.69 ab4750332dbe535243def5dcebc24ca00c1f98ac in mainline linux
2023-12-21use strnstr paths in amdgpuJonathan Gray
2023-12-20Don't create an sd(4) larger than what the namespace will allow.Kenneth R Westerback
A namespace must satisfy size (nsze) >= capacity (ncap) >= utilization (nuse) Use ncap for the sd(4) size when THINP is set and ncap < nsze. Tweak some variable names in passing to make code clearer. ok dlg@
2023-12-20vio(4): checksum offloading for TCP/UDP in IPv6 PacketsJan Klemkow
ok sf@
2023-12-20Remove iwx_wait_tx_queues_empty(); unused with current firmware versionsStefan Sperling
Current firmware supplies a flush-command response which makes it unnecessary to poll for empty queues after sending the flush command. Based on a patch by Mikhail Pchelin
2023-12-20Ensure that iwm/iwx devices announce VHT capabilities in probe requests.Stefan Sperling
The previous code did not update the per-band-data length field, resulting in firmware skipping the VHT information element in the probe-request frame template. Patch by Mikhail Pchelin
2023-12-14drm/i915: Skip some timing checks on BXT/GLK DSI transcodersJonathan Gray
From Ville Syrjala f38b4e99e24cbc45084552fe50273ed847a4f511 in linux-6.1.y/6.1.68 20c2dbff342aec13bf93c2f6c951da198916a455 in mainline linux
2023-12-14drm/i915/sdvo: stop caching has_hdmi_monitor in struct intel_sdvoJonathan Gray
From Jani Nikula d9ef7b05ccd7f4f0d12b7aed2a2e5858809dd4a4 in linux-6.1.y/6.1.68 f2f9c8cb6421429ef166d6404426693212d0ca07 in mainline linux
2023-12-14drm/i915/lvds: Use REG_BIT() & co.Jonathan Gray
From Ville Syrjala cf70d62ace9070fb8be900fa87cb2e43cbc1fa9f in linux-6.1.y/6.1.68 9dd56e979cb69f5cd904574c852b620777a2f69f in mainline linux
2023-12-14drm/i915/display: Drop check for doublescan mode in modevalidJonathan Gray
From Ankit Nautiyal e6d55cf4939987eb1761cb0cbf47af233123da87 in linux-6.1.y/6.1.68 9d04eb20bc71a383b4d4e383b0b7fac8d38a2e34 in mainline linux
2023-12-14drm/amdgpu: Update EEPROM I2C address for smu v13_0_0Jonathan Gray
From Candice Li c8bf22e0d0499de0692a91290f923029230a5bd4 in linux-6.1.y/6.1.68 e0409021e34af50e7b6f31635c8d21583d7c43dd in mainline linux
2023-12-14drm/amdgpu: Add I2C EEPROM support on smu v13_0_6Jonathan Gray
From Candice Li 87509778718cffdee6412f0d39713f883208a013 in linux-6.1.y/6.1.68 b81fde0dfe402e864ef1ac506eba756c89f1ad32 in mainline linux
2023-12-14drm/amdgpu: simplify amdgpu_ras_eeprom.cJonathan Gray
From Alex Deucher 4ccb34d4313b81d6268b1e68bd9a4e7309f096f6 in linux-6.1.y/6.1.68 6246059a19d4cd32ef1af42a6ab016b779cd68c4 in mainline linux
2023-12-14drm/amdgpu: Return from switch early for EEPROM I2C addressJonathan Gray
From Luben Tuikov af6b1f1156fc2d886251a076b87243597301437c in linux-6.1.y/6.1.68 8782007b5f5795f118c5167f46d8c8142abcc92f in mainline linux
2023-12-14drm/amdgpu: Remove second moot switch to set EEPROM I2C addressJonathan Gray
From Luben Tuikov a3049c9a30131639f056a2b3db934c70ff91068a in linux-6.1.y/6.1.68 1bb745d7596d2b368fd9afb90473f3581495e39d in mainline linux
2023-12-14drm/amdgpu: Add support for RAS table at 0x40000Jonathan Gray
From Luben Tuikov 30289057ef8f8accd98ee41221c859a471f20c5c in linux-6.1.y/6.1.68 64a3dbb06ad88d89a0958ccafc4f01611657f641 in mainline linux
2023-12-14drm/amdgpu: Decouple RAS EEPROM addresses from chipsJonathan Gray
From Luben Tuikov c67c553b4dd9a315919ae8990da367523fad0e38 in linux-6.1.y/6.1.68 3b8164f8084ff7888ed24970efa230ff5d36eda8 in mainline linux
2023-12-14drm/amdgpu: Remove redundant I2C EEPROM addressJonathan Gray
From Luben Tuikov ee9efcdc76af0dcb51579aa61c5019eabce93d73 in linux-6.1.y/6.1.68 da858deab88eb561f2196bc99b6dbd2320e56456 in mainline linux
2023-12-14drm/amdgpu: Add EEPROM I2C address support for ip discoveryJonathan Gray
From Candice Li a945568638acfc7d2d95de520849857506b21252 in linux-6.1.y/6.1.68 c9bdc6c3cf39df6db9c611d05fc512b1276b1cc8 in mainline linux
2023-12-14drm/amdgpu: Update ras eeprom support for smu v13_0_0 and v13_0_10Jonathan Gray
From Candice Li f549f837b9aca23983540fc6498e19eee8b3073a in linux-6.1.y/6.1.68 bc22f8ec464af9e14263c3ed6a1c2be86618c804 in mainline linux
2023-12-14drm/amdgpu: correct the amdgpu runtime dereference usage countJonathan Gray
From Prike Liang 458affed061935948d31f5d731bbcfbff3158762 in linux-6.1.y/6.1.68 c6df7f313794c3ad41a49b9a7c95da369db607f3 in mainline linux
2023-12-14drm/amd/amdgpu: Fix warnings in amdgpu/amdgpu_display.cJonathan Gray
From Srinivasan Shanmugam 41c5dd545e765bf4677a211d3c68808d7069e4a1 in linux-6.1.y/6.1.68 93125cb704919f572c01e02ef64923caff1c3164 in mainline linux