* [PATCH 0/8] platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition
@ 2026-11-21 0:05 Brian Mak
2026-11-21 0:05 ` [PATCH 1/8] platform/x86: dell: Make uart-backlight x86 only Brian Mak
` (7 more replies)
0 siblings, 8 replies; 31+ messages in thread
From: Brian Mak @ 2026-11-21 0:05 UTC (permalink / raw)
To: Hans de Goede, Ilpo Järvinen
Cc: Kurt Borja, Stuart Hayes, Matthew Garrett, Pali Rohár,
Lyndon Sanche, Armin Wolf, Prasanth Ksr, Jonathan Corbet,
Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel, Brian Mak
The Dell XPS 16 Creator Edition (DX16263) is an ARM64 laptop based on
NVIDIA RTX Spark. Its firmware exposes the same ACPI-WMI and SMBIOS
interfaces as Dell's x86 laptops, so existing Dell platform drivers
apply to it as-is. Today, they live under drivers/platform/x86/ and are
gated on X86_PLATFORM_DEVICES, so they can't be enabled on ARM64.
This series moves the Dell drivers to drivers/platform/dell/, makes the
ones that work there available on ARM64, and works around some firmware
quirks found on the Dell XPS 16 Creator Edition.
Patch 1 makes DELL_UART_BACKLIGHT depend on X86 before the move. The
driver relies on the DELL0501 handling in
acpi_quirk_skip_serdev_enumeration(), which only exists in
drivers/acpi/x86/utils.c, and on drivers/platform/x86/serdev_helpers.h.
Without that quirk, no serdev controller or platform device is created,
so the driver wouldn't work on other architectures.
Patches 2-3 move the drivers to drivers/platform/dell/, rename
X86_PLATFORM_DRIVERS_DELL to DELL_PLATFORMS (keeping the old symbol as a
transitional config so existing .configs carry over), and add a
MAINTAINERS entry for the new directory. The per-driver MAINTAINERS
entries are updated to the new paths. DCDBAS, DELL_RBU and
DELL_SMBIOS_SMM keep their X86 dependency.
Patch 4 makes DELL_LAPTOP's SERIO_I8042 dependency optional, as there is
a fallback stub, which returns -ENODEV.
Patch 5 fixes dell-smbios-wmi probe on the XPS 16 Creator Edition. The
driver looks for the misc BIOS flags (SMBIOS type 0xB1) only at the
hardcoded handle 0xB100, but firmware numbers it differently. Handle
0xB100 is still used whenever it exists. Otherwise, the driver falls
back to the only type 0xB1 structure, if there is exactly one.
Patches 6-8 handle a firmware problem on the same machine: the SMBIOS
calling interface completes every request to the Dell-proprietary
interface with all zeroes, even for requests that should fail. As a
result, dell-laptop reports bogus battery charge modes and thresholds
and registers mic mute/mute LEDs that do nothing, and dell-pc fails with
"platform_profile probe failed". Patch 6 adds a DMI quirk list and
exports dell_smbios_calls_functional(). Patches 7-8 make dell-laptop and
dell-pc refuse to load on affected platforms. dell-smbios itself still
loads, since dell-wmi depends on it.
Testing done:
- Build-tested x86-64 and arm64 with all Dell platform drivers enabled.
- Runtime-tested on Dell XPS 16 Creator Edition. Mic mute key is
working.
Need help testing:
- x86 Dell laptops/desktops for regressions.
Outstanding issues (outside of this series):
- When spamming the keyboard backlight key, then pressing the mic mute
key, the mic mute event is spammed. This is a multi-part issue between
the EC and DSDT. I have a DSDT patch to fix this. I will be working
with Dell to get it resolved.
- When the dell-wmi driver is not loaded and the keyboard backlight
button is spammed, it will eventually stop working and FF-A
notifications stop firing. This is likely an issue with the EC's event
queue filling up and not notifying anymore after being full (since
there's no consumers). I will be working with Dell to get this
resolved too.
Brian Mak (8):
platform/x86: dell: Make uart-backlight x86 only
platform: dell: Move out of x86 directory
MAINTAINERS: Add Dell platform drivers entry
platform: dell: Allow DELL_LAPTOP to be arch-independent
platform: dell: smbios-wmi: Fix probe on RTX Spark
platform: dell: smbios: Add quirk for non-functional calling interface
platform: dell: laptop: Don't load if SMBIOS calls are non-functional
platform: dell: pc: Don't load if SMBIOS calls are non-functional
.../admin-guide/laptops/alienware-wmi.rst | 4 +-
MAINTAINERS | 36 ++++++++++--------
drivers/platform/Kconfig | 2 +
drivers/platform/Makefile | 1 +
drivers/platform/{x86 => }/dell/Kconfig | 21 +++++++----
drivers/platform/{x86 => }/dell/Makefile | 4 +-
.../{x86 => }/dell/alienware-wmi-base.c | 0
.../{x86 => }/dell/alienware-wmi-legacy.c | 0
.../{x86 => }/dell/alienware-wmi-wmax.c | 0
.../platform/{x86 => }/dell/alienware-wmi.h | 0
drivers/platform/{x86 => }/dell/dcdbas.c | 0
drivers/platform/{x86 => }/dell/dcdbas.h | 0
.../{x86 => }/dell/dell-dw5826e-reset.c | 0
drivers/platform/{x86 => }/dell/dell-laptop.c | 3 ++
.../platform/{x86 => }/dell/dell-lis3lv02d.c | 0
drivers/platform/{x86 => }/dell/dell-pc.c | 3 ++
drivers/platform/{x86 => }/dell/dell-rbtn.c | 0
drivers/platform/{x86 => }/dell/dell-rbtn.h | 0
.../{x86 => }/dell/dell-smbios-base.c | 22 +++++++++++
.../platform/{x86 => }/dell/dell-smbios-smm.c | 0
.../platform/{x86 => }/dell/dell-smbios-wmi.c | 37 +++++++++++++++----
drivers/platform/{x86 => }/dell/dell-smbios.h | 1 +
.../{x86 => }/dell/dell-smo8800-ids.h | 0
.../platform/{x86 => }/dell/dell-smo8800.c | 0
.../{x86 => }/dell/dell-uart-backlight.c | 2 +-
.../platform/{x86 => }/dell/dell-wmi-aio.c | 0
.../platform/{x86 => }/dell/dell-wmi-base.c | 0
.../platform/{x86 => }/dell/dell-wmi-ddv.c | 0
.../{x86 => }/dell/dell-wmi-descriptor.c | 0
.../{x86 => }/dell/dell-wmi-descriptor.h | 0
.../platform/{x86 => }/dell/dell-wmi-led.c | 0
.../{x86 => }/dell/dell-wmi-privacy.c | 0
.../{x86 => }/dell/dell-wmi-privacy.h | 0
.../{x86 => }/dell/dell-wmi-sysman/Makefile | 0
.../dell/dell-wmi-sysman/biosattr-interface.c | 0
.../dell/dell-wmi-sysman/dell-wmi-sysman.h | 0
.../dell/dell-wmi-sysman/enum-attributes.c | 0
.../dell/dell-wmi-sysman/int-attributes.c | 0
.../dell/dell-wmi-sysman/passobj-attributes.c | 0
.../dell-wmi-sysman/passwordattr-interface.c | 0
.../dell/dell-wmi-sysman/string-attributes.c | 0
.../{x86 => }/dell/dell-wmi-sysman/sysman.c | 0
drivers/platform/{x86 => }/dell/dell_rbu.c | 0
drivers/platform/x86/Kconfig | 2 -
drivers/platform/x86/Makefile | 3 --
.../x86/dell-uart-backlight-emulator/README | 4 +-
46 files changed, 103 insertions(+), 42 deletions(-)
rename drivers/platform/{x86 => }/dell/Kconfig (95%)
rename drivers/platform/{x86 => }/dell/Makefile (93%)
rename drivers/platform/{x86 => }/dell/alienware-wmi-base.c (100%)
rename drivers/platform/{x86 => }/dell/alienware-wmi-legacy.c (100%)
rename drivers/platform/{x86 => }/dell/alienware-wmi-wmax.c (100%)
rename drivers/platform/{x86 => }/dell/alienware-wmi.h (100%)
rename drivers/platform/{x86 => }/dell/dcdbas.c (100%)
rename drivers/platform/{x86 => }/dell/dcdbas.h (100%)
rename drivers/platform/{x86 => }/dell/dell-dw5826e-reset.c (100%)
rename drivers/platform/{x86 => }/dell/dell-laptop.c (99%)
rename drivers/platform/{x86 => }/dell/dell-lis3lv02d.c (100%)
rename drivers/platform/{x86 => }/dell/dell-pc.c (99%)
rename drivers/platform/{x86 => }/dell/dell-rbtn.c (100%)
rename drivers/platform/{x86 => }/dell/dell-rbtn.h (100%)
rename drivers/platform/{x86 => }/dell/dell-smbios-base.c (97%)
rename drivers/platform/{x86 => }/dell/dell-smbios-smm.c (100%)
rename drivers/platform/{x86 => }/dell/dell-smbios-wmi.c (90%)
rename drivers/platform/{x86 => }/dell/dell-smbios.h (98%)
rename drivers/platform/{x86 => }/dell/dell-smo8800-ids.h (100%)
rename drivers/platform/{x86 => }/dell/dell-smo8800.c (100%)
rename drivers/platform/{x86 => }/dell/dell-uart-backlight.c (99%)
rename drivers/platform/{x86 => }/dell/dell-wmi-aio.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-base.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-ddv.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-descriptor.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-descriptor.h (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-led.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-privacy.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-privacy.h (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/Makefile (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/biosattr-interface.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/dell-wmi-sysman.h (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/enum-attributes.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/int-attributes.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/passobj-attributes.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/passwordattr-interface.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/string-attributes.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/sysman.c (100%)
rename drivers/platform/{x86 => }/dell/dell_rbu.c (100%)
base-commit: d0f871bfb831705d9f55479f5b2b40f636ea7b16
--
2.53.0
^ permalink raw reply [flat|nested] 31+ messages in thread
* [PATCH 1/8] platform/x86: dell: Make uart-backlight x86 only
2026-11-21 0:05 [PATCH 0/8] platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition Brian Mak
@ 2026-11-21 0:05 ` Brian Mak
2026-11-21 1:36 ` Randy Dunlap
2026-11-21 0:05 ` [PATCH 2/8] platform: dell: Move out of x86 directory Brian Mak
` (6 subsequent siblings)
7 siblings, 1 reply; 31+ messages in thread
From: Brian Mak @ 2026-11-21 0:05 UTC (permalink / raw)
To: Hans de Goede, Ilpo Järvinen
Cc: Kurt Borja, Stuart Hayes, Matthew Garrett, Pali Rohár,
Lyndon Sanche, Armin Wolf, Prasanth Ksr, Jonathan Corbet,
Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel, Brian Mak
Make dell-uart-backlight x86 only, as it uses some x86 helpers.
Signed-off-by: Brian Mak <bmak@nvidia.com>
---
drivers/platform/x86/dell/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/platform/x86/dell/Kconfig b/drivers/platform/x86/dell/Kconfig
index 9f0016056d7e..4c28d4c008fc 100644
--- a/drivers/platform/x86/dell/Kconfig
+++ b/drivers/platform/x86/dell/Kconfig
@@ -188,6 +188,7 @@ config DELL_UART_BACKLIGHT
depends on ACPI_VIDEO
depends on BACKLIGHT_CLASS_DEVICE
depends on SERIAL_DEV_BUS
+ depends on X86
help
Say Y here if you want to support Dell AIO UART backlight interface.
The Dell AIO machines released after 2017 come with a UART interface
--
2.53.0
^ permalink raw reply [flat|nested] 31+ messages in thread
* [PATCH 2/8] platform: dell: Move out of x86 directory
2026-11-21 0:05 [PATCH 0/8] platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition Brian Mak
2026-11-21 0:05 ` [PATCH 1/8] platform/x86: dell: Make uart-backlight x86 only Brian Mak
@ 2026-11-21 0:05 ` Brian Mak
2026-11-21 10:05 ` kernel test robot
2026-11-21 0:05 ` [PATCH 3/8] MAINTAINERS: Add Dell platform drivers entry Brian Mak
` (5 subsequent siblings)
7 siblings, 1 reply; 31+ messages in thread
From: Brian Mak @ 2026-11-21 0:05 UTC (permalink / raw)
To: Hans de Goede, Ilpo Järvinen
Cc: Kurt Borja, Stuart Hayes, Matthew Garrett, Pali Rohár,
Lyndon Sanche, Armin Wolf, Prasanth Ksr, Jonathan Corbet,
Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel, Brian Mak
With the introduction of the Dell XPS 16 Creator Edition, Dell platform
drivers are no longer just applicable to x86, but also ARM64. Move Dell
platform drivers out of the x86 directory, so they can be reused for
ARM64.
Rename CONFIG_X86_PLATFORM_DRIVERS_DELL to CONFIG_DELL_PLATFORMS, and
add a transitional config.
Signed-off-by: Brian Mak <bmak@nvidia.com>
---
.../admin-guide/laptops/alienware-wmi.rst | 4 +--
MAINTAINERS | 30 +++++++++----------
drivers/platform/Kconfig | 2 ++
drivers/platform/Makefile | 1 +
drivers/platform/{x86 => }/dell/Kconfig | 18 +++++++----
drivers/platform/{x86 => }/dell/Makefile | 4 +--
.../{x86 => }/dell/alienware-wmi-base.c | 0
.../{x86 => }/dell/alienware-wmi-legacy.c | 0
.../{x86 => }/dell/alienware-wmi-wmax.c | 0
.../platform/{x86 => }/dell/alienware-wmi.h | 0
drivers/platform/{x86 => }/dell/dcdbas.c | 0
drivers/platform/{x86 => }/dell/dcdbas.h | 0
.../{x86 => }/dell/dell-dw5826e-reset.c | 0
drivers/platform/{x86 => }/dell/dell-laptop.c | 0
.../platform/{x86 => }/dell/dell-lis3lv02d.c | 0
drivers/platform/{x86 => }/dell/dell-pc.c | 0
drivers/platform/{x86 => }/dell/dell-rbtn.c | 0
drivers/platform/{x86 => }/dell/dell-rbtn.h | 0
.../{x86 => }/dell/dell-smbios-base.c | 0
.../platform/{x86 => }/dell/dell-smbios-smm.c | 0
.../platform/{x86 => }/dell/dell-smbios-wmi.c | 0
drivers/platform/{x86 => }/dell/dell-smbios.h | 0
.../{x86 => }/dell/dell-smo8800-ids.h | 0
.../platform/{x86 => }/dell/dell-smo8800.c | 0
.../{x86 => }/dell/dell-uart-backlight.c | 2 +-
.../platform/{x86 => }/dell/dell-wmi-aio.c | 0
.../platform/{x86 => }/dell/dell-wmi-base.c | 0
.../platform/{x86 => }/dell/dell-wmi-ddv.c | 0
.../{x86 => }/dell/dell-wmi-descriptor.c | 0
.../{x86 => }/dell/dell-wmi-descriptor.h | 0
.../platform/{x86 => }/dell/dell-wmi-led.c | 0
.../{x86 => }/dell/dell-wmi-privacy.c | 0
.../{x86 => }/dell/dell-wmi-privacy.h | 0
.../{x86 => }/dell/dell-wmi-sysman/Makefile | 0
.../dell/dell-wmi-sysman/biosattr-interface.c | 0
.../dell/dell-wmi-sysman/dell-wmi-sysman.h | 0
.../dell/dell-wmi-sysman/enum-attributes.c | 0
.../dell/dell-wmi-sysman/int-attributes.c | 0
.../dell/dell-wmi-sysman/passobj-attributes.c | 0
.../dell-wmi-sysman/passwordattr-interface.c | 0
.../dell/dell-wmi-sysman/string-attributes.c | 0
.../{x86 => }/dell/dell-wmi-sysman/sysman.c | 0
drivers/platform/{x86 => }/dell/dell_rbu.c | 0
drivers/platform/x86/Kconfig | 2 --
drivers/platform/x86/Makefile | 3 --
.../x86/dell-uart-backlight-emulator/README | 4 +--
46 files changed, 37 insertions(+), 33 deletions(-)
rename drivers/platform/{x86 => }/dell/Kconfig (96%)
rename drivers/platform/{x86 => }/dell/Makefile (93%)
rename drivers/platform/{x86 => }/dell/alienware-wmi-base.c (100%)
rename drivers/platform/{x86 => }/dell/alienware-wmi-legacy.c (100%)
rename drivers/platform/{x86 => }/dell/alienware-wmi-wmax.c (100%)
rename drivers/platform/{x86 => }/dell/alienware-wmi.h (100%)
rename drivers/platform/{x86 => }/dell/dcdbas.c (100%)
rename drivers/platform/{x86 => }/dell/dcdbas.h (100%)
rename drivers/platform/{x86 => }/dell/dell-dw5826e-reset.c (100%)
rename drivers/platform/{x86 => }/dell/dell-laptop.c (100%)
rename drivers/platform/{x86 => }/dell/dell-lis3lv02d.c (100%)
rename drivers/platform/{x86 => }/dell/dell-pc.c (100%)
rename drivers/platform/{x86 => }/dell/dell-rbtn.c (100%)
rename drivers/platform/{x86 => }/dell/dell-rbtn.h (100%)
rename drivers/platform/{x86 => }/dell/dell-smbios-base.c (100%)
rename drivers/platform/{x86 => }/dell/dell-smbios-smm.c (100%)
rename drivers/platform/{x86 => }/dell/dell-smbios-wmi.c (100%)
rename drivers/platform/{x86 => }/dell/dell-smbios.h (100%)
rename drivers/platform/{x86 => }/dell/dell-smo8800-ids.h (100%)
rename drivers/platform/{x86 => }/dell/dell-smo8800.c (100%)
rename drivers/platform/{x86 => }/dell/dell-uart-backlight.c (99%)
rename drivers/platform/{x86 => }/dell/dell-wmi-aio.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-base.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-ddv.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-descriptor.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-descriptor.h (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-led.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-privacy.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-privacy.h (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/Makefile (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/biosattr-interface.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/dell-wmi-sysman.h (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/enum-attributes.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/int-attributes.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/passobj-attributes.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/passwordattr-interface.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/string-attributes.c (100%)
rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/sysman.c (100%)
rename drivers/platform/{x86 => }/dell/dell_rbu.c (100%)
diff --git a/Documentation/admin-guide/laptops/alienware-wmi.rst b/Documentation/admin-guide/laptops/alienware-wmi.rst
index e532c60db8e2..2156d46e4b74 100644
--- a/Documentation/admin-guide/laptops/alienware-wmi.rst
+++ b/Documentation/admin-guide/laptops/alienware-wmi.rst
@@ -40,8 +40,8 @@ parameters:
If the module loads successfully with these parameters, consider submitting a
patch adding your model to the ``awcc_dmi_table`` located in
-``drivers/platform/x86/dell/alienware-wmi-wmax.c`` or contacting the maintainer
-for further guidance.
+``drivers/platform/dell/alienware-wmi-wmax.c`` or contacting the maintainer for
+further guidance.
Status
------
diff --git a/MAINTAINERS b/MAINTAINERS
index 3ed1991cac46..0de02594cd30 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -868,7 +868,7 @@ F: Documentation/ABI/testing/debugfs-alienware-wmi
F: Documentation/ABI/testing/sysfs-platform-alienware-wmi
F: Documentation/admin-guide/laptops/alienware-wmi.rst
F: Documentation/wmi/devices/alienware-wmi.rst
-F: drivers/platform/x86/dell/alienware-wmi*
+F: drivers/platform/dell/alienware-wmi*
ALLEGRO DVT VIDEO IP CORE DRIVER
M: Michael Tretter <m.tretter@pengutronix.de>
@@ -7452,17 +7452,17 @@ M: Matthew Garrett <mjg59@srcf.ucam.org>
M: Pali Rohár <pali@kernel.org>
L: platform-driver-x86@vger.kernel.org
S: Maintained
-F: drivers/platform/x86/dell/dell-laptop.c
+F: drivers/platform/dell/dell-laptop.c
DELL LAPTOP FREEFALL DRIVER
M: Pali Rohár <pali@kernel.org>
S: Maintained
-F: drivers/platform/x86/dell/dell-smo8800.c
+F: drivers/platform/dell/dell-smo8800.c
DELL LAPTOP RBTN DRIVER
M: Pali Rohár <pali@kernel.org>
S: Maintained
-F: drivers/platform/x86/dell/dell-rbtn.*
+F: drivers/platform/dell/dell-rbtn.*
DELL LAPTOP SMM DRIVER
M: Pali Rohár <pali@kernel.org>
@@ -7475,32 +7475,32 @@ DELL PC DRIVER
M: Lyndon Sanche <lsanche@lyndeno.ca>
L: platform-driver-x86@vger.kernel.org
S: Maintained
-F: drivers/platform/x86/dell/dell-pc.c
+F: drivers/platform/dell/dell-pc.c
DELL REMOTE BIOS UPDATE DRIVER
M: Stuart Hayes <stuart.w.hayes@gmail.com>
L: platform-driver-x86@vger.kernel.org
S: Maintained
-F: drivers/platform/x86/dell/dell_rbu.c
+F: drivers/platform/dell/dell_rbu.c
DELL SMBIOS DRIVER
M: Pali Rohár <pali@kernel.org>
L: Dell.Client.Kernel@dell.com
L: platform-driver-x86@vger.kernel.org
S: Maintained
-F: drivers/platform/x86/dell/dell-smbios.*
+F: drivers/platform/dell/dell-smbios.*
DELL SMBIOS SMM DRIVER
L: Dell.Client.Kernel@dell.com
L: platform-driver-x86@vger.kernel.org
S: Maintained
-F: drivers/platform/x86/dell/dell-smbios-smm.c
+F: drivers/platform/dell/dell-smbios-smm.c
DELL SMBIOS WMI DRIVER
L: Dell.Client.Kernel@dell.com
L: platform-driver-x86@vger.kernel.org
S: Maintained
-F: drivers/platform/x86/dell/dell-smbios-wmi.c
+F: drivers/platform/dell/dell-smbios-wmi.c
F: tools/wmi/dell-smbios-example.c
DELL SYSTEMS MANAGEMENT BASE DRIVER (dcdbas)
@@ -7508,7 +7508,7 @@ M: Stuart Hayes <stuart.w.hayes@gmail.com>
L: platform-driver-x86@vger.kernel.org
S: Maintained
F: Documentation/userspace-api/dcdbas.rst
-F: drivers/platform/x86/dell/dcdbas.*
+F: drivers/platform/dell/dcdbas.*
DELL WMI DDV DRIVER
M: Armin Wolf <W_Armin@gmx.de>
@@ -7516,24 +7516,24 @@ S: Maintained
F: Documentation/ABI/testing/debugfs-dell-wmi-ddv
F: Documentation/ABI/testing/sysfs-platform-dell-wmi-ddv
F: Documentation/wmi/devices/dell-wmi-ddv.rst
-F: drivers/platform/x86/dell/dell-wmi-ddv.c
+F: drivers/platform/dell/dell-wmi-ddv.c
DELL WMI DESCRIPTOR DRIVER
L: Dell.Client.Kernel@dell.com
S: Maintained
-F: drivers/platform/x86/dell/dell-wmi-descriptor.c
+F: drivers/platform/dell/dell-wmi-descriptor.c
DELL WMI HARDWARE PRIVACY SUPPORT
L: Dell.Client.Kernel@dell.com
L: platform-driver-x86@vger.kernel.org
S: Maintained
-F: drivers/platform/x86/dell/dell-wmi-privacy.c
+F: drivers/platform/dell/dell-wmi-privacy.c
DELL WMI NOTIFICATIONS DRIVER
M: Matthew Garrett <mjg59@srcf.ucam.org>
M: Pali Rohár <pali@kernel.org>
S: Maintained
-F: drivers/platform/x86/dell/dell-wmi-base.c
+F: drivers/platform/dell/dell-wmi-base.c
DELL WMI SYSMAN DRIVER
M: Prasanth Ksr <prasanth.ksr@dell.com>
@@ -7541,7 +7541,7 @@ L: Dell.Client.Kernel@dell.com
L: platform-driver-x86@vger.kernel.org
S: Maintained
F: Documentation/ABI/testing/sysfs-class-firmware-attributes
-F: drivers/platform/x86/dell/dell-wmi-sysman/
+F: drivers/platform/dell/dell-wmi-sysman/
DELTA AHE-50DC FAN CONTROL MODULE DRIVER
M: Zev Weiss <zev@bewilderbeest.net>
diff --git a/drivers/platform/Kconfig b/drivers/platform/Kconfig
index 312788f249c9..92a395bbd9ab 100644
--- a/drivers/platform/Kconfig
+++ b/drivers/platform/Kconfig
@@ -15,6 +15,8 @@ source "drivers/platform/olpc/Kconfig"
source "drivers/platform/surface/Kconfig"
+source "drivers/platform/dell/Kconfig"
+
source "drivers/platform/x86/Kconfig"
source "drivers/platform/arm64/Kconfig"
diff --git a/drivers/platform/Makefile b/drivers/platform/Makefile
index fa322e7f8716..385c33c94f24 100644
--- a/drivers/platform/Makefile
+++ b/drivers/platform/Makefile
@@ -12,6 +12,7 @@ obj-$(CONFIG_GOLDFISH) += goldfish/
obj-$(CONFIG_CHROME_PLATFORMS) += chrome/
obj-$(CONFIG_CZNIC_PLATFORMS) += cznic/
obj-$(CONFIG_SURFACE_PLATFORMS) += surface/
+obj-$(CONFIG_DELL_PLATFORMS) += dell/
obj-$(CONFIG_ARM64_PLATFORM_DEVICES) += arm64/
obj-$(CONFIG_BCM2835_VCHIQ) += raspberrypi/
obj-$(CONFIG_ACPI_WMI) += wmi/
diff --git a/drivers/platform/x86/dell/Kconfig b/drivers/platform/dell/Kconfig
similarity index 96%
rename from drivers/platform/x86/dell/Kconfig
rename to drivers/platform/dell/Kconfig
index 4c28d4c008fc..7030f817b6af 100644
--- a/drivers/platform/x86/dell/Kconfig
+++ b/drivers/platform/dell/Kconfig
@@ -1,18 +1,20 @@
# SPDX-License-Identifier: GPL-2.0-only
#
-# Dell X86 Platform Specific Drivers
+# Dell Platform Specific Drivers
#
-menuconfig X86_PLATFORM_DRIVERS_DELL
- bool "Dell X86 Platform Specific Device Drivers"
+menuconfig DELL_PLATFORMS
+ bool "Dell Platform Specific Device Drivers"
+ depends on X86 || ARM64 || COMPILE_TEST
+ default X86_PLATFORM_DRIVERS_DELL
help
Say Y here to get to see options for device drivers for various
- Dell x86 platforms, including vendor-specific laptop extension drivers.
+ Dell platforms, including vendor-specific laptop extension drivers.
This option alone does not add any kernel code.
If you say N, all options in this submenu will be skipped and disabled.
-if X86_PLATFORM_DRIVERS_DELL
+if DELL_PLATFORMS
config ALIENWARE_WMI
tristate "Alienware Special feature control"
@@ -282,4 +284,8 @@ config DELL_DW5826E_RESET
depends on ACPI
help
This adds support for the Dell DW5826e PLDR reset via ACPI
-endif # X86_PLATFORM_DRIVERS_DELL
+endif # DELL_PLATFORMS
+
+config X86_PLATFORM_DRIVERS_DELL
+ bool
+ transitional
diff --git a/drivers/platform/x86/dell/Makefile b/drivers/platform/dell/Makefile
similarity index 93%
rename from drivers/platform/x86/dell/Makefile
rename to drivers/platform/dell/Makefile
index 470874c6e6e6..115511258924 100644
--- a/drivers/platform/x86/dell/Makefile
+++ b/drivers/platform/dell/Makefile
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
#
-# Makefile for linux/drivers/platform/x86/dell
-# Dell x86 Platform-Specific Drivers
+# Makefile for linux/drivers/platform/dell
+# Dell Platform-Specific Drivers
#
obj-$(CONFIG_ALIENWARE_WMI) += alienware-wmi.o
diff --git a/drivers/platform/x86/dell/alienware-wmi-base.c b/drivers/platform/dell/alienware-wmi-base.c
similarity index 100%
rename from drivers/platform/x86/dell/alienware-wmi-base.c
rename to drivers/platform/dell/alienware-wmi-base.c
diff --git a/drivers/platform/x86/dell/alienware-wmi-legacy.c b/drivers/platform/dell/alienware-wmi-legacy.c
similarity index 100%
rename from drivers/platform/x86/dell/alienware-wmi-legacy.c
rename to drivers/platform/dell/alienware-wmi-legacy.c
diff --git a/drivers/platform/x86/dell/alienware-wmi-wmax.c b/drivers/platform/dell/alienware-wmi-wmax.c
similarity index 100%
rename from drivers/platform/x86/dell/alienware-wmi-wmax.c
rename to drivers/platform/dell/alienware-wmi-wmax.c
diff --git a/drivers/platform/x86/dell/alienware-wmi.h b/drivers/platform/dell/alienware-wmi.h
similarity index 100%
rename from drivers/platform/x86/dell/alienware-wmi.h
rename to drivers/platform/dell/alienware-wmi.h
diff --git a/drivers/platform/x86/dell/dcdbas.c b/drivers/platform/dell/dcdbas.c
similarity index 100%
rename from drivers/platform/x86/dell/dcdbas.c
rename to drivers/platform/dell/dcdbas.c
diff --git a/drivers/platform/x86/dell/dcdbas.h b/drivers/platform/dell/dcdbas.h
similarity index 100%
rename from drivers/platform/x86/dell/dcdbas.h
rename to drivers/platform/dell/dcdbas.h
diff --git a/drivers/platform/x86/dell/dell-dw5826e-reset.c b/drivers/platform/dell/dell-dw5826e-reset.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-dw5826e-reset.c
rename to drivers/platform/dell/dell-dw5826e-reset.c
diff --git a/drivers/platform/x86/dell/dell-laptop.c b/drivers/platform/dell/dell-laptop.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-laptop.c
rename to drivers/platform/dell/dell-laptop.c
diff --git a/drivers/platform/x86/dell/dell-lis3lv02d.c b/drivers/platform/dell/dell-lis3lv02d.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-lis3lv02d.c
rename to drivers/platform/dell/dell-lis3lv02d.c
diff --git a/drivers/platform/x86/dell/dell-pc.c b/drivers/platform/dell/dell-pc.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-pc.c
rename to drivers/platform/dell/dell-pc.c
diff --git a/drivers/platform/x86/dell/dell-rbtn.c b/drivers/platform/dell/dell-rbtn.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-rbtn.c
rename to drivers/platform/dell/dell-rbtn.c
diff --git a/drivers/platform/x86/dell/dell-rbtn.h b/drivers/platform/dell/dell-rbtn.h
similarity index 100%
rename from drivers/platform/x86/dell/dell-rbtn.h
rename to drivers/platform/dell/dell-rbtn.h
diff --git a/drivers/platform/x86/dell/dell-smbios-base.c b/drivers/platform/dell/dell-smbios-base.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-smbios-base.c
rename to drivers/platform/dell/dell-smbios-base.c
diff --git a/drivers/platform/x86/dell/dell-smbios-smm.c b/drivers/platform/dell/dell-smbios-smm.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-smbios-smm.c
rename to drivers/platform/dell/dell-smbios-smm.c
diff --git a/drivers/platform/x86/dell/dell-smbios-wmi.c b/drivers/platform/dell/dell-smbios-wmi.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-smbios-wmi.c
rename to drivers/platform/dell/dell-smbios-wmi.c
diff --git a/drivers/platform/x86/dell/dell-smbios.h b/drivers/platform/dell/dell-smbios.h
similarity index 100%
rename from drivers/platform/x86/dell/dell-smbios.h
rename to drivers/platform/dell/dell-smbios.h
diff --git a/drivers/platform/x86/dell/dell-smo8800-ids.h b/drivers/platform/dell/dell-smo8800-ids.h
similarity index 100%
rename from drivers/platform/x86/dell/dell-smo8800-ids.h
rename to drivers/platform/dell/dell-smo8800-ids.h
diff --git a/drivers/platform/x86/dell/dell-smo8800.c b/drivers/platform/dell/dell-smo8800.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-smo8800.c
rename to drivers/platform/dell/dell-smo8800.c
diff --git a/drivers/platform/x86/dell/dell-uart-backlight.c b/drivers/platform/dell/dell-uart-backlight.c
similarity index 99%
rename from drivers/platform/x86/dell/dell-uart-backlight.c
rename to drivers/platform/dell/dell-uart-backlight.c
index bbb270ae3697..da43e25200cd 100644
--- a/drivers/platform/x86/dell/dell-uart-backlight.c
+++ b/drivers/platform/dell/dell-uart-backlight.c
@@ -21,7 +21,7 @@
#include <linux/types.h>
#include <linux/wait.h>
#include <acpi/video.h>
-#include "../serdev_helpers.h"
+#include "../x86/serdev_helpers.h"
/* The backlight controller must respond within 1 second */
#define DELL_BL_TIMEOUT msecs_to_jiffies(1000)
diff --git a/drivers/platform/x86/dell/dell-wmi-aio.c b/drivers/platform/dell/dell-wmi-aio.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi-aio.c
rename to drivers/platform/dell/dell-wmi-aio.c
diff --git a/drivers/platform/x86/dell/dell-wmi-base.c b/drivers/platform/dell/dell-wmi-base.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi-base.c
rename to drivers/platform/dell/dell-wmi-base.c
diff --git a/drivers/platform/x86/dell/dell-wmi-ddv.c b/drivers/platform/dell/dell-wmi-ddv.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi-ddv.c
rename to drivers/platform/dell/dell-wmi-ddv.c
diff --git a/drivers/platform/x86/dell/dell-wmi-descriptor.c b/drivers/platform/dell/dell-wmi-descriptor.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi-descriptor.c
rename to drivers/platform/dell/dell-wmi-descriptor.c
diff --git a/drivers/platform/x86/dell/dell-wmi-descriptor.h b/drivers/platform/dell/dell-wmi-descriptor.h
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi-descriptor.h
rename to drivers/platform/dell/dell-wmi-descriptor.h
diff --git a/drivers/platform/x86/dell/dell-wmi-led.c b/drivers/platform/dell/dell-wmi-led.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi-led.c
rename to drivers/platform/dell/dell-wmi-led.c
diff --git a/drivers/platform/x86/dell/dell-wmi-privacy.c b/drivers/platform/dell/dell-wmi-privacy.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi-privacy.c
rename to drivers/platform/dell/dell-wmi-privacy.c
diff --git a/drivers/platform/x86/dell/dell-wmi-privacy.h b/drivers/platform/dell/dell-wmi-privacy.h
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi-privacy.h
rename to drivers/platform/dell/dell-wmi-privacy.h
diff --git a/drivers/platform/x86/dell/dell-wmi-sysman/Makefile b/drivers/platform/dell/dell-wmi-sysman/Makefile
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi-sysman/Makefile
rename to drivers/platform/dell/dell-wmi-sysman/Makefile
diff --git a/drivers/platform/x86/dell/dell-wmi-sysman/biosattr-interface.c b/drivers/platform/dell/dell-wmi-sysman/biosattr-interface.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi-sysman/biosattr-interface.c
rename to drivers/platform/dell/dell-wmi-sysman/biosattr-interface.c
diff --git a/drivers/platform/x86/dell/dell-wmi-sysman/dell-wmi-sysman.h b/drivers/platform/dell/dell-wmi-sysman/dell-wmi-sysman.h
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi-sysman/dell-wmi-sysman.h
rename to drivers/platform/dell/dell-wmi-sysman/dell-wmi-sysman.h
diff --git a/drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c b/drivers/platform/dell/dell-wmi-sysman/enum-attributes.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c
rename to drivers/platform/dell/dell-wmi-sysman/enum-attributes.c
diff --git a/drivers/platform/x86/dell/dell-wmi-sysman/int-attributes.c b/drivers/platform/dell/dell-wmi-sysman/int-attributes.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi-sysman/int-attributes.c
rename to drivers/platform/dell/dell-wmi-sysman/int-attributes.c
diff --git a/drivers/platform/x86/dell/dell-wmi-sysman/passobj-attributes.c b/drivers/platform/dell/dell-wmi-sysman/passobj-attributes.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi-sysman/passobj-attributes.c
rename to drivers/platform/dell/dell-wmi-sysman/passobj-attributes.c
diff --git a/drivers/platform/x86/dell/dell-wmi-sysman/passwordattr-interface.c b/drivers/platform/dell/dell-wmi-sysman/passwordattr-interface.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi-sysman/passwordattr-interface.c
rename to drivers/platform/dell/dell-wmi-sysman/passwordattr-interface.c
diff --git a/drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c b/drivers/platform/dell/dell-wmi-sysman/string-attributes.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
rename to drivers/platform/dell/dell-wmi-sysman/string-attributes.c
diff --git a/drivers/platform/x86/dell/dell-wmi-sysman/sysman.c b/drivers/platform/dell/dell-wmi-sysman/sysman.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi-sysman/sysman.c
rename to drivers/platform/dell/dell-wmi-sysman/sysman.c
diff --git a/drivers/platform/x86/dell/dell_rbu.c b/drivers/platform/dell/dell_rbu.c
similarity index 100%
rename from drivers/platform/x86/dell/dell_rbu.c
rename to drivers/platform/dell/dell_rbu.c
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index 9ce384e0475e..42ffe63d0a39 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -392,8 +392,6 @@ config EEEPC_WMI
If you have an ACPI-WMI compatible Eee PC laptop (>= 1000), say Y or M
here.
-source "drivers/platform/x86/dell/Kconfig"
-
config AMILO_RFKILL
tristate "Fujitsu-Siemens Amilo rfkill support"
depends on RFKILL
diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile
index 229057234d00..3bb983a641ca 100644
--- a/drivers/platform/x86/Makefile
+++ b/drivers/platform/x86/Makefile
@@ -44,9 +44,6 @@ obj-$(CONFIG_AYANEO_EC) += ayaneo-ec.o
# Cisco/Meraki
obj-$(CONFIG_MERAKI_MX100) += meraki-mx100.o
-# Dell
-obj-$(CONFIG_X86_PLATFORM_DRIVERS_DELL) += dell/
-
# Fujitsu
obj-$(CONFIG_AMILO_RFKILL) += amilo-rfkill.o
obj-$(CONFIG_FUJITSU_LAPTOP) += fujitsu-laptop.o
diff --git a/tools/arch/x86/dell-uart-backlight-emulator/README b/tools/arch/x86/dell-uart-backlight-emulator/README
index c0d8e52046ee..d38d91abcf8c 100644
--- a/tools/arch/x86/dell-uart-backlight-emulator/README
+++ b/tools/arch/x86/dell-uart-backlight-emulator/README
@@ -13,8 +13,8 @@ With the DELL0501 indicating that we are dealing with an UART with
the backlight controller board attached.
This small emulator allows testing
-the drivers/platform/x86/dell/dell-uart-backlight.c driver without access
-to an actual Dell All In One.
+the drivers/platform/dell/dell-uart-backlight.c driver without access to
+an actual Dell All In One.
This requires:
1. A (desktop) PC with a 16550 UART on the motherboard and a standard DB9
--
2.53.0
^ permalink raw reply [flat|nested] 31+ messages in thread
* [PATCH 3/8] MAINTAINERS: Add Dell platform drivers entry
2026-11-21 0:05 [PATCH 0/8] platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition Brian Mak
2026-11-21 0:05 ` [PATCH 1/8] platform/x86: dell: Make uart-backlight x86 only Brian Mak
2026-11-21 0:05 ` [PATCH 2/8] platform: dell: Move out of x86 directory Brian Mak
@ 2026-11-21 0:05 ` Brian Mak
2026-11-21 0:05 ` [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent Brian Mak
` (4 subsequent siblings)
7 siblings, 0 replies; 31+ messages in thread
From: Brian Mak @ 2026-11-21 0:05 UTC (permalink / raw)
To: Hans de Goede, Ilpo Järvinen
Cc: Kurt Borja, Stuart Hayes, Matthew Garrett, Pali Rohár,
Lyndon Sanche, Armin Wolf, Prasanth Ksr, Jonathan Corbet,
Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel, Brian Mak
Add an entry for the now-moved Dell platform drivers, so that misc files
like the Kconfig and Makefile are covered.
Signed-off-by: Brian Mak <bmak@nvidia.com>
---
MAINTAINERS | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 0de02594cd30..d058da22a9c7 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -7477,6 +7477,12 @@ L: platform-driver-x86@vger.kernel.org
S: Maintained
F: drivers/platform/dell/dell-pc.c
+DELL PLATFORM DRIVERS
+L: Dell.Client.Kernel@dell.com
+L: platform-driver-x86@vger.kernel.org
+S: Maintained
+F: drivers/platform/dell/
+
DELL REMOTE BIOS UPDATE DRIVER
M: Stuart Hayes <stuart.w.hayes@gmail.com>
L: platform-driver-x86@vger.kernel.org
--
2.53.0
^ permalink raw reply [flat|nested] 31+ messages in thread
* [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
2026-11-21 0:05 [PATCH 0/8] platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition Brian Mak
` (2 preceding siblings ...)
2026-11-21 0:05 ` [PATCH 3/8] MAINTAINERS: Add Dell platform drivers entry Brian Mak
@ 2026-11-21 0:05 ` Brian Mak
2026-11-21 0:48 ` Pali Rohár
2026-11-21 1:38 ` Randy Dunlap
2026-11-21 0:05 ` [PATCH 5/8] platform: dell: smbios-wmi: Fix probe on RTX Spark Brian Mak
` (3 subsequent siblings)
7 siblings, 2 replies; 31+ messages in thread
From: Brian Mak @ 2026-11-21 0:05 UTC (permalink / raw)
To: Hans de Goede, Ilpo Järvinen
Cc: Kurt Borja, Stuart Hayes, Matthew Garrett, Pali Rohár,
Lyndon Sanche, Armin Wolf, Prasanth Ksr, Jonathan Corbet,
Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel, Brian Mak
CONFIG_DELL_LAPTOP is currently not available on ARM64, due to a
dependency on CONFIG_SERIO_I8042. This dependency is actually not
necessary, as there is a fallback. Make it optional.
Signed-off-by: Brian Mak <bmak@nvidia.com>
---
drivers/platform/dell/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/platform/dell/Kconfig b/drivers/platform/dell/Kconfig
index 7030f817b6af..0223e2373508 100644
--- a/drivers/platform/dell/Kconfig
+++ b/drivers/platform/dell/Kconfig
@@ -77,7 +77,7 @@ config DELL_LAPTOP
depends on ACPI_VIDEO || ACPI_VIDEO = n
depends on RFKILL || RFKILL = n
depends on DELL_WMI || DELL_WMI = n
- depends on SERIO_I8042
+ depends on SERIO_I8042 || SERIO_I8042 = n
depends on DELL_SMBIOS
select POWER_SUPPLY
select LEDS_CLASS
--
2.53.0
^ permalink raw reply [flat|nested] 31+ messages in thread
* [PATCH 5/8] platform: dell: smbios-wmi: Fix probe on RTX Spark
2026-11-21 0:05 [PATCH 0/8] platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition Brian Mak
` (3 preceding siblings ...)
2026-11-21 0:05 ` [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent Brian Mak
@ 2026-11-21 0:05 ` Brian Mak
2026-11-21 13:44 ` Armin Wolf
2026-11-21 0:05 ` [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface Brian Mak
` (2 subsequent siblings)
7 siblings, 1 reply; 31+ messages in thread
From: Brian Mak @ 2026-11-21 0:05 UTC (permalink / raw)
To: Hans de Goede, Ilpo Järvinen
Cc: Kurt Borja, Stuart Hayes, Matthew Garrett, Pali Rohár,
Lyndon Sanche, Armin Wolf, Prasanth Ksr, Jonathan Corbet,
Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel, Brian Mak
dell-smbios-wmi fails to probe on RTX Spark due to a hardcoded SMBIOS
handle (0xB100) of type 0xB1 (misc BIOS flags) that is numbered
differently on Dell RTX Spark laptops. Instead, search for all SMBIOS
handles of type 0xB1, and if there is just one, use that one. If handle
0xB100 exists, always use that.
This fixes dell-smbios-wmi probe on Dell RTX Spark laptops.
Signed-off-by: Brian Mak <bmak@nvidia.com>
---
drivers/platform/dell/dell-smbios-wmi.c | 37 +++++++++++++++++++------
1 file changed, 29 insertions(+), 8 deletions(-)
diff --git a/drivers/platform/dell/dell-smbios-wmi.c b/drivers/platform/dell/dell-smbios-wmi.c
index 7a5c6d7730ab..ff859d9039b9 100644
--- a/drivers/platform/dell/dell-smbios-wmi.c
+++ b/drivers/platform/dell/dell-smbios-wmi.c
@@ -273,7 +273,13 @@ static const struct wmi_device_id dell_smbios_wmi_id_table[] = {
{ },
};
-static void parse_b1_table(const struct dmi_header *dm)
+struct b1_search {
+ bool found_b100;
+ unsigned int count;
+ u16 flags0;
+};
+
+static void parse_b1_table(const struct dmi_header *dm, struct b1_search *search)
{
struct misc_bios_flags_structure *flags =
container_of(dm, struct misc_bios_flags_structure, header);
@@ -281,17 +287,21 @@ static void parse_b1_table(const struct dmi_header *dm)
/* 4 bytes header, 8 bytes flags */
if (dm->length < 12)
return;
- if (dm->handle != 0xb100)
- return;
- if ((flags->flags0 & FLAG_HAS_ACPI_WMI))
- wmi_supported = 1;
+
+ search->count++;
+ if (dm->handle == 0xb100) {
+ search->found_b100 = true;
+ search->flags0 = flags->flags0;
+ } else if (!search->found_b100) {
+ search->flags0 = flags->flags0;
+ }
}
-static void find_b1(const struct dmi_header *dm, void *dummy)
+static void find_b1(const struct dmi_header *dm, void *data)
{
switch (dm->type) {
case 0xb1: /* misc bios flags */
- parse_b1_table(dm);
+ parse_b1_table(dm, data);
break;
}
}
@@ -308,7 +318,18 @@ static struct wmi_driver dell_smbios_wmi_driver = {
int init_dell_smbios_wmi(void)
{
- dmi_walk(find_b1, NULL);
+ struct b1_search search = {};
+
+ dmi_walk(find_b1, &search);
+
+ /*
+ * Dell x86 firmware places the misc BIOS flags at handle 0xb100. However,
+ * with RTX Spark, it is not at handle 0xb100, so fall back to the only type
+ * 0xb1 handle present if there is only one.
+ */
+ if ((search.found_b100 || search.count == 1) &&
+ (search.flags0 & FLAG_HAS_ACPI_WMI))
+ wmi_supported = 1;
if (!wmi_supported)
return -ENODEV;
--
2.53.0
^ permalink raw reply [flat|nested] 31+ messages in thread
* [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
2026-11-21 0:05 [PATCH 0/8] platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition Brian Mak
` (4 preceding siblings ...)
2026-11-21 0:05 ` [PATCH 5/8] platform: dell: smbios-wmi: Fix probe on RTX Spark Brian Mak
@ 2026-11-21 0:05 ` Brian Mak
2026-11-21 0:38 ` Pali Rohár
2026-11-21 13:49 ` Armin Wolf
2026-11-21 0:05 ` [PATCH 7/8] platform: dell: laptop: Don't load if SMBIOS calls are non-functional Brian Mak
2026-11-21 0:05 ` [PATCH 8/8] platform: dell: pc: " Brian Mak
7 siblings, 2 replies; 31+ messages in thread
From: Brian Mak @ 2026-11-21 0:05 UTC (permalink / raw)
To: Hans de Goede, Ilpo Järvinen
Cc: Kurt Borja, Stuart Hayes, Matthew Garrett, Pali Rohár,
Lyndon Sanche, Armin Wolf, Prasanth Ksr, Jonathan Corbet,
Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel, Brian Mak
On Dell RTX Spark laptops, the SMBIOS calling interface completes every
request with an all-zero buffer, even for requests that should fail.
Drivers that rely on it, such as dell-laptop and dell-pc, end up
reporting bogus state, like battery charge modes and thermal modes.
Add a DMI quirk list for platforms with a non-functional calling
interface, and export dell_smbios_calls_functional() so that consumers
can avoid loading on them. dell-smbios itself still loads, as dell-wmi
depends on it.
Signed-off-by: Brian Mak <bmak@nvidia.com>
---
drivers/platform/dell/dell-smbios-base.c | 22 ++++++++++++++++++++++
drivers/platform/dell/dell-smbios.h | 1 +
2 files changed, 23 insertions(+)
diff --git a/drivers/platform/dell/dell-smbios-base.c b/drivers/platform/dell/dell-smbios-base.c
index c8e93c12c445..e07cbb0e8a6a 100644
--- a/drivers/platform/dell/dell-smbios-base.c
+++ b/drivers/platform/dell/dell-smbios-base.c
@@ -390,6 +390,28 @@ bool dell_smbios_class_is_supported(u16 class)
}
EXPORT_SYMBOL_GPL(dell_smbios_class_is_supported);
+/*
+ * Some Dell firmware completes its proprietary SMBIOS calls with all zeroes,
+ * so any value read through it (tokens, battery and thermal modes)
+ * is invalid.
+ */
+static const struct dmi_system_id dell_smbios_calls_broken_list[] = {
+ {
+ .ident = "Dell XPS 16 DX16263",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+ DMI_MATCH(DMI_PRODUCT_NAME, "XPS 16 DX16263"),
+ },
+ },
+ { }
+};
+
+bool dell_smbios_calls_functional(void)
+{
+ return !dmi_check_system(dell_smbios_calls_broken_list);
+}
+EXPORT_SYMBOL_GPL(dell_smbios_calls_functional);
+
static void __init parse_da_table(const struct dmi_header *dm)
{
/* Final token is a terminator, so we don't want to copy it */
diff --git a/drivers/platform/dell/dell-smbios.h b/drivers/platform/dell/dell-smbios.h
index 1e64803bc00d..26f54364ffde 100644
--- a/drivers/platform/dell/dell-smbios.h
+++ b/drivers/platform/dell/dell-smbios.h
@@ -89,6 +89,7 @@ int dell_laptop_register_notifier(struct notifier_block *nb);
int dell_laptop_unregister_notifier(struct notifier_block *nb);
void dell_laptop_call_notifier(unsigned long action, void *data);
bool dell_smbios_class_is_supported(u16 class);
+bool dell_smbios_calls_functional(void);
/* for the supported backends */
#ifdef CONFIG_DELL_SMBIOS_WMI
--
2.53.0
^ permalink raw reply [flat|nested] 31+ messages in thread
* [PATCH 7/8] platform: dell: laptop: Don't load if SMBIOS calls are non-functional
2026-11-21 0:05 [PATCH 0/8] platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition Brian Mak
` (5 preceding siblings ...)
2026-11-21 0:05 ` [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface Brian Mak
@ 2026-11-21 0:05 ` Brian Mak
2026-11-21 0:05 ` [PATCH 8/8] platform: dell: pc: " Brian Mak
7 siblings, 0 replies; 31+ messages in thread
From: Brian Mak @ 2026-11-21 0:05 UTC (permalink / raw)
To: Hans de Goede, Ilpo Järvinen
Cc: Kurt Borja, Stuart Hayes, Matthew Garrett, Pali Rohár,
Lyndon Sanche, Armin Wolf, Prasanth Ksr, Jonathan Corbet,
Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel, Brian Mak
dell-laptop relies on the SMBIOS calling interface for all of its
functionality. On platforms where the interface returns all-zero
buffers, dell-laptop reports bogus battery charge modes and thresholds,
and registers mute and mic mute LEDs that do nothing.
Don't load dell-laptop on these platforms.
Signed-off-by: Brian Mak <bmak@nvidia.com>
---
drivers/platform/dell/dell-laptop.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/platform/dell/dell-laptop.c b/drivers/platform/dell/dell-laptop.c
index 89e85c7f7132..7bf51b9cb03b 100644
--- a/drivers/platform/dell/dell-laptop.c
+++ b/drivers/platform/dell/dell-laptop.c
@@ -2464,6 +2464,9 @@ static int __init dell_init(void)
if (!dmi_check_system(dell_device_table))
return -ENODEV;
+ if (!dell_smbios_calls_functional())
+ return -ENODEV;
+
quirks = NULL;
/* find if this machine support other functions */
dmi_check_system(dell_quirks);
--
2.53.0
^ permalink raw reply [flat|nested] 31+ messages in thread
* [PATCH 8/8] platform: dell: pc: Don't load if SMBIOS calls are non-functional
2026-11-21 0:05 [PATCH 0/8] platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition Brian Mak
` (6 preceding siblings ...)
2026-11-21 0:05 ` [PATCH 7/8] platform: dell: laptop: Don't load if SMBIOS calls are non-functional Brian Mak
@ 2026-11-21 0:05 ` Brian Mak
7 siblings, 0 replies; 31+ messages in thread
From: Brian Mak @ 2026-11-21 0:05 UTC (permalink / raw)
To: Hans de Goede, Ilpo Järvinen
Cc: Kurt Borja, Stuart Hayes, Matthew Garrett, Pali Rohár,
Lyndon Sanche, Armin Wolf, Prasanth Ksr, Jonathan Corbet,
Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel, Brian Mak
dell-pc relies on the SMBIOS calling interface for thermal modes. On
platforms where the interface returns all-zero buffers, dell-pc reads
no current thermal mode, and fails with "platform_profile probe failed".
Don't load dell-pc on these platforms.
Signed-off-by: Brian Mak <bmak@nvidia.com>
---
drivers/platform/dell/dell-pc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/platform/dell/dell-pc.c b/drivers/platform/dell/dell-pc.c
index becdd9aaef29..4f361ec01b29 100644
--- a/drivers/platform/dell/dell-pc.c
+++ b/drivers/platform/dell/dell-pc.c
@@ -282,6 +282,9 @@ static int __init dell_init(void)
if (!dmi_check_system(dell_device_table))
return -ENODEV;
+ if (!dell_smbios_calls_functional())
+ return -ENODEV;
+
dell_pc_fdev = faux_device_create("dell-pc", NULL, &dell_pc_faux_ops);
if (!dell_pc_fdev)
return -ENODEV;
--
2.53.0
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
2026-11-21 0:05 ` [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface Brian Mak
@ 2026-11-21 0:38 ` Pali Rohár
2026-11-21 0:45 ` Brian Mak
2026-11-21 13:49 ` Armin Wolf
1 sibling, 1 reply; 31+ messages in thread
From: Pali Rohár @ 2026-11-21 0:38 UTC (permalink / raw)
To: Brian Mak
Cc: Hans de Goede, Ilpo Järvinen, Kurt Borja, Stuart Hayes,
Matthew Garrett, Lyndon Sanche, Armin Wolf, Prasanth Ksr,
Jonathan Corbet, Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel
On Friday 20 November 2026 16:05:52 Brian Mak wrote:
> On Dell RTX Spark laptops, the SMBIOS calling interface completes every
> request with an all-zero buffer, even for requests that should fail.
> Drivers that rely on it, such as dell-laptop and dell-pc, end up
> reporting bogus state, like battery charge modes and thermal modes.
Hello, is Dell aware of this firmware issue? And it is going to be fixed?
> Add a DMI quirk list for platforms with a non-functional calling
> interface, and export dell_smbios_calls_functional() so that consumers
> can avoid loading on them. dell-smbios itself still loads, as dell-wmi
> depends on it.
>
> Signed-off-by: Brian Mak <bmak@nvidia.com>
> ---
> drivers/platform/dell/dell-smbios-base.c | 22 ++++++++++++++++++++++
> drivers/platform/dell/dell-smbios.h | 1 +
> 2 files changed, 23 insertions(+)
>
> diff --git a/drivers/platform/dell/dell-smbios-base.c b/drivers/platform/dell/dell-smbios-base.c
> index c8e93c12c445..e07cbb0e8a6a 100644
> --- a/drivers/platform/dell/dell-smbios-base.c
> +++ b/drivers/platform/dell/dell-smbios-base.c
> @@ -390,6 +390,28 @@ bool dell_smbios_class_is_supported(u16 class)
> }
> EXPORT_SYMBOL_GPL(dell_smbios_class_is_supported);
>
> +/*
> + * Some Dell firmware completes its proprietary SMBIOS calls with all zeroes,
> + * so any value read through it (tokens, battery and thermal modes)
> + * is invalid.
> + */
> +static const struct dmi_system_id dell_smbios_calls_broken_list[] = {
> + {
> + .ident = "Dell XPS 16 DX16263",
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
> + DMI_MATCH(DMI_PRODUCT_NAME, "XPS 16 DX16263"),
> + },
> + },
> + { }
> +};
> +
> +bool dell_smbios_calls_functional(void)
> +{
> + return !dmi_check_system(dell_smbios_calls_broken_list);
> +}
> +EXPORT_SYMBOL_GPL(dell_smbios_calls_functional);
> +
> static void __init parse_da_table(const struct dmi_header *dm)
> {
> /* Final token is a terminator, so we don't want to copy it */
> diff --git a/drivers/platform/dell/dell-smbios.h b/drivers/platform/dell/dell-smbios.h
> index 1e64803bc00d..26f54364ffde 100644
> --- a/drivers/platform/dell/dell-smbios.h
> +++ b/drivers/platform/dell/dell-smbios.h
> @@ -89,6 +89,7 @@ int dell_laptop_register_notifier(struct notifier_block *nb);
> int dell_laptop_unregister_notifier(struct notifier_block *nb);
> void dell_laptop_call_notifier(unsigned long action, void *data);
> bool dell_smbios_class_is_supported(u16 class);
> +bool dell_smbios_calls_functional(void);
>
> /* for the supported backends */
> #ifdef CONFIG_DELL_SMBIOS_WMI
> --
> 2.53.0
>
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
2026-11-21 0:38 ` Pali Rohár
@ 2026-11-21 0:45 ` Brian Mak
2026-11-21 0:51 ` Pali Rohár
0 siblings, 1 reply; 31+ messages in thread
From: Brian Mak @ 2026-11-21 0:45 UTC (permalink / raw)
To: Pali Rohár
Cc: Hans de Goede, Ilpo Järvinen, Kurt Borja, Stuart Hayes,
Matthew Garrett, Lyndon Sanche, Armin Wolf, Prasanth Ksr,
Jonathan Corbet, Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel
On 11/20/26 16:38, Pali Rohár wrote:
> On Friday 20 November 2026 16:05:52 Brian Mak wrote:
>> On Dell RTX Spark laptops, the SMBIOS calling interface completes every
>> request with an all-zero buffer, even for requests that should fail.
>> Drivers that rely on it, such as dell-laptop and dell-pc, end up
>> reporting bogus state, like battery charge modes and thermal modes.
>
> Hello, is Dell aware of this firmware issue? And it is going to be fixed?
I will be reporting this to Dell and will update back when I hear back.
Thanks,
Brian
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
2026-11-21 0:05 ` [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent Brian Mak
@ 2026-11-21 0:48 ` Pali Rohár
2026-11-23 19:11 ` Brian Mak
2026-11-21 1:38 ` Randy Dunlap
1 sibling, 1 reply; 31+ messages in thread
From: Pali Rohár @ 2026-11-21 0:48 UTC (permalink / raw)
To: Brian Mak
Cc: Hans de Goede, Ilpo Järvinen, Kurt Borja, Stuart Hayes,
Matthew Garrett, Lyndon Sanche, Armin Wolf, Prasanth Ksr,
Jonathan Corbet, Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel
On Friday 20 November 2026 16:05:50 Brian Mak wrote:
> CONFIG_DELL_LAPTOP is currently not available on ARM64, due to a
> dependency on CONFIG_SERIO_I8042. This dependency is actually not
> necessary, as there is a fallback. Make it optional.
i8042 is used for controlling touchpad LED and for receiving rfkill
events when the dell-rbtn is not supported on the particular machine.
Touchpad led is available on more Vostro and Inspirion machines and
there is no fallback or detection of i8042 at all. Even there is no
error checking.
And for receiving rfkill events it is same situation.
So the dell-laptop driver expects that the SERIO_I8042 is enabled and
compiled in.
If none of these functionality is available on arm64 HW, then it makes
sense to make the SERIO_I8042 only for x86. And then in the dell-laptop
driver marking the x86 specific dependency via ifdefs. Which allows to
compile driver on arm64 without those specific functionalities.
> Signed-off-by: Brian Mak <bmak@nvidia.com>
> ---
> drivers/platform/dell/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/dell/Kconfig b/drivers/platform/dell/Kconfig
> index 7030f817b6af..0223e2373508 100644
> --- a/drivers/platform/dell/Kconfig
> +++ b/drivers/platform/dell/Kconfig
> @@ -77,7 +77,7 @@ config DELL_LAPTOP
> depends on ACPI_VIDEO || ACPI_VIDEO = n
> depends on RFKILL || RFKILL = n
> depends on DELL_WMI || DELL_WMI = n
> - depends on SERIO_I8042
> + depends on SERIO_I8042 || SERIO_I8042 = n
> depends on DELL_SMBIOS
> select POWER_SUPPLY
> select LEDS_CLASS
> --
> 2.53.0
>
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
2026-11-21 0:45 ` Brian Mak
@ 2026-11-21 0:51 ` Pali Rohár
0 siblings, 0 replies; 31+ messages in thread
From: Pali Rohár @ 2026-11-21 0:51 UTC (permalink / raw)
To: Brian Mak
Cc: Hans de Goede, Ilpo Järvinen, Kurt Borja, Stuart Hayes,
Matthew Garrett, Lyndon Sanche, Armin Wolf, Prasanth Ksr,
Jonathan Corbet, Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel
On Saturday 21 November 2026 00:45:05 Brian Mak wrote:
> On 11/20/26 16:38, Pali Rohár wrote:
> > On Friday 20 November 2026 16:05:52 Brian Mak wrote:
> >> On Dell RTX Spark laptops, the SMBIOS calling interface completes every
> >> request with an all-zero buffer, even for requests that should fail.
> >> Drivers that rely on it, such as dell-laptop and dell-pc, end up
> >> reporting bogus state, like battery charge modes and thermal modes.
> >
> > Hello, is Dell aware of this firmware issue? And it is going to be fixed?
>
> I will be reporting this to Dell and will update back when I hear back.
>
> Thanks,
> Brian
Perfect, thank you! It is important to report any such issue because lot
of times hardware / firmware developers do not know about such issues
which linux driver development uncover. This also helps with maintenance
of linux drivers, because there is a chance that new models would have
bugs fixed and the list of affected machines in driver would not grow up.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 1/8] platform/x86: dell: Make uart-backlight x86 only
2026-11-21 0:05 ` [PATCH 1/8] platform/x86: dell: Make uart-backlight x86 only Brian Mak
@ 2026-11-21 1:36 ` Randy Dunlap
2026-11-21 1:36 ` Randy Dunlap
0 siblings, 1 reply; 31+ messages in thread
From: Randy Dunlap @ 2026-11-21 1:36 UTC (permalink / raw)
To: Brian Mak, Hans de Goede, Ilpo Järvinen
Cc: Kurt Borja, Stuart Hayes, Matthew Garrett, Pali Rohár,
Lyndon Sanche, Armin Wolf, Prasanth Ksr, Jonathan Corbet,
Shuah Khan, platform-driver-x86, Dell.Client.Kernel, linux-doc,
linux-kernel
On 11/20/26 4:05 PM, Brian Mak wrote:
> Make dell-uart-backlight x86 only, as it uses some x86 helpers.
>
> Signed-off-by: Brian Mak <bmak@nvidia.com>
> ---
> drivers/platform/x86/dell/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/platform/x86/dell/Kconfig b/drivers/platform/x86/dell/Kconfig
> index 9f0016056d7e..4c28d4c008fc 100644
> --- a/drivers/platform/x86/dell/Kconfig
> +++ b/drivers/platform/x86/dell/Kconfig
> @@ -188,6 +188,7 @@ config DELL_UART_BACKLIGHT
> depends on ACPI_VIDEO
> depends on BACKLIGHT_CLASS_DEVICE
> depends on SERIAL_DEV_BUS
> + depends on X86
DELL_UART_BACKLIGHT already depends on
X86_PLATFORM_DEVICES && X86_PLATFORM_DRIVERS_DELL, and
X86_PLATFORM_DEVICES depends on X86, so this should not
be needed.
Have you found a problem that you are trying to solve
with this?
> help
> Say Y here if you want to support Dell AIO UART backlight interface.
> The Dell AIO machines released after 2017 come with a UART interface
--
~Randy
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 1/8] platform/x86: dell: Make uart-backlight x86 only
2026-11-21 1:36 ` Randy Dunlap
@ 2026-11-21 1:36 ` Randy Dunlap
0 siblings, 0 replies; 31+ messages in thread
From: Randy Dunlap @ 2026-11-21 1:36 UTC (permalink / raw)
To: Brian Mak, Hans de Goede, Ilpo Järvinen
Cc: Kurt Borja, Stuart Hayes, Matthew Garrett, Pali Rohár,
Lyndon Sanche, Armin Wolf, Prasanth Ksr, Jonathan Corbet,
Shuah Khan, platform-driver-x86, Dell.Client.Kernel, linux-doc,
linux-kernel
On 11/20/26 5:36 PM, Randy Dunlap wrote:
>
>
> On 11/20/26 4:05 PM, Brian Mak wrote:
>> Make dell-uart-backlight x86 only, as it uses some x86 helpers.
>>
>> Signed-off-by: Brian Mak <bmak@nvidia.com>
>> ---
>> drivers/platform/x86/dell/Kconfig | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/platform/x86/dell/Kconfig b/drivers/platform/x86/dell/Kconfig
>> index 9f0016056d7e..4c28d4c008fc 100644
>> --- a/drivers/platform/x86/dell/Kconfig
>> +++ b/drivers/platform/x86/dell/Kconfig
>> @@ -188,6 +188,7 @@ config DELL_UART_BACKLIGHT
>> depends on ACPI_VIDEO
>> depends on BACKLIGHT_CLASS_DEVICE
>> depends on SERIAL_DEV_BUS
>> + depends on X86
>
> DELL_UART_BACKLIGHT already depends on
> X86_PLATFORM_DEVICES && X86_PLATFORM_DRIVERS_DELL, and
> X86_PLATFORM_DEVICES depends on X86, so this should not
> be needed.
> Have you found a problem that you are trying to solve
> with this?
Aha, see patch 2!
>
>> help
>> Say Y here if you want to support Dell AIO UART backlight interface.
>> The Dell AIO machines released after 2017 come with a UART interface
>
--
~Randy
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
2026-11-21 0:05 ` [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent Brian Mak
2026-11-21 0:48 ` Pali Rohár
@ 2026-11-21 1:38 ` Randy Dunlap
2026-11-23 18:10 ` Brian Mak
1 sibling, 1 reply; 31+ messages in thread
From: Randy Dunlap @ 2026-11-21 1:38 UTC (permalink / raw)
To: Brian Mak, Hans de Goede, Ilpo Järvinen
Cc: Kurt Borja, Stuart Hayes, Matthew Garrett, Pali Rohár,
Lyndon Sanche, Armin Wolf, Prasanth Ksr, Jonathan Corbet,
Shuah Khan, platform-driver-x86, Dell.Client.Kernel, linux-doc,
linux-kernel
On 11/20/26 4:05 PM, Brian Mak wrote:
> CONFIG_DELL_LAPTOP is currently not available on ARM64, due to a
> dependency on CONFIG_SERIO_I8042. This dependency is actually not
> necessary, as there is a fallback. Make it optional.
>
> Signed-off-by: Brian Mak <bmak@nvidia.com>
> ---
> drivers/platform/dell/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/dell/Kconfig b/drivers/platform/dell/Kconfig
> index 7030f817b6af..0223e2373508 100644
> --- a/drivers/platform/dell/Kconfig
> +++ b/drivers/platform/dell/Kconfig
> @@ -77,7 +77,7 @@ config DELL_LAPTOP
> depends on ACPI_VIDEO || ACPI_VIDEO = n
> depends on RFKILL || RFKILL = n
> depends on DELL_WMI || DELL_WMI = n
> - depends on SERIO_I8042
> + depends on SERIO_I8042 || SERIO_I8042 = n
Could also be
depends on SERIO_I8042 if SERIO_I8042
> depends on DELL_SMBIOS
> select POWER_SUPPLY
> select LEDS_CLASS
--
~Randy
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 2/8] platform: dell: Move out of x86 directory
2026-11-21 0:05 ` [PATCH 2/8] platform: dell: Move out of x86 directory Brian Mak
@ 2026-11-21 10:05 ` kernel test robot
0 siblings, 0 replies; 31+ messages in thread
From: kernel test robot @ 2026-11-21 10:05 UTC (permalink / raw)
To: Brian Mak, Hans de Goede, Ilpo Järvinen
Cc: oe-kbuild-all, Kurt Borja, Stuart Hayes, Matthew Garrett,
Pali Rohár, Lyndon Sanche, Armin Wolf, Prasanth Ksr,
Jonathan Corbet, Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel, Brian Mak
Hi Brian,
kernel test robot noticed the following build warnings:
[auto build test WARNING on d0f871bfb831705d9f55479f5b2b40f636ea7b16]
url: https://github.com/intel-lab-lkp/linux/commits/Brian-Mak/platform-x86-dell-Make-uart-backlight-x86-only/20261120-160547
base: d0f871bfb831705d9f55479f5b2b40f636ea7b16
patch link: https://lore.kernel.org/r/20261121000556.173028-3-bmak%40nvidia.com
patch subject: [PATCH 2/8] platform: dell: Move out of x86 directory
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20261121/202611211817.BLHa92e0-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261121/202611211817.BLHa92e0-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611211817.BLHa92e0-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> Warning: drivers/platform/dell/dcdbas.c:103 function parameter 'size' not described in 'smi_data_buf_realloc'
>> Warning: drivers/platform/dell/dcdbas.c:284 function parameter 'smi_cmd' not described in 'dcdbas_smi_request'
>> Warning: drivers/platform/dell/dcdbas.c:316 function parameter 'dev' not described in 'smi_request_store'
>> Warning: drivers/platform/dell/dcdbas.c:316 function parameter 'attr' not described in 'smi_request_store'
>> Warning: drivers/platform/dell/dcdbas.c:316 function parameter 'buf' not described in 'smi_request_store'
>> Warning: drivers/platform/dell/dcdbas.c:316 function parameter 'count' not described in 'smi_request_store'
>> Warning: drivers/platform/dell/dcdbas.c:615 function parameter 'nb' not described in 'dcdbas_reboot_notify'
>> Warning: drivers/platform/dell/dcdbas.c:615 function parameter 'code' not described in 'dcdbas_reboot_notify'
>> Warning: drivers/platform/dell/dcdbas.c:615 function parameter 'unused' not described in 'dcdbas_reboot_notify'
>> Warning: drivers/platform/dell/dcdbas.c:103 function parameter 'size' not described in 'smi_data_buf_realloc'
>> Warning: drivers/platform/dell/dcdbas.c:284 function parameter 'smi_cmd' not described in 'dcdbas_smi_request'
>> Warning: drivers/platform/dell/dcdbas.c:316 function parameter 'dev' not described in 'smi_request_store'
>> Warning: drivers/platform/dell/dcdbas.c:316 function parameter 'attr' not described in 'smi_request_store'
>> Warning: drivers/platform/dell/dcdbas.c:316 function parameter 'buf' not described in 'smi_request_store'
>> Warning: drivers/platform/dell/dcdbas.c:316 function parameter 'count' not described in 'smi_request_store'
>> Warning: drivers/platform/dell/dcdbas.c:615 function parameter 'nb' not described in 'dcdbas_reboot_notify'
>> Warning: drivers/platform/dell/dcdbas.c:615 function parameter 'code' not described in 'dcdbas_reboot_notify'
>> Warning: drivers/platform/dell/dcdbas.c:615 function parameter 'unused' not described in 'dcdbas_reboot_notify'
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 5/8] platform: dell: smbios-wmi: Fix probe on RTX Spark
2026-11-21 0:05 ` [PATCH 5/8] platform: dell: smbios-wmi: Fix probe on RTX Spark Brian Mak
@ 2026-11-21 13:44 ` Armin Wolf
2026-11-23 18:11 ` Brian Mak
0 siblings, 1 reply; 31+ messages in thread
From: Armin Wolf @ 2026-11-21 13:44 UTC (permalink / raw)
To: Brian Mak, Hans de Goede, Ilpo Järvinen
Cc: Kurt Borja, Stuart Hayes, Matthew Garrett, Pali Rohár,
Lyndon Sanche, Prasanth Ksr, Jonathan Corbet, Shuah Khan,
Randy Dunlap, platform-driver-x86, Dell.Client.Kernel, linux-doc,
linux-kernel
Am 21.11.26 um 01:05 schrieb Brian Mak:
> dell-smbios-wmi fails to probe on RTX Spark due to a hardcoded SMBIOS
> handle (0xB100) of type 0xB1 (misc BIOS flags) that is numbered
> differently on Dell RTX Spark laptops. Instead, search for all SMBIOS
> handles of type 0xB1, and if there is just one, use that one. If handle
> 0xB100 exists, always use that.
>
> This fixes dell-smbios-wmi probe on Dell RTX Spark laptops.
Hi,
i think you can drop the special handling of handle 0xB100 and instead
just check if the SMBIOS type is 0xB1. AFAIK the PCI code also parses
some parts of the 0xB1 type, and there the handle value is irrelevant.
Thanks,
Armin Wolf
> Signed-off-by: Brian Mak <bmak@nvidia.com>
> ---
> drivers/platform/dell/dell-smbios-wmi.c | 37 +++++++++++++++++++------
> 1 file changed, 29 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/platform/dell/dell-smbios-wmi.c b/drivers/platform/dell/dell-smbios-wmi.c
> index 7a5c6d7730ab..ff859d9039b9 100644
> --- a/drivers/platform/dell/dell-smbios-wmi.c
> +++ b/drivers/platform/dell/dell-smbios-wmi.c
> @@ -273,7 +273,13 @@ static const struct wmi_device_id dell_smbios_wmi_id_table[] = {
> { },
> };
>
> -static void parse_b1_table(const struct dmi_header *dm)
> +struct b1_search {
> + bool found_b100;
> + unsigned int count;
> + u16 flags0;
> +};
> +
> +static void parse_b1_table(const struct dmi_header *dm, struct b1_search *search)
> {
> struct misc_bios_flags_structure *flags =
> container_of(dm, struct misc_bios_flags_structure, header);
> @@ -281,17 +287,21 @@ static void parse_b1_table(const struct dmi_header *dm)
> /* 4 bytes header, 8 bytes flags */
> if (dm->length < 12)
> return;
> - if (dm->handle != 0xb100)
> - return;
> - if ((flags->flags0 & FLAG_HAS_ACPI_WMI))
> - wmi_supported = 1;
> +
> + search->count++;
> + if (dm->handle == 0xb100) {
> + search->found_b100 = true;
> + search->flags0 = flags->flags0;
> + } else if (!search->found_b100) {
> + search->flags0 = flags->flags0;
> + }
> }
>
> -static void find_b1(const struct dmi_header *dm, void *dummy)
> +static void find_b1(const struct dmi_header *dm, void *data)
> {
> switch (dm->type) {
> case 0xb1: /* misc bios flags */
> - parse_b1_table(dm);
> + parse_b1_table(dm, data);
> break;
> }
> }
> @@ -308,7 +318,18 @@ static struct wmi_driver dell_smbios_wmi_driver = {
>
> int init_dell_smbios_wmi(void)
> {
> - dmi_walk(find_b1, NULL);
> + struct b1_search search = {};
> +
> + dmi_walk(find_b1, &search);
> +
> + /*
> + * Dell x86 firmware places the misc BIOS flags at handle 0xb100. However,
> + * with RTX Spark, it is not at handle 0xb100, so fall back to the only type
> + * 0xb1 handle present if there is only one.
> + */
> + if ((search.found_b100 || search.count == 1) &&
> + (search.flags0 & FLAG_HAS_ACPI_WMI))
> + wmi_supported = 1;
>
> if (!wmi_supported)
> return -ENODEV;
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
2026-11-21 0:05 ` [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface Brian Mak
2026-11-21 0:38 ` Pali Rohár
@ 2026-11-21 13:49 ` Armin Wolf
1 sibling, 0 replies; 31+ messages in thread
From: Armin Wolf @ 2026-11-21 13:49 UTC (permalink / raw)
To: Brian Mak, Hans de Goede, Ilpo Järvinen
Cc: Kurt Borja, Stuart Hayes, Matthew Garrett, Pali Rohár,
Lyndon Sanche, Prasanth Ksr, Jonathan Corbet, Shuah Khan,
Randy Dunlap, platform-driver-x86, Dell.Client.Kernel, linux-doc,
linux-kernel
Am 21.11.26 um 01:05 schrieb Brian Mak:
> On Dell RTX Spark laptops, the SMBIOS calling interface completes every
> request with an all-zero buffer, even for requests that should fail.
> Drivers that rely on it, such as dell-laptop and dell-pc, end up
> reporting bogus state, like battery charge modes and thermal modes.
>
> Add a DMI quirk list for platforms with a non-functional calling
> interface, and export dell_smbios_calls_functional() so that consumers
> can avoid loading on them. dell-smbios itself still loads, as dell-wmi
> depends on it.
Hi,
do you have access to such a machine? I would be _very_ interested in the output
of acpidump on this machine, maybe this could be an issue with ACPICA.
Alternatively, maybe the wrong backend get selected. Currently the dell-smbios-smm
backend will try to read a specific token in test_wsmt_enabled() to determine if
the WSMT ACPI table is active. This might not work on arm64 machines, so maybe parsing
the real WSMT ACPI table would fix this problem?
Thanks,
Armin Wolf
> Signed-off-by: Brian Mak <bmak@nvidia.com>
> ---
> drivers/platform/dell/dell-smbios-base.c | 22 ++++++++++++++++++++++
> drivers/platform/dell/dell-smbios.h | 1 +
> 2 files changed, 23 insertions(+)
>
> diff --git a/drivers/platform/dell/dell-smbios-base.c b/drivers/platform/dell/dell-smbios-base.c
> index c8e93c12c445..e07cbb0e8a6a 100644
> --- a/drivers/platform/dell/dell-smbios-base.c
> +++ b/drivers/platform/dell/dell-smbios-base.c
> @@ -390,6 +390,28 @@ bool dell_smbios_class_is_supported(u16 class)
> }
> EXPORT_SYMBOL_GPL(dell_smbios_class_is_supported);
>
> +/*
> + * Some Dell firmware completes its proprietary SMBIOS calls with all zeroes,
> + * so any value read through it (tokens, battery and thermal modes)
> + * is invalid.
> + */
> +static const struct dmi_system_id dell_smbios_calls_broken_list[] = {
> + {
> + .ident = "Dell XPS 16 DX16263",
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
> + DMI_MATCH(DMI_PRODUCT_NAME, "XPS 16 DX16263"),
> + },
> + },
> + { }
> +};
> +
> +bool dell_smbios_calls_functional(void)
> +{
> + return !dmi_check_system(dell_smbios_calls_broken_list);
> +}
> +EXPORT_SYMBOL_GPL(dell_smbios_calls_functional);
> +
> static void __init parse_da_table(const struct dmi_header *dm)
> {
> /* Final token is a terminator, so we don't want to copy it */
> diff --git a/drivers/platform/dell/dell-smbios.h b/drivers/platform/dell/dell-smbios.h
> index 1e64803bc00d..26f54364ffde 100644
> --- a/drivers/platform/dell/dell-smbios.h
> +++ b/drivers/platform/dell/dell-smbios.h
> @@ -89,6 +89,7 @@ int dell_laptop_register_notifier(struct notifier_block *nb);
> int dell_laptop_unregister_notifier(struct notifier_block *nb);
> void dell_laptop_call_notifier(unsigned long action, void *data);
> bool dell_smbios_class_is_supported(u16 class);
> +bool dell_smbios_calls_functional(void);
>
> /* for the supported backends */
> #ifdef CONFIG_DELL_SMBIOS_WMI
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
2026-11-21 1:38 ` Randy Dunlap
@ 2026-11-23 18:10 ` Brian Mak
0 siblings, 0 replies; 31+ messages in thread
From: Brian Mak @ 2026-11-23 18:10 UTC (permalink / raw)
To: Randy Dunlap, Hans de Goede, Ilpo Järvinen
Cc: Kurt Borja, Stuart Hayes, Matthew Garrett, Pali Rohár,
Lyndon Sanche, Armin Wolf, Prasanth Ksr, Jonathan Corbet,
Shuah Khan, platform-driver-x86, Dell.Client.Kernel, linux-doc,
linux-kernel
On 11/20/26 17:38, Randy Dunlap wrote:
>
>
> On 11/20/26 4:05 PM, Brian Mak wrote:
>> CONFIG_DELL_LAPTOP is currently not available on ARM64, due to a
>> dependency on CONFIG_SERIO_I8042. This dependency is actually not
>> necessary, as there is a fallback. Make it optional.
>>
>> Signed-off-by: Brian Mak <bmak@nvidia.com>
>> ---
>> drivers/platform/dell/Kconfig | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/platform/dell/Kconfig b/drivers/platform/dell/Kconfig
>> index 7030f817b6af..0223e2373508 100644
>> --- a/drivers/platform/dell/Kconfig
>> +++ b/drivers/platform/dell/Kconfig
>> @@ -77,7 +77,7 @@ config DELL_LAPTOP
>> depends on ACPI_VIDEO || ACPI_VIDEO = n
>> depends on RFKILL || RFKILL = n
>> depends on DELL_WMI || DELL_WMI = n
>> - depends on SERIO_I8042
>> + depends on SERIO_I8042 || SERIO_I8042 = n
>
> Could also be
> depends on SERIO_I8042 if SERIO_I8042
The lines above it use the current pattern, so I prefer it that way.
Thanks,
Brian
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 5/8] platform: dell: smbios-wmi: Fix probe on RTX Spark
2026-11-21 13:44 ` Armin Wolf
@ 2026-11-23 18:11 ` Brian Mak
0 siblings, 0 replies; 31+ messages in thread
From: Brian Mak @ 2026-11-23 18:11 UTC (permalink / raw)
To: Armin Wolf, Hans de Goede, Ilpo Järvinen
Cc: Kurt Borja, Stuart Hayes, Matthew Garrett, Pali Rohár,
Lyndon Sanche, Prasanth Ksr, Jonathan Corbet, Shuah Khan,
Randy Dunlap, platform-driver-x86, Dell.Client.Kernel, linux-doc,
linux-kernel
On 11/21/26 05:44, Armin Wolf wrote:
> Am 21.11.26 um 01:05 schrieb Brian Mak:
>
>> dell-smbios-wmi fails to probe on RTX Spark due to a hardcoded SMBIOS
>> handle (0xB100) of type 0xB1 (misc BIOS flags) that is numbered
>> differently on Dell RTX Spark laptops. Instead, search for all SMBIOS
>> handles of type 0xB1, and if there is just one, use that one. If handle
>> 0xB100 exists, always use that.
>>
>> This fixes dell-smbios-wmi probe on Dell RTX Spark laptops.
>
> Hi,
>
> i think you can drop the special handling of handle 0xB100 and instead
> just check if the SMBIOS type is 0xB1. AFAIK the PCI code also parses
> some parts of the 0xB1 type, and there the handle value is irrelevant.
>
> Thanks,
> Armin Wolf
Will do for v2.
Thanks,
Brian
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
2026-11-21 0:48 ` Pali Rohár
@ 2026-11-23 19:11 ` Brian Mak
2026-11-23 19:39 ` Pali Rohár
0 siblings, 1 reply; 31+ messages in thread
From: Brian Mak @ 2026-11-23 19:11 UTC (permalink / raw)
To: Pali Rohár
Cc: Hans de Goede, Ilpo Järvinen, Kurt Borja, Stuart Hayes,
Matthew Garrett, Lyndon Sanche, Armin Wolf, Prasanth Ksr,
Jonathan Corbet, Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel
On 11/20/26 16:48, Pali Rohár wrote:
> On Friday 20 November 2026 16:05:50 Brian Mak wrote:
>> CONFIG_DELL_LAPTOP is currently not available on ARM64, due to a
>> dependency on CONFIG_SERIO_I8042. This dependency is actually not
>> necessary, as there is a fallback. Make it optional.
>
> i8042 is used for controlling touchpad LED and for receiving rfkill
> events when the dell-rbtn is not supported on the particular machine.
>
> Touchpad led is available on more Vostro and Inspirion machines and
> there is no fallback or detection of i8042 at all. Even there is no
> error checking.
>
> And for receiving rfkill events it is same situation.
>
> So the dell-laptop driver expects that the SERIO_I8042 is enabled and
> compiled in.
>
> If none of these functionality is available on arm64 HW, then it makes
> sense to make the SERIO_I8042 only for x86. And then in the dell-laptop
> driver marking the x86 specific dependency via ifdefs. Which allows to
> compile driver on arm64 without those specific functionalities.
SERIO_I8042 already can't be enabled on arm64, as
ARCH_MIGHT_HAVE_PC_SERIO is not set. With the current patch, the driver
builds on arm64, but as you mentioned, there's a couple gaps that need
to be addressed with rfkill and touchpad LED.
For rfkill currently, the driver fails to probe, due to a failed
i8042_install_filter call, if the device is a Latitude or a Precision
(checked by DMI) or force_rfkill is enabled, SMBIOS reports an rfkill
switch, and dell-rbtn is not supported. That doesn't apply for the XPS
16 Creator Edition, but it may for an ARM64 Latitude or Precision
product. For v2, if dell-rbtn and i8042 are both unavailable, I can make
rfkill setup fail without failing probe.
For the touchpad LED currently, the i8042_command() stub will return
-ENODEV and do nothing. This will register an LED that does nothing. For
v2, I can gate the LED registration behind a SERIO_I8042 ifdef.
For the Kconfig, since i8042 is required on some x86 Dell platforms, I
can change the Kconfig dependency to be like such, to ensure that
SERIO_I8042 is required on x86 and optional elsewhere (in case there's
another arch introduced by Dell that supports i8042 in the future):
depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
Please let me know if these changes are good with you.
Thanks,
Brian
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
2026-11-23 19:11 ` Brian Mak
@ 2026-11-23 19:39 ` Pali Rohár
2026-11-23 20:33 ` Brian Mak
` (5 more replies)
0 siblings, 6 replies; 31+ messages in thread
From: Pali Rohár @ 2026-11-23 19:39 UTC (permalink / raw)
To: Brian Mak
Cc: Hans de Goede, Ilpo Järvinen, Kurt Borja, Stuart Hayes,
Matthew Garrett, Lyndon Sanche, Armin Wolf, Prasanth Ksr,
Jonathan Corbet, Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel
On Monday 23 November 2026 19:11:00 Brian Mak wrote:
> On 11/20/26 16:48, Pali Rohár wrote:
> > On Friday 20 November 2026 16:05:50 Brian Mak wrote:
> >> CONFIG_DELL_LAPTOP is currently not available on ARM64, due to a
> >> dependency on CONFIG_SERIO_I8042. This dependency is actually not
> >> necessary, as there is a fallback. Make it optional.
> >
> > i8042 is used for controlling touchpad LED and for receiving rfkill
> > events when the dell-rbtn is not supported on the particular machine.
> >
> > Touchpad led is available on more Vostro and Inspirion machines and
> > there is no fallback or detection of i8042 at all. Even there is no
> > error checking.
> >
> > And for receiving rfkill events it is same situation.
> >
> > So the dell-laptop driver expects that the SERIO_I8042 is enabled and
> > compiled in.
> >
> > If none of these functionality is available on arm64 HW, then it makes
> > sense to make the SERIO_I8042 only for x86. And then in the dell-laptop
> > driver marking the x86 specific dependency via ifdefs. Which allows to
> > compile driver on arm64 without those specific functionalities.
>
> SERIO_I8042 already can't be enabled on arm64,
That makes sense. i8042 is x86 specific.
> as ARCH_MIGHT_HAVE_PC_SERIO is not set. With the current patch, the driver
> builds on arm64, but as you mentioned, there's a couple gaps that need
> to be addressed with rfkill and touchpad LED.
>
> For rfkill currently, the driver fails to probe, due to a failed
> i8042_install_filter call, if the device is a Latitude or a Precision
> (checked by DMI) or force_rfkill is enabled, SMBIOS reports an rfkill
> switch, and dell-rbtn is not supported. That doesn't apply for the XPS
> 16 Creator Edition, but it may for an ARM64 Latitude or Precision
> product. For v2, if dell-rbtn and i8042 are both unavailable, I can make
> rfkill setup fail without failing probe.
Well, here the main point is: who (from HW point of view) will report
the rfkill event? It cannot be i8042 because this controller is not
present on arm64. My guess is that dell-rbtn interface is also not
present as I was told that Dell abandoned this interface even on x86.
So for arm64 platform there has to be some other source of rfkill
events. Or rfkill is not provided at all.
I do not know... because I do not have this hardware. So this question
is for somebody who is writing drivers for this platform...
In any case, it does not make any sense to provide "fake" or "dummy"
device by linux just to make driver compilable.
> For the touchpad LED currently, the i8042_command() stub will return
> -ENODEV and do nothing. This will register an LED that does nothing. For
> v2, I can gate the LED registration behind a SERIO_I8042 ifdef.
I think that this is correct way. The i8042 touchpad led should not be
enabled when the i8042 HW is not present at all. And that touchpad led
is only for few models based on whitelist.
> For the Kconfig, since i8042 is required on some x86 Dell platforms, I
> can change the Kconfig dependency to be like such, to ensure that
> SERIO_I8042 is required on x86 and optional elsewhere (in case there's
> another arch introduced by Dell that supports i8042 in the future):
>
> depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
>
> Please let me know if these changes are good with you.
>
> Thanks,
> Brian
My personal opinion is to make i8042 dependency only on x86. And do not
even try to enable i8042 on non-x86 platforms. All dell drivers were in
x86 subdirectory which cause that explicit x86 was not written in
Kconfig (as it was not needed).
Now when you are moving dell drivers out of the x86 subdir, maybe it
could make sense to check if there are some other config options which
have also hidden dependency on x86.
Anyway, I highly doubt that any new platform / device (which is designed
from scratch; not rebranded or evoluted) would use i8042 for any such
API. Nowadays all those functionalities are based on ACPI or WMI APIs.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
2026-11-23 19:39 ` Pali Rohár
@ 2026-11-23 20:33 ` Brian Mak
2026-11-23 21:00 ` Pali Rohár
2026-11-23 20:36 ` Brian Mak
` (4 subsequent siblings)
5 siblings, 1 reply; 31+ messages in thread
From: Brian Mak @ 2026-11-23 20:33 UTC (permalink / raw)
To: Pali Rohár
Cc: Hans de Goede, Ilpo Järvinen, Kurt Borja, Stuart Hayes,
Matthew Garrett, Lyndon Sanche, Armin Wolf, Prasanth Ksr,
Jonathan Corbet, Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel
On 11/23/26 11:39, Pali Rohár wrote:
> On Monday 23 November 2026 19:11:00 Brian Mak wrote:
>> On 11/20/26 16:48, Pali Rohár wrote:
>>> On Friday 20 November 2026 16:05:50 Brian Mak wrote:
>>>> CONFIG_DELL_LAPTOP is currently not available on ARM64, due to a
>>>> dependency on CONFIG_SERIO_I8042. This dependency is actually not
>>>> necessary, as there is a fallback. Make it optional.
>>>
>>> i8042 is used for controlling touchpad LED and for receiving rfkill
>>> events when the dell-rbtn is not supported on the particular machine.
>>>
>>> Touchpad led is available on more Vostro and Inspirion machines and
>>> there is no fallback or detection of i8042 at all. Even there is no
>>> error checking.
>>>
>>> And for receiving rfkill events it is same situation.
>>>
>>> So the dell-laptop driver expects that the SERIO_I8042 is enabled and
>>> compiled in.
>>>
>>> If none of these functionality is available on arm64 HW, then it makes
>>> sense to make the SERIO_I8042 only for x86. And then in the dell-laptop
>>> driver marking the x86 specific dependency via ifdefs. Which allows to
>>> compile driver on arm64 without those specific functionalities.
>>
>> SERIO_I8042 already can't be enabled on arm64,
>
> That makes sense. i8042 is x86 specific.
>
>> as ARCH_MIGHT_HAVE_PC_SERIO is not set. With the current patch, the driver
>> builds on arm64, but as you mentioned, there's a couple gaps that need
>> to be addressed with rfkill and touchpad LED.
>>
>> For rfkill currently, the driver fails to probe, due to a failed
>> i8042_install_filter call, if the device is a Latitude or a Precision
>> (checked by DMI) or force_rfkill is enabled, SMBIOS reports an rfkill
>> switch, and dell-rbtn is not supported. That doesn't apply for the XPS
>> 16 Creator Edition, but it may for an ARM64 Latitude or Precision
>> product. For v2, if dell-rbtn and i8042 are both unavailable, I can make
>> rfkill setup fail without failing probe.
>
> Well, here the main point is: who (from HW point of view) will report
> the rfkill event? It cannot be i8042 because this controller is not
> present on arm64. My guess is that dell-rbtn interface is also not
> present as I was told that Dell abandoned this interface even on x86.
>
> So for arm64 platform there has to be some other source of rfkill
> events. Or rfkill is not provided at all.
>
> I do not know... because I do not have this hardware. So this question
> is for somebody who is writing drivers for this platform...
I see your point. I wasn't aware of the history with how dell-rbtn was
abandoned. The dell-rbtn interface is not present on my XPS 16 Creator
Edition either. There isn't an rfkill interface on this platform, to my
knowledge. When I suggested to make rfkill setup fail without failing
probe, that was for in case the dell-rbtn interface is available on a
future platform. Since you said that it's abandoned, I would agree that
there's no possible sources for rfkill events on ARM64 Dell platforms.
I can gate rfkill setup logic behind an ifdef as well then, for v2. Is
your preference to gate behind SERIO_I8042 or X86?
> In any case, it does not make any sense to provide "fake" or "dummy"
> device by linux just to make driver compilable.
I'm not sure I understand what you mean by this. Under my original
proposal of making rfkill setup fail without failing probe, no dummy or
non-functional devices would be exposed by the driver. rfkill setup
would fail gracefully, and the rfkill devices would go away with it. I
agree with you, but I'm not sure if I'm missing something here.
>> For the touchpad LED currently, the i8042_command() stub will return
>> -ENODEV and do nothing. This will register an LED that does nothing. For
>> v2, I can gate the LED registration behind a SERIO_I8042 ifdef.
>
> I think that this is correct way. The i8042 touchpad led should not be
> enabled when the i8042 HW is not present at all. And that touchpad led
> is only for few models based on whitelist.
>
>> For the Kconfig, since i8042 is required on some x86 Dell platforms, I
>> can change the Kconfig dependency to be like such, to ensure that
>> SERIO_I8042 is required on x86 and optional elsewhere (in case there's
>> another arch introduced by Dell that supports i8042 in the future):
>>
>> depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
>>
>> Please let me know if these changes are good with you.
>>
>> Thanks,
>> Brian
>
> My personal opinion is to make i8042 dependency only on x86. And do not
> even try to enable i8042 on non-x86 platforms. All dell drivers were in
> x86 subdirectory which cause that explicit x86 was not written in
> Kconfig (as it was not needed).
>
> Now when you are moving dell drivers out of the x86 subdir, maybe it
> could make sense to check if there are some other config options which
> have also hidden dependency on x86.
>
> Anyway, I highly doubt that any new platform / device (which is designed
> from scratch; not rebranded or evoluted) would use i8042 for any such
> API. Nowadays all those functionalities are based on ACPI or WMI APIs.
If I understand your suggestion correctly, you are asking, instead of
gating behind:
depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
You would gate behind:
depends on SERIO_I8042 || !X86
Thanks,
Brian
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
2026-11-23 19:39 ` Pali Rohár
2026-11-23 20:33 ` Brian Mak
@ 2026-11-23 20:36 ` Brian Mak
2026-11-23 20:38 ` Brian Mak
` (3 subsequent siblings)
5 siblings, 0 replies; 31+ messages in thread
From: Brian Mak @ 2026-11-23 20:36 UTC (permalink / raw)
To: Pali Rohár
Cc: Hans de Goede, Ilpo Järvinen, Kurt Borja, Stuart Hayes,
Matthew Garrett, Lyndon Sanche, Armin Wolf, Prasanth Ksr,
Jonathan Corbet, Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel
On 11/23/26 11:39, Pali Rohár wrote:
> On Monday 23 November 2026 19:11:00 Brian Mak wrote:
>> On 11/20/26 16:48, Pali Rohár wrote:
>>> On Friday 20 November 2026 16:05:50 Brian Mak wrote:
>>>> CONFIG_DELL_LAPTOP is currently not available on ARM64, due to a
>>>> dependency on CONFIG_SERIO_I8042. This dependency is actually not
>>>> necessary, as there is a fallback. Make it optional.
>>>
>>> i8042 is used for controlling touchpad LED and for receiving rfkill
>>> events when the dell-rbtn is not supported on the particular machine.
>>>
>>> Touchpad led is available on more Vostro and Inspirion machines and
>>> there is no fallback or detection of i8042 at all. Even there is no
>>> error checking.
>>>
>>> And for receiving rfkill events it is same situation.
>>>
>>> So the dell-laptop driver expects that the SERIO_I8042 is enabled and
>>> compiled in.
>>>
>>> If none of these functionality is available on arm64 HW, then it makes
>>> sense to make the SERIO_I8042 only for x86. And then in the dell-laptop
>>> driver marking the x86 specific dependency via ifdefs. Which allows to
>>> compile driver on arm64 without those specific functionalities.
>>
>> SERIO_I8042 already can't be enabled on arm64,
>
> That makes sense. i8042 is x86 specific.
>
>> as ARCH_MIGHT_HAVE_PC_SERIO is not set. With the current patch, the driver
>> builds on arm64, but as you mentioned, there's a couple gaps that need
>> to be addressed with rfkill and touchpad LED.
>>
>> For rfkill currently, the driver fails to probe, due to a failed
>> i8042_install_filter call, if the device is a Latitude or a Precision
>> (checked by DMI) or force_rfkill is enabled, SMBIOS reports an rfkill
>> switch, and dell-rbtn is not supported. That doesn't apply for the XPS
>> 16 Creator Edition, but it may for an ARM64 Latitude or Precision
>> product. For v2, if dell-rbtn and i8042 are both unavailable, I can make
>> rfkill setup fail without failing probe.
>
> Well, here the main point is: who (from HW point of view) will report
> the rfkill event? It cannot be i8042 because this controller is not
> present on arm64. My guess is that dell-rbtn interface is also not
> present as I was told that Dell abandoned this interface even on x86.
>
> So for arm64 platform there has to be some other source of rfkill
> events. Or rfkill is not provided at all.
>
> I do not know... because I do not have this hardware. So this question
> is for somebody who is writing drivers for this platform...
I see your point. I wasn't aware of the history with how dell-rbtn was
abandoned. The dell-rbtn interface is not present on my XPS 16 Creator
Edition either. There isn't an rfkill interface on this platform, to my
knowledge. When I suggested to make rfkill setup fail without failing
probe, that was for in case the dell-rbtn interface is available on a
future platform. Since you said that it's abandoned, I would agree that
there's no possible sources for rfkill events on ARM64 Dell platforms.
I can gate rfkill setup logic behind an ifdef as well then, for v2. Is
your preference to gate behind SERIO_I8042 or X86?
> In any case, it does not make any sense to provide "fake" or "dummy"
> device by linux just to make driver compilable.
I'm not sure I understand what you mean by this. Under my original
proposal of making rfkill setup fail without failing probe, no dummy or
non-functional devices would be exposed by the driver. rfkill setup
would fail gracefully, and the rfkill devices would go away with it. I
agree with you, but I'm not sure if I'm missing something here.
>> For the touchpad LED currently, the i8042_command() stub will return
>> -ENODEV and do nothing. This will register an LED that does nothing. For
>> v2, I can gate the LED registration behind a SERIO_I8042 ifdef.
>
> I think that this is correct way. The i8042 touchpad led should not be
> enabled when the i8042 HW is not present at all. And that touchpad led
> is only for few models based on whitelist.
>
>> For the Kconfig, since i8042 is required on some x86 Dell platforms, I
>> can change the Kconfig dependency to be like such, to ensure that
>> SERIO_I8042 is required on x86 and optional elsewhere (in case there's
>> another arch introduced by Dell that supports i8042 in the future):
>>
>> depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
>>
>> Please let me know if these changes are good with you.
>>
>> Thanks,
>> Brian
>
> My personal opinion is to make i8042 dependency only on x86. And do not
> even try to enable i8042 on non-x86 platforms. All dell drivers were in
> x86 subdirectory which cause that explicit x86 was not written in
> Kconfig (as it was not needed).
>
> Now when you are moving dell drivers out of the x86 subdir, maybe it
> could make sense to check if there are some other config options which
> have also hidden dependency on x86.
>
> Anyway, I highly doubt that any new platform / device (which is designed
> from scratch; not rebranded or evoluted) would use i8042 for any such
> API. Nowadays all those functionalities are based on ACPI or WMI APIs.
If I understand your suggestion correctly, you are asking, instead of
gating behind:
depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
You would gate behind:
depends on SERIO_I8042 || !X86
and then add ifdefs for X86, wherever SERIO_I8042 is used?
Thanks,
Brian
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
2026-11-23 19:39 ` Pali Rohár
2026-11-23 20:33 ` Brian Mak
2026-11-23 20:36 ` Brian Mak
@ 2026-11-23 20:38 ` Brian Mak
2026-11-23 20:40 ` Brian Mak
` (2 subsequent siblings)
5 siblings, 0 replies; 31+ messages in thread
From: Brian Mak @ 2026-11-23 20:38 UTC (permalink / raw)
To: Pali Rohár
Cc: Hans de Goede, Ilpo Järvinen, Kurt Borja, Stuart Hayes,
Matthew Garrett, Lyndon Sanche, Armin Wolf, Prasanth Ksr,
Jonathan Corbet, Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel
On 11/23/26 11:39, Pali Rohár wrote:
> On Monday 23 November 2026 19:11:00 Brian Mak wrote:
>> On 11/20/26 16:48, Pali Rohár wrote:
>>> On Friday 20 November 2026 16:05:50 Brian Mak wrote:
>>>> CONFIG_DELL_LAPTOP is currently not available on ARM64, due to a
>>>> dependency on CONFIG_SERIO_I8042. This dependency is actually not
>>>> necessary, as there is a fallback. Make it optional.
>>>
>>> i8042 is used for controlling touchpad LED and for receiving rfkill
>>> events when the dell-rbtn is not supported on the particular machine.
>>>
>>> Touchpad led is available on more Vostro and Inspirion machines and
>>> there is no fallback or detection of i8042 at all. Even there is no
>>> error checking.
>>>
>>> And for receiving rfkill events it is same situation.
>>>
>>> So the dell-laptop driver expects that the SERIO_I8042 is enabled and
>>> compiled in.
>>>
>>> If none of these functionality is available on arm64 HW, then it makes
>>> sense to make the SERIO_I8042 only for x86. And then in the dell-laptop
>>> driver marking the x86 specific dependency via ifdefs. Which allows to
>>> compile driver on arm64 without those specific functionalities.
>>
>> SERIO_I8042 already can't be enabled on arm64,
>
> That makes sense. i8042 is x86 specific.
>
>> as ARCH_MIGHT_HAVE_PC_SERIO is not set. With the current patch, the driver
>> builds on arm64, but as you mentioned, there's a couple gaps that need
>> to be addressed with rfkill and touchpad LED.
>>
>> For rfkill currently, the driver fails to probe, due to a failed
>> i8042_install_filter call, if the device is a Latitude or a Precision
>> (checked by DMI) or force_rfkill is enabled, SMBIOS reports an rfkill
>> switch, and dell-rbtn is not supported. That doesn't apply for the XPS
>> 16 Creator Edition, but it may for an ARM64 Latitude or Precision
>> product. For v2, if dell-rbtn and i8042 are both unavailable, I can make
>> rfkill setup fail without failing probe.
>
> Well, here the main point is: who (from HW point of view) will report
> the rfkill event? It cannot be i8042 because this controller is not
> present on arm64. My guess is that dell-rbtn interface is also not
> present as I was told that Dell abandoned this interface even on x86.
>
> So for arm64 platform there has to be some other source of rfkill
> events. Or rfkill is not provided at all.
>
> I do not know... because I do not have this hardware. So this question
> is for somebody who is writing drivers for this platform...
I see your point. I wasn't aware of the history with how dell-rbtn was
abandoned. The dell-rbtn interface is not present on my XPS 16 Creator
Edition either. There isn't an rfkill interface on this platform, to my
knowledge. When I suggested to make rfkill setup fail without failing
probe, that was for in case the dell-rbtn interface is available on a
future platform. Since you said that it's abandoned, I would agree that
there's no possible sources for rfkill events on ARM64 Dell platforms.
I can gate rfkill setup logic behind an ifdef as well then, for v2. Is
your preference to gate behind SERIO_I8042 or X86?
> In any case, it does not make any sense to provide "fake" or "dummy"
> device by linux just to make driver compilable.
I'm not sure I understand what you mean by this. Under my original
proposal of making rfkill setup fail without failing probe, no dummy or
non-functional devices would be exposed by the driver. rfkill setup
would fail gracefully, and the rfkill devices would go away with it. I
agree with you, but I'm not sure if I'm missing something here.
>> For the touchpad LED currently, the i8042_command() stub will return
>> -ENODEV and do nothing. This will register an LED that does nothing. For
>> v2, I can gate the LED registration behind a SERIO_I8042 ifdef.
>
> I think that this is correct way. The i8042 touchpad led should not be
> enabled when the i8042 HW is not present at all. And that touchpad led
> is only for few models based on whitelist.
>
>> For the Kconfig, since i8042 is required on some x86 Dell platforms, I
>> can change the Kconfig dependency to be like such, to ensure that
>> SERIO_I8042 is required on x86 and optional elsewhere (in case there's
>> another arch introduced by Dell that supports i8042 in the future):
>>
>> depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
>>
>> Please let me know if these changes are good with you.
>>
>> Thanks,
>> Brian
>
> My personal opinion is to make i8042 dependency only on x86. And do not
> even try to enable i8042 on non-x86 platforms. All dell drivers were in
> x86 subdirectory which cause that explicit x86 was not written in
> Kconfig (as it was not needed).
>
> Now when you are moving dell drivers out of the x86 subdir, maybe it
> could make sense to check if there are some other config options which
> have also hidden dependency on x86.
>
> Anyway, I highly doubt that any new platform / device (which is designed
> from scratch; not rebranded or evoluted) would use i8042 for any such
> API. Nowadays all those functionalities are based on ACPI or WMI APIs.
If I understand your suggestion correctly, you are asking, instead of
adding ifdefs against SERIO_I8042 and changing the dependency to:
depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
You would gate behind:
depends on SERIO_I8042 || !X86
and then add ifdefs for X86, wherever i8042 is used?
Thanks,
Brian
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
2026-11-23 19:39 ` Pali Rohár
` (2 preceding siblings ...)
2026-11-23 20:38 ` Brian Mak
@ 2026-11-23 20:40 ` Brian Mak
2026-11-23 20:41 ` Brian Mak
2026-11-23 20:43 ` Brian Mak
5 siblings, 0 replies; 31+ messages in thread
From: Brian Mak @ 2026-11-23 20:40 UTC (permalink / raw)
To: Pali Rohár
Cc: Hans de Goede, Ilpo Järvinen, Kurt Borja, Stuart Hayes,
Matthew Garrett, Lyndon Sanche, Armin Wolf, Prasanth Ksr,
Jonathan Corbet, Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel
On 11/23/26 11:39, Pali Rohár wrote:
> On Monday 23 November 2026 19:11:00 Brian Mak wrote:
>> On 11/20/26 16:48, Pali Rohár wrote:
>>> On Friday 20 November 2026 16:05:50 Brian Mak wrote:
>>>> CONFIG_DELL_LAPTOP is currently not available on ARM64, due to a
>>>> dependency on CONFIG_SERIO_I8042. This dependency is actually not
>>>> necessary, as there is a fallback. Make it optional.
>>>
>>> i8042 is used for controlling touchpad LED and for receiving rfkill
>>> events when the dell-rbtn is not supported on the particular machine.
>>>
>>> Touchpad led is available on more Vostro and Inspirion machines and
>>> there is no fallback or detection of i8042 at all. Even there is no
>>> error checking.
>>>
>>> And for receiving rfkill events it is same situation.
>>>
>>> So the dell-laptop driver expects that the SERIO_I8042 is enabled and
>>> compiled in.
>>>
>>> If none of these functionality is available on arm64 HW, then it makes
>>> sense to make the SERIO_I8042 only for x86. And then in the dell-laptop
>>> driver marking the x86 specific dependency via ifdefs. Which allows to
>>> compile driver on arm64 without those specific functionalities.
>>
>> SERIO_I8042 already can't be enabled on arm64,
>
> That makes sense. i8042 is x86 specific.
>
>> as ARCH_MIGHT_HAVE_PC_SERIO is not set. With the current patch, the driver
>> builds on arm64, but as you mentioned, there's a couple gaps that need
>> to be addressed with rfkill and touchpad LED.
>>
>> For rfkill currently, the driver fails to probe, due to a failed
>> i8042_install_filter call, if the device is a Latitude or a Precision
>> (checked by DMI) or force_rfkill is enabled, SMBIOS reports an rfkill
>> switch, and dell-rbtn is not supported. That doesn't apply for the XPS
>> 16 Creator Edition, but it may for an ARM64 Latitude or Precision
>> product. For v2, if dell-rbtn and i8042 are both unavailable, I can make
>> rfkill setup fail without failing probe.
>
> Well, here the main point is: who (from HW point of view) will report
> the rfkill event? It cannot be i8042 because this controller is not
> present on arm64. My guess is that dell-rbtn interface is also not
> present as I was told that Dell abandoned this interface even on x86.
>
> So for arm64 platform there has to be some other source of rfkill
> events. Or rfkill is not provided at all.
>
> I do not know... because I do not have this hardware. So this question
> is for somebody who is writing drivers for this platform...
I see your point. I wasn't aware of the history with how dell-rbtn was
abandoned. The dell-rbtn interface is not present on my XPS 16 Creator
Edition either. There isn't an rfkill interface on this platform, to my
knowledge. When I suggested to make rfkill setup fail without failing
probe, that was for in case the dell-rbtn interface is available on a
future platform. Since you said that it's abandoned, I would agree that
there's no possible sources for rfkill events on ARM64 Dell platforms.
I can gate rfkill setup logic behind an ifdef as well then, for v2.
> In any case, it does not make any sense to provide "fake" or "dummy"
> device by linux just to make driver compilable.
I'm not sure I understand what you mean by this. Under my original
proposal of making rfkill setup fail without failing probe, no dummy or
non-functional devices would be exposed by the driver. rfkill setup
would fail gracefully, and the rfkill devices would go away with it. I
agree with you, but I'm not sure if I'm missing something here.
>> For the touchpad LED currently, the i8042_command() stub will return
>> -ENODEV and do nothing. This will register an LED that does nothing. For
>> v2, I can gate the LED registration behind a SERIO_I8042 ifdef.
>
> I think that this is correct way. The i8042 touchpad led should not be
> enabled when the i8042 HW is not present at all. And that touchpad led
> is only for few models based on whitelist.
>
>> For the Kconfig, since i8042 is required on some x86 Dell platforms, I
>> can change the Kconfig dependency to be like such, to ensure that
>> SERIO_I8042 is required on x86 and optional elsewhere (in case there's
>> another arch introduced by Dell that supports i8042 in the future):
>>
>> depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
>>
>> Please let me know if these changes are good with you.
>>
>> Thanks,
>> Brian
>
> My personal opinion is to make i8042 dependency only on x86. And do not
> even try to enable i8042 on non-x86 platforms. All dell drivers were in
> x86 subdirectory which cause that explicit x86 was not written in
> Kconfig (as it was not needed).
>
> Now when you are moving dell drivers out of the x86 subdir, maybe it
> could make sense to check if there are some other config options which
> have also hidden dependency on x86.
>
> Anyway, I highly doubt that any new platform / device (which is designed
> from scratch; not rebranded or evoluted) would use i8042 for any such
> API. Nowadays all those functionalities are based on ACPI or WMI APIs.
If I understand your suggestion correctly, you are asking, instead of
adding ifdefs against SERIO_I8042 and changing the dependency to:
depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
You would gate behind:
depends on SERIO_I8042 || !X86
and then add ifdefs for X86, wherever i8042 is used?
Thanks,
Brian
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
2026-11-23 19:39 ` Pali Rohár
` (3 preceding siblings ...)
2026-11-23 20:40 ` Brian Mak
@ 2026-11-23 20:41 ` Brian Mak
2026-11-23 20:43 ` Brian Mak
5 siblings, 0 replies; 31+ messages in thread
From: Brian Mak @ 2026-11-23 20:41 UTC (permalink / raw)
To: Pali Rohár
Cc: Hans de Goede, Ilpo Järvinen, Kurt Borja, Stuart Hayes,
Matthew Garrett, Lyndon Sanche, Armin Wolf, Prasanth Ksr,
Jonathan Corbet, Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel
On 11/23/26 11:39, Pali Rohár wrote:
> On Monday 23 November 2026 19:11:00 Brian Mak wrote:
>> On 11/20/26 16:48, Pali Rohár wrote:
>>> On Friday 20 November 2026 16:05:50 Brian Mak wrote:
>>>> CONFIG_DELL_LAPTOP is currently not available on ARM64, due to a
>>>> dependency on CONFIG_SERIO_I8042. This dependency is actually not
>>>> necessary, as there is a fallback. Make it optional.
>>>
>>> i8042 is used for controlling touchpad LED and for receiving rfkill
>>> events when the dell-rbtn is not supported on the particular machine.
>>>
>>> Touchpad led is available on more Vostro and Inspirion machines and
>>> there is no fallback or detection of i8042 at all. Even there is no
>>> error checking.
>>>
>>> And for receiving rfkill events it is same situation.
>>>
>>> So the dell-laptop driver expects that the SERIO_I8042 is enabled and
>>> compiled in.
>>>
>>> If none of these functionality is available on arm64 HW, then it makes
>>> sense to make the SERIO_I8042 only for x86. And then in the dell-laptop
>>> driver marking the x86 specific dependency via ifdefs. Which allows to
>>> compile driver on arm64 without those specific functionalities.
>>
>> SERIO_I8042 already can't be enabled on arm64,
>
> That makes sense. i8042 is x86 specific.
>
>> as ARCH_MIGHT_HAVE_PC_SERIO is not set. With the current patch, the driver
>> builds on arm64, but as you mentioned, there's a couple gaps that need
>> to be addressed with rfkill and touchpad LED.
>>
>> For rfkill currently, the driver fails to probe, due to a failed
>> i8042_install_filter call, if the device is a Latitude or a Precision
>> (checked by DMI) or force_rfkill is enabled, SMBIOS reports an rfkill
>> switch, and dell-rbtn is not supported. That doesn't apply for the XPS
>> 16 Creator Edition, but it may for an ARM64 Latitude or Precision
>> product. For v2, if dell-rbtn and i8042 are both unavailable, I can make
>> rfkill setup fail without failing probe.
>
> Well, here the main point is: who (from HW point of view) will report
> the rfkill event? It cannot be i8042 because this controller is not
> present on arm64. My guess is that dell-rbtn interface is also not
> present as I was told that Dell abandoned this interface even on x86.
>
> So for arm64 platform there has to be some other source of rfkill
> events. Or rfkill is not provided at all.
>
> I do not know... because I do not have this hardware. So this question
> is for somebody who is writing drivers for this platform...
I see your point. I wasn't aware of the history with how dell-rbtn was
abandoned. The dell-rbtn interface is not present on my XPS 16 Creator
Edition either. There isn't an rfkill interface on this platform, to my
knowledge. When I suggested to make rfkill setup fail without failing
probe, that was for in case the dell-rbtn interface is available on a
future platform. Since you said that it's abandoned, I would agree that
there's no sources for rfkill events on ARM64.
I can gate rfkill setup logic behind an ifdef as well then, for v2.
> In any case, it does not make any sense to provide "fake" or "dummy"
> device by linux just to make driver compilable.
I'm not sure I understand what you mean by this. Under my original
proposal of making rfkill setup fail without failing probe, no dummy or
non-functional devices would be exposed by the driver. rfkill setup
would fail gracefully, and the rfkill devices would go away with it. I
agree with you, but I'm not sure if I'm missing something here.
>> For the touchpad LED currently, the i8042_command() stub will return
>> -ENODEV and do nothing. This will register an LED that does nothing. For
>> v2, I can gate the LED registration behind a SERIO_I8042 ifdef.
>
> I think that this is correct way. The i8042 touchpad led should not be
> enabled when the i8042 HW is not present at all. And that touchpad led
> is only for few models based on whitelist.
>
>> For the Kconfig, since i8042 is required on some x86 Dell platforms, I
>> can change the Kconfig dependency to be like such, to ensure that
>> SERIO_I8042 is required on x86 and optional elsewhere (in case there's
>> another arch introduced by Dell that supports i8042 in the future):
>>
>> depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
>>
>> Please let me know if these changes are good with you.
>>
>> Thanks,
>> Brian
>
> My personal opinion is to make i8042 dependency only on x86. And do not
> even try to enable i8042 on non-x86 platforms. All dell drivers were in
> x86 subdirectory which cause that explicit x86 was not written in
> Kconfig (as it was not needed).
>
> Now when you are moving dell drivers out of the x86 subdir, maybe it
> could make sense to check if there are some other config options which
> have also hidden dependency on x86.
>
> Anyway, I highly doubt that any new platform / device (which is designed
> from scratch; not rebranded or evoluted) would use i8042 for any such
> API. Nowadays all those functionalities are based on ACPI or WMI APIs.
If I understand your suggestion correctly, you are asking, instead of
adding ifdefs against SERIO_I8042 and changing the dependency to:
depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
You would gate behind:
depends on SERIO_I8042 || !X86
and then add ifdefs for X86, wherever i8042 is used?
Thanks,
Brian
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
2026-11-23 19:39 ` Pali Rohár
` (4 preceding siblings ...)
2026-11-23 20:41 ` Brian Mak
@ 2026-11-23 20:43 ` Brian Mak
5 siblings, 0 replies; 31+ messages in thread
From: Brian Mak @ 2026-11-23 20:43 UTC (permalink / raw)
To: Pali Rohár
Cc: Hans de Goede, Ilpo Järvinen, Kurt Borja, Stuart Hayes,
Matthew Garrett, Lyndon Sanche, Armin Wolf, Prasanth Ksr,
Jonathan Corbet, Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel
On 11/23/26 11:39, Pali Rohár wrote:
> On Monday 23 November 2026 19:11:00 Brian Mak wrote:
>> On 11/20/26 16:48, Pali Rohár wrote:
>>> On Friday 20 November 2026 16:05:50 Brian Mak wrote:
>>>> CONFIG_DELL_LAPTOP is currently not available on ARM64, due to a
>>>> dependency on CONFIG_SERIO_I8042. This dependency is actually not
>>>> necessary, as there is a fallback. Make it optional.
>>>
>>> i8042 is used for controlling touchpad LED and for receiving rfkill
>>> events when the dell-rbtn is not supported on the particular machine.
>>>
>>> Touchpad led is available on more Vostro and Inspirion machines and
>>> there is no fallback or detection of i8042 at all. Even there is no
>>> error checking.
>>>
>>> And for receiving rfkill events it is same situation.
>>>
>>> So the dell-laptop driver expects that the SERIO_I8042 is enabled and
>>> compiled in.
>>>
>>> If none of these functionality is available on arm64 HW, then it makes
>>> sense to make the SERIO_I8042 only for x86. And then in the dell-laptop
>>> driver marking the x86 specific dependency via ifdefs. Which allows to
>>> compile driver on arm64 without those specific functionalities.
>>
>> SERIO_I8042 already can't be enabled on arm64,
>
> That makes sense. i8042 is x86 specific.
>
>> as ARCH_MIGHT_HAVE_PC_SERIO is not set. With the current patch, the driver
>> builds on arm64, but as you mentioned, there's a couple gaps that need
>> to be addressed with rfkill and touchpad LED.
>>
>> For rfkill currently, the driver fails to probe, due to a failed
>> i8042_install_filter call, if the device is a Latitude or a Precision
>> (checked by DMI) or force_rfkill is enabled, SMBIOS reports an rfkill
>> switch, and dell-rbtn is not supported. That doesn't apply for the XPS
>> 16 Creator Edition, but it may for an ARM64 Latitude or Precision
>> product. For v2, if dell-rbtn and i8042 are both unavailable, I can make
>> rfkill setup fail without failing probe.
>
> Well, here the main point is: who (from HW point of view) will report
> the rfkill event? It cannot be i8042 because this controller is not
> present on arm64. My guess is that dell-rbtn interface is also not
> present as I was told that Dell abandoned this interface even on x86.
>
> So for arm64 platform there has to be some other source of rfkill
> events. Or rfkill is not provided at all.
>
> I do not know... because I do not have this hardware. So this question
> is for somebody who is writing drivers for this platform...
I see your point. I wasn't aware of the history with how dell-rbtn was
abandoned. The dell-rbtn interface is not present on my XPS 16 Creator
Edition either. There isn't an rfkill interface on this platform, to my
knowledge. When I suggested to make rfkill setup fail without failing
probe, that was for in case the dell-rbtn interface is available on a
future platform. Since you said that it's abandoned, I would agree that
there's no sources for rfkill events on ARM64.
I can gate rfkill setup logic behind an ifdef as well then, for v2.
> In any case, it does not make any sense to provide "fake" or "dummy"
> device by linux just to make driver compilable.
I'm not sure I understand what you mean by this. Under my original
proposal of making rfkill setup fail without failing probe, no dummy
devices would be exposed by the driver. rfkill setup would fail
gracefully, and the rfkill devices would go away with it. I agree with
you, but I'm not sure if I'm missing something here.
>> For the touchpad LED currently, the i8042_command() stub will return
>> -ENODEV and do nothing. This will register an LED that does nothing. For
>> v2, I can gate the LED registration behind a SERIO_I8042 ifdef.
>
> I think that this is correct way. The i8042 touchpad led should not be
> enabled when the i8042 HW is not present at all. And that touchpad led
> is only for few models based on whitelist.
>
>> For the Kconfig, since i8042 is required on some x86 Dell platforms, I
>> can change the Kconfig dependency to be like such, to ensure that
>> SERIO_I8042 is required on x86 and optional elsewhere (in case there's
>> another arch introduced by Dell that supports i8042 in the future):
>>
>> depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
>>
>> Please let me know if these changes are good with you.
>>
>> Thanks,
>> Brian
>
> My personal opinion is to make i8042 dependency only on x86. And do not
> even try to enable i8042 on non-x86 platforms. All dell drivers were in
> x86 subdirectory which cause that explicit x86 was not written in
> Kconfig (as it was not needed).
>
> Now when you are moving dell drivers out of the x86 subdir, maybe it
> could make sense to check if there are some other config options which
> have also hidden dependency on x86.
>
> Anyway, I highly doubt that any new platform / device (which is designed
> from scratch; not rebranded or evoluted) would use i8042 for any such
> API. Nowadays all those functionalities are based on ACPI or WMI APIs.
If I understand your suggestion correctly, you are asking, instead of
adding ifdefs against SERIO_I8042 and changing the dependency to:
depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
You would gate behind:
depends on SERIO_I8042 || !X86
and then add ifdefs for X86, wherever i8042 is used?
Thanks,
Brian
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
2026-11-23 20:33 ` Brian Mak
@ 2026-11-23 21:00 ` Pali Rohár
2026-11-23 21:16 ` Brian Mak
0 siblings, 1 reply; 31+ messages in thread
From: Pali Rohár @ 2026-11-23 21:00 UTC (permalink / raw)
To: Brian Mak
Cc: Hans de Goede, Ilpo Järvinen, Kurt Borja, Stuart Hayes,
Matthew Garrett, Lyndon Sanche, Armin Wolf, Prasanth Ksr,
Jonathan Corbet, Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel
On Monday 23 November 2026 20:33:11 Brian Mak wrote:
> On 11/23/26 11:39, Pali Rohár wrote:
> > On Monday 23 November 2026 19:11:00 Brian Mak wrote:
> >> On 11/20/26 16:48, Pali Rohár wrote:
> >>> On Friday 20 November 2026 16:05:50 Brian Mak wrote:
> >>>> CONFIG_DELL_LAPTOP is currently not available on ARM64, due to a
> >>>> dependency on CONFIG_SERIO_I8042. This dependency is actually not
> >>>> necessary, as there is a fallback. Make it optional.
> >>>
> >>> i8042 is used for controlling touchpad LED and for receiving rfkill
> >>> events when the dell-rbtn is not supported on the particular machine.
> >>>
> >>> Touchpad led is available on more Vostro and Inspirion machines and
> >>> there is no fallback or detection of i8042 at all. Even there is no
> >>> error checking.
> >>>
> >>> And for receiving rfkill events it is same situation.
> >>>
> >>> So the dell-laptop driver expects that the SERIO_I8042 is enabled and
> >>> compiled in.
> >>>
> >>> If none of these functionality is available on arm64 HW, then it makes
> >>> sense to make the SERIO_I8042 only for x86. And then in the dell-laptop
> >>> driver marking the x86 specific dependency via ifdefs. Which allows to
> >>> compile driver on arm64 without those specific functionalities.
> >>
> >> SERIO_I8042 already can't be enabled on arm64,
> >
> > That makes sense. i8042 is x86 specific.
> >
> >> as ARCH_MIGHT_HAVE_PC_SERIO is not set. With the current patch, the driver
> >> builds on arm64, but as you mentioned, there's a couple gaps that need
> >> to be addressed with rfkill and touchpad LED.
> >>
> >> For rfkill currently, the driver fails to probe, due to a failed
> >> i8042_install_filter call, if the device is a Latitude or a Precision
> >> (checked by DMI) or force_rfkill is enabled, SMBIOS reports an rfkill
> >> switch, and dell-rbtn is not supported. That doesn't apply for the XPS
> >> 16 Creator Edition, but it may for an ARM64 Latitude or Precision
> >> product. For v2, if dell-rbtn and i8042 are both unavailable, I can make
> >> rfkill setup fail without failing probe.
> >
> > Well, here the main point is: who (from HW point of view) will report
> > the rfkill event? It cannot be i8042 because this controller is not
> > present on arm64. My guess is that dell-rbtn interface is also not
> > present as I was told that Dell abandoned this interface even on x86.
> >
> > So for arm64 platform there has to be some other source of rfkill
> > events. Or rfkill is not provided at all.
> >
> > I do not know... because I do not have this hardware. So this question
> > is for somebody who is writing drivers for this platform...
>
> I see your point. I wasn't aware of the history with how dell-rbtn was
> abandoned.
Well, do not take my words for 100% percent. I just recall that somebody
told me it. So maybe I do not know it correctly. (Too many things are
right now out of my head)
> The dell-rbtn interface is not present on my XPS 16 Creator
> Edition either. There isn't an rfkill interface on this platform, to my
> knowledge. When I suggested to make rfkill setup fail without failing
> probe, that was for in case the dell-rbtn interface is available on a
> future platform. Since you said that it's abandoned, I would agree that
> there's no possible sources for rfkill events on ARM64 Dell platforms.
>
> I can gate rfkill setup logic behind an ifdef as well then, for v2. Is
> your preference to gate behind SERIO_I8042 or X86?
The i8042 and dell-rbtn are two event reports. These "HW" parts are
sending events to kernel when the hard rfkill state changes. On some
laptops it is i8042 on another it is dell-rbtn and on some both.
Obviously it is enough to get just one event that hard rfkill state was
changed (the driver will re-read state and inform listeners).
But to provide kernel events to listeners, it is needed to have
something which will report it to kernel. And in case there is hard
rfkill on arm64 there would be also some interrupt mechanism which will
report it. I'm just guessing, this is something which Dell or laptop
platform people would know.
So right now, when the driver is moving out of the x86 subdir, gating
i8042 logic should be behind the SERIO_I8042.
In my opinion there would be some interrupt / event mechanism also on
arm64 products (if not now then maybe in some later products), so the
code would be revisited in future.
> > In any case, it does not make any sense to provide "fake" or "dummy"
> > device by linux just to make driver compilable.
>
> I'm not sure I understand what you mean by this. Under my original
> proposal of making rfkill setup fail without failing probe, no dummy or
> non-functional devices would be exposed by the driver. rfkill setup
> would fail gracefully, and the rfkill devices would go away with it. I
> agree with you, but I'm not sure if I'm missing something here.
Ok, if rfkill devices go away then it is fine. I was not fully sure
about it.
Now I see that I forgot lot of logic behind those dell drivers, so I
would need to re-read it again.
> >> For the touchpad LED currently, the i8042_command() stub will return
> >> -ENODEV and do nothing. This will register an LED that does nothing. For
> >> v2, I can gate the LED registration behind a SERIO_I8042 ifdef.
> >
> > I think that this is correct way. The i8042 touchpad led should not be
> > enabled when the i8042 HW is not present at all. And that touchpad led
> > is only for few models based on whitelist.
> >
> >> For the Kconfig, since i8042 is required on some x86 Dell platforms, I
> >> can change the Kconfig dependency to be like such, to ensure that
> >> SERIO_I8042 is required on x86 and optional elsewhere (in case there's
> >> another arch introduced by Dell that supports i8042 in the future):
> >>
> >> depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
> >>
> >> Please let me know if these changes are good with you.
> >>
> >> Thanks,
> >> Brian
> >
> > My personal opinion is to make i8042 dependency only on x86. And do not
> > even try to enable i8042 on non-x86 platforms. All dell drivers were in
> > x86 subdirectory which cause that explicit x86 was not written in
> > Kconfig (as it was not needed).
> >
> > Now when you are moving dell drivers out of the x86 subdir, maybe it
> > could make sense to check if there are some other config options which
> > have also hidden dependency on x86.
> >
> > Anyway, I highly doubt that any new platform / device (which is designed
> > from scratch; not rebranded or evoluted) would use i8042 for any such
> > API. Nowadays all those functionalities are based on ACPI or WMI APIs.
>
> If I understand your suggestion correctly, you are asking, instead of
> gating behind:
>
> depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
>
> You would gate behind:
>
> depends on SERIO_I8042 || !X86
>
> Thanks,
> Brian
Ufff... some more complicated logic behind.
Let me think... If you extend the driver to compile touchpad led support
conditionally based on CONFIG_SERIO_I8042 and same for that rfkill event
reported, then it should be enough to write just:
depends on SERIO_I8042 || SERIO_I8042 = n
After those changes if somebody compiles kernel without the SERIO_I8042
support (e.g. because uses only USB keywords) then would be able to use
dell drivers on laptops without touchpad led and without rfkill. (I
guess there are many such laptops).
And at the same time it will solve also your problem with arm64. And do
not need to think about "|| !X86" part at all.
It is correct, or did I some mistake here?
(I'm trying to simplify that logic and setup.)
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
2026-11-23 21:00 ` Pali Rohár
@ 2026-11-23 21:16 ` Brian Mak
0 siblings, 0 replies; 31+ messages in thread
From: Brian Mak @ 2026-11-23 21:16 UTC (permalink / raw)
To: Pali Rohár
Cc: Hans de Goede, Ilpo Järvinen, Kurt Borja, Stuart Hayes,
Matthew Garrett, Lyndon Sanche, Armin Wolf, Prasanth Ksr,
Jonathan Corbet, Shuah Khan, Randy Dunlap, platform-driver-x86,
Dell.Client.Kernel, linux-doc, linux-kernel
On 11/23/26 13:00, Pali Rohár wrote:
> On Monday 23 November 2026 20:33:11 Brian Mak wrote:
>> On 11/23/26 11:39, Pali Rohár wrote:
>>> On Monday 23 November 2026 19:11:00 Brian Mak wrote:
>>>> On 11/20/26 16:48, Pali Rohár wrote:
>>>>> On Friday 20 November 2026 16:05:50 Brian Mak wrote:
>> The dell-rbtn interface is not present on my XPS 16 Creator
>> Edition either. There isn't an rfkill interface on this platform, to my
>> knowledge. When I suggested to make rfkill setup fail without failing
>> probe, that was for in case the dell-rbtn interface is available on a
>> future platform. Since you said that it's abandoned, I would agree that
>> there's no possible sources for rfkill events on ARM64 Dell platforms.
>>
>> I can gate rfkill setup logic behind an ifdef as well then, for v2. Is
>> your preference to gate behind SERIO_I8042 or X86?
>
> The i8042 and dell-rbtn are two event reports. These "HW" parts are
> sending events to kernel when the hard rfkill state changes. On some
> laptops it is i8042 on another it is dell-rbtn and on some both.
> Obviously it is enough to get just one event that hard rfkill state was
> changed (the driver will re-read state and inform listeners).
>
> But to provide kernel events to listeners, it is needed to have
> something which will report it to kernel. And in case there is hard
> rfkill on arm64 there would be also some interrupt mechanism which will
> report it. I'm just guessing, this is something which Dell or laptop
> platform people would know.
>
> So right now, when the driver is moving out of the x86 subdir, gating
> i8042 logic should be behind the SERIO_I8042.
>
> In my opinion there would be some interrupt / event mechanism also on
> arm64 products (if not now then maybe in some later products), so the
> code would be revisited in future.
>
>>> In any case, it does not make any sense to provide "fake" or "dummy"
>>> device by linux just to make driver compilable.
>>
>> I'm not sure I understand what you mean by this. Under my original
>> proposal of making rfkill setup fail without failing probe, no dummy or
>> non-functional devices would be exposed by the driver. rfkill setup
>> would fail gracefully, and the rfkill devices would go away with it. I
>> agree with you, but I'm not sure if I'm missing something here.
>
> Ok, if rfkill devices go away then it is fine. I was not fully sure
> about it.
Ok, I will go with this way for v2 then.
> Now I see that I forgot lot of logic behind those dell drivers, so I
> would need to re-read it again.
>
>>>> For the touchpad LED currently, the i8042_command() stub will return
>>>> -ENODEV and do nothing. This will register an LED that does nothing. For
>>>> v2, I can gate the LED registration behind a SERIO_I8042 ifdef.
>>>
>>> I think that this is correct way. The i8042 touchpad led should not be
>>> enabled when the i8042 HW is not present at all. And that touchpad led
>>> is only for few models based on whitelist.
>>>
>>>> For the Kconfig, since i8042 is required on some x86 Dell platforms, I
>>>> can change the Kconfig dependency to be like such, to ensure that
>>>> SERIO_I8042 is required on x86 and optional elsewhere (in case there's
>>>> another arch introduced by Dell that supports i8042 in the future):
>>>>
>>>> depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
>>>>
>>>> Please let me know if these changes are good with you.
>>>>
>>>> Thanks,
>>>> Brian
>>>
>>> My personal opinion is to make i8042 dependency only on x86. And do not
>>> even try to enable i8042 on non-x86 platforms. All dell drivers were in
>>> x86 subdirectory which cause that explicit x86 was not written in
>>> Kconfig (as it was not needed).
>>>
>>> Now when you are moving dell drivers out of the x86 subdir, maybe it
>>> could make sense to check if there are some other config options which
>>> have also hidden dependency on x86.
>>>
>>> Anyway, I highly doubt that any new platform / device (which is designed
>>> from scratch; not rebranded or evoluted) would use i8042 for any such
>>> API. Nowadays all those functionalities are based on ACPI or WMI APIs.
>>
>> If I understand your suggestion correctly, you are asking, instead of
>> gating behind:
>>
>> depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
>>
>> You would gate behind:
>>
>> depends on SERIO_I8042 || !X86
>>
>> Thanks,
>> Brian
>
> Ufff... some more complicated logic behind.
>
> Let me think... If you extend the driver to compile touchpad led support
> conditionally based on CONFIG_SERIO_I8042 and same for that rfkill event
> reported, then it should be enough to write just:
>
> depends on SERIO_I8042 || SERIO_I8042 = n
>
> After those changes if somebody compiles kernel without the SERIO_I8042
> support (e.g. because uses only USB keywords) then would be able to use
> dell drivers on laptops without touchpad led and without rfkill. (I
> guess there are many such laptops).
>
> And at the same time it will solve also your problem with arm64. And do
> not need to think about "|| !X86" part at all.
>
> It is correct, or did I some mistake here?
>
> (I'm trying to simplify that logic and setup.)
Yes, this seems correct to me. So, I will keep this patch the same as it
is now in v1, and then in a preceding patch, add the appropriate gates.
Also, sorry for the spam in my last message. I'm not sure what happened
there! :)
Thanks,
Brian
^ permalink raw reply [flat|nested] 31+ messages in thread
end of thread, other threads:[~2026-11-23 21:17 UTC | newest]
Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-21 0:05 [PATCH 0/8] platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition Brian Mak
2026-11-21 0:05 ` [PATCH 1/8] platform/x86: dell: Make uart-backlight x86 only Brian Mak
2026-11-21 1:36 ` Randy Dunlap
2026-11-21 1:36 ` Randy Dunlap
2026-11-21 0:05 ` [PATCH 2/8] platform: dell: Move out of x86 directory Brian Mak
2026-11-21 10:05 ` kernel test robot
2026-11-21 0:05 ` [PATCH 3/8] MAINTAINERS: Add Dell platform drivers entry Brian Mak
2026-11-21 0:05 ` [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent Brian Mak
2026-11-21 0:48 ` Pali Rohár
2026-11-23 19:11 ` Brian Mak
2026-11-23 19:39 ` Pali Rohár
2026-11-23 20:33 ` Brian Mak
2026-11-23 21:00 ` Pali Rohár
2026-11-23 21:16 ` Brian Mak
2026-11-23 20:36 ` Brian Mak
2026-11-23 20:38 ` Brian Mak
2026-11-23 20:40 ` Brian Mak
2026-11-23 20:41 ` Brian Mak
2026-11-23 20:43 ` Brian Mak
2026-11-21 1:38 ` Randy Dunlap
2026-11-23 18:10 ` Brian Mak
2026-11-21 0:05 ` [PATCH 5/8] platform: dell: smbios-wmi: Fix probe on RTX Spark Brian Mak
2026-11-21 13:44 ` Armin Wolf
2026-11-23 18:11 ` Brian Mak
2026-11-21 0:05 ` [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface Brian Mak
2026-11-21 0:38 ` Pali Rohár
2026-11-21 0:45 ` Brian Mak
2026-11-21 0:51 ` Pali Rohár
2026-11-21 13:49 ` Armin Wolf
2026-11-21 0:05 ` [PATCH 7/8] platform: dell: laptop: Don't load if SMBIOS calls are non-functional Brian Mak
2026-11-21 0:05 ` [PATCH 8/8] platform: dell: pc: " Brian Mak
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®