[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] x86/ucode: log blob date also for AMD
commit f36179726847a08418a0b4f9c319b24ecb60fe3a Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Thu Apr 1 16:43:50 2021 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Thu Apr 1 16:43:50 2021 +0200 x86/ucode: log blob date also for AMD Like Intel, AMD also records the date in their blobs. The field was merely misnamed as "data_code" so far; this was perhaps meant to be "date_code". Split it into individual fields, just like we did for Intel some time ago, and extend the message logged after a successful update. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/arch/x86/cpu/microcode/amd.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/cpu/microcode/amd.c b/xen/arch/x86/cpu/microcode/amd.c index 809ba4967c..fe92e594f1 100644 --- a/xen/arch/x86/cpu/microcode/amd.c +++ b/xen/arch/x86/cpu/microcode/amd.c @@ -33,7 +33,9 @@ struct equiv_cpu_entry { }; struct microcode_patch { - uint32_t data_code; + uint16_t year; + uint8_t day; + uint8_t month; uint32_t patch_id; uint8_t mc_patch_data_id[2]; uint8_t mc_patch_data_len; @@ -251,8 +253,9 @@ static int apply_microcode(const struct microcode_patch *patch) return -EIO; } - printk(XENLOG_WARNING "microcode: CPU%u updated from revision %#x to %#x\n", - cpu, old_rev, rev); + printk(XENLOG_WARNING + "microcode: CPU%u updated from revision %#x to %#x, date = %04x-%02x-%02x\n", + cpu, old_rev, rev, patch->year, patch->month, patch->day); return 0; } -- generated by git-patchbot for /home/xen/git/xen.git#master
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |