linux-yocto/arch/x86/kernel/cpu/microcode
Annie Li ce167ff4cd x86/microcode/AMD: Do not return error when microcode update is not necessary
[ Upstream commit b43dc4ab097859c24e2a6993119c927cffc856aa ]

After

  6f059e634dcd("x86/microcode: Clarify the late load logic"),

if the load is up-to-date, the AMD side returns UCODE_OK which leads to
load_late_locked() returning -EBADFD.

Handle UCODE_OK in the switch case to avoid this error.

  [ bp: Massage commit message. ]

Fixes: 6f059e634d ("x86/microcode: Clarify the late load logic")
Signed-off-by: Annie Li <jiayanli@google.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250430053424.77438-1-jiayanli@google.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-19 15:28:02 +02:00
..
amd_shas.c x86/microcode/AMD: Load only SHA256-checksummed patches 2025-03-07 16:45:56 +01:00
amd.c x86/microcode: Consolidate the loader enablement checking 2025-05-18 08:24:08 +02:00
core.c x86/microcode/AMD: Do not return error when microcode update is not necessary 2025-06-19 15:28:02 +02:00
intel.c x86/microcode: Consolidate the loader enablement checking 2025-05-18 08:24:08 +02:00
internal.h x86/microcode: Consolidate the loader enablement checking 2025-05-18 08:24:08 +02:00
Makefile x86/microcode: Hide the config knob 2023-08-13 10:26:39 +02:00