diff options
author | Grzegorz Bernacki <bernacki@google.com> | 2023-04-25 15:30:14 +0000 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2023-06-02 20:24:25 +0000 |
commit | d34dbe5888fb11f2a6bb9bd0e4624d2e2f9f350a (patch) | |
tree | 0344259bb6b5016d95acbdb61721278cd29b2391 /src/include | |
parent | 9d6008ea5b5acf142f73f3d485c2c196d8a88a59 (diff) |
soc/amd/common/block/cpu: Refactor ucode allocation
Move microcode load/unload to pre_mp_init and post_mp_init callbacks.
It allows to make sure that ucode is freed only if all APs updated
microcode.
BUG=b:278264488
TEST=Build and run with additional debug prints added
to confirm that data are correctly unmapped
Change-Id: I200d24df6157cc6d06bade34809faefea9f0090a
Signed-off-by: Grzegorz Bernacki <bernacki@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74777
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/cpu/amd/microcode.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/cpu/amd/microcode.h b/src/include/cpu/amd/microcode.h index 9e889364e0..b6b158c99a 100644 --- a/src/include/cpu/amd/microcode.h +++ b/src/include/cpu/amd/microcode.h @@ -4,6 +4,9 @@ #define CPU_AMD_MICROCODE_H void amd_update_microcode_from_cbfs(void); +void amd_load_microcode_from_cbfs(void); +void amd_free_microcode(void); +void amd_apply_microcode_patch(void); void preload_microcode(void); #endif /* CPU_AMD_MICROCODE_H */ |