x86/microcode/AMD: Flush patch buffer mapping after application
authorBorislav Petkov (AMD) <bp@alien8.de>
Tue, 19 Nov 2024 11:21:33 +0000 (12:21 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 25 Nov 2024 10:43:21 +0000 (11:43 +0100)
commitc809b0d0e52d01c30066367b2952c4c4186b1047
tree48566e2ba201e5858dd8b3db9173de60d9924b99
parentf1d84b59cbb9547c243d93991acf187fdbe9fbe9
x86/microcode/AMD: Flush patch buffer mapping after application

Due to specific requirements while applying microcode patches on Zen1
and 2, the patch buffer mapping needs to be flushed from the TLB after
application. Do so.

If not, unnecessary and unnatural delays happen in the boot process.

Reported-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Cc: <stable@kernel.org> # f1d84b59cbb9 ("x86/mm: Carve out INVLPG inline asm for use by others")
Link: https://lore.kernel.org/r/ZyulbYuvrkshfsd2@antipodes
arch/x86/kernel/cpu/microcode/amd.c