x86/microcode/AMD: Fix mixed steppings support
authorBorislav Petkov (AMD) <bp@alien8.de>
Thu, 26 Jan 2023 15:26:17 +0000 (16:26 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 6 Feb 2023 12:40:16 +0000 (13:40 +0100)
commit7ff6edf4fef38ab404ee7861f257e28eaaeed35f
tree13105526734e4f4565ab40734905585e3ea67035
parenta5ad92134bd153a9ccdcddf09a95b088f36c3cce
x86/microcode/AMD: Fix mixed steppings support

The AMD side of the loader has always claimed to support mixed
steppings. But somewhere along the way, it broke that by assuming that
the cached patch blob is a single one instead of it being one per
*node*.

So turn it into a per-node one so that each node can stash the blob
relevant for it.

  [ NB: Fixes tag is not really the exactly correct one but it is good
    enough. ]

Fixes: fe055896c040 ("x86/microcode: Merge the early microcode loader")
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org> # 2355370cd941 ("x86/microcode/amd: Remove load_microcode_amd()'s bsp parameter")
Cc: <stable@kernel.org> # a5ad92134bd1 ("x86/microcode/AMD: Add a @cpu parameter to the reloading functions")
Link: https://lore.kernel.org/r/20230130161709.11615-4-bp@alien8.de
arch/x86/kernel/cpu/microcode/amd.c