Bug#979407: amd64-microcode: Amd64 microcode is not being loaded by the kernel from early initramfs.

2022-02-19 Thread Shmerl
On Wed, 06 Jan 2021 10:39:38 + Philip Armstrong 
wrote:
> if I trigger a microcode
> load from the shell with
>
>   echo 1 > /sys/devices/system/cpu/microcode/reload
>
> after booting then the microcode is updated to that newer version.

How do you check the current version of microcode in use?

Since amd64-microcode package is so outdated in Debian, I updated microcode
files manually from
the upstream Linux firmware repo, putting them in
/usr/lib/firmware/amd-ucode. Then I ran
sudo dpkg-recoconfigure amd64-microcode hoping it will update it.

On next reboot I have the same version as before (basically what's in my
UEFI)
according to dmesg.

Doing echo 1 > /sys/devices/system/cpu/microcode/reload and checking
/proc/cpuinfo
I also don't see any change.

Thanks,
Shmerl.


Bug#979407: amd64-microcode: Amd64 microcode is not being loaded by the kernel from early initramfs.

2021-01-06 Thread Philip Armstrong
Package: amd64-microcode
Version: 3.20191218.1
Severity: normal

On boot, the cpus are reported as having the following microcode version by the 
kernel:

  microcode: CPU0: patch_level=0x0800820c

But this is not the latest version of the microcode, which is 0x800820d & if I 
trigger a microcode
load from the shell with

  echo 1 > /sys/devices/system/cpu/microcode/reload

after booting then the microcode is updated to that newer version.

I have checked & the initramfs does contain an uncompressed cpio archive 
containing the microcode
file kernel/x86/microcode/AuthenticAMD.bin as expected.

So either the kernel is not seeing this, or for some reason it does not contain 
the latest microcode
version, despite that latest version being the one loaded from 
/lib/firmware/amd64-microcode when
triggered post-boot.

It would be nice to sort this out! Any suggestons as to where to start?

cheers, Phil Armstrong

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-1-amd64 (SMP w/12 CPU threads)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

amd64-microcode depends on no packages.

Versions of packages amd64-microcode recommends:
ii  initramfs-tools  0.139

amd64-microcode suggests no packages.

-- no debconf information