Re: [Patch V1 6/7] x86/microcode/intel: Print old and new rev during early boot
From: Thomas Gleixner
Date: Fri Dec 02 2022 - 14:29:51 EST
On Tue, Nov 29 2022 at 13:08, Ashok Raj wrote:
> Make early loading message to match late loading messages. Print
> both old and new revisions.
>
> This is helpful to know what the BIOS loaded revision is before an early
> update.
>
> microcode: early update: 0x2b000041 -> 0x2b000070 date = 2000-01-01
>
> Store the early BIOS revision and change the print format to match
> late loading message from microcode/core.c
Cache the early BIOS revision before the microcode update and change
print_ucode_info() so it prints both the old and the new revision in the
same format as $function().
> */
> static void
> -print_ucode_info(unsigned int new_rev, unsigned int date)
> +print_ucode_info(int old_rev, int new_rev, unsigned int date)
Oh. Forgot to mention that before. Can you please get rid of this
pointless line break after 'static void' ?
> {
> - pr_info_once("microcode updated early to revision 0x%x, date = %04x-%02x-%02x\n",
> - new_rev,
> + pr_info_once("early update: 0x%x -> 0x%x, date = %04x-%02x-%02x\n",
> + old_rev, new_rev,
> date & 0xffff,
> date >> 24,
> (date >> 16) & 0xff);
And while at it also consolidate these arguments into a single or at max.
two lines?
Should happen in the first patch which touches this function.
Other than that, the code is fine.
Thanks,
tglx