ACPI: Add \_SB._OSC bit for PRM

ANBZ: #4172

commit 60faa8f1ac upstream.

Intel-SIG: commit 60faa8f1ac ACPI: Add \_SB._OSC bit for PRM.
Platform Runtime Mechanism feature backport.

Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
[ Aubrey Li: amend commit log ]
Signed-off-by: Aubrey Li <aubrey.li@linux.intel.com>
Reviewed-by: Artie Ding <artie.ding@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/1229
This commit is contained in:
Erik Kaneda 2022-10-31 11:40:53 +08:00 committed by 小龙
parent 1246290568
commit 5f8034725a
2 changed files with 2 additions and 0 deletions

View File

@ -304,6 +304,7 @@ static void acpi_bus_osc_support(void)
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_HOTPLUG_OST_SUPPORT;
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PCLPI_SUPPORT;
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PRM_SUPPORT;
#ifdef CONFIG_ARM64
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_GENERIC_INITIATOR_SUPPORT;

View File

@ -554,6 +554,7 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context);
#define OSC_SB_OSLPI_SUPPORT 0x00000100
#define OSC_SB_CPC_DIVERSE_HIGH_SUPPORT 0x00001000
#define OSC_SB_GENERIC_INITIATOR_SUPPORT 0x00002000
#define OSC_SB_PRM_SUPPORT 0x00020000
extern bool osc_sb_apei_support_acked;
extern bool osc_pc_lpi_support_confirmed;