Browse Source

Merge pull request #313 from danimo/amd-family0x17

Support Microcode Updates for AMD CPU Family 0x17
master
Harald Hoyer 7 years ago committed by GitHub
parent
commit
3dbf1f0783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dracut-functions.sh

6
dracut-functions.sh

@ -662,8 +662,10 @@ get_ucode_file () @@ -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"

Loading…
Cancel
Save