summaryrefslogtreecommitdiffstats
path: root/rust/helpers/build_bug.c
diff options
context:
space:
mode:
authorBorislav Petkov (AMD) <bp@alien8.de>2024-10-21 10:27:52 +0200
committerBorislav Petkov (AMD) <bp@alien8.de>2024-10-22 16:37:13 +0200
commitd1744a4c975b1acbe8b498356d28afbc46c88428 (patch)
tree7cb2313863db9292b0a5841bc92ac65f79626d2f /rust/helpers/build_bug.c
parent3267cb6d3a174ff83d6287dcd5b0047bbd912452 (diff)
downloadlinux-d1744a4c975b1acbe8b498356d28afbc46c88428.tar.gz
linux-d1744a4c975b1acbe8b498356d28afbc46c88428.tar.bz2
linux-d1744a4c975b1acbe8b498356d28afbc46c88428.zip
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
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions