From d40e8b6cb542c652dc5e5a69c4b7e8075ec90d49 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Mon, 7 Feb 2022 17:25:44 +0100 Subject: [PATCH] soc/amd/sabrina: change MAX_CPUS to 8 The Sabrina APU has a maximum configuration of 4 physical cores with 2 threads each, so a total of 8 CPU cores. Signed-off-by: Felix Held Change-Id: I627ed78ffba6098726c9c8ec55b60665503240ea Reviewed-on: https://review.coreboot.org/c/coreboot/+/65068 Reviewed-by: Raul Rangel Tested-by: build bot (Jenkins) --- src/soc/amd/sabrina/Kconfig | 2 +- src/soc/amd/sabrina/cpu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/amd/sabrina/Kconfig b/src/soc/amd/sabrina/Kconfig index 8274512f39..2fd3000111 100644 --- a/src/soc/amd/sabrina/Kconfig +++ b/src/soc/amd/sabrina/Kconfig @@ -235,7 +235,7 @@ config ECAM_MMCONF_BUS_NUMBER config MAX_CPUS int - default 16 + default 8 help Maximum number of threads the platform can have. diff --git a/src/soc/amd/sabrina/cpu.c b/src/soc/amd/sabrina/cpu.c index 9893a8bb30..addbf7ec18 100644 --- a/src/soc/amd/sabrina/cpu.c +++ b/src/soc/amd/sabrina/cpu.c @@ -19,7 +19,7 @@ #include #include -_Static_assert(CONFIG_MAX_CPUS == 16, "Do not override MAX_CPUS. To reduce the number of " +_Static_assert(CONFIG_MAX_CPUS == 8, "Do not override MAX_CPUS. To reduce the number of " "available cores, use the downcore_mode and disable_smt devicetree settings instead."); /* MP and SMM loading initialization */