Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is intel-microcode needed for newer kernel? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3007
Location: Edge of marsh USA

PostPosted: Tue Nov 17, 2020 5:35 am    Post subject: Is intel-microcode needed for newer kernel? [SOLVED] Reply with quote

When I was running kernel 4.9 series, the elog message for intel-microcode would read:
Code:
$ cat sys-firmware:intel-microcode-20200508_p20200508:20200511-171644.log
WARN: postinst
intel-microcode-20200508_p20200508 contains microcode updates which require
additional kernel patches which aren't yet included in kernel <4.14.34.
Loading such a microcode through kernel interface from an unpatched kernel
can crash your system!

I've updated and currently running 4.19.152. Today's update included an update to the intel-micocode pacakge, but no file was placed in /var/log/portage/elog. Should I take that to mean that I no longer need to load the intel-microcode early_ucode.cpio when booting my i7-2600?
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi


Last edited by figueroa on Tue Nov 17, 2020 5:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
gengreen
Apprentice
Apprentice


Joined: 23 Dec 2017
Posts: 150

PostPosted: Tue Nov 17, 2020 6:17 am    Post subject: Reply with quote

My understanding

Quote:
intel-microcode-20200508_p20200508 contains microcode updates which require
additional kernel patches which aren't yet included in kernel 4.14.34


Intel-microcode have a microcode update which require some patch that are not included in kernel 4.14.34 and lower version

I may make a mistake, but you need to still load the microcode in your initramfs

Edit : hmm lower higher ? where did you get this message ? I had an update this morning regarding the microcode but my is : 20201112_p20201116
_________________
Less is best
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Nov 17, 2020 7:44 am    Post subject: Reply with quote

You need to load the microcode somehow. Unless you have a BIOS upgrade which already includes the latest microcode for your CPU. My choice is building it into kernel.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54821
Location: 56N 3W

PostPosted: Tue Nov 17, 2020 12:46 pm    Post subject: Reply with quote

figueroa,

Microcode is either loaded by the BIOS or the kernel, or both.
Its never included in the kernel unless you add it.
It way be provided in linux-firmware but it rannot be loaded into the CPU from there.
It needs the microcode updated early process, so it must be built into the kernel binary.

The kernel does a version compare before it updates, so it may be a NOP.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23082

PostPosted: Tue Nov 17, 2020 5:14 pm    Post subject: Re: Is intel-microcode needed for newer kernel? Reply with quote

figueroa wrote:
I've updated and currently running 4.19.152. Today's update included an update to the intel-micocode pacakge, but no file was placed in /var/log/portage/elog. Should I take that to mean that I no longer need to load the intel-microcode early_ucode.cpio when booting my i7-2600?
No, the absence of the message is because you are now running a kernel where it is believed safe to use that version of the microcode. On your older kernel series, the microcode was believed to be incompatible with your kernel, so you received a warning. Now you have a compatible kernel, so there is no need for a warning. As other posters have said, this does not mean you can skip the microcode. Rather, it means that it is finally safe to use it.
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3007
Location: Edge of marsh USA

PostPosted: Tue Nov 17, 2020 5:23 pm    Post subject: Reply with quote

gengreen wrote:
Edit : hmm lower higher ? where did you get this message ? I had an update this morning regarding the microcode but my is : 20201112_p20201116

Actually, yesterday's update was intel-microcode-20201112_p20201116:20201116. However, this update did not post anything to /var/log/portage/elog. Furthermore, I used it to create a new /boot/early_ucode.cpio which is invoked by grub as initrd /boot/early_ucode.cpio when the kernel boots.

Notwithstanding the elog message regarding kernel <4.14.34, I've been using the microcode for a long time with up-to-date kernels in the 4.9 series without any issue. There is too little information readily available, and it appears that the elog messge, which I always read, never changes. As is often the case, I get by with trial and error.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3007
Location: Edge of marsh USA

PostPosted: Tue Nov 17, 2020 5:25 pm    Post subject: Re: Is intel-microcode needed for newer kernel? Reply with quote

Hu wrote:
figueroa wrote:
I've updated and currently running 4.19.152. Today's update included an update to the intel-micocode pacakge, but no file was placed in /var/log/portage/elog. Should I take that to mean that I no longer need to load the intel-microcode early_ucode.cpio when booting my i7-2600?
No, the absence of the message is because you are now running a kernel where it is believed safe to use that version of the microcode. On your older kernel series, the microcode was believed to be incompatible with your kernel, so you received a warning. Now you have a compatible kernel, so there is no need for a warning. As other posters have said, this does not mean you can skip the microcode. Rather, it means that it is finally safe to use it.

Thank you for the clarity. I'll mark this solved.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum