platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition
Subsystems (17)
cover platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition
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
Signature · 1 line
2.53.0
PATCH 1/8 platform/x86: dell: Make uart-backlight x86 only
Make dell-uart-backlight x86 only, as it uses some x86 helpers.
--- drivers/platform/x86/dell/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/platform/x86/dell/Kconfig +1 -0
@@ -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
Signature · 1 line
2.53.0
Randy Dunlap
reviewerRe: [PATCH 1/8] platform/x86: dell: Make uart-backlight x86 only
Quoted 12 lines · Brian Mak
Make dell-uart-backlight x86 only, as it uses some x86 helpers.
Signed-off-by Brian Mak <[email protected]>--- drivers/platform/x86/dell/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/platform/x86/dell/Kconfig +0
-0
drivers/platform/x86/dell/Kconfig config DELL_UART_BACKLIGHT · line 191
Quoted 4 lines
drivers/platform/x86/dell/Kconfig +1
-0@@ -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?
Quoted 3 lines
drivers/platform/x86/dell/Kconfig +0
-0help 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
Signature · 1 line
~Randy
Randy Dunlap
reviewerRe: [PATCH 1/8] platform/x86: dell: Make uart-backlight x86 only
Quoted 10 lines · Randy Dunlap
Quoted 7 lines · Brian Mak
Make dell-uart-backlight x86 only, as it uses some x86 helpers.
Signed-off-by Brian Mak <[email protected]>--- drivers/platform/x86/dell/Kconfig | 1 + 1 file changed, 1 insertion(+)
Quoted 16 lines
drivers/platform/x86/dell/Kconfig config DELL_UART_BACKLIGHT · line 191
Quoted 9 lines
drivers/platform/x86/dell/Kconfig +1
-0@@ -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_BACKLIGHTalready depends onX86_PLATFORM_DEVICES&&X86_PLATFORM_DRIVERS_DELL, andX86_PLATFORM_DEVICESdepends 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!
Quoted 5 lines
Quoted 4 lines
drivers/platform/x86/dell/Kconfig +0
-0help 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
Signature · 1 line
~Randy
PATCH 2/8 platform: dell: Move out of x86 directory
In reply to Brian MakWith 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.
---
.../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%)Documentation/admin-guide/laptops/alienware-wmi.rst +2 -2
@@ -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 ------
MAINTAINERS +15 -15
@@ -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 <[email protected]>
@@ -7452,17 +7452,17 @@ M: Matthew Garrett <[email protected]> M: Pali Rohár <[email protected]> L: [email protected] 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 <[email protected]> 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 <[email protected]> S: Maintained -F: drivers/platform/x86/dell/dell-rbtn.* +F: drivers/platform/dell/dell-rbtn.* DELL LAPTOP SMM DRIVER M: Pali Rohár <[email protected]>
@@ -7475,32 +7475,32 @@ DELL PC DRIVER M: Lyndon Sanche <[email protected]> L: [email protected] 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 <[email protected]> L: [email protected] S: Maintained -F: drivers/platform/x86/dell/dell_rbu.c +F: drivers/platform/dell/dell_rbu.c DELL SMBIOS DRIVER M: Pali Rohár <[email protected]> L: [email protected] L: [email protected] S: Maintained -F: drivers/platform/x86/dell/dell-smbios.* +F: drivers/platform/dell/dell-smbios.* DELL SMBIOS SMM DRIVER L: [email protected] L: [email protected] S: Maintained -F: drivers/platform/x86/dell/dell-smbios-smm.c +F: drivers/platform/dell/dell-smbios-smm.c DELL SMBIOS WMI DRIVER L: [email protected] L: [email protected] 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 <[email protected]> L: [email protected] 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 <[email protected]>
@@ -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: [email protected] 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: [email protected] L: [email protected] 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 <[email protected]> M: Pali Rohár <[email protected]> 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 <[email protected]>
@@ -7541,7 +7541,7 @@ L: [email protected] L: [email protected] 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 <[email protected]>
drivers/platform/Kconfig +2 -0
@@ -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"
drivers/platform/Makefile +1 -0
@@ -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/
drivers/platform/dell/Kconfig renamed from drivers/platform/x86/dell/Kconfig +12 -6
@@ -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
drivers/platform/dell/Makefile renamed from drivers/platform/x86/dell/Makefile +2 -2
@@ -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
drivers/platform/dell/alienware-wmi-base.c renamed from drivers/platform/x86/dell/alienware-wmi-base.c +0 -0
drivers/platform/dell/alienware-wmi-legacy.c renamed from drivers/platform/x86/dell/alienware-wmi-legacy.c +0 -0
drivers/platform/dell/alienware-wmi-wmax.c renamed from drivers/platform/x86/dell/alienware-wmi-wmax.c +0 -0
drivers/platform/dell/alienware-wmi.h renamed from drivers/platform/x86/dell/alienware-wmi.h +0 -0
drivers/platform/dell/dcdbas.c renamed from drivers/platform/x86/dell/dcdbas.c +0 -0
drivers/platform/dell/dcdbas.h renamed from drivers/platform/x86/dell/dcdbas.h +0 -0
drivers/platform/dell/dell-dw5826e-reset.c renamed from drivers/platform/x86/dell/dell-dw5826e-reset.c +0 -0
drivers/platform/dell/dell-laptop.c renamed from drivers/platform/x86/dell/dell-laptop.c +0 -0
drivers/platform/dell/dell-lis3lv02d.c renamed from drivers/platform/x86/dell/dell-lis3lv02d.c +0 -0
drivers/platform/dell/dell-pc.c renamed from drivers/platform/x86/dell/dell-pc.c +0 -0
drivers/platform/dell/dell-rbtn.c renamed from drivers/platform/x86/dell/dell-rbtn.c +0 -0
drivers/platform/dell/dell-rbtn.h renamed from drivers/platform/x86/dell/dell-rbtn.h +0 -0
drivers/platform/dell/dell-smbios-base.c renamed from drivers/platform/x86/dell/dell-smbios-base.c +0 -0
drivers/platform/dell/dell-smbios-smm.c renamed from drivers/platform/x86/dell/dell-smbios-smm.c +0 -0
drivers/platform/dell/dell-smbios-wmi.c renamed from drivers/platform/x86/dell/dell-smbios-wmi.c +0 -0
drivers/platform/dell/dell-smbios.h renamed from drivers/platform/x86/dell/dell-smbios.h +0 -0
drivers/platform/dell/dell-smo8800-ids.h renamed from drivers/platform/x86/dell/dell-smo8800-ids.h +0 -0
drivers/platform/dell/dell-smo8800.c renamed from drivers/platform/x86/dell/dell-smo8800.c +0 -0
drivers/platform/dell/dell-uart-backlight.c renamed from drivers/platform/x86/dell/dell-uart-backlight.c +1 -1
@@ -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)
drivers/platform/dell/dell-wmi-aio.c renamed from drivers/platform/x86/dell/dell-wmi-aio.c +0 -0
drivers/platform/dell/dell-wmi-base.c renamed from drivers/platform/x86/dell/dell-wmi-base.c +0 -0
drivers/platform/dell/dell-wmi-ddv.c renamed from drivers/platform/x86/dell/dell-wmi-ddv.c +0 -0
drivers/platform/dell/dell-wmi-descriptor.c renamed from drivers/platform/x86/dell/dell-wmi-descriptor.c +0 -0
drivers/platform/dell/dell-wmi-descriptor.h renamed from drivers/platform/x86/dell/dell-wmi-descriptor.h +0 -0
drivers/platform/dell/dell-wmi-led.c renamed from drivers/platform/x86/dell/dell-wmi-led.c +0 -0
drivers/platform/dell/dell-wmi-privacy.c renamed from drivers/platform/x86/dell/dell-wmi-privacy.c +0 -0
drivers/platform/dell/dell-wmi-privacy.h renamed from drivers/platform/x86/dell/dell-wmi-privacy.h +0 -0
drivers/platform/dell/dell-wmi-sysman/Makefile renamed from drivers/platform/x86/dell/dell-wmi-sysman/Makefile +0 -0
drivers/platform/dell/dell-wmi-sysman/biosattr-interface.c renamed from drivers/platform/x86/dell/dell-wmi-sysman/biosattr-interface.c +0 -0
drivers/platform/dell/dell-wmi-sysman/dell-wmi-sysman.h renamed from drivers/platform/x86/dell/dell-wmi-sysman/dell-wmi-sysman.h +0 -0
drivers/platform/dell/dell-wmi-sysman/enum-attributes.c renamed from drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c +0 -0
drivers/platform/dell/dell-wmi-sysman/int-attributes.c renamed from drivers/platform/x86/dell/dell-wmi-sysman/int-attributes.c +0 -0
drivers/platform/dell/dell-wmi-sysman/passobj-attributes.c renamed from drivers/platform/x86/dell/dell-wmi-sysman/passobj-attributes.c +0 -0
drivers/platform/dell/dell-wmi-sysman/passwordattr-interface.c renamed from drivers/platform/x86/dell/dell-wmi-sysman/passwordattr-interface.c +0 -0
drivers/platform/dell/dell-wmi-sysman/string-attributes.c renamed from drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c +0 -0
drivers/platform/dell/dell-wmi-sysman/sysman.c renamed from drivers/platform/x86/dell/dell-wmi-sysman/sysman.c +0 -0
drivers/platform/dell/dell_rbu.c renamed from drivers/platform/x86/dell/dell_rbu.c +0 -0
drivers/platform/x86/Kconfig +0 -2
@@ -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
drivers/platform/x86/Makefile +0 -3
@@ -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
tools/arch/x86/dell-uart-backlight-emulator/README +2 -2
@@ -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
Signature · 1 line
2.53.0
kernel test robot
build botRe: [PATCH 2/8] platform: dell: Move out of x86 directory
kernel test robot noticed the following build warnings:
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/[email protected]/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/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
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'
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
PATCH 3/8 MAINTAINERS: Add Dell platform drivers entry
In reply to Brian MakAdd an entry for the now-moved Dell platform drivers, so that misc files like the Kconfig and Makefile are covered.
--- MAINTAINERS | 6 ++++++ 1 file changed, 6 insertions(+)
MAINTAINERS +6 -0
@@ -7477,6 +7477,12 @@ L: [email protected] S: Maintained F: drivers/platform/dell/dell-pc.c +DELL PLATFORM DRIVERS +L: [email protected] +L: [email protected] +S: Maintained +F: drivers/platform/dell/ + DELL REMOTE BIOS UPDATE DRIVER M: Stuart Hayes <[email protected]> L: [email protected]
Signature · 1 line
2.53.0
PATCH 4/8 platform: dell: Allow DELL_LAPTOP to be arch-independent
In reply to Brian MakCONFIG_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.
--- drivers/platform/dell/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/dell/Kconfig +1 -1
@@ -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
Signature · 1 line
2.53.0
Pali Rohár
maintainerRe: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
Quoted 3 lines · On Friday 20 November 2026 16:05:50 Brian Mak wrote:
CONFIG_DELL_LAPTOPis currently not available on ARM64, due to a dependency onCONFIG_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.
Quoted 21 lines
Signed-off-by Brian Mak <[email protected]>--- drivers/platform/dell/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/dell/Kconfig +1
-1@@ -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_CLASSSignature · 1 line
2.53.0
Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
Quoted 14 lines · Pali Rohár
Quoted 3 lines · On Friday 20 November 2026 16:05:50 Brian Mak wrote:
CONFIG_DELL_LAPTOPis currently not available on ARM64, due to a dependency onCONFIG_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.
Quoted 7 lines
So the dell-laptop driver expects that the
SERIO_I8042is enabled and compiled in.If none of these functionality is available on arm64 HW, then it makes sense to make the
SERIO_I8042only 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
Pali Rohár
maintainerRe: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
Quoted 18 lines · On Monday 23 November 2026 19:11:00 Brian Mak wrote:
Quoted 17 lines · Pali Rohár
Quoted 3 lines · On Friday 20 November 2026 16:05:50 Brian Mak wrote:
CONFIG_DELL_LAPTOPis currently not available on ARM64, due to a dependency onCONFIG_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_I8042is enabled and compiled in.
Quoted 6 lines
Quoted 4 lines
If none of these functionality is available on arm64 HW, then it makes sense to make the
SERIO_I8042only 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_I8042already can't be enabled on arm64,
That makes sense. i8042 is x86 specific.
Quoted 11 lines
as
ARCH_MIGHT_HAVE_PC_SERIOis 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_filtercall, if the device is a Latitude or a Precision (checked by DMI) orforce_rfkillis 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.
Quoted 3 lines
For the touchpad LED currently, the
i8042_command()stub will return-ENODEVand do nothing. This will register an LED that does nothing. For v2, I can gate the LED registration behind aSERIO_I8042ifdef.
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.
Quoted 11 lines
For the
Kconfig, since i8042 is required on some x86 Dell platforms, I can change theKconfigdependency to be like such, to ensure thatSERIO_I8042is 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.
Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
Quoted 45 lines · Pali Rohár
Quoted 18 lines · On Monday 23 November 2026 19:11:00 Brian Mak wrote:
Quoted 17 lines · Pali Rohár
Quoted 3 lines · On Friday 20 November 2026 16:05:50 Brian Mak wrote:
CONFIG_DELL_LAPTOPis currently not available on ARM64, due to a dependency onCONFIG_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_I8042is enabled and compiled in.Quoted 6 lines
Quoted 4 lines
If none of these functionality is available on arm64 HW, then it makes sense to make the
SERIO_I8042only 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_I8042already can't be enabled on arm64,That makes sense. i8042 is x86 specific.
Quoted 11 lines
as
ARCH_MIGHT_HAVE_PC_SERIOis 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_filtercall, if the device is a Latitude or a Precision (checked by DMI) orforce_rfkillis 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.
Quoted 5 lines
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?
Quoted 2 lines
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.
Quoted 25 lines
Quoted 3 lines
For the touchpad LED currently, the
i8042_command()stub will return-ENODEVand do nothing. This will register an LED that does nothing. For v2, I can gate the LED registration behind aSERIO_I8042ifdef.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.
Quoted 11 lines
For the
Kconfig, since i8042 is required on some x86 Dell platforms, I can change theKconfigdependency to be like such, to ensure thatSERIO_I8042is 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,
BrianMy 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).
Quoted 7 lines
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
Pali Rohár
maintainerRe: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
Quoted 46 lines · On Monday 23 November 2026 20:33:11 Brian Mak wrote:
Quoted 45 lines · Pali Rohár
Quoted 18 lines · On Monday 23 November 2026 19:11:00 Brian Mak wrote:
Quoted 17 lines · Pali Rohár
Quoted 3 lines · On Friday 20 November 2026 16:05:50 Brian Mak wrote:
CONFIG_DELL_LAPTOPis currently not available on ARM64, due to a dependency onCONFIG_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_I8042is enabled and compiled in.Quoted 6 lines
Quoted 4 lines
If none of these functionality is available on arm64 HW, then it makes sense to make the
SERIO_I8042only 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_I8042already can't be enabled on arm64,That makes sense. i8042 is x86 specific.
Quoted 11 lines
as
ARCH_MIGHT_HAVE_PC_SERIOis 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_filtercall, if the device is a Latitude or a Precision (checked by DMI) orforce_rfkillis 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.
Quoted 8 lines
Quoted 5 lines
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)
Quoted 9 lines
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_I8042or 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.
Quoted 8 lines
Quoted 2 lines
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.
Quoted 36 lines
Quoted 25 lines
Quoted 3 lines
For the touchpad LED currently, the
i8042_command()stub will return-ENODEVand do nothing. This will register an LED that does nothing. For v2, I can gate the LED registration behind aSERIO_I8042ifdef.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.
Quoted 11 lines
For the
Kconfig, since i8042 is required on some x86 Dell platforms, I can change theKconfigdependency to be like such, to ensure thatSERIO_I8042is 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,
BrianMy 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).Quoted 7 lines
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:
Quoted 8 lines
depends on
SERIO_I8042|| (SERIO_I8042= n && !X86)You would gate behind:
depends on
SERIO_I8042|| !X86Thanks,
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.)
Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
Quoted 37 lines · Pali Rohár
Quoted 11 lines · On Monday 23 November 2026 20:33:11 Brian Mak wrote:
Quoted 3 lines · Pali Rohár
Quoted 2 lines · On Monday 23 November 2026 19:11:00 Brian Mak wrote:
Quoted 1 line · Pali Rohár
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.
Quoted 2 lines
I can gate rfkill setup logic behind an ifdef as well then, for v2. Is your preference to gate behind
SERIO_I8042or 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.
Quoted 3 lines
Quoted 2 lines
In any case, it does not make any sense to provide "fake" or "dummy" device by linux just to make driver compilable.
Quoted 8 lines
Quoted 5 lines
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.
Quoted 61 lines
Now I see that I forgot lot of logic behind those dell drivers, so I would need to re-read it again.
Quoted 36 lines
Quoted 25 lines
Quoted 3 lines
For the touchpad LED currently, the
i8042_command()stub will return-ENODEVand do nothing. This will register an LED that does nothing. For v2, I can gate the LED registration behind aSERIO_I8042ifdef.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.
Quoted 11 lines
For the
Kconfig, since i8042 is required on some x86 Dell platforms, I can change theKconfigdependency to be like such, to ensure thatSERIO_I8042is 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,
BrianMy 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).Quoted 7 lines
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:
Quoted 8 lines
depends on
SERIO_I8042|| (SERIO_I8042= n && !X86)You would gate behind:
depends on
SERIO_I8042|| !X86Thanks,
BrianUfff... some more complicated logic behind.
Let me think... If you extend the driver to compile touchpad led support conditionally based on
CONFIG_SERIO_I8042and same for that rfkill event reported, then it should be enough to write just:depends on
SERIO_I8042||SERIO_I8042= nAfter those changes if somebody compiles kernel without the
SERIO_I8042support (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).
Quoted 6 lines
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
Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
In reply to Pali RohárQuoted 45 lines · Pali Rohár
Quoted 18 lines · On Monday 23 November 2026 19:11:00 Brian Mak wrote:
Quoted 17 lines · Pali Rohár
Quoted 3 lines · On Friday 20 November 2026 16:05:50 Brian Mak wrote:
CONFIG_DELL_LAPTOPis currently not available on ARM64, due to a dependency onCONFIG_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_I8042is enabled and compiled in.Quoted 6 lines
Quoted 4 lines
If none of these functionality is available on arm64 HW, then it makes sense to make the
SERIO_I8042only 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_I8042already can't be enabled on arm64,That makes sense. i8042 is x86 specific.
Quoted 11 lines
as
ARCH_MIGHT_HAVE_PC_SERIOis 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_filtercall, if the device is a Latitude or a Precision (checked by DMI) orforce_rfkillis 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.
Quoted 5 lines
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?
Quoted 2 lines
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.
Quoted 25 lines
Quoted 3 lines
For the touchpad LED currently, the
i8042_command()stub will return-ENODEVand do nothing. This will register an LED that does nothing. For v2, I can gate the LED registration behind aSERIO_I8042ifdef.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.
Quoted 11 lines
For the
Kconfig, since i8042 is required on some x86 Dell platforms, I can change theKconfigdependency to be like such, to ensure thatSERIO_I8042is 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,
BrianMy 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).
Quoted 7 lines
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
Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
In reply to Pali RohárQuoted 45 lines · Pali Rohár
Quoted 18 lines · On Monday 23 November 2026 19:11:00 Brian Mak wrote:
Quoted 17 lines · Pali Rohár
Quoted 3 lines · On Friday 20 November 2026 16:05:50 Brian Mak wrote:
CONFIG_DELL_LAPTOPis currently not available on ARM64, due to a dependency onCONFIG_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_I8042is enabled and compiled in.Quoted 6 lines
Quoted 4 lines
If none of these functionality is available on arm64 HW, then it makes sense to make the
SERIO_I8042only 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_I8042already can't be enabled on arm64,That makes sense. i8042 is x86 specific.
Quoted 11 lines
as
ARCH_MIGHT_HAVE_PC_SERIOis 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_filtercall, if the device is a Latitude or a Precision (checked by DMI) orforce_rfkillis 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.
Quoted 5 lines
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?
Quoted 2 lines
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.
Quoted 25 lines
Quoted 3 lines
For the touchpad LED currently, the
i8042_command()stub will return-ENODEVand do nothing. This will register an LED that does nothing. For v2, I can gate the LED registration behind aSERIO_I8042ifdef.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.
Quoted 11 lines
For the
Kconfig, since i8042 is required on some x86 Dell platforms, I can change theKconfigdependency to be like such, to ensure thatSERIO_I8042is 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,
BrianMy 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).
Quoted 7 lines
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
Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
In reply to Pali RohárQuoted 45 lines · Pali Rohár
Quoted 18 lines · On Monday 23 November 2026 19:11:00 Brian Mak wrote:
Quoted 17 lines · Pali Rohár
Quoted 3 lines · On Friday 20 November 2026 16:05:50 Brian Mak wrote:
CONFIG_DELL_LAPTOPis currently not available on ARM64, due to a dependency onCONFIG_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_I8042is enabled and compiled in.Quoted 6 lines
Quoted 4 lines
If none of these functionality is available on arm64 HW, then it makes sense to make the
SERIO_I8042only 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_I8042already can't be enabled on arm64,That makes sense. i8042 is x86 specific.
Quoted 11 lines
as
ARCH_MIGHT_HAVE_PC_SERIOis 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_filtercall, if the device is a Latitude or a Precision (checked by DMI) orforce_rfkillis 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.
Quoted 5 lines
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.
Quoted 2 lines
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.
Quoted 25 lines
Quoted 3 lines
For the touchpad LED currently, the
i8042_command()stub will return-ENODEVand do nothing. This will register an LED that does nothing. For v2, I can gate the LED registration behind aSERIO_I8042ifdef.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.
Quoted 11 lines
For the
Kconfig, since i8042 is required on some x86 Dell platforms, I can change theKconfigdependency to be like such, to ensure thatSERIO_I8042is 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,
BrianMy 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).
Quoted 7 lines
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
Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
In reply to Pali RohárQuoted 45 lines · Pali Rohár
Quoted 18 lines · On Monday 23 November 2026 19:11:00 Brian Mak wrote:
Quoted 17 lines · Pali Rohár
Quoted 3 lines · On Friday 20 November 2026 16:05:50 Brian Mak wrote:
CONFIG_DELL_LAPTOPis currently not available on ARM64, due to a dependency onCONFIG_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_I8042is enabled and compiled in.Quoted 6 lines
Quoted 4 lines
If none of these functionality is available on arm64 HW, then it makes sense to make the
SERIO_I8042only 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_I8042already can't be enabled on arm64,That makes sense. i8042 is x86 specific.
Quoted 11 lines
as
ARCH_MIGHT_HAVE_PC_SERIOis 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_filtercall, if the device is a Latitude or a Precision (checked by DMI) orforce_rfkillis 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.
Quoted 5 lines
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.
Quoted 2 lines
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.
Quoted 25 lines
Quoted 3 lines
For the touchpad LED currently, the
i8042_command()stub will return-ENODEVand do nothing. This will register an LED that does nothing. For v2, I can gate the LED registration behind aSERIO_I8042ifdef.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.
Quoted 11 lines
For the
Kconfig, since i8042 is required on some x86 Dell platforms, I can change theKconfigdependency to be like such, to ensure thatSERIO_I8042is 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,
BrianMy 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).
Quoted 7 lines
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
Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
In reply to Pali RohárQuoted 45 lines · Pali Rohár
Quoted 18 lines · On Monday 23 November 2026 19:11:00 Brian Mak wrote:
Quoted 17 lines · Pali Rohár
Quoted 3 lines · On Friday 20 November 2026 16:05:50 Brian Mak wrote:
CONFIG_DELL_LAPTOPis currently not available on ARM64, due to a dependency onCONFIG_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_I8042is enabled and compiled in.Quoted 6 lines
Quoted 4 lines
If none of these functionality is available on arm64 HW, then it makes sense to make the
SERIO_I8042only 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_I8042already can't be enabled on arm64,That makes sense. i8042 is x86 specific.
Quoted 11 lines
as
ARCH_MIGHT_HAVE_PC_SERIOis 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_filtercall, if the device is a Latitude or a Precision (checked by DMI) orforce_rfkillis 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.
Quoted 5 lines
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.
Quoted 2 lines
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.
Quoted 25 lines
Quoted 3 lines
For the touchpad LED currently, the
i8042_command()stub will return-ENODEVand do nothing. This will register an LED that does nothing. For v2, I can gate the LED registration behind aSERIO_I8042ifdef.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.
Quoted 11 lines
For the
Kconfig, since i8042 is required on some x86 Dell platforms, I can change theKconfigdependency to be like such, to ensure thatSERIO_I8042is 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,
BrianMy 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).
Quoted 7 lines
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
Randy Dunlap
reviewerRe: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
In reply to Brian MakQuoted 14 lines · Brian Mak
CONFIG_DELL_LAPTOPis currently not available on ARM64, due to a dependency onCONFIG_SERIO_I8042. This dependency is actually not necessary, as there is a fallback. Make it optional.Signed-off-by Brian Mak <[email protected]>--- drivers/platform/dell/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/dell/Kconfig +0
-0
drivers/platform/dell/Kconfig config DELL_LAPTOP · line 80
Quoted 5 lines
drivers/platform/dell/Kconfig +1
-1@@ -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
Quoted 3 lines
drivers/platform/dell/Kconfig +0
-0depends on DELL_SMBIOS select POWER_SUPPLY select LEDS_CLASS
Signature · 1 line
~Randy
Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
Quoted 24 lines · Randy Dunlap
Quoted 14 lines · Brian Mak
CONFIG_DELL_LAPTOPis currently not available on ARM64, due to a dependency onCONFIG_SERIO_I8042. This dependency is actually not necessary, as there is a fallback. Make it optional.Signed-off-by Brian Mak <[email protected]>--- drivers/platform/dell/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/dell/Kconfig +0
-0drivers/platform/dell/Kconfig config DELL_LAPTOP · line 80
Quoted 5 lines
drivers/platform/dell/Kconfig +1
-1@@ -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 = nCould also be
Quoted 1 line
depends on SERIO_I8042 if SERIO_I8042
The lines above it use the current pattern, so I prefer it that way.
Thanks,
Brian
PATCH 5/8 platform: dell: smbios-wmi: Fix probe on RTX Spark
In reply to Brian Makdell-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.
--- drivers/platform/dell/dell-smbios-wmi.c | 37 +++++++++++++++++++------ 1 file changed, 29 insertions(+), 8 deletions(-)
drivers/platform/dell/dell-smbios-wmi.c +29 -8
@@ -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 ;
Signature · 1 line
2.53.0
Armin Wolf
maintainerRe: [PATCH 5/8] platform: dell: smbios-wmi: Fix probe on RTX Spark
Am 21.11.26 um 01:05 schrieb Brian Mak:
Quoted 7 lines
dell-smbios-wmi fails to probe on RTX Spark due to a hardcoded SMBIOS handle (
0xB100) of type0xB1(misc BIOS flags) that is numbered differently on Dell RTX Spark laptops. Instead, search for all SMBIOS handles of type0xB1, and if there is just one, use that one. If handle0xB100exists, 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
Quoted 72 lines
Signed-off-by Brian Mak <[email protected]>--- drivers/platform/dell/dell-smbios-wmi.c | 37 +++++++++++++++++++------ 1 file changed, 29 insertions(+), 8 deletions(-)drivers/platform/dell/dell-smbios-wmi.c +29
-8@@ -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 ;
Re: [PATCH 5/8] platform: dell: smbios-wmi: Fix probe on RTX Spark
Quoted 10 lines · Armin Wolf
Am 21.11.26 um 01:05 schrieb Brian Mak:
Quoted 7 lines
dell-smbios-wmi fails to probe on RTX Spark due to a hardcoded SMBIOS handle (
0xB100) of type0xB1(misc BIOS flags) that is numbered differently on Dell RTX Spark laptops. Instead, search for all SMBIOS handles of type0xB1, and if there is just one, use that one. If handle0xB100exists, always use that.This fixes dell-smbios-wmi probe on Dell RTX Spark laptops.
Quoted 8 lines
Hi,
i think you can drop the special handling of handle
0xB100and instead just check if the SMBIOS type is0xB1. AFAIK the PCI code also parses some parts of the0xB1type, and there the handle value is irrelevant.Thanks,
Armin Wolf
Will do for v2.
Thanks,
Brian
PATCH 6/8 platform: dell: smbios: Add quirk for non-functional calling interface
In reply to Brian MakOn 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.
--- drivers/platform/dell/dell-smbios-base.c | 22 ++++++++++++++++++++++ drivers/platform/dell/dell-smbios.h | 1 + 2 files changed, 23 insertions(+)
drivers/platform/dell/dell-smbios-base.c +22 -0
@@ -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 */
drivers/platform/dell/dell-smbios.h +1 -0
@@ -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
Signature · 1 line
2.53.0
Pali Rohár
maintainerRe: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
Quoted 4 lines · 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?
Quoted 59 lines
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 <[email protected]>--- drivers/platform/dell/dell-smbios-base.c | 22 ++++++++++++++++++++++ drivers/platform/dell/dell-smbios.h | 1 + 2 files changed, 23 insertions(+)drivers/platform/dell/dell-smbios-base.c +22
-0@@ -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 */ drivers/platform/dell/dell-smbios.h +1
-0@@ -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 Signature · 1 line
2.53.0
Re: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
Quoted 7 lines · Pali Rohár
Quoted 4 lines · 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
Pali Rohár
maintainerRe: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
Quoted 7 lines · On Saturday 21 November 2026 00:45:05 Brian Mak wrote:
Quoted 6 lines · Pali Rohár
Quoted 4 lines · 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.
Quoted 6 lines
Quoted 1 line
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.
Armin Wolf
maintainerRe: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
In reply to Brian MakAm 21.11.26 um 01:05 schrieb Brian Mak:
Quoted 9 lines
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
Quoted 51 lines
Signed-off-by Brian Mak <[email protected]>--- drivers/platform/dell/dell-smbios-base.c | 22 ++++++++++++++++++++++ drivers/platform/dell/dell-smbios.h | 1 + 2 files changed, 23 insertions(+)drivers/platform/dell/dell-smbios-base.c +22
-0@@ -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 */ drivers/platform/dell/dell-smbios.h +1
-0@@ -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
Re: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
Quoted 12 lines · Armin Wolf
Am 21.11.26 um 01:05 schrieb Brian Mak:
Quoted 9 lines
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.
Quoted 5 lines
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.
Hi Armin,
I've attached the acpidump.
Quoted 7 lines
Alternatively, maybe the wrong backend get selected. Currently the dell- smbios-smm
backend will try to read a specific token intest_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?
dell-smbios-smm is not available outside of x86, as it depends on DCDBAS, which depends on X86. It would only be using the WMI backend.
Thanks,
Brian
Quoted 2 lines
Thanks,
Armin Wolf
Armin Wolf
maintainerRe: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
Am 24.11.26 um 00:43 schrieb Brian Mak:
Quoted 15 lines · Armin Wolf
Quoted 14 lines
Am 21.11.26 um 01:05 schrieb Brian Mak:
Quoted 9 lines
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,
Quoted 7 lines
Quoted 3 lines
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.Hi Armin,
I've attached the acpidump.
Thank you very much.
Quoted 9 lines
Quoted 8 lines
Alternatively, maybe the wrong backend get selected. Currently the dell- smbios-smm
backend will try to read a specific token intest_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?
Quoted 5 lines
dell-smbios-smm is not available outside of x86, as it depends on DCDBAS, which depends on X86. It would only be using the WMI backend.
Thanks,
Brian
If i understand the ACPI code correctly, then it seems that the WMI interface interacts with a OperationRegion handled by the ARML0002 device, associated with the ARM FFA interface.
AFAIK the linux kernel currently does not support this device, maybe this is the reason why all SMBIOS calls fail.
I also noticed that the device supports the WMI interface used by the dell-smm-hwmon driver. If you want i can try to enable this driver on arm64 too, but IMHO it should be considered optional at best.
Thanks,
Armin Wolf
Quoted 2 lines
Quoted 2 lines
Thanks,
Armin Wolf
Armin Wolf
maintainerRe: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
Am 24.11.26 um 15:29 schrieb Armin Wolf:
Quoted 38 lines
Am 24.11.26 um 00:43 schrieb Brian Mak:
Quoted 15 lines · Armin Wolf
Quoted 14 lines
Am 21.11.26 um 01:05 schrieb Brian Mak:
Quoted 9 lines
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,
Quoted 7 lines
Quoted 3 lines
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.Hi Armin,
I've attached the acpidump.
Thank you very much.
Quoted 12 lines
Quoted 8 lines
Alternatively, maybe the wrong backend get selected. Currently the dell- smbios-smm
backend will try to read a specific token intest_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?dell-smbios-smm is not available outside of x86, as it depends on DCDBAS, which depends on X86. It would only be using the WMI backend.
Quoted 6 lines
Quoted 2 lines
Thanks,
BrianIf i understand the ACPI code correctly, then it seems that the WMI interface interacts with a OperationRegion handled by the ARML0002 device, associated with the ARM FFA interface.
AFAIK the linux kernel currently does not support this device, maybe this is the reason why all SMBIOS calls fail.
After doing some more research it seems that the associated WMI method
tries to call a ARM FFA service using a FFixedHardware opregion. Theoretically Linux already supports this, did you enable CONFIG_ACPI_FFH?
Thanks,
Armin Wolf
Quoted 11 lines
I also noticed that the device supports the WMI interface used by the dell-smm-hwmon driver. If you want i can try to enable this driver on arm64 too, but IMHO it should be considered optional at best.
Thanks,
Armin WolfQuoted 2 lines
Quoted 2 lines
Thanks,
Armin Wolf
Re: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
Quoted 24 lines · Armin Wolf
Am 24.11.26 um 15:29 schrieb Armin Wolf:
Quoted 23 lines
Am 24.11.26 um 00:43 schrieb Brian Mak:
Quoted 12 lines · Armin Wolf
Quoted 10 lines
Am 21.11.26 um 01:05 schrieb Brian Mak:
Alternatively, maybe the wrong backend get selected. Currently the dell-
smbios-smm
backend will try to read a specific token intest_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?Quoted 5 lines
dell-smbios-smm is not available outside of x86, as it depends on DCDBAS, which depends on X86. It would only be using the WMI backend.
Thanks,
BrianIf i understand the ACPI code correctly, then it seems that the WMI interface interacts with a OperationRegion handled by the ARML0002 device, associated with the ARM FFA interface.
Quoted 6 lines
Quoted 2 lines
AFAIK the linux kernel currently does not support this device, maybe this is the reason why all SMBIOS calls fail.
After doing some more research it seems that the associated WMI method tries to call a ARM FFA service using a FFixedHardware opregion. Theoretically Linux already supports this, did you enable
CONFIG_ACPI_FFH?
Hi Armin,
We use FFH offset 2 for this, which is not supported by CONFIG_ACPI_FFH (only supports offsets 0 and 1), but is supported by the nvidia-ffa-ec driver we currently carry out-of-tree:
https://github.com/NVIDIA/NV-Kernels/commit/699ec3dcc62ce09f071625307079dc7d68d8767e
Thanks,
Brian
Quoted 14 lines
Thanks,
Armin WolfQuoted 11 lines
I also noticed that the device supports the WMI interface used by the dell-smm-hwmon driver. If you want i can try to enable this driver on arm64 too, but IMHO it should be considered optional at best.
Thanks,
Armin WolfQuoted 2 lines
Quoted 2 lines
Thanks,
Armin Wolf
Armin Wolf
maintainerRe: [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface
Am 24.11.26 um 18:42 schrieb Brian Mak:
Quoted 34 lines · Armin Wolf
Quoted 22 lines
Am 24.11.26 um 15:29 schrieb Armin Wolf:
Quoted 21 lines
Am 24.11.26 um 00:43 schrieb Brian Mak:
Quoted 11 lines · Armin Wolf
Quoted 10 lines
Am 21.11.26 um 01:05 schrieb Brian Mak:
Alternatively, maybe the wrong backend get selected. Currently the dell-
smbios-smm
backend will try to read a specific token intest_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?Quoted 5 lines
dell-smbios-smm is not available outside of x86, as it depends on DCDBAS, which depends on X86. It would only be using the WMI backend.
Thanks,
BrianIf i understand the ACPI code correctly, then it seems that the WMI interface interacts with a OperationRegion handled by the ARML0002 device, associated with the ARM FFA interface.
Quoted 5 lines
Quoted 2 lines
AFAIK the linux kernel currently does not support this device, maybe this is the reason why all SMBIOS calls fail.
After doing some more research it seems that the associated WMI method tries to call a ARM FFA service using a FFixedHardware opregion. Theoretically Linux already supports this, did you enable
CONFIG_ACPI_FFH?Hi Armin,
We use FFH offset 2 for this, which is not supported by
CONFIG_ACPI_FFH(only supports offsets 0 and 1), but is supported by the nvidia-ffa-ec driver we currently carry out-of-tree:
Quoted 6 lines
https://github.com/NVIDIA/NV-Kernels/commit/699ec3dcc62ce09f071625307079dc7d68d8767e
Thanks,
Brian
I see, interesting.
i took a closer look at the ASL code inside the WMBA ACPI control method (responsible for handling SMBIOS calls), and i noticed that the ACPI method will return the output buffer unmodified if the FFA call fails.
Currently dell_fill_request() will initialize all output data with zero before performing a SMBIOS call, so a failed call will look like a successful one because output[0] will still read zero (aka "success"). Maybe a solution would be to initialize the output data with 0xFFFFFFFF so dell_smbios_error() will detect it as an error.
I also noticed that the WMI method will return not enough data, so i think all WMI SMBIOS calls will fail starting with kernel 7.2 because then the WMI core will employ stricter size checks for the output data. Can you check if this is indeed the case?
Thanks,
Armin Wolf
Quoted 13 lines
Quoted 13 lines
Thanks,
Armin WolfQuoted 10 lines
I also noticed that the device supports the WMI interface used by the dell-smm-hwmon driver. If you want i can try to enable this driver on arm64 too, but IMHO it should be considered optional at best.
Thanks,
Armin WolfQuoted 2 lines
Quoted 2 lines
Thanks,
Armin Wolf
PATCH 7/8 platform: dell: laptop: Don't load if SMBIOS calls are non-functional
In reply to Brian Makdell-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.
--- drivers/platform/dell/dell-laptop.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/platform/dell/dell-laptop.c +3 -0
@@ -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);
Signature · 1 line
2.53.0
PATCH 8/8 platform: dell: pc: Don't load if SMBIOS calls are non-functional
In reply to Brian Makdell-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.
--- drivers/platform/dell/dell-pc.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/platform/dell/dell-pc.c +3 -0
@@ -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 ;
Signature · 1 line
2.53.0