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