linux_dsm_epyc7002/arch/x86/kernel/cpu/microcode
Borislav Petkov 2d5be37d68 x86/microcode: Initialize the driver late when facilities are up
Running microcode_init() from setup_arch() is a bad idea because
not even kmalloc() is ready at that point and the loader does
all kinds of allocations and init/registration with various
subsystems.

Make it a late initcall when required facilities are initialized
so that the microcode driver initialization can succeed too.

Reported-and-tested-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20151120112400.GC4028@pd.tnic
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2015-11-23 10:39:49 +01:00
..
amd.c x86/microcode/amd: Remove maintainers from comments 2015-10-21 11:22:12 +02:00
core.c x86/microcode: Initialize the driver late when facilities are up 2015-11-23 10:39:49 +01:00
intel_lib.c x86/microcode: Remove modularization leftovers 2015-10-21 11:22:12 +02:00
intel.c x86/microcode/intel: Move #ifdef DEBUG inside the function 2015-10-21 11:22:12 +02:00
Makefile x86/microcode: Merge the early microcode loader 2015-10-21 11:22:12 +02:00