Skip to content

Cannot compile AMD microcode support without Intel microcode support #182

Closed

Description

@JoshyPHP

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.

Paging @ashok-raj to confirm.

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'

Activity

  1. devonallie commented on Sep 27, 2020

    @devonallie

    Exact issue encountered. Enabling intel microcode fixes it.

  2. damentz commented on Sep 28, 2020

    @damentz
    Member

    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.

  3. self-assigned this
    on Sep 28, 2020
  4. sirlucjan commented on Sep 28, 2020

    @sirlucjan

    @damentz

    You should probably reverse it too:

    40191db

  5. damentz commented on Sep 28, 2020

    @damentz
    Member

    @sirlucjan thanks, just reverted.

  6. ashok-raj commented on Sep 28, 2020

    @ashok-raj
  7. damentz commented on Sep 28, 2020

    @damentz
    Member

    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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions