soc/amd/common/cpu: Add Kconfig to program the PSP_ADDR MSR
commit3a795e0b23c812d5a576fbb44b20668190334ad6
authorMatt DeVillier <matt.devillier@amd.corp-partner.google.com>
Fri, 28 Jul 2023 18:43:36 +0000 (28 13:43 -0500)
committerFelix Held <felix-coreboot@felixheld.de>
Mon, 31 Jul 2023 18:37:50 +0000 (31 18:37 +0000)
tree668314f0736cb64bc48d98da55189f9d4a69e325
parent3bd83b27afbc840f184b652a1dd8ed539623a258
soc/amd/common/cpu: Add Kconfig to program the PSP_ADDR MSR

The PSP_ADDR_MSR is programmed into the BSP by FSP, but not always
propagated to the other cores/APs. Add a hook to run a function
which will read the MSR value from the BSP, and program it into the
APs, guarded by a Kconfig. SoCs which wish to utilize this feature
can select the Kconfig.

BUG=b:293571109
BRANCH=skyrim
TEST=tested with rest of patch train

Change-Id: I14af1a092965254979df404d8d7d9a28a15b44b8
Signed-off-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76808
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
src/soc/amd/common/block/cpu/Kconfig
src/soc/amd/common/block/cpu/cpu.c