intel/mp_init: Call `intel_reload_microcode()` before post_cpus_init()

This patch calls into `intel_reload_microcode() function to load
second microcode patch after BIOS Done bit is set and before
setting the BIOS Reset CPL bit.

Also, remove redundant microcode reloading debug print.

BUG=b:233199592
TEST=Build and boot google/kano to ChromeOS.

Signed-off-by: Subrata Banik <subratabanik@google.com>
Change-Id: Icb3fcfd7ef5478be0a40f8f1358f55c0247b4914
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65157
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Subrata Banik 2022-06-15 21:39:06 +05:30 committed by Felix Held
parent bd0aef0f2a
commit 46265abc71
1 changed files with 1 additions and 2 deletions

View File

@ -181,8 +181,7 @@ void before_post_cpus_init(void)
if (mp_run_on_all_cpus(&wrapper_set_bios_done, NULL) != CB_SUCCESS) if (mp_run_on_all_cpus(&wrapper_set_bios_done, NULL) != CB_SUCCESS)
printk(BIOS_ERR, "Set BIOS Done failure\n"); printk(BIOS_ERR, "Set BIOS Done failure\n");
initialize_microcode(); intel_reload_microcode();
printk(BIOS_INFO, "%s: second patch load done\n", __func__);
} }
/* Ensure to re-program all MTRRs based on DRAM resource settings */ /* Ensure to re-program all MTRRs based on DRAM resource settings */