You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot compile AMD microcode support without Intel microcode support #182
I can't compile current HEAD 460a32f without CONFIG_MICROCODE_INTEL if CONFIG_MICROCODE_AMD is enabled. It seems to originate from 7eaeff2 which adds force_ucode_load to arch/x86/kernel/cpu/microcode/intel.c but not to arch/x86/kernel/cpu/microcode/amd.c. Enabling Intel microcode support fixes it.
ld: arch/x86/kernel/cpu/microcode/core.o: in function `reload_store':
core.c:(.text+0x3ab): undefined reference to `force_ucode_load'
ld: core.c:(.text+0x3e7): undefined reference to `force_ucode_load'
ld: arch/x86/kernel/cpu/microcode/core.o: in function `reload_store.cold':
core.c:(.text.unlikely+0x9e): undefined reference to `force_ucode_load'
ld: core.c:(.text.unlikely+0xbb): undefined reference to `force_ucode_load'
ld: core.c:(.text.unlikely+0xf8): undefined reference to `force_ucode_load'
Reacted by pouar, Egor Y. Egorov, Jan Magnus Brevik, leandrolnh and Devon Allie
The two patches from clearlinux that add support for force reloading microcode have been removed. Even if we add support for forced reloading of microcode to AMD, I don't think anyone would realistically use it.
This feature must have been used for diagnostics internally at Intel, like if they're beta testing microcode and don't want to bump the revision number every iteration. Not something you'll ever see a user with signed microcode doing.
I’m not familiar what Xen-kernel project is? Is it official zen or some other fork?
Looks like the problem is fixed and needs no further attention.
Cheers,
Ashok Raj
Hi @ashok-raj, the issue is that the clearlinux microcode patches make CONFIG_MICROCODE_AMD depend on CONFIG_MICROCODE_INTEL implicitely. To fix this, the patches should update the Kconfig to make the AMD option require INTEL, or you should add the relevant ifdefs so that changes to Intel microcode doesn't impact AMD exclusive builds.
We reverted the patches in question since they're not something a regular user would use, but if you don't fix the patches upstream in clearlinux, you'll probably get more questions down the road about how the microcode patches create the build errors in the first post here: #182 (comment)
Activity
devonallie commentedon Sep 27, 2020
Exact issue encountered. Enabling intel microcode fixes it.
Revert "x86/microcode: echo 2 > reload to force load ucode."
Revert "x86/microcode: Force update a uCode even if the rev is the same"
damentz commentedon Sep 28, 2020
The two patches from clearlinux that add support for force reloading microcode have been removed. Even if we add support for forced reloading of microcode to AMD, I don't think anyone would realistically use it.
This feature must have been used for diagnostics internally at Intel, like if they're beta testing microcode and don't want to bump the revision number every iteration. Not something you'll ever see a user with signed microcode doing.
sirlucjan commentedon Sep 28, 2020
@damentz
You should probably reverse it too:
40191db
Revert "fix bug in ucode force reload revision check"
damentz commentedon Sep 28, 2020
@sirlucjan thanks, just reverted.
ashok-raj commentedon Sep 28, 2020
damentz commentedon Sep 28, 2020
Hi @ashok-raj, the issue is that the clearlinux microcode patches make
CONFIG_MICROCODE_AMDdepend onCONFIG_MICROCODE_INTELimplicitely. To fix this, the patches should update the Kconfig to make the AMD option require INTEL, or you should add the relevantifdefsso that changes to Intel microcode doesn't impact AMD exclusive builds.We reverted the patches in question since they're not something a regular user would use, but if you don't fix the patches upstream in clearlinux, you'll probably get more questions down the road about how the microcode patches create the build errors in the first post here: #182 (comment)
selftests/bpf: Fix BPF_CORE_READ_BITFIELD() macro
selftests/bpf: Fix BPF_CORE_READ_BITFIELD() macro
ublk: fix handling recovery & reissue in ublk_abort_queue()
ublk: fix handling recovery & reissue in ublk_abort_queue()