mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] HID: amd_sfh: Fix MP2 DMA mask and add Dell Inspiron 7405 quirk
@ 2026-11-27  4:47 Gururaj Naik
  2026-11-27  4:47 ` [PATCH v2 1/2] HID: amd_sfh: Limit DMA mask to 32 bits on pre-SFH1.1 MP2 Gururaj Naik
  2026-11-27  4:47 ` [PATCH v2 2/2] HID: amd_sfh: Add DMI quirk for Dell Inspiron 7405 2-in-1 Gururaj Naik
  0 siblings, 2 replies; 3+ messages in thread
From: Gururaj Naik @ 2026-11-27  4:47 UTC (permalink / raw)
  To: Jiri Kosina, Benjamin Tissoires, Basavaraj Natikar
  Cc: linux-input, linux-kernel

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@gmail.com/ [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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-27  4:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27  4:47 [PATCH v2 0/2] HID: amd_sfh: Fix MP2 DMA mask and add Dell Inspiron 7405 quirk Gururaj Naik
2026-11-27  4:47 ` [PATCH v2 1/2] HID: amd_sfh: Limit DMA mask to 32 bits on pre-SFH1.1 MP2 Gururaj Naik
2026-11-27  4:47 ` [PATCH v2 2/2] HID: amd_sfh: Add DMI quirk for Dell Inspiron 7405 2-in-1 Gururaj Naik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®