From: Gururaj Naik <gururajnaik166@gmail.com>
To: Jiri Kosina <jikos@kernel.org>,
Benjamin Tissoires <bentiss@kernel.org>,
Basavaraj Natikar <basavaraj.natikar@amd.com>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v2 0/2] HID: amd_sfh: Fix MP2 DMA mask and add Dell Inspiron 7405 quirk
Date: Fri, 27 Nov 2026 10:17:15 +0530 [thread overview]
Message-ID: <20261127044717.129941-1-gururajnaik166@gmail.com> (raw)
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
next reply other threads:[~2026-11-27 4:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 4:47 Gururaj Naik [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261127044717.129941-1-gururajnaik166@gmail.com \
--to=gururajnaik166@gmail.com \
--cc=basavaraj.natikar@amd.com \
--cc=bentiss@kernel.org \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®