mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/8] platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition
@ 2026-11-21  0:05 Brian Mak
  2026-11-21  0:05 ` [PATCH 1/8] platform/x86: dell: Make uart-backlight x86 only Brian Mak
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Brian Mak @ 2026-11-21  0:05 UTC (permalink / raw)
  To: Hans de Goede, Ilpo Järvinen
  Cc: Kurt Borja, Stuart Hayes, Matthew Garrett, Pali Rohár,
	Lyndon Sanche, Armin Wolf, Prasanth Ksr, Jonathan Corbet,
	Shuah Khan, Randy Dunlap, platform-driver-x86,
	Dell.Client.Kernel, linux-doc, linux-kernel, Brian Mak

The Dell XPS 16 Creator Edition (DX16263) is an ARM64 laptop based on
NVIDIA RTX Spark. Its firmware exposes the same ACPI-WMI and SMBIOS
interfaces as Dell's x86 laptops, so existing Dell platform drivers
apply to it as-is. Today, they live under drivers/platform/x86/ and are
gated on X86_PLATFORM_DEVICES, so they can't be enabled on ARM64.

This series moves the Dell drivers to drivers/platform/dell/, makes the
ones that work there available on ARM64, and works around some firmware
quirks found on the Dell XPS 16 Creator Edition.

Patch 1 makes DELL_UART_BACKLIGHT depend on X86 before the move. The
driver relies on the DELL0501 handling in
acpi_quirk_skip_serdev_enumeration(), which only exists in
drivers/acpi/x86/utils.c, and on drivers/platform/x86/serdev_helpers.h.
Without that quirk, no serdev controller or platform device is created,
so the driver wouldn't work on other architectures.

Patches 2-3 move the drivers to drivers/platform/dell/, rename
X86_PLATFORM_DRIVERS_DELL to DELL_PLATFORMS (keeping the old symbol as a
transitional config so existing .configs carry over), and add a
MAINTAINERS entry for the new directory. The per-driver MAINTAINERS
entries are updated to the new paths. DCDBAS, DELL_RBU and
DELL_SMBIOS_SMM keep their X86 dependency.

Patch 4 makes DELL_LAPTOP's SERIO_I8042 dependency optional, as there is
a fallback stub, which returns -ENODEV.

Patch 5 fixes dell-smbios-wmi probe on the XPS 16 Creator Edition. The
driver looks for the misc BIOS flags (SMBIOS type 0xB1) only at the
hardcoded handle 0xB100, but firmware numbers it differently. Handle
0xB100 is still used whenever it exists. Otherwise, the driver falls
back to the only type 0xB1 structure, if there is exactly one.

Patches 6-8 handle a firmware problem on the same machine: the SMBIOS
calling interface completes every request to the Dell-proprietary
interface with all zeroes, even for requests that should fail. As a
result, dell-laptop reports bogus battery charge modes and thresholds
and registers mic mute/mute LEDs that do nothing, and dell-pc fails with
"platform_profile probe failed". Patch 6 adds a DMI quirk list and
exports dell_smbios_calls_functional(). Patches 7-8 make dell-laptop and
dell-pc refuse to load on affected platforms. dell-smbios itself still
loads, since dell-wmi depends on it.

Testing done:
- Build-tested x86-64 and arm64 with all Dell platform drivers enabled.
- Runtime-tested on Dell XPS 16 Creator Edition. Mic mute key is
  working.

Need help testing:
- x86 Dell laptops/desktops for regressions.

Outstanding issues (outside of this series):
- When spamming the keyboard backlight key, then pressing the mic mute
  key, the mic mute event is spammed. This is a multi-part issue between
  the EC and DSDT. I have a DSDT patch to fix this. I will be working
  with Dell to get it resolved.
- When the dell-wmi driver is not loaded and the keyboard backlight
  button is spammed, it will eventually stop working and FF-A
  notifications stop firing. This is likely an issue with the EC's event
  queue filling up and not notifying anymore after being full (since
  there's no consumers). I will be working with Dell to get this
  resolved too.

Brian Mak (8):
  platform/x86: dell: Make uart-backlight x86 only
  platform: dell: Move out of x86 directory
  MAINTAINERS: Add Dell platform drivers entry
  platform: dell: Allow DELL_LAPTOP to be arch-independent
  platform: dell: smbios-wmi: Fix probe on RTX Spark
  platform: dell: smbios: Add quirk for non-functional calling interface
  platform: dell: laptop: Don't load if SMBIOS calls are non-functional
  platform: dell: pc: Don't load if SMBIOS calls are non-functional

 .../admin-guide/laptops/alienware-wmi.rst     |  4 +-
 MAINTAINERS                                   | 36 ++++++++++--------
 drivers/platform/Kconfig                      |  2 +
 drivers/platform/Makefile                     |  1 +
 drivers/platform/{x86 => }/dell/Kconfig       | 21 +++++++----
 drivers/platform/{x86 => }/dell/Makefile      |  4 +-
 .../{x86 => }/dell/alienware-wmi-base.c       |  0
 .../{x86 => }/dell/alienware-wmi-legacy.c     |  0
 .../{x86 => }/dell/alienware-wmi-wmax.c       |  0
 .../platform/{x86 => }/dell/alienware-wmi.h   |  0
 drivers/platform/{x86 => }/dell/dcdbas.c      |  0
 drivers/platform/{x86 => }/dell/dcdbas.h      |  0
 .../{x86 => }/dell/dell-dw5826e-reset.c       |  0
 drivers/platform/{x86 => }/dell/dell-laptop.c |  3 ++
 .../platform/{x86 => }/dell/dell-lis3lv02d.c  |  0
 drivers/platform/{x86 => }/dell/dell-pc.c     |  3 ++
 drivers/platform/{x86 => }/dell/dell-rbtn.c   |  0
 drivers/platform/{x86 => }/dell/dell-rbtn.h   |  0
 .../{x86 => }/dell/dell-smbios-base.c         | 22 +++++++++++
 .../platform/{x86 => }/dell/dell-smbios-smm.c |  0
 .../platform/{x86 => }/dell/dell-smbios-wmi.c | 37 +++++++++++++++----
 drivers/platform/{x86 => }/dell/dell-smbios.h |  1 +
 .../{x86 => }/dell/dell-smo8800-ids.h         |  0
 .../platform/{x86 => }/dell/dell-smo8800.c    |  0
 .../{x86 => }/dell/dell-uart-backlight.c      |  2 +-
 .../platform/{x86 => }/dell/dell-wmi-aio.c    |  0
 .../platform/{x86 => }/dell/dell-wmi-base.c   |  0
 .../platform/{x86 => }/dell/dell-wmi-ddv.c    |  0
 .../{x86 => }/dell/dell-wmi-descriptor.c      |  0
 .../{x86 => }/dell/dell-wmi-descriptor.h      |  0
 .../platform/{x86 => }/dell/dell-wmi-led.c    |  0
 .../{x86 => }/dell/dell-wmi-privacy.c         |  0
 .../{x86 => }/dell/dell-wmi-privacy.h         |  0
 .../{x86 => }/dell/dell-wmi-sysman/Makefile   |  0
 .../dell/dell-wmi-sysman/biosattr-interface.c |  0
 .../dell/dell-wmi-sysman/dell-wmi-sysman.h    |  0
 .../dell/dell-wmi-sysman/enum-attributes.c    |  0
 .../dell/dell-wmi-sysman/int-attributes.c     |  0
 .../dell/dell-wmi-sysman/passobj-attributes.c |  0
 .../dell-wmi-sysman/passwordattr-interface.c  |  0
 .../dell/dell-wmi-sysman/string-attributes.c  |  0
 .../{x86 => }/dell/dell-wmi-sysman/sysman.c   |  0
 drivers/platform/{x86 => }/dell/dell_rbu.c    |  0
 drivers/platform/x86/Kconfig                  |  2 -
 drivers/platform/x86/Makefile                 |  3 --
 .../x86/dell-uart-backlight-emulator/README   |  4 +-
 46 files changed, 103 insertions(+), 42 deletions(-)
 rename drivers/platform/{x86 => }/dell/Kconfig (95%)
 rename drivers/platform/{x86 => }/dell/Makefile (93%)
 rename drivers/platform/{x86 => }/dell/alienware-wmi-base.c (100%)
 rename drivers/platform/{x86 => }/dell/alienware-wmi-legacy.c (100%)
 rename drivers/platform/{x86 => }/dell/alienware-wmi-wmax.c (100%)
 rename drivers/platform/{x86 => }/dell/alienware-wmi.h (100%)
 rename drivers/platform/{x86 => }/dell/dcdbas.c (100%)
 rename drivers/platform/{x86 => }/dell/dcdbas.h (100%)
 rename drivers/platform/{x86 => }/dell/dell-dw5826e-reset.c (100%)
 rename drivers/platform/{x86 => }/dell/dell-laptop.c (99%)
 rename drivers/platform/{x86 => }/dell/dell-lis3lv02d.c (100%)
 rename drivers/platform/{x86 => }/dell/dell-pc.c (99%)
 rename drivers/platform/{x86 => }/dell/dell-rbtn.c (100%)
 rename drivers/platform/{x86 => }/dell/dell-rbtn.h (100%)
 rename drivers/platform/{x86 => }/dell/dell-smbios-base.c (97%)
 rename drivers/platform/{x86 => }/dell/dell-smbios-smm.c (100%)
 rename drivers/platform/{x86 => }/dell/dell-smbios-wmi.c (90%)
 rename drivers/platform/{x86 => }/dell/dell-smbios.h (98%)
 rename drivers/platform/{x86 => }/dell/dell-smo8800-ids.h (100%)
 rename drivers/platform/{x86 => }/dell/dell-smo8800.c (100%)
 rename drivers/platform/{x86 => }/dell/dell-uart-backlight.c (99%)
 rename drivers/platform/{x86 => }/dell/dell-wmi-aio.c (100%)
 rename drivers/platform/{x86 => }/dell/dell-wmi-base.c (100%)
 rename drivers/platform/{x86 => }/dell/dell-wmi-ddv.c (100%)
 rename drivers/platform/{x86 => }/dell/dell-wmi-descriptor.c (100%)
 rename drivers/platform/{x86 => }/dell/dell-wmi-descriptor.h (100%)
 rename drivers/platform/{x86 => }/dell/dell-wmi-led.c (100%)
 rename drivers/platform/{x86 => }/dell/dell-wmi-privacy.c (100%)
 rename drivers/platform/{x86 => }/dell/dell-wmi-privacy.h (100%)
 rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/Makefile (100%)
 rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/biosattr-interface.c (100%)
 rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/dell-wmi-sysman.h (100%)
 rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/enum-attributes.c (100%)
 rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/int-attributes.c (100%)
 rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/passobj-attributes.c (100%)
 rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/passwordattr-interface.c (100%)
 rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/string-attributes.c (100%)
 rename drivers/platform/{x86 => }/dell/dell-wmi-sysman/sysman.c (100%)
 rename drivers/platform/{x86 => }/dell/dell_rbu.c (100%)


base-commit: d0f871bfb831705d9f55479f5b2b40f636ea7b16
-- 
2.53.0


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

end of thread, other threads:[~2026-11-21  0:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-21  0:05 [PATCH 0/8] platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition Brian Mak
2026-11-21  0:05 ` [PATCH 1/8] platform/x86: dell: Make uart-backlight x86 only Brian Mak
2026-11-21  0:05 ` [PATCH 2/8] platform: dell: Move out of x86 directory Brian Mak
2026-11-21  0:05 ` [PATCH 3/8] MAINTAINERS: Add Dell platform drivers entry Brian Mak
2026-11-21  0:05 ` [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent Brian Mak
2026-11-21  0:48   ` Pali Rohár
2026-11-21  0:05 ` [PATCH 5/8] platform: dell: smbios-wmi: Fix probe on RTX Spark Brian Mak
2026-11-21  0:05 ` [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface Brian Mak
2026-11-21  0:38   ` Pali Rohár
2026-11-21  0:45     ` Brian Mak
2026-11-21  0:51       ` Pali Rohár
2026-11-21  0:05 ` [PATCH 7/8] platform: dell: laptop: Don't load if SMBIOS calls are non-functional Brian Mak
2026-11-21  0:05 ` [PATCH 8/8] platform: dell: pc: " Brian Mak

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

all inboxes | Powered by JetHome®