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>
This commit is contained in:
parent
9d6008ea5b
commit
d34dbe5888
8 changed files with 64 additions and 39 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue