soc/intel/xeon_sp/smihandler: Lock SMM_FEATURE_CONTROL on all sockets
commit7a593ab0bb6ad33db39d49745a07b382996cc4e9
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Thu, 25 Jan 2024 14:15:00 +0000 (25 15:15 +0100)
committerLean Sheng Tan <sheng.tan@9elements.com>
Tue, 6 Feb 2024 08:21:05 +0000 (6 08:21 +0000)
tree849a01dcb8df397fa9f1cdffcb476472f52210ed
parentfe33b2dd86e41be96a1943e381cadf2b3a722356
soc/intel/xeon_sp/smihandler: Lock SMM_FEATURE_CONTROL on all sockets

Remove hardcoded B:D:F numbers for the first socket and pass the PCI
addresses to be locked within SMM by using the smm_pci_resource_store.

This allows to lock down SMM on all sockets without knowing the actual
bus topology or PCI segment group at compile time where the UBOX devices
reside on.

Tested: SMM is locked on all 4 sockets instead of just one.

Change-Id: Ica694911384005681662d3d7bed354a60bf08911
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80247
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
20 files changed:
src/mainboard/bytedance/bd_egs/ramstage.c
src/mainboard/ibm/sbp1/ramstage.c
src/mainboard/intel/archercity_crb/ramstage.c
src/mainboard/intel/cedarisland_crb/ramstage.c
src/mainboard/inventec/transformers/ramstage.c
src/mainboard/ocp/deltalake/ramstage.c
src/mainboard/ocp/tiogapass/ramstage.c
src/soc/intel/xeon_sp/Kconfig
src/soc/intel/xeon_sp/cpx/Makefile.mk
src/soc/intel/xeon_sp/cpx/include/soc/pci_devs.h
src/soc/intel/xeon_sp/cpx/soc_smihandler_util.c [deleted file]
src/soc/intel/xeon_sp/include/soc/smmrelocate.h
src/soc/intel/xeon_sp/skx/Makefile.mk
src/soc/intel/xeon_sp/skx/include/soc/pci_devs.h
src/soc/intel/xeon_sp/skx/soc_smihandler_util.c [deleted file]
src/soc/intel/xeon_sp/smihandler.c
src/soc/intel/xeon_sp/smmrelocate.c
src/soc/intel/xeon_sp/spr/Makefile.mk
src/soc/intel/xeon_sp/spr/include/soc/pci_devs.h
src/soc/intel/xeon_sp/spr/soc_smihandler_util.c [deleted file]