summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2022-02-07 17:25:44 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-06-10 17:06:27 +0000
commitd40e8b6cb542c652dc5e5a69c4b7e8075ec90d49 (patch)
treed8a554dc2366ed1066be2179cf9829520720ab02
parent736d68c0b36e8e56aa047b8c8556fb4bd196cd62 (diff)
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 <felix-coreboot@felixheld.de> Change-Id: I627ed78ffba6098726c9c8ec55b60665503240ea Reviewed-on: https://review.coreboot.org/c/coreboot/+/65068 Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/soc/amd/sabrina/Kconfig2
-rw-r--r--src/soc/amd/sabrina/cpu.c2
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 <soc/iomap.h>
#include <types.h>
-_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 */