* [PATCH] drm/nouveau: Fix Kconfig issue with CONFIG_ACPI_WMI
@ 2026-11-07 0:13 ` Armin Wolf
0 siblings, 0 replies; 4+ messages in thread
From: Armin Wolf @ 2026-11-07 0:13 UTC (permalink / raw)
To: lyude, dakr
Cc: maarten.lankhorst, mripard, airlied, simona, dri-devel, nouveau,
linux-kernel
Nouveau uses wmi_evaluate_method() when CONFIG_ACPI_WMI has been
enabled, but this alone does not guarantee that CONFIG_ACPI_WMI
is actually reachable. If CONFIG_ACPI_WMI is m and CONFIG_DRM_NOUVEAU
is y, said function will not be reachable by nouveau, resulting in
a linker error.
Until now this issue was not triggered because on x86
CONFIG_ACPI_WMI is automatically selected by nouveau. However the
ACPI-WMI subsystem has added support for other ACPI-compatible
architectures like Risc V, making it possible for users to trigger
this bug.
Fix this by always selecting ACPI_WMI if ACPI support is enabled
to ensure that nouveau can actually reach wmi_evaluate_method().
Fixes: 884d53763d30 ("platform/wmi: Remove dependency on CONFIG_X86")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202611070038.qzOOv1De-lkp@intel.com/
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
---
drivers/gpu/drm/nouveau/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/nouveau/Kconfig b/drivers/gpu/drm/nouveau/Kconfig
index 3b5757aed9c8..9c5716738b18 100644
--- a/drivers/gpu/drm/nouveau/Kconfig
+++ b/drivers/gpu/drm/nouveau/Kconfig
@@ -19,7 +19,7 @@ config DRM_NOUVEAU
select I2C_ALGOBIT
select BACKLIGHT_CLASS_DEVICE if DRM_NOUVEAU_BACKLIGHT
select X86_PLATFORM_DEVICES if ACPI && X86
- select ACPI_WMI if ACPI && X86
+ select ACPI_WMI if ACPI
select MXM_WMI if ACPI && X86
select POWER_SUPPLY
# Similar to i915, we need to select ACPI_VIDEO and it's dependencies
--
2.56.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] drm/nouveau: Fix Kconfig issue with CONFIG_ACPI_WMI
@ 2026-11-07 0:13 ` Armin Wolf
0 siblings, 0 replies; 4+ messages in thread
From: Armin Wolf @ 2026-11-07 0:13 UTC (permalink / raw)
To: lyude, dakr
Cc: maarten.lankhorst, mripard, simona, dri-devel, nouveau,
linux-kernel
Nouveau uses wmi_evaluate_method() when CONFIG_ACPI_WMI has been
enabled, but this alone does not guarantee that CONFIG_ACPI_WMI
is actually reachable. If CONFIG_ACPI_WMI is m and CONFIG_DRM_NOUVEAU
is y, said function will not be reachable by nouveau, resulting in
a linker error.
Until now this issue was not triggered because on x86
CONFIG_ACPI_WMI is automatically selected by nouveau. However the
ACPI-WMI subsystem has added support for other ACPI-compatible
architectures like Risc V, making it possible for users to trigger
this bug.
Fix this by always selecting ACPI_WMI if ACPI support is enabled
to ensure that nouveau can actually reach wmi_evaluate_method().
Fixes: 884d53763d30 ("platform/wmi: Remove dependency on CONFIG_X86")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202611070038.qzOOv1De-lkp@intel.com/
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
---
drivers/gpu/drm/nouveau/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/nouveau/Kconfig b/drivers/gpu/drm/nouveau/Kconfig
index 3b5757aed9c8..9c5716738b18 100644
--- a/drivers/gpu/drm/nouveau/Kconfig
+++ b/drivers/gpu/drm/nouveau/Kconfig
@@ -19,7 +19,7 @@ config DRM_NOUVEAU
select I2C_ALGOBIT
select BACKLIGHT_CLASS_DEVICE if DRM_NOUVEAU_BACKLIGHT
select X86_PLATFORM_DEVICES if ACPI && X86
- select ACPI_WMI if ACPI && X86
+ select ACPI_WMI if ACPI
select MXM_WMI if ACPI && X86
select POWER_SUPPLY
# Similar to i915, we need to select ACPI_VIDEO and it's dependencies
--
2.56.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/nouveau: Fix Kconfig issue with CONFIG_ACPI_WMI
2026-11-07 0:13 ` Armin Wolf
@ 2026-12-05 21:59 ` Danilo Krummrich
-1 siblings, 0 replies; 4+ messages in thread
From: Danilo Krummrich @ 2026-12-05 21:59 UTC (permalink / raw)
To: Armin Wolf
Cc: lyude, dakr, maarten.lankhorst, mripard, airlied, simona,
dri-devel, nouveau, linux-kernel
On Sat, 7 Nov 2026 01:13:05 +0100, Armin Wolf wrote:
> [PATCH] drm/nouveau: Fix Kconfig issue with CONFIG_ACPI_WMI
Applied, thanks!
Branch: drm-misc-fixes
Tree: https://gitlab.freedesktop.org/drm/misc/kernel.git
[1/1] drm/nouveau: Fix Kconfig issue with CONFIG_ACPI_WMI
commit: f3c74d724c1f
The patch will appear in the next linux-next integration (typically within 24
hours on weekdays).
The patch is queued up for Linus's tree and should land in the next -rc release.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/nouveau: Fix Kconfig issue with CONFIG_ACPI_WMI
@ 2026-12-05 21:59 ` Danilo Krummrich
0 siblings, 0 replies; 4+ messages in thread
From: Danilo Krummrich @ 2026-12-05 21:59 UTC (permalink / raw)
To: Armin Wolf
Cc: dakr, maarten.lankhorst, mripard, simona, dri-devel, nouveau,
linux-kernel
On Sat, 7 Nov 2026 01:13:05 +0100, Armin Wolf wrote:
> [PATCH] drm/nouveau: Fix Kconfig issue with CONFIG_ACPI_WMI
Applied, thanks!
Branch: drm-misc-fixes
Tree: https://gitlab.freedesktop.org/drm/misc/kernel.git
[1/1] drm/nouveau: Fix Kconfig issue with CONFIG_ACPI_WMI
commit: f3c74d724c1f
The patch will appear in the next linux-next integration (typically within 24
hours on weekdays).
The patch is queued up for Linus's tree and should land in the next -rc release.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-12-05 22:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-07 0:13 [PATCH] drm/nouveau: Fix Kconfig issue with CONFIG_ACPI_WMI Armin Wolf
2026-11-07 0:13 ` Armin Wolf
2026-12-05 21:59 ` Danilo Krummrich
2026-12-05 21:59 ` Danilo Krummrich
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.