* [PATCH v3 0/3] platform/wmi: Add aarch64 support
@ 2026-07-24 2:59 Armin Wolf
2026-07-24 2:59 ` [PATCH v3 1/3] platform/wmi: Remove dependency on CONFIG_X86 Armin Wolf
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Armin Wolf @ 2026-07-24 2:59 UTC (permalink / raw)
To: hansg, ilpo.jarvinen
Cc: platform-driver-x86, linux-kernel, linux, rafael, lenb,
linux-acpi, alexander.deucher, christian.koenig, airlied, simona,
amd-gfx, dri-devel, patrik.r.jakobsson, maarten.lankhorst,
mripard, tzimmermann, jani.nikula, joonas.lahtinen, rodrigo.vivi,
tursulin, intel-gfx, matthew.brost, thomas.hellstrom, intel-xe
The aarch64-laptops project found out that some Windows-on-Arm
notebooks contain WMI-ACPI mapping devices (PNP0C14) that work
exactly like on x86. Those devices however are currently not
supported by the WMI driver core due to only supporting x86.
The first patch removes this restriction and allows the WMI
driver core to run on all architectures that support ACPI.
The second patch updates the acpi-video driver to take advantage
of the improved support for architectures other than x86, and
the last patch enables the generic WMI BMOF driver to support
aarch64 as well.
All patches have been tested on a ACPI-based aarch64 VM and
work just fine.
Changes since v2:
- fix Kconfig issue for the loongson-laptop driver
Changes since v1:
- add additional tags
Armin Wolf (3):
platform/wmi: Remove dependency on CONFIG_X86
ACPI: video: Remove CONFIG_X86 handling from nvidia_wmi_ec_supported()
platform/x86: wmi-bmof: Move to generic WMI code
MAINTAINERS | 2 +-
drivers/acpi/Kconfig | 2 +-
drivers/acpi/video_detect.c | 8 --------
drivers/gpu/drm/amd/amdgpu/Kconfig | 4 +---
drivers/gpu/drm/gma500/Kconfig | 1 -
drivers/gpu/drm/i915/Kconfig | 1 -
drivers/gpu/drm/radeon/Kconfig | 4 +---
drivers/gpu/drm/xe/Kconfig | 5 ++---
drivers/platform/loongarch/Kconfig | 1 +
drivers/platform/wmi/Kconfig | 14 +++++++++++++-
drivers/platform/wmi/Makefile | 4 ++++
drivers/platform/{x86/wmi-bmof.c => wmi/bmof.c} | 0
drivers/platform/x86/Kconfig | 12 ------------
drivers/platform/x86/Makefile | 3 ---
14 files changed, 24 insertions(+), 37 deletions(-)
rename drivers/platform/{x86/wmi-bmof.c => wmi/bmof.c} (100%)
--
2.39.5
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v3 1/3] platform/wmi: Remove dependency on CONFIG_X86
2026-07-24 2:59 [PATCH v3 0/3] platform/wmi: Add aarch64 support Armin Wolf
@ 2026-07-24 2:59 ` Armin Wolf
2026-07-24 2:59 ` [PATCH v3 2/3] ACPI: video: Remove CONFIG_X86 handling from nvidia_wmi_ec_supported() Armin Wolf
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Armin Wolf @ 2026-07-24 2:59 UTC (permalink / raw)
To: hansg, ilpo.jarvinen
Cc: platform-driver-x86, linux-kernel, linux, rafael, lenb,
linux-acpi, alexander.deucher, christian.koenig, airlied, simona,
amd-gfx, dri-devel, patrik.r.jakobsson, maarten.lankhorst,
mripard, tzimmermann, jani.nikula, joonas.lahtinen, rodrigo.vivi,
tursulin, intel-gfx, matthew.brost, thomas.hellstrom, intel-xe
The aarch64-laptops project found out that some Windows-on-Arm
notebooks contain WMI-ACPI mapping devices (PNP0C14) that work
exactly like on x86. Remove the dependency on CONFIG_X86 to
make it possible to build the ACPI-WMI driver on arm64.
Link: https://lists.linaro.org/archives/list/aarch64-laptops@lists.linaro.org/thread/U2IZENSIOOHZHGXVN7GM5HX5O3FD5KCF/
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
---
drivers/platform/wmi/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/platform/wmi/Kconfig b/drivers/platform/wmi/Kconfig
index d62f51ff3b7f..36934b5f0194 100644
--- a/drivers/platform/wmi/Kconfig
+++ b/drivers/platform/wmi/Kconfig
@@ -5,7 +5,7 @@
menuconfig ACPI_WMI
tristate "ACPI-WMI support"
- depends on ACPI && X86
+ depends on ACPI
select NLS
help
This option enables support for the ACPI-WMI driver core.
--
2.39.5
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v3 2/3] ACPI: video: Remove CONFIG_X86 handling from nvidia_wmi_ec_supported()
2026-07-24 2:59 [PATCH v3 0/3] platform/wmi: Add aarch64 support Armin Wolf
2026-07-24 2:59 ` [PATCH v3 1/3] platform/wmi: Remove dependency on CONFIG_X86 Armin Wolf
@ 2026-07-24 2:59 ` Armin Wolf
2026-09-01 21:30 ` Deucher, Alexander
2026-07-24 2:59 ` [PATCH v3 3/3] platform/x86: wmi-bmof: Move to generic WMI code Armin Wolf
2026-08-07 21:03 ` [PATCH v3 0/3] platform/wmi: Add aarch64 support Armin Wolf
3 siblings, 1 reply; 8+ messages in thread
From: Armin Wolf @ 2026-07-24 2:59 UTC (permalink / raw)
To: hansg, ilpo.jarvinen
Cc: platform-driver-x86, linux-kernel, linux, rafael, lenb,
linux-acpi, alexander.deucher, christian.koenig, airlied, simona,
amd-gfx, dri-devel, patrik.r.jakobsson, maarten.lankhorst,
mripard, tzimmermann, jani.nikula, joonas.lahtinen, rodrigo.vivi,
tursulin, intel-gfx, matthew.brost, thomas.hellstrom, intel-xe
The WMI-ACPI driver now supports architectures other than x86.
Remove the CONFIG_X86 handling from video-detect and the associated
drivers to simplify the resulting code.
Acked-by: Rafael J. Wysocki (Intel) <rafael@kernel.org>
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
---
drivers/acpi/Kconfig | 2 +-
drivers/acpi/video_detect.c | 8 --------
drivers/gpu/drm/amd/amdgpu/Kconfig | 4 +---
drivers/gpu/drm/gma500/Kconfig | 1 -
drivers/gpu/drm/i915/Kconfig | 1 -
drivers/gpu/drm/radeon/Kconfig | 4 +---
drivers/gpu/drm/xe/Kconfig | 5 ++---
drivers/platform/loongarch/Kconfig | 1 +
8 files changed, 6 insertions(+), 20 deletions(-)
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index f165d14cf61a..cc1e58fa664b 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -224,7 +224,7 @@ config ACPI_VIDEO
tristate "Video"
depends on BACKLIGHT_CLASS_DEVICE
depends on INPUT
- depends on ACPI_WMI || !X86
+ depends on ACPI_WMI
select THERMAL
help
This driver implements the ACPI Extensions For Display Adapters
diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
index 458efa4fe9d4..af9280b244f1 100644
--- a/drivers/acpi/video_detect.c
+++ b/drivers/acpi/video_detect.c
@@ -82,8 +82,6 @@ find_video(acpi_handle handle, u32 lvl, void *context, void **rv)
return AE_OK;
}
-/* This depends on ACPI_WMI which is X86 only */
-#ifdef CONFIG_X86
static bool nvidia_wmi_ec_supported(void)
{
struct wmi_brightness_args args = {
@@ -105,12 +103,6 @@ static bool nvidia_wmi_ec_supported(void)
*/
return args.ret == WMI_BRIGHTNESS_SOURCE_EC;
}
-#else
-static bool nvidia_wmi_ec_supported(void)
-{
- return false;
-}
-#endif
/* Force to use vendor driver when the ACPI device is known to be
* buggy */
diff --git a/drivers/gpu/drm/amd/amdgpu/Kconfig b/drivers/gpu/drm/amd/amdgpu/Kconfig
index 12e4a41bf1f0..50305630f533 100644
--- a/drivers/gpu/drm/amd/amdgpu/Kconfig
+++ b/drivers/gpu/drm/amd/amdgpu/Kconfig
@@ -30,9 +30,7 @@ config DRM_AMDGPU
# ACPI_VIDEO's dependencies must also be selected.
select INPUT if ACPI
select ACPI_VIDEO if ACPI
- # On x86 ACPI_VIDEO also needs ACPI_WMI
- select X86_PLATFORM_DEVICES if ACPI && X86
- select ACPI_WMI if ACPI && X86
+ select ACPI_WMI if ACPI
help
Choose this option if you have a recent AMD Radeon graphics card.
diff --git a/drivers/gpu/drm/gma500/Kconfig b/drivers/gpu/drm/gma500/Kconfig
index a2acaa699dd5..dc4c56638819 100644
--- a/drivers/gpu/drm/gma500/Kconfig
+++ b/drivers/gpu/drm/gma500/Kconfig
@@ -11,7 +11,6 @@ config DRM_GMA500
select ACPI_VIDEO if ACPI
select BACKLIGHT_CLASS_DEVICE if ACPI
select INPUT if ACPI
- select X86_PLATFORM_DEVICES if ACPI
select ACPI_WMI if ACPI
help
Say yes for an experimental 2D KMS framebuffer driver for the
diff --git a/drivers/gpu/drm/i915/Kconfig b/drivers/gpu/drm/i915/Kconfig
index 5e939004b646..71426b9c91f0 100644
--- a/drivers/gpu/drm/i915/Kconfig
+++ b/drivers/gpu/drm/i915/Kconfig
@@ -28,7 +28,6 @@ config DRM_I915
# but for select to work, need to select ACPI_VIDEO's dependencies, ick
select BACKLIGHT_CLASS_DEVICE if ACPI
select INPUT if ACPI
- select X86_PLATFORM_DEVICES if ACPI
select ACPI_WMI if ACPI
select ACPI_VIDEO if ACPI
select SYNC_FILE
diff --git a/drivers/gpu/drm/radeon/Kconfig b/drivers/gpu/drm/radeon/Kconfig
index c479f0c0dd5c..3cd70aef770e 100644
--- a/drivers/gpu/drm/radeon/Kconfig
+++ b/drivers/gpu/drm/radeon/Kconfig
@@ -25,9 +25,7 @@ config DRM_RADEON
# ACPI_VIDEO's dependencies must also be selected.
select INPUT if ACPI
select ACPI_VIDEO if ACPI
- # On x86 ACPI_VIDEO also needs ACPI_WMI
- select X86_PLATFORM_DEVICES if ACPI && X86
- select ACPI_WMI if ACPI && X86
+ select ACPI_WMI if ACPI
help
Choose this option if you have an ATI Radeon graphics card. There
are both PCI and AGP versions. You don't need to choose this to
diff --git a/drivers/gpu/drm/xe/Kconfig b/drivers/gpu/drm/xe/Kconfig
index 4d7dcaff2b91..502c7b3c1f16 100644
--- a/drivers/gpu/drm/xe/Kconfig
+++ b/drivers/gpu/drm/xe/Kconfig
@@ -4,7 +4,6 @@ config DRM_XE
depends on DRM && PCI
depends on KUNIT || !KUNIT
depends on INTEL_VSEC || !INTEL_VSEC
- depends on X86_PLATFORM_DEVICES || !(X86 && ACPI)
depends on PAGE_SIZE_4KB || COMPILE_TEST || BROKEN
select INTERVAL_TREE
# we need shmfs for the swappable backing store, and in particular
@@ -29,8 +28,8 @@ config DRM_XE
# but for select to work, need to select ACPI_VIDEO's dependencies, ick
select BACKLIGHT_CLASS_DEVICE if ACPI
select INPUT if ACPI
- select ACPI_VIDEO if X86 && ACPI
- select ACPI_WMI if X86 && ACPI
+ select ACPI_VIDEO if ACPI
+ select ACPI_WMI if ACPI
select SYNC_FILE
select CRC32
select SND_HDA_I915 if SND_HDA_CORE
diff --git a/drivers/platform/loongarch/Kconfig b/drivers/platform/loongarch/Kconfig
index 447528797d07..db7833842142 100644
--- a/drivers/platform/loongarch/Kconfig
+++ b/drivers/platform/loongarch/Kconfig
@@ -23,6 +23,7 @@ config LOONGSON_LAPTOP
depends on INPUT
depends on MACH_LOONGSON64
select ACPI_VIDEO
+ select ACPI_WMI
select INPUT_SPARSEKMAP
default y
help
--
2.39.5
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v3 3/3] platform/x86: wmi-bmof: Move to generic WMI code
2026-07-24 2:59 [PATCH v3 0/3] platform/wmi: Add aarch64 support Armin Wolf
2026-07-24 2:59 ` [PATCH v3 1/3] platform/wmi: Remove dependency on CONFIG_X86 Armin Wolf
2026-07-24 2:59 ` [PATCH v3 2/3] ACPI: video: Remove CONFIG_X86 handling from nvidia_wmi_ec_supported() Armin Wolf
@ 2026-07-24 2:59 ` Armin Wolf
2026-08-07 21:03 ` [PATCH v3 0/3] platform/wmi: Add aarch64 support Armin Wolf
3 siblings, 0 replies; 8+ messages in thread
From: Armin Wolf @ 2026-07-24 2:59 UTC (permalink / raw)
To: hansg, ilpo.jarvinen
Cc: platform-driver-x86, linux-kernel, linux, rafael, lenb,
linux-acpi, alexander.deucher, christian.koenig, airlied, simona,
amd-gfx, dri-devel, patrik.r.jakobsson, maarten.lankhorst,
mripard, tzimmermann, jani.nikula, joonas.lahtinen, rodrigo.vivi,
tursulin, intel-gfx, matthew.brost, thomas.hellstrom, intel-xe
Some Windows-on-Arm notebooks contain embedded Binary MOF data,
accessible using the WMI-ACPI interface. Move the associated driver
to the generic WMI code to make it possible to build it on arm64.
Also rework the Kconfig help text a bit.
Link: https://lists.linaro.org/archives/list/aarch64-laptops@lists.linaro.org/thread/U2IZENSIOOHZHGXVN7GM5HX5O3FD5KCF/
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
---
MAINTAINERS | 2 +-
drivers/platform/wmi/Kconfig | 12 ++++++++++++
drivers/platform/wmi/Makefile | 4 ++++
drivers/platform/{x86/wmi-bmof.c => wmi/bmof.c} | 0
drivers/platform/x86/Kconfig | 12 ------------
drivers/platform/x86/Makefile | 3 ---
6 files changed, 17 insertions(+), 16 deletions(-)
rename drivers/platform/{x86/wmi-bmof.c => wmi/bmof.c} (100%)
diff --git a/MAINTAINERS b/MAINTAINERS
index 3820b286f09f..bbae729a6012 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -29106,7 +29106,7 @@ L: platform-driver-x86@vger.kernel.org
S: Maintained
F: Documentation/ABI/stable/sysfs-platform-wmi-bmof
F: Documentation/wmi/devices/wmi-bmof.rst
-F: drivers/platform/x86/wmi-bmof.c
+F: drivers/platform/wmi/bmof.c
WOLFSON MICROELECTRONICS DRIVERS
L: patches@opensource.cirrus.com
diff --git a/drivers/platform/wmi/Kconfig b/drivers/platform/wmi/Kconfig
index 36934b5f0194..11c221a58e04 100644
--- a/drivers/platform/wmi/Kconfig
+++ b/drivers/platform/wmi/Kconfig
@@ -34,4 +34,16 @@ config ACPI_WMI_LEGACY_DEVICE_NAMES
source "drivers/platform/wmi/tests/Kconfig"
+config WMI_BMOF
+ tristate "WMI embedded Binary MOF driver"
+ default ACPI_WMI
+ help
+ Say Y here if you want to be able to read the firmware-embedded
+ WMI Binary MOF (Managed Object Format) data. Using this requires
+ userspace tools, see Documentation/wmi/devices/wmi-bmof.rst for
+ details.
+
+ To compile this driver as a module, choose M here: the module will
+ be called wmi-bmof.
+
endif # ACPI_WMI
diff --git a/drivers/platform/wmi/Makefile b/drivers/platform/wmi/Makefile
index 2feff94a5594..ee2f27ea20d1 100644
--- a/drivers/platform/wmi/Makefile
+++ b/drivers/platform/wmi/Makefile
@@ -9,3 +9,7 @@ obj-$(CONFIG_ACPI_WMI) += wmi.o
# Unit tests
obj-y += tests/
+
+# Binary MOF driver
+wmi-bmof-y := bmof.o
+obj-$(CONFIG_WMI_BMOF) += wmi-bmof.o
diff --git a/drivers/platform/x86/wmi-bmof.c b/drivers/platform/wmi/bmof.c
similarity index 100%
rename from drivers/platform/x86/wmi-bmof.c
rename to drivers/platform/wmi/bmof.c
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index 957034f39e4e..889979034391 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -16,18 +16,6 @@ menuconfig X86_PLATFORM_DEVICES
if X86_PLATFORM_DEVICES
-config WMI_BMOF
- tristate "WMI embedded Binary MOF driver"
- depends on ACPI_WMI
- default ACPI_WMI
- help
- Say Y here if you want to be able to read a firmware-embedded
- WMI Binary MOF (Managed Object Format) data. Using this requires
- userspace tools and may be rather tedious.
-
- To compile this driver as a module, choose M here: the module will
- be called wmi-bmof.
-
config HUAWEI_WMI
tristate "Huawei WMI laptop extras driver"
depends on ACPI_BATTERY
diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile
index 872ac3842391..94a5fe4075cb 100644
--- a/drivers/platform/x86/Makefile
+++ b/drivers/platform/x86/Makefile
@@ -4,9 +4,6 @@
# x86 Platform-Specific Drivers
#
-# Windows Management Interface
-obj-$(CONFIG_WMI_BMOF) += wmi-bmof.o
-
# WMI drivers
obj-$(CONFIG_HUAWEI_WMI) += huawei-wmi.o
obj-$(CONFIG_MXM_WMI) += mxm-wmi.o
--
2.39.5
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v3 0/3] platform/wmi: Add aarch64 support
2026-07-24 2:59 [PATCH v3 0/3] platform/wmi: Add aarch64 support Armin Wolf
` (2 preceding siblings ...)
2026-07-24 2:59 ` [PATCH v3 3/3] platform/x86: wmi-bmof: Move to generic WMI code Armin Wolf
@ 2026-08-07 21:03 ` Armin Wolf
2026-09-01 20:17 ` Armin Wolf
3 siblings, 1 reply; 8+ messages in thread
From: Armin Wolf @ 2026-08-07 21:03 UTC (permalink / raw)
To: hansg, ilpo.jarvinen
Cc: platform-driver-x86, linux-kernel, linux, rafael, lenb,
linux-acpi, alexander.deucher, christian.koenig, airlied, simona,
amd-gfx, dri-devel, patrik.r.jakobsson, maarten.lankhorst,
mripard, tzimmermann, jani.nikula, joonas.lahtinen, rodrigo.vivi,
tursulin, intel-gfx, matthew.brost, thomas.hellstrom, intel-xe
Am 24.07.26 um 04:59 schrieb Armin Wolf:
> The aarch64-laptops project found out that some Windows-on-Arm
> notebooks contain WMI-ACPI mapping devices (PNP0C14) that work
> exactly like on x86. Those devices however are currently not
> supported by the WMI driver core due to only supporting x86.
>
> The first patch removes this restriction and allows the WMI
> driver core to run on all architectures that support ACPI.
> The second patch updates the acpi-video driver to take advantage
> of the improved support for architectures other than x86, and
> the last patch enables the generic WMI BMOF driver to support
> aarch64 as well.
>
> All patches have been tested on a ACPI-based aarch64 VM and
> work just fine.
Any thoughts about this series from the GPU driver people?
Thanks,
Armin Wolf
>
> Changes since v2:
> - fix Kconfig issue for the loongson-laptop driver
>
> Changes since v1:
> - add additional tags
>
> Armin Wolf (3):
> platform/wmi: Remove dependency on CONFIG_X86
> ACPI: video: Remove CONFIG_X86 handling from nvidia_wmi_ec_supported()
> platform/x86: wmi-bmof: Move to generic WMI code
>
> MAINTAINERS | 2 +-
> drivers/acpi/Kconfig | 2 +-
> drivers/acpi/video_detect.c | 8 --------
> drivers/gpu/drm/amd/amdgpu/Kconfig | 4 +---
> drivers/gpu/drm/gma500/Kconfig | 1 -
> drivers/gpu/drm/i915/Kconfig | 1 -
> drivers/gpu/drm/radeon/Kconfig | 4 +---
> drivers/gpu/drm/xe/Kconfig | 5 ++---
> drivers/platform/loongarch/Kconfig | 1 +
> drivers/platform/wmi/Kconfig | 14 +++++++++++++-
> drivers/platform/wmi/Makefile | 4 ++++
> drivers/platform/{x86/wmi-bmof.c => wmi/bmof.c} | 0
> drivers/platform/x86/Kconfig | 12 ------------
> drivers/platform/x86/Makefile | 3 ---
> 14 files changed, 24 insertions(+), 37 deletions(-)
> rename drivers/platform/{x86/wmi-bmof.c => wmi/bmof.c} (100%)
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 0/3] platform/wmi: Add aarch64 support
2026-08-07 21:03 ` [PATCH v3 0/3] platform/wmi: Add aarch64 support Armin Wolf
@ 2026-09-01 20:17 ` Armin Wolf
2026-09-02 9:27 ` Ilpo Järvinen
0 siblings, 1 reply; 8+ messages in thread
From: Armin Wolf @ 2026-09-01 20:17 UTC (permalink / raw)
To: hansg, ilpo.jarvinen
Cc: platform-driver-x86, linux-kernel, linux, rafael, lenb,
linux-acpi, alexander.deucher, christian.koenig, airlied, simona,
amd-gfx, dri-devel, patrik.r.jakobsson, maarten.lankhorst,
mripard, tzimmermann, jani.nikula, joonas.lahtinen, rodrigo.vivi,
tursulin, intel-gfx, matthew.brost, thomas.hellstrom, intel-xe
Am 07.08.26 um 23:03 schrieb Armin Wolf:
> Am 24.07.26 um 04:59 schrieb Armin Wolf:
>
>> The aarch64-laptops project found out that some Windows-on-Arm
>> notebooks contain WMI-ACPI mapping devices (PNP0C14) that work
>> exactly like on x86. Those devices however are currently not
>> supported by the WMI driver core due to only supporting x86.
>>
>> The first patch removes this restriction and allows the WMI
>> driver core to run on all architectures that support ACPI.
>> The second patch updates the acpi-video driver to take advantage
>> of the improved support for architectures other than x86, and
>> the last patch enables the generic WMI BMOF driver to support
>> aarch64 as well.
>>
>> All patches have been tested on a ACPI-based aarch64 VM and
>> work just fine.
>
> Any thoughts about this series from the GPU driver people?
>
> Thanks,
> Armin Wolf
Can i assume that the silence means "looks fine to me"?
Thanks,
Armin Wolf
>>
>> Changes since v2:
>> - fix Kconfig issue for the loongson-laptop driver
>>
>> Changes since v1:
>> - add additional tags
>>
>> Armin Wolf (3):
>> platform/wmi: Remove dependency on CONFIG_X86
>> ACPI: video: Remove CONFIG_X86 handling from
>> nvidia_wmi_ec_supported()
>> platform/x86: wmi-bmof: Move to generic WMI code
>>
>> MAINTAINERS | 2 +-
>> drivers/acpi/Kconfig | 2 +-
>> drivers/acpi/video_detect.c | 8 --------
>> drivers/gpu/drm/amd/amdgpu/Kconfig | 4 +---
>> drivers/gpu/drm/gma500/Kconfig | 1 -
>> drivers/gpu/drm/i915/Kconfig | 1 -
>> drivers/gpu/drm/radeon/Kconfig | 4 +---
>> drivers/gpu/drm/xe/Kconfig | 5 ++---
>> drivers/platform/loongarch/Kconfig | 1 +
>> drivers/platform/wmi/Kconfig | 14 +++++++++++++-
>> drivers/platform/wmi/Makefile | 4 ++++
>> drivers/platform/{x86/wmi-bmof.c => wmi/bmof.c} | 0
>> drivers/platform/x86/Kconfig | 12 ------------
>> drivers/platform/x86/Makefile | 3 ---
>> 14 files changed, 24 insertions(+), 37 deletions(-)
>> rename drivers/platform/{x86/wmi-bmof.c => wmi/bmof.c} (100%)
>>
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [PATCH v3 2/3] ACPI: video: Remove CONFIG_X86 handling from nvidia_wmi_ec_supported()
2026-07-24 2:59 ` [PATCH v3 2/3] ACPI: video: Remove CONFIG_X86 handling from nvidia_wmi_ec_supported() Armin Wolf
@ 2026-09-01 21:30 ` Deucher, Alexander
0 siblings, 0 replies; 8+ messages in thread
From: Deucher, Alexander @ 2026-09-01 21:30 UTC (permalink / raw)
To: Armin Wolf, hansg@kernel.org, ilpo.jarvinen@linux.intel.com
Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org,
linux@weissschuh.net, rafael@kernel.org, lenb@kernel.org,
linux-acpi@vger.kernel.org, Koenig, Christian, airlied@gmail.com,
simona@ffwll.ch, amd-gfx@lists.freedesktop.org,
dri-devel@lists.freedesktop.org, patrik.r.jakobsson@gmail.com,
maarten.lankhorst@linux.intel.com, mripard@kernel.org,
tzimmermann@suse.de, jani.nikula@linux.intel.com,
joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com,
tursulin@ursulin.net, intel-gfx@lists.freedesktop.org,
matthew.brost@intel.com, thomas.hellstrom@linux.intel.com,
intel-xe@lists.freedesktop.org
Public
> -----Original Message-----
> From: Armin Wolf <W_Armin@gmx.de>
> Sent: Thursday, July 23, 2026 11:00 PM
> To: hansg@kernel.org; ilpo.jarvinen@linux.intel.com
> Cc: platform-driver-x86@vger.kernel.org; linux-kernel@vger.kernel.org;
> linux@weissschuh.net; rafael@kernel.org; lenb@kernel.org; linux-
> acpi@vger.kernel.org; Deucher, Alexander <Alexander.Deucher@amd.com>;
> Koenig, Christian <Christian.Koenig@amd.com>; airlied@gmail.com;
> simona@ffwll.ch; amd-gfx@lists.freedesktop.org; dri-
> devel@lists.freedesktop.org; patrik.r.jakobsson@gmail.com;
> maarten.lankhorst@linux.intel.com; mripard@kernel.org;
> tzimmermann@suse.de; jani.nikula@linux.intel.com;
> joonas.lahtinen@linux.intel.com; rodrigo.vivi@intel.com;
> tursulin@ursulin.net; intel-gfx@lists.freedesktop.org;
> matthew.brost@intel.com; thomas.hellstrom@linux.intel.com; intel-
> xe@lists.freedesktop.org
> Subject: [PATCH v3 2/3] ACPI: video: Remove CONFIG_X86 handling from
> nvidia_wmi_ec_supported()
>
> The WMI-ACPI driver now supports architectures other than x86.
> Remove the CONFIG_X86 handling from video-detect and the associated
> drivers to simplify the resulting code.
>
> Acked-by: Rafael J. Wysocki (Intel) <rafael@kernel.org>
> Signed-off-by: Armin Wolf <W_Armin@gmx.de>
> ---
> drivers/acpi/Kconfig | 2 +-
> drivers/acpi/video_detect.c | 8 --------
> drivers/gpu/drm/amd/amdgpu/Kconfig | 4 +---
> drivers/gpu/drm/gma500/Kconfig | 1 -
> drivers/gpu/drm/i915/Kconfig | 1 -
> drivers/gpu/drm/radeon/Kconfig | 4 +---
> drivers/gpu/drm/xe/Kconfig | 5 ++---
> drivers/platform/loongarch/Kconfig | 1 +
> 8 files changed, 6 insertions(+), 20 deletions(-)
>
> diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index
> f165d14cf61a..cc1e58fa664b 100644
> --- a/drivers/acpi/Kconfig
> +++ b/drivers/acpi/Kconfig
> @@ -224,7 +224,7 @@ config ACPI_VIDEO
> tristate "Video"
> depends on BACKLIGHT_CLASS_DEVICE
> depends on INPUT
> - depends on ACPI_WMI || !X86
> + depends on ACPI_WMI
> select THERMAL
> help
> This driver implements the ACPI Extensions For Display Adapters diff
> --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c index
> 458efa4fe9d4..af9280b244f1 100644
> --- a/drivers/acpi/video_detect.c
> +++ b/drivers/acpi/video_detect.c
> @@ -82,8 +82,6 @@ find_video(acpi_handle handle, u32 lvl, void *context,
> void **rv)
> return AE_OK;
> }
>
> -/* This depends on ACPI_WMI which is X86 only */ -#ifdef CONFIG_X86
> static bool nvidia_wmi_ec_supported(void) {
> struct wmi_brightness_args args = {
> @@ -105,12 +103,6 @@ static bool nvidia_wmi_ec_supported(void)
> */
> return args.ret == WMI_BRIGHTNESS_SOURCE_EC; } -#else -static bool
> nvidia_wmi_ec_supported(void) -{
> - return false;
> -}
> -#endif
>
> /* Force to use vendor driver when the ACPI device is known to be
> * buggy */
> diff --git a/drivers/gpu/drm/amd/amdgpu/Kconfig
> b/drivers/gpu/drm/amd/amdgpu/Kconfig
> index 12e4a41bf1f0..50305630f533 100644
> --- a/drivers/gpu/drm/amd/amdgpu/Kconfig
> +++ b/drivers/gpu/drm/amd/amdgpu/Kconfig
> @@ -30,9 +30,7 @@ config DRM_AMDGPU
> # ACPI_VIDEO's dependencies must also be selected.
> select INPUT if ACPI
> select ACPI_VIDEO if ACPI
> - # On x86 ACPI_VIDEO also needs ACPI_WMI
> - select X86_PLATFORM_DEVICES if ACPI && X86
The change below makes sense, but this one looks like it should remain unless X86_PLATFORM_DEVICES is handled some other way?
Alex
> - select ACPI_WMI if ACPI && X86
> + select ACPI_WMI if ACPI
> help
> Choose this option if you have a recent AMD Radeon graphics card.
>
> diff --git a/drivers/gpu/drm/gma500/Kconfig
> b/drivers/gpu/drm/gma500/Kconfig index a2acaa699dd5..dc4c56638819
> 100644
> --- a/drivers/gpu/drm/gma500/Kconfig
> +++ b/drivers/gpu/drm/gma500/Kconfig
> @@ -11,7 +11,6 @@ config DRM_GMA500
> select ACPI_VIDEO if ACPI
> select BACKLIGHT_CLASS_DEVICE if ACPI
> select INPUT if ACPI
> - select X86_PLATFORM_DEVICES if ACPI
> select ACPI_WMI if ACPI
> help
> Say yes for an experimental 2D KMS framebuffer driver for the diff --
> git a/drivers/gpu/drm/i915/Kconfig b/drivers/gpu/drm/i915/Kconfig index
> 5e939004b646..71426b9c91f0 100644
> --- a/drivers/gpu/drm/i915/Kconfig
> +++ b/drivers/gpu/drm/i915/Kconfig
> @@ -28,7 +28,6 @@ config DRM_I915
> # but for select to work, need to select ACPI_VIDEO's dependencies,
> ick
> select BACKLIGHT_CLASS_DEVICE if ACPI
> select INPUT if ACPI
> - select X86_PLATFORM_DEVICES if ACPI
> select ACPI_WMI if ACPI
> select ACPI_VIDEO if ACPI
> select SYNC_FILE
> diff --git a/drivers/gpu/drm/radeon/Kconfig
> b/drivers/gpu/drm/radeon/Kconfig index c479f0c0dd5c..3cd70aef770e
> 100644
> --- a/drivers/gpu/drm/radeon/Kconfig
> +++ b/drivers/gpu/drm/radeon/Kconfig
> @@ -25,9 +25,7 @@ config DRM_RADEON
> # ACPI_VIDEO's dependencies must also be selected.
> select INPUT if ACPI
> select ACPI_VIDEO if ACPI
> - # On x86 ACPI_VIDEO also needs ACPI_WMI
> - select X86_PLATFORM_DEVICES if ACPI && X86
> - select ACPI_WMI if ACPI && X86
> + select ACPI_WMI if ACPI
> help
> Choose this option if you have an ATI Radeon graphics card. There
> are both PCI and AGP versions. You don't need to choose this to diff -
> -git a/drivers/gpu/drm/xe/Kconfig b/drivers/gpu/drm/xe/Kconfig index
> 4d7dcaff2b91..502c7b3c1f16 100644
> --- a/drivers/gpu/drm/xe/Kconfig
> +++ b/drivers/gpu/drm/xe/Kconfig
> @@ -4,7 +4,6 @@ config DRM_XE
> depends on DRM && PCI
> depends on KUNIT || !KUNIT
> depends on INTEL_VSEC || !INTEL_VSEC
> - depends on X86_PLATFORM_DEVICES || !(X86 && ACPI)
> depends on PAGE_SIZE_4KB || COMPILE_TEST || BROKEN
> select INTERVAL_TREE
> # we need shmfs for the swappable backing store, and in particular
> @@ -29,8 +28,8 @@ config DRM_XE
> # but for select to work, need to select ACPI_VIDEO's dependencies,
> ick
> select BACKLIGHT_CLASS_DEVICE if ACPI
> select INPUT if ACPI
> - select ACPI_VIDEO if X86 && ACPI
> - select ACPI_WMI if X86 && ACPI
> + select ACPI_VIDEO if ACPI
> + select ACPI_WMI if ACPI
> select SYNC_FILE
> select CRC32
> select SND_HDA_I915 if SND_HDA_CORE
> diff --git a/drivers/platform/loongarch/Kconfig
> b/drivers/platform/loongarch/Kconfig
> index 447528797d07..db7833842142 100644
> --- a/drivers/platform/loongarch/Kconfig
> +++ b/drivers/platform/loongarch/Kconfig
> @@ -23,6 +23,7 @@ config LOONGSON_LAPTOP
> depends on INPUT
> depends on MACH_LOONGSON64
> select ACPI_VIDEO
> + select ACPI_WMI
> select INPUT_SPARSEKMAP
> default y
> help
> --
> 2.39.5
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 0/3] platform/wmi: Add aarch64 support
2026-09-01 20:17 ` Armin Wolf
@ 2026-09-02 9:27 ` Ilpo Järvinen
0 siblings, 0 replies; 8+ messages in thread
From: Ilpo Järvinen @ 2026-09-02 9:27 UTC (permalink / raw)
To: Armin Wolf
Cc: Hans de Goede, platform-driver-x86, LKML, linux,
Rafael J. Wysocki, lenb, linux-acpi, alexander.deucher,
christian.koenig, airlied, simona, amd-gfx, dri-devel,
patrik.r.jakobsson, maarten.lankhorst, mripard, tzimmermann,
jani.nikula, joonas.lahtinen, rodrigo.vivi, tursulin, intel-gfx,
matthew.brost, thomas.hellstrom, intel-xe
[-- Attachment #1: Type: text/plain, Size: 1687 bytes --]
On Tue, 1 Sep 2026, Armin Wolf wrote:
> Am 07.08.26 um 23:03 schrieb Armin Wolf:
>
> > Am 24.07.26 um 04:59 schrieb Armin Wolf:
> >
> > > The aarch64-laptops project found out that some Windows-on-Arm
> > > notebooks contain WMI-ACPI mapping devices (PNP0C14) that work
> > > exactly like on x86. Those devices however are currently not
> > > supported by the WMI driver core due to only supporting x86.
> > >
> > > The first patch removes this restriction and allows the WMI
> > > driver core to run on all architectures that support ACPI.
> > > The second patch updates the acpi-video driver to take advantage
> > > of the improved support for architectures other than x86, and
> > > the last patch enables the generic WMI BMOF driver to support
> > > aarch64 as well.
> > >
> > > All patches have been tested on a ACPI-based aarch64 VM and
> > > work just fine.
> >
> > Any thoughts about this series from the GPU driver people?
> >
> > Thanks,
> > Armin Wolf
>
> Can i assume that the silence means "looks fine to me"?
Hi,
Those subjects may be too generic for the GPU people to realize we're
waiting for their Acks.
I suggest you send non-ML email (private) with a more descriptive subject
to the relevant maintainers asking for them to take look at this series
(I'd have done that myself later this week but you can do it as well).
Such an email is more likely to be caught in their radar.
> > > Armin Wolf (3):
> > > platform/wmi: Remove dependency on CONFIG_X86
> > > ACPI: video: Remove CONFIG_X86 handling from nvidia_wmi_ec_supported()
> > > platform/x86: wmi-bmof: Move to generic WMI code
--
i.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-09-02 9:27 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-24 2:59 [PATCH v3 0/3] platform/wmi: Add aarch64 support Armin Wolf
2026-07-24 2:59 ` [PATCH v3 1/3] platform/wmi: Remove dependency on CONFIG_X86 Armin Wolf
2026-07-24 2:59 ` [PATCH v3 2/3] ACPI: video: Remove CONFIG_X86 handling from nvidia_wmi_ec_supported() Armin Wolf
2026-09-01 21:30 ` Deucher, Alexander
2026-07-24 2:59 ` [PATCH v3 3/3] platform/x86: wmi-bmof: Move to generic WMI code Armin Wolf
2026-08-07 21:03 ` [PATCH v3 0/3] platform/wmi: Add aarch64 support Armin Wolf
2026-09-01 20:17 ` Armin Wolf
2026-09-02 9:27 ` Ilpo Järvinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox