platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest10 patches 0 repliesNew
- v18 patches 22 repliesSuperseded
Changes in v2 from the cover letter
- New patch 2: add missing kernel-doc parameter descriptions to dcdbas. These W=1 warnings predate the series, but the kernel test robot reported them against the move in v1 because the path changed.
- New patch 5: compile out dell-laptop's i8042 usage (touchpad LED and rfkill event fallback) when SERIO_I8042 is disabled, and skip rfkill instead of failing to probe when neither dell-rbtn nor i8042 is available on Latitude and Precision models.
- Patch 6: reword the commit message. The dependency can now be optional because of patch 5. No code changes.
- Patch 7: drop the special handling of handle 0xB100 and match on SMBIOS type 0xB1 only.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | platform/x86: dell: Make uart-backlight x86 onlydrivers/ | +1 | 0 replies | |
| 2/10 | platform/x86: dell: dcdbas: Add missing kernel-doc descriptionsdrivers/ | +10 | 0 replies | |
| 3/10 | platform: dell: Move out of x86 directoryDocumentation/ MAINTAINERS drivers/ +43 more | +37 | 0 replies | |
| 4/10 | MAINTAINERS: Add Dell platform drivers entryMAINTAINERS | +6 | 0 replies | |
| 5/10 | platform: dell: laptop: Compile out i8042 usage without SERIO_I8042drivers/ | +16 | 0 replies | |
| 6/10 | platform: dell: Allow DELL_LAPTOP to be arch-independentdrivers/ | +1 | 0 replies | |
| 7/10 | platform: dell: smbios-wmi: Fix probe on RTX Sparkdrivers/ | +0 | 0 replies | |
| 8/10 | platform: dell: smbios: Add quirk for non-functional calling interfacedrivers/ drivers/ | +23 | 0 replies | |
| 9/10 | platform: dell: laptop: Don't load if SMBIOS calls are non-functionaldrivers/ | +3 | 0 replies | |
| 10/10 | platform: dell: pc: Don't load if SMBIOS calls are non-functionaldrivers/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 00/10] 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.
Patch 2 fixes pre-existing kernel-doc warnings in dcdbas, which the kernel test robot reported as new against v1 because of the rename.
Patches 3-4 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.
Patches 5-6 make DELL_LAPTOP buildable without SERIO_I8042. Patch 5 compiles out dell-laptop's i8042 usage (the touchpad LED and the rfkill event fallback) when SERIO_I8042 is disabled. When neither dell-rbtn nor i8042 is available, it skips rfkill instead of failing to load. Patch 6 then relaxes the dependency to SERIO_I8042 || SERIO_I8042 = n.
Patch 7 fixes dell-smbios-wmi probe on the XPS 16 Creator Edition. The current driver only accepts the misc BIOS flags structure (SMBIOS type 0xB1) at handle 0xB100, but the XPS 16 Creator Edition firmware numbers its handles differently. The handle value is irrelevant, so match on the type only.
Patches 8-10 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 8 adds a DMI quirk list and exports dell_smbios_calls_functional(). Patches 9-10 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.
- Build-tested x86-64 with SERIO_I8042 disabled.
- 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.
Changes in v2:
- New patch 2: add missing kernel-doc parameter descriptions to dcdbas. These W=1 warnings predate the series, but the kernel test robot reported them against the move in v1 because the path changed.
- New patch 5: compile out dell-laptop's i8042 usage (touchpad LED and rfkill event fallback) when SERIO_I8042 is disabled, and skip rfkill instead of failing to probe when neither dell-rbtn nor i8042 is available on Latitude and Precision models.
- Patch 6: reword the commit message. The dependency can now be optional because of patch 5. No code changes.
- Patch 7: drop the special handling of handle 0xB100 and match on SMBIOS type 0xB1 only.
v1: https://lore.kernel.org/lkml/[email protected]/T/#u
Brian Mak (10):
platform/x86: dell: Make uart-backlight x86 only platform/x86: dell: dcdbas: Add missing kernel-doc descriptions
platform: dell: Move out of x86 directory
MAINTAINERS: Add Dell platform drivers entry
platform: dell: laptop: Compile out i8042 usage without SERIO_I8042
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 | 11 +++++-
drivers/platform/{x86 => }/dell/dcdbas.h | 0
.../{x86 => }/dell/dell-dw5826e-reset.c | 0
drivers/platform/{x86 => }/dell/dell-laptop.c | 23 +++++++++---
.../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 | 2 --
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, 100 insertions(+), 41 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 (97%)
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 (99%)
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: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
Signature · 1 line
2.53.0