soc/amd/genoa: Hook up microcode updating

Also update the regular expression to find the genoa blobs.

Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: Iba0109c049019a22cba1e0358cedbd9c198c6569
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76525
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Arthur Heymans 2023-07-14 23:16:22 +02:00 committed by Felix Held
parent 0a48cfa3a5
commit 5ee1d23bcc
3 changed files with 5 additions and 1 deletions

View File

@ -38,7 +38,7 @@ AMDFW_CFG_WITH_PATH = $(shell echo "$(AMDFW_CFG_FILES)" | tr ' ' '\n' | grep "/"
DEP_FILES = $(patsubst %,$(FIRMWARE_LOCATION)/%, $(AMDFW_CFG_IN_FW_LOC)) \ DEP_FILES = $(patsubst %,$(FIRMWARE_LOCATION)/%, $(AMDFW_CFG_IN_FW_LOC)) \
$(AMDFW_CFG_WITH_PATH) $(AMDFW_CFG_WITH_PATH)
amd_microcode_bins += $(wildcard ${FIRMWARE_LOCATION}/*UcodePatch_*.bin) amd_microcode_bins += $(wildcard ${FIRMWARE_LOCATION}/*U?odePatch*.bin)
ifeq ($(CONFIG_RESET_VECTOR_IN_RAM),y) ifeq ($(CONFIG_RESET_VECTOR_IN_RAM),y)
$(objcbfs)/bootblock.bin: $(obj)/amdfw.rom $(obj)/fmap_config.h $(objcbfs)/bootblock.bin: $(obj)/amdfw.rom $(obj)/fmap_config.h

View File

@ -34,6 +34,7 @@ config SOC_SPECIFIC_OPTIONS
select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY
select SOC_AMD_COMMON_BLOCK_TSC select SOC_AMD_COMMON_BLOCK_TSC
select SOC_AMD_COMMON_BLOCK_UART select SOC_AMD_COMMON_BLOCK_UART
select SOC_AMD_COMMON_BLOCK_UCODE
select SOC_AMD_COMMON_BLOCK_USE_ESPI select SOC_AMD_COMMON_BLOCK_USE_ESPI
select X86_CUSTOM_BOOTMEDIA select X86_CUSTOM_BOOTMEDIA

View File

@ -2,6 +2,7 @@
#include <amdblocks/cpu.h> #include <amdblocks/cpu.h>
#include <amdblocks/mca.h> #include <amdblocks/mca.h>
#include <cpu/amd/microcode.h>
#include <cpu/cpu.h> #include <cpu/cpu.h>
#include <device/device.h> #include <device/device.h>
#include <soc/cpu.h> #include <soc/cpu.h>
@ -10,6 +11,8 @@ static void model_19_init(struct device *dev)
{ {
check_mca(); check_mca();
set_cstate_io_addr(); set_cstate_io_addr();
amd_apply_microcode_patch();
} }
static struct device_operations cpu_dev_ops = { static struct device_operations cpu_dev_ops = {