Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 662492 - sys-kernel/genkernel-3.5.3.3 activates CONFIG_MICOCODE_INTEL
Summary: sys-kernel/genkernel-3.5.3.3 activates CONFIG_MICOCODE_INTEL
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on: 662812
Blocks:
  Show dependency tree
 
Reported: 2018-07-30 22:19 UTC by Joerg Schaible
Modified: 2018-08-04 23:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Schaible 2018-07-30 22:19:47 UTC
I have an elderly AMD64 system (Athlon II, K10) and therefore I have configured the microcode stuff in the kernel like:

$grep MICROCODE .config
CONFIG_MICROCODE=y
# CONFIG_MICROCODE_INTEL is not set
CONFIG_MICROCODE_AMD=y
CONFIG_MICROCODE_OLD_INTERFACE=y

However, after running "genkernel all" (also with activated microcode support) the kernel configuration has been silently modified and the CONFIG_MICROCODE_INTEL is silently set. Genkernel itself complains about missing package intel-microcode during generation of initrd.

But even worse, if I generate now the grub configuration file, it claims to find intel-ucode.cpio and adds it as first element to initrd line. After the next reboot the system is hosed because, /intel-ucode.cpio is nowhere to find and the boot sequence stops.
Comment 1 Mart Raudsepp gentoo-dev 2018-07-30 22:34:05 UTC
Nothing to do here for arm64, unCCing. Aarch64 doesn't have any intel stuff, probably mistaken CC with amd64.
Comment 2 Joerg Schaible 2018-08-01 21:46:43 UTC
(In reply to Mart Raudsepp from comment #1)
> Nothing to do here for arm64, unCCing. Aarch64 doesn't have any intel stuff,
> probably mistaken CC with amd64.

Sorry, my mistake.
Comment 3 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2018-08-01 21:50:20 UTC
it is up to the genkernel maintainers, nothing to do for amd64 here
Comment 4 Larry the Git Cow gentoo-dev 2018-08-04 23:26:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=febc1b12b5b393e918da94b9f1c029f2adcea215

commit febc1b12b5b393e918da94b9f1c029f2adcea215
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2018-08-04 23:19:46 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2018-08-04 23:25:31 +0000

    microcode: add flexability: type & initramfs control
    
    Bug reported that the MICROCODE option did not provide enough
    flexability, as it enabled both AMD & Intel options by default, and
    placed both sets of microcode into the initramfs.
    
    Existing boolean option MICROCODE is now a string, which takes
    no/all/amd/intel as inputs, describing which variant of kernel options
    to enable. Boolean inputs are converted to no/all settings. This option
    no longer include microcode in initramfs.
    
    New option MICROCODE_INITRAMFS, enabled by default, includes the
    microcode for matching kernel config options (INTEL/AMD) into the
    initramfs. For users using sys-boot/grub-2.02-r1 or another bootloader
    that supports multiple initramfs options, this option can be safely
    disabled.
    
    Fixes: https://bugs.gentoo.org/662492
    Reported-by: Joerg Schaible <joerg.schaible@gmx.de>
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>

 gen_cmdline.sh       | 18 +++++++++++++++---
 gen_configkernel.sh  | 18 ++++++++----------
 gen_determineargs.sh | 11 ++++++++++-
 gen_initramfs.sh     |  3 ++-
 genkernel.conf       | 10 ++++++++--
 5 files changed, 43 insertions(+), 17 deletions(-)
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2018-08-04 23:28:36 UTC
(In reply to Joerg Schaible from comment #0)
> However, after running "genkernel all" (also with activated microcode
> support) the kernel configuration has been silently modified and the
> CONFIG_MICROCODE_INTEL is silently set. Genkernel itself complains about
> missing package intel-microcode during generation of initrd.
This is fixed in HEAD now. You will have to set MICROCODE=amd for your case.

> But even worse, if I generate now the grub configuration file, it claims to
> find intel-ucode.cpio and adds it as first element to initrd line. After the
> next reboot the system is hosed because, /intel-ucode.cpio is nowhere to
> find and the boot sequence stops.
This is entirely outside the scope of genkernel, that reference is generated by grub. I'm going to clone the bug for that.