All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/10] platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition
@ 2026-11-23 23:08 Brian Mak
  2026-11-23 23:08 ` [PATCH v2 01/10] platform/x86: dell: Make uart-backlight x86 only Brian Mak
                   ` (11 more replies)
  0 siblings, 12 replies; 20+ messages in thread
From: Brian Mak @ 2026-11-23 23:08 UTC (permalink / raw)
  To: Hans de Goede, Ilpo Järvinen
  Cc: David Cemin, Lucas De Marchi, 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.

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/20261121000556.173028-1-bmak@nvidia.com/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
-- 
2.53.0


^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: [PATCH v2 03/10] platform: dell: Move out of x86 directory
@ 2026-12-01 21:55 kernel test robot
  0 siblings, 0 replies; 20+ messages in thread
From: kernel test robot @ 2026-12-01 21:55 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "low confidence static check warning: drivers/platform/dell/dell-smbios-base.c:411:25: sparse: warning: Initializer entry defined twice"
:::::: Manual check reason: "linux-review patch is more than 7 days old, verify it wasn't already superseded"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20261123230905.13899-4-bmak@nvidia.com>
References: <20261123230905.13899-4-bmak@nvidia.com>
TO: Brian Mak <bmak@nvidia.com>
TO: Hans de Goede <hansg@kernel.org>
TO: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
CC: David Cemin <dcemin@nvidia.com>
CC: Lucas De Marchi <ldemarchi@nvidia.com>
CC: Kurt Borja <kuurtb@gmail.com>
CC: Stuart Hayes <stuart.w.hayes@gmail.com>
CC: Matthew Garrett <mjg59@srcf.ucam.org>
CC: "Pali Rohár" <pali@kernel.org>
CC: Lyndon Sanche <lsanche@lyndeno.ca>
CC: Armin Wolf <W_Armin@gmx.de>
CC: Prasanth Ksr <prasanth.ksr@dell.com>
CC: Jonathan Corbet <corbet@lwn.net>
CC: Shuah Khan <skhan@linuxfoundation.org>
CC: Randy Dunlap <rdunlap@infradead.org>
CC: platform-driver-x86@vger.kernel.org
CC: Dell.Client.Kernel@dell.com
CC: linux-doc@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: Brian Mak <bmak@nvidia.com>

Hi Brian,

kernel test robot noticed the following build warnings:

[auto build test WARNING on b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f]

