[PATCH v2 0/2] HID: amd_sfh: Fix MP2 DMA mask and add Dell Inspiron 7405 quirk
From: Gururaj Naik
Date: Thu Nov 26 2026 - 23:47:28 EST
This two-patch series enables working sensors on the Dell Inspiron 7405
2-in-1 (AMD Ryzen 7 4700U Renoir, PCI ID 1022:15e4 rev 00, BIOS 1.20.0):
1. Restrict coherent/streaming DMA to 32 bits for pre-SFH1.1 MP2 devices
(mp2_ver < MP2_VER_1_1), avoiding MCE hardware memory corruption faults
when dmam_alloc_coherent() returns buffers above 4 GiB.
2. Add a dmi_sfh_table[] quirk for "Dell Inc." / "Inspiron 7405 2n1"
calling mp2_disable_intr so MP2 firmware acknowledges sensor commands.
Both patches are based on hid.git for-next (commit 4a30b295fc34). They
were validated on Arch Linux kernel 7.2.9 using an out-of-tree build
with these two changes: all four advertised sensors (accel_3d, gyro_3d,
magn_3d, and op_idx) enable with DMA addresses below 4 GiB and stream
cleanly via IIO without MCE errors.
Changes in v2:
- Rebased onto hid.git for-next.
- Dropped the HID report routing fix, which is already queued in
hid.git for-next via for-7.4/amd_sfh.
- Replaced the global intr_disable = false change with a targeted DMI
quirk in dmi_sfh_table[].
- Scoped the 32-bit DMA mask restriction to pre-SFH1.1 MP2 devices so
SFH 1.1 and newer remain unchanged.
- Added Fixes tags and corrected patch formatting.
Link: https://lore.kernel.org/linux-input/20261113213533.13139-1-gururajnaik166@xxxxxxxxx/ [v1]
Gururaj Naik (2):
HID: amd_sfh: Limit DMA mask to 32 bits on pre-SFH1.1 MP2
HID: amd_sfh: Add DMI quirk for Dell Inspiron 7405 2-in-1
drivers/hid/amd-sfh-hid/amd_sfh_pcie.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
--
2.56.0