summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2024-01-10If bringing up a queue fails, only tear down the ones that we set upJonathan Matthew
successfully, rather than trying to tear them all down and crashing. tested by hrvoje, who can make queue setup fail sometimes ok bluhm@
2024-01-09remove unused of_device_get_match_data() prototypeJonathan Gray
2024-01-09inline -> static inline ; fixes sparc64 buildJonathan Gray
2024-01-09remove needless commentJonathan Matthew
2024-01-09If there are still mbufs on a ring when we're freeing it,Jonathan Matthew
it'd be a good idea to free them too. ok dlg@
2024-01-09avoid unused var warning on sparc64Jonathan Gray
2024-01-08Implement RootPathString support in the LoadTable() AML function. FixesMark Kettenis
booting OpenBSD on some (ancient?) Hyper-V version. Tested by Henryk Paluch ok mlarkin@
2024-01-07In ixl(4) attach, initialize mutex before using it.Alexander Bluhm
Function ixl_get_link_status() calls ixl_set_link_status() which locks sc_link_state_mtx. Move initilization of mutex before calling ixl_get_link_status(). This makes witness happy. Bug reported and fix tested by Hrvoje Popovski; OK miod@
2024-01-06Zap more obsolete debug code.Marcus Glocker
2024-01-06revert component_add() changeJonathan Gray
avoids fault in amdgpu_dm_audio_component_bind() problem reported by matthieu@
2024-01-06Unify UFS command function arguments a bit.Marcus Glocker
2024-01-06Merge read/write UFS commands in to one single function, since they are veryMarcus Glocker
similar.
2024-01-06remove stray semicolonJonathan Gray
ok kettenis@
2024-01-06move struct file_operations to linux/fs.hJonathan Gray
ok kettenis@
2024-01-06Add more Linux compat code in preparation for the apple KMS driver.Mark Kettenis
ok jsg@
2024-01-04Zap some '#if 0' code which was initially required for debugging.Marcus Glocker
2024-01-04Set the interrupt aggregation counter down to 1, which fixes the readMarcus Glocker
performance from ~20MB/s to ~220MB/s.
2024-01-04Fix timeout value for write command (typo).Marcus Glocker
2024-01-04Pass SCSI command directly to the UFS command descriptor instead ofMarcus Glocker
decoding/encoding it. Suggested and OK kettenis@
2024-01-04Add support for AX88179A. AX88179A interweave dummies alongside validKevin Lo
packet headers in axen_rxeof(). However current driver records these dummy headers as dropped frames, leading to stats misreporting one Ifail per Ipkt. This skips those dummy headers silently, thereby not generating Ifail for them. From FreeBSD commit 70fbcd451b68b7f6038d8a602cd8d5e1bb890f1d Tested by landry@ and myself. ok claudio@, landry@
2024-01-04fix up barriers in bnxt_down() - use barriers for all interrupts andJonathan Matthew
for the rx refill timeouts. tested by hrvoje ok bluhm@
2024-01-04Revert previous. splx(9) can call kvp_get_ip_info() from any place withVitaliy Makkoveev
netlock held and cause recursive lock acquisition issue.
2024-01-03Enable Apple brightness keys also for archs other than macppc.Tobias Heider
ok kettenis@
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