]> git.baikalelectronics.ru Git - kernel.git/commit
x86/microcode/AMD: Fix mixed steppings support
authorBorislav Petkov (AMD) <bp@alien8.de>
Thu, 26 Jan 2023 15:26:17 +0000 (16:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:34:14 +0000 (09:34 +0100)
commitd5baf73262f647cf1f5aaa89869e0375007e151a
treed0054850848201edb959cccf942780e3713033ee
parent6aa1acf88347c9044da979146627e98b046a5e8a
x86/microcode/AMD: Fix mixed steppings support

commit 16458c0d3b3b45215f70c54c1c052ff93486c7fe upstream.

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: 10142e5e821f ("x86/microcode: Merge the early microcode loader")
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org> # 67a8f2fbc7cd ("x86/microcode/amd: Remove load_microcode_amd()'s bsp parameter")
Cc: <stable@kernel.org> # dc8618020cb2 ("x86/microcode/AMD: Add a @cpu parameter to the reloading functions")
Link: https://lore.kernel.org/r/20230130161709.11615-4-bp@alien8.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/microcode/amd.c