url:    https://github.com/intel-lab-lkp/linux/commits/Brian-Mak/platform-x86-dell-Make-uart-backlight-x86-only/20261123-150852
base:   b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
patch link:    https://lore.kernel.org/r/20261123230905.13899-4-bmak%40nvidia.com
patch subject: [PATCH v2 03/10] platform: dell: Move out of x86 directory
:::::: branch date: 8 days ago
:::::: commit date: 8 days ago
config: i386-randconfig-2300-20261201 (https://download.01.org/0day-ci/archive/20261201/20261201224652.xhjS78WD-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261201/20261201224652.xhjS78WD-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/20261201224652.xhjS78WD-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/platform/dell/dell-smbios-base.c:411:25: sparse: warning: Initializer entry defined twice
   drivers/platform/dell/dell-smbios-base.c:411:25: sparse:   also defined here
   drivers/platform/dell/dell-smbios-base.c:498:25: sparse: warning: Initializer entry defined twice
   drivers/platform/dell/dell-smbios-base.c:498:25: sparse:   also defined here
   drivers/platform/dell/dell-smbios-base.c:503:23: sparse: warning: Initializer entry defined twice
   drivers/platform/dell/dell-smbios-base.c:503:23: sparse:   also defined here
--
>> drivers/platform/dell/dell-lis3lv02d.c:59:9: sparse: warning: Initializer entry defined twice
   drivers/platform/dell/dell-lis3lv02d.c:60:9: sparse:   also defined here

vim +411 drivers/platform/dell/dell-smbios-base.c

586d7e4b240ab3 drivers/platform/x86/dell/dell-smbios-base.c Lyndon Sanche     2024-05-29  392  
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  393  static void __init parse_da_table(const struct dmi_header *dm)
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  394  {
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  395  	/* Final token is a terminator, so we don't want to copy it */
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  396  	int tokens = (dm->length-11)/sizeof(struct calling_interface_token)-1;
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  397  	struct calling_interface_token *new_da_tokens;
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  398  	struct calling_interface_structure *table =
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  399  		container_of(dm, struct calling_interface_structure, header);
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  400  
98c76a3904261a drivers/platform/x86/dell-smbios.c           Mario Limonciello 2018-02-27  401  	/*
98c76a3904261a drivers/platform/x86/dell-smbios.c           Mario Limonciello 2018-02-27  402  	 * 4 bytes of table header, plus 7 bytes of Dell header
98c76a3904261a drivers/platform/x86/dell-smbios.c           Mario Limonciello 2018-02-27  403  	 * plus at least 6 bytes of entry
98c76a3904261a drivers/platform/x86/dell-smbios.c           Mario Limonciello 2018-02-27  404  	 */
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  405  
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  406  	if (dm->length < 17)
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  407  		return;
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  408  
1f8543a5d602b8 drivers/platform/x86/dell-smbios.c           Mario Limonciello 2017-11-01  409  	da_supported_commands = table->supportedCmds;
1f8543a5d602b8 drivers/platform/x86/dell-smbios.c           Mario Limonciello 2017-11-01  410  
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22 @411  	new_da_tokens = krealloc(da_tokens, (da_num_tokens + tokens) *
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  412  				 sizeof(struct calling_interface_token),
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  413  				 GFP_KERNEL);
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  414  
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  415  	if (!new_da_tokens)
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  416  		return;
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  417  	da_tokens = new_da_tokens;
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  418  
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  419  	memcpy(da_tokens+da_num_tokens, table->tokens,
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  420  	       sizeof(struct calling_interface_token) * tokens);
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  421  
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  422  	da_num_tokens += tokens;
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  423  }
2f9f26bd861474 drivers/platform/x86/dell-smbios.c           Michał Kępień     2016-01-22  424  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

end of thread, other threads:[~2026-12-01 21:56 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 23:08 [PATCH v2 00/10] platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition Brian Mak
2026-11-23 23:08 ` [PATCH v2 01/10] platform/x86: dell: Make uart-backlight x86 only Brian Mak
2026-11-23 23:08 ` [PATCH v2 02/10] platform/x86: dell: dcdbas: Add missing kernel-doc descriptions Brian Mak
2026-11-23 23:08 ` [PATCH v2 03/10] platform: dell: Move out of x86 directory Brian Mak
2026-11-23 23:08 ` [PATCH v2 04/10] MAINTAINERS: Add Dell platform drivers entry Brian Mak
2026-11-23 23:08 ` [PATCH v2 05/10] platform: dell: laptop: Compile out i8042 usage without SERIO_I8042 Brian Mak
2026-11-23 23:08 ` [PATCH v2 06/10] platform: dell: Allow DELL_LAPTOP to be arch-independent Brian Mak
2026-11-23 23:08 ` [PATCH v2 07/10] platform: dell: smbios-wmi: Fix probe on RTX Spark Brian Mak
2026-11-23 23:08 ` [PATCH v2 08/10] platform: dell: smbios: Add quirk for non-functional calling interface Brian Mak
2026-11-23 23:09 ` [PATCH v2 09/10] platform: dell: laptop: Don't load if SMBIOS calls are non-functional Brian Mak
2026-11-23 23:09 ` [PATCH v2 10/10] platform: dell: pc: " Brian Mak
2026-11-30 21:01 ` [PATCH v2 00/10] platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition Brian Mak
2026-11-30 21:14 ` Mario Limonciello
2026-11-30 21:46   ` Brian Mak
2026-11-30 21:49     ` Mario Limonciello
2026-11-30 21:53       ` Brian Mak
2026-11-30 22:32         ` Mario Limonciello
2026-12-01  9:44           ` Hans de Goede
2026-12-01  9:45             ` Hans de Goede
  -- strict thread matches above, loose matches on Subject: below --
2026-12-01 21:55 [PATCH v2 03/10] platform: dell: Move out of x86 directory kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.