Skip to content

Commit 392ed6a

Browse files
aubreylirafaeljw
authored andcommitted
ACPI: Do not singal PRM support if not enabled
If the OS confirms PRM (Platform Runtime Mechanism) support through the \_SB._OSC PRM bit, the BIOS may start relying on the presence of PRM support in the OS, so prevent the PRM bit from being set in the \_SB._OSC capabilities bitmask when PRM support is not built in so as to avoid confusing the BIOS in that case. Fixes: 60faa8f ("ACPI: Add \_SB._OSC bit for PRM") Signed-off-by: Aubrey Li <[email protected]> [ rjw: Rewrite subject and changelog, replace #ifdef with if (IS_ENABLED()) ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent bd7a94c commit 392ed6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/acpi/bus.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@ static void acpi_bus_osc_negotiate_platform_control(void)
305305

306306
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_HOTPLUG_OST_SUPPORT;
307307
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PCLPI_SUPPORT;
308-
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PRM_SUPPORT;
308+
if (IS_ENABLED(CONFIG_ACPI_PRMT))
309+
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PRM_SUPPORT;
309310

310311
#ifdef CONFIG_ARM64
311312
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_GENERIC_INITIATOR_SUPPORT;

0 commit comments

Comments
 (0)