[PATCH] platform/wmi: Allow wmi module to load when acpi_disabled is set

Hans de Goede johannes.goede at oss.qualcomm.com
Thu Nov 12 05:45:29 PST 2026


Hi,

On 12-Nov-26 11:21, Ilpo Järvinen wrote:
> On Wed, 11 Nov 2026, Hans de Goede wrote:
> 
>> The core wmi module provides symbols which may be used by other modules.
>> These other modules may still function when acpi_disabled is set, but
>> the current behavior of acpi_wmi_init() returning -ENODEV when it is set
>> causes loading these modules to fail because the wmi module these depend
>> on fails to load with -ENODEV.
>>
>> One example of this is booting a kernel with both DT and ACPI/WMI support
>> on an arm64 systems with devicetree which will lead to acpi_disabled being
>> set. Trying to load the amdgpu module will fail in this case because it
>> uses symbols from the drivers/acpi/video module which in turn uses symbols
>> from the wmi module. Note the video module itself already contains handling
>> to still load when acpi_disables is set for similar reasons.
>>
>> Fix this by allowing the wmi module to still load and also register
>> the class and bus instances since some exported functions like
>> wmi_driver_register() rely on these being valid.
>>
>> Signed-off-by: Hans de Goede <johannes.goede at oss.qualcomm.com>
> 
> No Fixes tag?
> 
> Doesn't this fix a real issue and we want this go through the fixes 
> branch?

This problem of the GPU-driver -> drivers/acpi/video.ko -> wmi.ko
dep-chain breaking loading GPU drivers when acpi_disabled is set
stems in essence from:

fe7aebb40d42 ("ACPI: video: Add Nvidia WMI EC brightness control detection (v3)")

which introduces the drivers/acpi/video.ko -> wmi.ko dependency.

But that is from 2022 and was never a problem before, since booting
any modern x86 hw with acpi_disabled is not really realistic.

acpi_disabled however does get set on arm64 hw when booting
a machine with devicetree on a kernel which can handle both
devicetree as well as ACPI. So the real trigger for this being
a problem now is:

e2c1b56f3dfa ("platform/x86: wmi: Move WMI core code into a separate directory")

which allows this dep chain to now also happen on arm64.

I'll send a v2 with Armin's Reviewed-by and this as fixes tag.

Regards,

Hans






More information about the linux-riscv mailing list