]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Support Microcode Updates for AMD CPU Family 0x17 313/head
authorDaniel Molkentin <dmolkentin@suse.com>
Tue, 12 Dec 2017 16:48:36 +0000 (17:48 +0100)
committerDaniel Molkentin <dmolkentin@suse.com>
Wed, 13 Dec 2017 00:42:52 +0000 (01:42 +0100)
Original-Patch-By: Tom Lendacky <thomas.lendacky@amd.com>
dracut-functions.sh

index 575bd4a69a1aac0a41042a1d19fe6d671ca341b5..642dcf0955318dcf863bcd254d5ca5fa36e34d98 100755 (executable)
@@ -662,8 +662,10 @@ get_ucode_file ()
     local stepping=`grep -E "stepping" /proc/cpuinfo | head -1 | sed s/.*:\ //`
 
     if [[ "$(get_cpu_vendor)" == "AMD" ]]; then
-        # If family greater than or equal to 0x16
-        if [[ $family -ge 22 ]]; then
+        # If family greater than or equal to 0x17
+        if [[ $family -ge 23 ]]; then
+            printf "microcode_amd_fam17h.bin"
+        elif [[ $family -eq 22 ]]; then
             printf "microcode_amd_fam16h.bin"
         elif [[ $family -eq 21 ]]; then
             printf "microcode_amd_fam15h.bin"