Re: testing early microcode loading

From: Mark Johnston <markj_at_freebsd.org>
Date: Mon, 10 Sep 2018 20:41:17 -0400
On Mon, Sep 10, 2018 at 12:48:56PM -0700, Pete Wright wrote:
> 
> 
> On 9/10/18 11:26 AM, Mark Johnston wrote:
> > Hi,
> >
> > Support for boot-time loading of Intel microcode updates has landed in
> > the kernel in r337715, and in the sysutils/devcpu-data port as of 1.20.
> > I'd like to solicit some testing of the feature ahead of 12.0.
> 
> Hey there Mark,
> So I've just tested this on a kabylake system running a kernel/world 
> from Sept 7th which I believe is recent enough.
> 
> After updating /boot/loader.conf as per your email I am not sure if any 
> microcode updates are being applied.  I'm not seeing any messages 
> regarding firmware updates being applied in the dmesg buffer.  

Right, we currently print something only if an update was configured
but failed to apply.  We should probably print something either way,
perhaps only if the kernel is booted with -v.

> running x86info results in the following:
> 
> $ sudo kldload -n cpuctl && sudo x86info -a | grep Micro
> Microcode version: 0x000000000000008e
> 
> this is after rebooting with the updated loader.conf as well as running 
> the rc script by hand.  i didn't think to compare the output of x86info 
> before running the rc script, i can do that later today.

Thanks.  If the boot-time update succeeded, the rc script should have
been a no-op.  Can you check for "updating cpu /dev/cpuctl..." messages
in /var/log/messages?  That would indicate that the rc script applied an
update, which would imply that the boot-time update failed somehow.

> for reference here is my dmesg:
> https://gist.github.com/nomadlogic/bfc54315b97d374a7818d29bfc93223e
Received on Mon Sep 10 2018 - 22:41:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:18 UTC