diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-01-07 18:44:07 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-01-07 18:44:07 +0000 |
commit | 5001a6c7b6da2956f5b17c695b1e0059dc7b8de5 (patch) | |
tree | 0528a53855a7ec96d20cde9edb9031aab030224c /sys-kernel/dracut/files | |
parent | a8b0d35ab742f31538d515dea39716e566d533c0 (diff) |
gentoo resync : 07.01.2018
Diffstat (limited to 'sys-kernel/dracut/files')
-rw-r--r-- | sys-kernel/dracut/files/046-amd-microcode.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sys-kernel/dracut/files/046-amd-microcode.patch b/sys-kernel/dracut/files/046-amd-microcode.patch new file mode 100644 index 000000000000..c351275dbebc --- /dev/null +++ b/sys-kernel/dracut/files/046-amd-microcode.patch @@ -0,0 +1,30 @@ +From a1250a704e33c59f2395aaad054db1c745a5c98a Mon Sep 17 00:00:00 2001 +From: Daniel Molkentin <dmolkentin@suse.com> +Date: Tue, 12 Dec 2017 17:48:36 +0100 +Subject: [PATCH] Simplify microcode lookup for for AMD CPUs + +--- + dracut-functions.sh | 7 ++----- + 1 file changed, 2 insertions(+), 5 deletions(-) + +diff --git a/dracut-functions.sh b/dracut-functions.sh +index 112b2434..d7fc5303 100755 +--- a/dracut-functions.sh ++++ b/dracut-functions.sh +@@ -661,11 +661,8 @@ 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 +- printf "microcode_amd_fam16h.bin" +- elif [[ $family -eq 21 ]]; then +- printf "microcode_amd_fam15h.bin" ++ if [[ $family -ge 21 ]]; then ++ printf "microcode_amd_fam%xh.bin" $family + else + printf "microcode_amd.bin" + fi +-- +2.16.0.rc0 + |