]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
x86/microcode/AMD: Load late on both threads too
authorBorislav Petkov (AMD) <bp@alien8.de>
Tue, 2 May 2023 17:53:50 +0000 (19:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Jul 2023 11:14:43 +0000 (13:14 +0200)
commit a32b0f0db3f396f1c9be2fe621e77c09ec3d8e7d upstream.

Do the same as early loading - load on both threads.

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Link: https://lore.kernel.org/r/20230605141332.25948-1-bp@alien8.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/microcode/amd.c

index 9eb457b1034133dc03d5560f4c82053bbdc4816c..cedecba551630b901b98170436dffc967da43a1f 100644 (file)
@@ -705,7 +705,7 @@ static enum ucode_state apply_microcode_amd(int cpu)
        rdmsr(MSR_AMD64_PATCH_LEVEL, rev, dummy);
 
        /* need to apply patch? */
-       if (rev >= mc_amd->hdr.patch_id) {
+       if (rev > mc_amd->hdr.patch_id) {
                ret = UCODE_OK;
                goto out;
        }