]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/microcode/AMD: Pay attention to the stepping dynamically
authorBorislav Petkov (AMD) <bp@alien8.de>
Mon, 21 Oct 2024 08:27:52 +0000 (10:27 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 22 Oct 2024 14:37:13 +0000 (16:37 +0200)
commitd1744a4c975b1acbe8b498356d28afbc46c88428
tree7cb2313863db9292b0a5841bc92ac65f79626d2f
parent3267cb6d3a174ff83d6287dcd5b0047bbd912452
x86/microcode/AMD: Pay attention to the stepping dynamically

Commit in Fixes changed how a microcode patch is loaded on Zen and newer but
the patch matching needs to happen with different rigidity, depending on what
is being done:

1) When the patch is added to the patches cache, the stepping must be ignored
   because the driver still supports different steppings per system

2) When the patch is matched for loading, then the stepping must be taken into
   account because each CPU needs the patch matching its exact stepping

Take care of that by making the matching smarter.

Fixes: 94838d230a6c ("x86/microcode/AMD: Use the family,model,stepping encoded in the patch ID")
Reported-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/r/91194406-3fdf-4e38-9838-d334af538f74@kernel.dk
arch/x86/kernel/cpu/microcode/amd.c