|
Harald Hoyer |
3610a1 |
From 3dbf1f078357867b289ec58138fe134e7e99762e Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
3610a1 |
From: Harald Hoyer <harald@hoyer.xyz>
|
|
Harald Hoyer |
3610a1 |
Date: Wed, 13 Dec 2017 08:51:12 +0100
|
|
Harald Hoyer |
3610a1 |
Subject: [PATCH] Merge pull request #313 from danimo/amd-family0x17
|
|
Harald Hoyer |
3610a1 |
|
|
Harald Hoyer |
3610a1 |
Support Microcode Updates for AMD CPU Family 0x17
|
|
Harald Hoyer |
3610a1 |
---
|
|
Harald Hoyer |
3610a1 |
dracut-functions.sh | 6 ++++--
|
|
Harald Hoyer |
3610a1 |
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
Harald Hoyer |
3610a1 |
|
|
Harald Hoyer |
3610a1 |
diff --git a/dracut-functions.sh b/dracut-functions.sh
|
|
Harald Hoyer |
3610a1 |
index 575bd4a6..642dcf09 100755
|
|
Harald Hoyer |
3610a1 |
--- a/dracut-functions.sh
|
|
Harald Hoyer |
3610a1 |
+++ b/dracut-functions.sh
|
|
Harald Hoyer |
3610a1 |
@@ -662,8 +662,10 @@ get_ucode_file ()
|
|
Harald Hoyer |
3610a1 |
local stepping=`grep -E "stepping" /proc/cpuinfo | head -1 | sed s/.*:\ //`
|
|
Harald Hoyer |
3610a1 |
|
|
Harald Hoyer |
3610a1 |
if [[ "$(get_cpu_vendor)" == "AMD" ]]; then
|
|
Harald Hoyer |
3610a1 |
- # If family greater than or equal to 0x16
|
|
Harald Hoyer |
3610a1 |
- if [[ $family -ge 22 ]]; then
|
|
Harald Hoyer |
3610a1 |
+ # If family greater than or equal to 0x17
|
|
Harald Hoyer |
3610a1 |
+ if [[ $family -ge 23 ]]; then
|
|
Harald Hoyer |
3610a1 |
+ printf "microcode_amd_fam17h.bin"
|
|
Harald Hoyer |
3610a1 |
+ elif [[ $family -eq 22 ]]; then
|
|
Harald Hoyer |
3610a1 |
printf "microcode_amd_fam16h.bin"
|
|
Harald Hoyer |
3610a1 |
elif [[ $family -eq 21 ]]; then
|
|
Harald Hoyer |
3610a1 |
printf "microcode_amd_fam15h.bin"
|
|
Harald Hoyer |
3610a1 |
|