Borislav Petkov
6b26e1bf66
x86/microcode: Remove modularization leftovers
...
Remove the remaining module functionality leftovers. Make
"dis_ucode_ldr" an early_param and make it static again. Drop
module aliases, autoloading table, description, etc.
Bump version number, while at it.
Signed-off-by: Borislav Petkov <[email protected] >
Cc: Andy Lutomirski <[email protected] >
Cc: Arjan van de Ven <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Brian Gerst <[email protected] >
Cc: Dave Jones <[email protected] >
Cc: Denys Vlasenko <[email protected] >
Cc: H. Peter Anvin <[email protected] >
Cc: Len Brown <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: Tony Luck <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2015-10-21 11:22:12 +02:00
Borislav Petkov
e774eaa9f6
x86/microcode/intel: Rename get_matching_sig()
...
... to find_matching_signature() which is exactly what it does.
No functionality change.
Signed-off-by: Borislav Petkov <[email protected] >
Cc: H. Peter Anvin <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Quentin Casasnovas <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2015-05-18 09:32:37 +02:00
Borislav Petkov
9e5aed83bb
x86/microcode/intel: Simplify get_matching_sig()
...
Unclutter function, make it a bit more readable, drop local
variables.
No functionality change.
Signed-off-by: Borislav Petkov <[email protected] >
Cc: H. Peter Anvin <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Quentin Casasnovas <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2015-05-18 09:32:36 +02:00
Borislav Petkov
6b2d469f5b
x86/microcode/intel: Simplify update_match_cpu()
...
Drop unreadable macro, deconstruct compound conditional
statement into single ones and return early if they match. Add
comments.
There should be no functionality change resulting from this
patch.
Signed-off-by: Borislav Petkov <[email protected] >
Cc: H. Peter Anvin <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Quentin Casasnovas <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2015-05-18 09:32:36 +02:00
Borislav Petkov
8de3eafc16
x86/microcode/intel: Rename get_matching_microcode
...
... to has_newer_microcode() as it does exactly that: checks
whether binary data @mc has newer microcode patch than the
applied one. Move @mc to be the first function arg too.
Signed-off-by: Borislav Petkov <[email protected] >
Cc: H. Peter Anvin <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Quentin Casasnovas <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2015-05-18 09:32:36 +02:00
Borislav Petkov
da9b50765e
x86/microcode/intel: Remove unused @rev arg of get_matching_sig()
...
@rev wasn't used in get_matching_sig(), drop it.
Signed-off-by: Borislav Petkov <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: H. Peter Anvin <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Signed-off-by: Ingo Molnar <[email protected] >
2015-05-06 11:24:52 +02:00
Borislav Petkov
a1a32d29f9
x86/microcode/intel: Get rid of revision_is_newer()
...
It is a one-liner for checking microcode header revisions. On top of
that, it can be used wrong as it was the case in _save_mc(). Get rid of
it.
Signed-off-by: Borislav Petkov <[email protected] >
Acked-by: Quentin Casasnovas <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: H. Peter Anvin <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Signed-off-by: Ingo Molnar <[email protected] >
2015-05-06 11:24:44 +02:00
Borislav Petkov
e3d8f67476
x86/microcode/intel: Move mc arg last in get_matching_{microcode|sig}
...
... arguments list so that it comes more natural for those functions to
have the signature, processor flags and revision together, before the
rest of the args.
No functionality change.
Signed-off-by: Borislav Petkov <[email protected] >
2015-03-02 20:32:13 +01:00
Borislav Petkov
4f5e5f2b57
x86/microcode/intel: Rename update_match_revision()
...
... to revision_is_newer() and push it up into the header and make it an
inline function.
Signed-off-by: Borislav Petkov <[email protected] >
2015-03-02 20:32:03 +01:00
Borislav Petkov
bad5fa631f
x86, microcode: Move to a proper location
...
We've grown a bunch of microcode loader files all prefixed with
"microcode_". They should be under cpu/ because this is strictly
CPU-related functionality so do that and drop the prefix since they're
in their own directory now which gives that prefix. :)
While at it, drop MICROCODE_INTEL_LIB config item and stash the
functionality under CONFIG_MICROCODE_INTEL as it was its only user.
Signed-off-by: Borislav Petkov <[email protected] >
Tested-by: Aravind Gopalakrishnan <[email protected] >
2014-01-13 20:00:12 +01:00