summaryrefslogtreecommitdiff
path: root/src/soc/intel/xeon_sp/spr
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2023-07-14 17:18:18 +0200
committerLean Sheng Tan <sheng.tan@9elements.com>2023-07-18 06:55:27 +0000
commitb096d625d53cfc5bf2dbc38310427efa7521001d (patch)
tree2a296d12b75b84392dbc791c85f4068a9d8545a1 /src/soc/intel/xeon_sp/spr
parent971ea286dd2af2af0f8cc3f176d9f9d7ac95d3fe (diff)
soc/intel/xeon_sp: Introduce soc_cpu_is_enabled
Add a function to check if the CPU placed at the specified socket was found usable during QPI init. This is useful for multi-socket platforms were a CPU is missing or has been disabled due to an error. Change-Id: I135968fcc905928b9bc6511e3ddbd7d12bad0096 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/76556 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/soc/intel/xeon_sp/spr')
-rw-r--r--src/soc/intel/xeon_sp/spr/soc_acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/xeon_sp/spr/soc_acpi.c b/src/soc/intel/xeon_sp/spr/soc_acpi.c
index 5340b7bd74..2e77de28f3 100644
--- a/src/soc/intel/xeon_sp/spr/soc_acpi.c
+++ b/src/soc/intel/xeon_sp/spr/soc_acpi.c
@@ -394,7 +394,7 @@ void uncore_inject_dsdt(const struct device *device)
const STACK_RES *ri =
&hob->PlatformData.IIO_resource[socket].StackRes[stack];
- stack_enabled = hob->PlatformData.IIO_resource[socket].Valid &&
+ stack_enabled = soc_cpu_is_enabled(socket) &&
ri->Personality < TYPE_RESERVED;
printk(BIOS_DEBUG, "%s processing socket: %d, stack: %d, type: %d\n",