- Add a terminating zero end-element to the array describing AMD CPUs affected
  by erratum 1386 so that the matching loop actually terminates instead of
  going off into the weeds

- Update the boot protocol documentation to mention the fact that the
  preferred address to load the kernel to is considered in the relocatable
  kernel case too

- Flush the memory buffer containing the microcode patch after applying
  microcode on AMD Zen1 and Zen2, to avoid unnecessary slowdowns

- Make sure the PPIN CPU feature flag is cleared on all CPUs if PPIN has been
  disabled
x86/CPU/AMD: Terminate the erratum_1386_microcode array

The erratum_1386_microcode array requires an empty entry at the end.
Otherwise x86_match_cpu_with_stepping() will continue iterate the array after
it ended.

Add an empty entry to erratum_1386_microcode to its end.

Fixes: 29ba89f189528 ("x86/CPU/AMD: Improve the erratum 1386 workaround")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Link: https://lore.kernel.org/r/20241126134722.480975-1-bigeasy@linutronix.de
1 file changed