mbox series

[OpenWrt-Devel,v2,0/2] amd-microcode: load as early as possible

Message ID 20181031174839.7380-1-tomek_n@o2.pl
Headers show
Series amd-microcode: load as early as possible | expand

Message

Tomasz Maciej Nowak Oct. 31, 2018, 5:48 p.m. UTC
This series is continuation of previous atempt [1]. AFAIK there are no
caveats for late loading of microcode for AMD processors, so it makes
this series completely optional, but as kernel folks consider late load
of microcode legacy method [2] lets switch to early one.
Loading of microcode  was succesfully tested on Acer D1F-AD (OEM)
mainboard.

Needs to be applied after "intel-microcode: load as early as possible"
series [3] or successor.

1. https://patchwork.ozlabs.org/project/lede/list/?series=40618
2. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/x86/microcode.txt#n89
3. https://patchwork.ozlabs.org/project/openwrt/list/?series=73447

Changes v2:
  - rework the microcode loading; if both microcode images (amd and
    intel) were installed, grub loaded only the last one defined as
    initrd:
    x86: add amd microcode entries to grub config
  - no changes:
    amd64-microcode: create early load microcode image

Tomasz Maciej Nowak (2):
  x86: add amd microcode entries to grub config
  amd64-microcode: create early load microcode image

 package/firmware/amd64-microcode/Makefile            | 10 ++++++++--
 .../x86/base-files/lib/preinit/02_load_x86_ucode     | 12 ------------
 target/linux/x86/image/grub-iso.cfg                  |  9 +++++++--
 target/linux/x86/image/grub.cfg                      |  9 +++++++--
 4 files changed, 22 insertions(+), 18 deletions(-)
 delete mode 100644 target/linux/x86/base-files/lib/preinit/02_load_x86_ucode