cpu/x86/mp_init.c: Print out the microcode revision of APs

It is useful to know if MCU have been applied successfully.

On the start of MP init lines similar to:
"AP: slot 1 apic_id 1, MCU rev: 0x0700001d" will be printed.
The example is taken from the log of an ocp/deltalake.

Change-Id: Ia0a6428b41d07f87943f3aa7736b8cb457fdd15a
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49840
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Arthur Heymans 2021-01-22 19:05:55 +01:00 committed by Patrick Georgi
parent 9daf5f071c
commit 98872649c5
1 changed files with 6 additions and 2 deletions

View File

@ -196,8 +196,12 @@ static void asmlinkage ap_init(unsigned int cpu)
/* Fix up APIC id with reality. */
info->cpu->path.apic.apic_id = lapicid();
printk(BIOS_INFO, "AP: slot %d apic_id %x.\n", cpu,
info->cpu->path.apic.apic_id);
if (cpu_is_intel())
printk(BIOS_INFO, "AP: slot %d apic_id %x, MCU rev: 0x%08x\n", cpu,
info->cpu->path.apic.apic_id, get_current_microcode_rev());
else
printk(BIOS_INFO, "AP: slot %d apic_id %x\n", cpu,
info->cpu->path.apic.apic_id);
/* Walk the flight plan */
ap_do_flight_plan();