Messages in this thread | | | Date | Fri, 21 Oct 2022 04:39:55 -0700 | From | Ashok Raj <> | Subject | Re: [PATCH 2/5] x86/microcode: Simplify init path even more |
| |
Hi Boris
On Fri, Oct 21, 2022 at 12:57:32PM +0200, Borislav Petkov wrote: > On Fri, Oct 21, 2022 at 03:21:03AM -0700, Ashok Raj wrote: > > After boot expect to see 0x81 as the revision. But its left with what > > was loaded at initrd image. > > Are you testing with all patches, including yours or just the 5 I sent > you?
I tested just with only your patches
I use Ubuntu
Did a unmkinitrd and verified that 0x70 is in it. After extract.
araj@araj-ucode:/tmp/temp/early2/kernel/x86/microcode$ od -x GenuineIntel.bin | grep "0070 2b00" 12102000 0001 0000 0070 2b00 2022 0822 06f8 0008 -------------------^^^^ ^^^^
12102060 0000 0000 00e0 0000 0001 0003 0070 2b00
Patches in my work tree.. I use stgit mostly araj@araj-ucode:~/work/linux.git.trees$ qyet 1 + v2-bp1 2 + bp2 3 + bp3 4 + bp4 5 + bp5
Now just copy the 0x81 ucode in /lib/firmware/intel-ucode/ araj@araj-ucode:~/work/ucode$ od -x /lib/firmware/intel-ucode/06-8f-05 | head 0000000 0001 0000 0081 2b00 2022 0906 06f8 0008 ------------------^^^^ ^^^^
After reboot that file is unchanged.
dmesg shows: [ 0.000000] microcode: early update: 0x2b000041 -> 0x2b000070, date = 2022-08 -22
araj@araj-ucode:~$ cat /proc/cpuinfo | grep microcode | sort -u microcode : 0x2b000070
root@araj-ucode:/home/araj# echo 1 > /sys/devices/system/cpu/microcode/reload root@araj-ucode:/home/araj# cat /proc/cpuinfo | grep microcode | sort -u microcode : 0x2b000081
dmesg: [ 654.103784] microcode: Attempting late microcode loading - it is dangerous and taints the kernel. [ 654.113807] microcode: You should switch to early loading, if possible. [ 654.613154] microcode: update 0x2b000070 -> 0x2b000081, date = 2022-09-06
> > > The filesystem still had 0x81, and can successfuly load after boot is > > completed. > > By doing late load through sysfs or what does "can successfuly load" > mean exactly?
I meant by echo 1 > reload
Cheers, Ashok
| |