]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Add early microcode support for AMD family 16h 261/head
authorjonathan-teh <30538043+jonathan-teh@users.noreply.github.com>
Fri, 28 Jul 2017 23:19:19 +0000 (00:19 +0100)
committerGitHub <noreply@github.com>
Fri, 28 Jul 2017 23:19:19 +0000 (00:19 +0100)
dracut-functions.sh

index 249d8fb4b7db325484b241d87e1dc2fc0c0d669e..112b2434cc08d1c71dd4de68f393a471e6ac4901 100755 (executable)
@@ -661,8 +661,10 @@ get_ucode_file ()
     local stepping=`grep -E "stepping" /proc/cpuinfo | head -1 | sed s/.*:\ //`
 
     if [[ "$(get_cpu_vendor)" == "AMD" ]]; then
-        # If family greater or equal than 0x15
-        if [[ $family -ge 21 ]]; then
+        # If family greater than or equal to 0x16
+        if [[ $family -ge 22 ]]; then
+            printf "microcode_amd_fam16h.bin"
+        elif [[ $family -eq 21 ]]; then
             printf "microcode_amd_fam15h.bin"
         else
             printf "microcode_amd.bin"