Skip to content

Commit

Permalink
x86/microcode: Deprecate MICROCODE_OLD_INTERFACE
Browse files Browse the repository at this point in the history
This is the ancient loading interface which requires special tools to be
used. The bigger problem with it is that it is as inadequate for proper
loading of microcode as the late microcode loading interface is because
it happens just as late.

iucode_tool's manpage already warns people that it is deprecated.

Deprecate it and turn it off by default along with a big fat warning in
the Kconfig help. It will go away sometime in the future.

Signed-off-by: Borislav Petkov <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
  • Loading branch information
suryasaimadhu committed Apr 10, 2019
1 parent 24613a0 commit c02f48e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1330,8 +1330,16 @@ config MICROCODE_AMD
processors will be enabled.

config MICROCODE_OLD_INTERFACE
def_bool y
bool "Ancient loading interface (DEPRECATED)"
default n
depends on MICROCODE
---help---
DO NOT USE THIS! This is the ancient /dev/cpu/microcode interface
which was used by userspace tools like iucode_tool and microcode.ctl.
It is inadequate because it runs too late to be able to properly
load microcode on a machine and it needs special tools. Instead, you
should've switched to the early loading method with the initrd or
builtin microcode by now: Documentation/x86/microcode.txt

config X86_MSR
tristate "/dev/cpu/*/msr - Model-specific register support"
Expand Down

0 comments on commit c02f48e

Please sign in to comment.