Blame SOURCES/0523-Support-Microcode-Updates-for-AMD-CPU-Family-0x17.patch

712866
From f93c34935fcf5cc70118766b3ae0150d44a5185c Mon Sep 17 00:00:00 2001
712866
From: Daniel Molkentin <dmolkentin@suse.com>
712866
Date: Tue, 12 Dec 2017 17:48:36 +0100
712866
Subject: [PATCH] Support Microcode Updates for AMD CPU Family 0x17
712866
712866
Original-Patch-By: Tom Lendacky <thomas.lendacky@amd.com>
712866
712866
Cherry-picked from: 215fe583240ae886c2096d502a96e44798b84163
712866
Resolves: #1476039
712866
---
712866
 dracut-functions.sh | 6 +++++-
712866
 1 file changed, 5 insertions(+), 1 deletion(-)
712866
712866
diff --git a/dracut-functions.sh b/dracut-functions.sh
712866
index 4051596..ef52274 100755
712866
--- a/dracut-functions.sh
712866
+++ b/dracut-functions.sh
712866
@@ -1739,7 +1739,11 @@ get_ucode_file ()
712866
 
712866
     if [[ "$(get_cpu_vendor)" == "AMD" ]]; then
712866
         # If family greater or equal than 0x15
712866
-        if [[ $family -ge 21 ]]; then
712866
+        if [[ $family -ge 23 ]]; then
712866
+            printf "microcode_amd_fam17h.bin"
712866
+        elif [[ $family -eq 22 ]]; then
712866
+            printf "microcode_amd_fam16h.bin"
712866
+        elif [[ $family -eq 21 ]]; then
712866
             printf "microcode_amd_fam15h.bin"
712866
         else
712866
             printf "microcode_amd.bin"