Commit 38c1bf84 authored by Armin Wolf's avatar Armin Wolf Committed by Xiongfeng Wang
Browse files

ACPI: Fix Generic Initiator Affinity _OSC bit

mainline inclusion
from mainline-v6.10-rc1
commit d0d4f1474e36b195eaad477373127ae621334c01
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IB8X0F

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d0d4f1474e36b195eaad477373127ae621334c01



--------------------------------

The ACPI spec says bit 17 should be used to indicate support
for Generic Initiator Affinity Structure in SRAT, but we currently
set bit 13 ("Interrupt ResourceSource support").

Fix this by actually setting bit 17 when evaluating _OSC.

Fixes: 01aabca2 ("ACPI: Let ACPI know we support Generic Initiator Affinity Structures")
Signed-off-by: default avatarArmin Wolf <W_Armin@gmx.de>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>

Conflicts:
	include/linux/acpi.h
[wangxiongfeng: fix context conflicts]
Signed-off-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
parent 21a6ff57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -552,7 +552,7 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context);
#define OSC_SB_PCLPI_SUPPORT			0x00000080
#define OSC_SB_OSLPI_SUPPORT			0x00000100
#define OSC_SB_CPC_DIVERSE_HIGH_SUPPORT		0x00001000
#define OSC_SB_GENERIC_INITIATOR_SUPPORT	0x00002000
#define OSC_SB_GENERIC_INITIATOR_SUPPORT	0x00020000
#define OSC_SB_PRM_SUPPORT			0x00200000

extern bool osc_sb_apei_support_acked;