Skip to content

Commit 01aabca

Browse files
jic23rafaeljw
authored andcommitted
ACPI: Let ACPI know we support Generic Initiator Affinity Structures
Until we tell ACPI that we support generic initiators, it will have to operate in fall back domain mode and all _PXM entries should be on existing non GI domains. This patch sets the relevant OSC bit to make that happen. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 73bf738 commit 01aabca

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

drivers/acpi/bus.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,11 @@ static void acpi_bus_osc_support(void)
303303
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_HOTPLUG_OST_SUPPORT;
304304
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PCLPI_SUPPORT;
305305

306+
#ifdef CONFIG_ARM64
307+
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_GENERIC_INITIATOR_SUPPORT;
308+
#endif
306309
#ifdef CONFIG_X86
310+
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_GENERIC_INITIATOR_SUPPORT;
307311
if (boot_cpu_has(X86_FEATURE_HWP)) {
308312
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_CPC_SUPPORT;
309313
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_CPCV2_SUPPORT;

include/linux/acpi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context);
545545
#define OSC_SB_PCLPI_SUPPORT 0x00000080
546546
#define OSC_SB_OSLPI_SUPPORT 0x00000100
547547
#define OSC_SB_CPC_DIVERSE_HIGH_SUPPORT 0x00001000
548+
#define OSC_SB_GENERIC_INITIATOR_SUPPORT 0x00002000
548549

549550
extern bool osc_sb_apei_support_acked;
550551
extern bool osc_pc_lpi_support_confirmed;

0 commit comments

Comments
 (0)