diff --git a/SOURCES/0523-Support-Microcode-Updates-for-AMD-CPU-Family-0x17.patch b/SOURCES/0523-Support-Microcode-Updates-for-AMD-CPU-Family-0x17.patch new file mode 100644 index 0000000..1dcbd84 --- /dev/null +++ b/SOURCES/0523-Support-Microcode-Updates-for-AMD-CPU-Family-0x17.patch @@ -0,0 +1,30 @@ +From f93c34935fcf5cc70118766b3ae0150d44a5185c Mon Sep 17 00:00:00 2001 +From: Daniel Molkentin +Date: Tue, 12 Dec 2017 17:48:36 +0100 +Subject: [PATCH] Support Microcode Updates for AMD CPU Family 0x17 + +Original-Patch-By: Tom Lendacky + +Cherry-picked from: 215fe583240ae886c2096d502a96e44798b84163 +Resolves: #1476039 +--- + dracut-functions.sh | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/dracut-functions.sh b/dracut-functions.sh +index 4051596..ef52274 100755 +--- a/dracut-functions.sh ++++ b/dracut-functions.sh +@@ -1739,7 +1739,11 @@ get_ucode_file () + + if [[ "$(get_cpu_vendor)" == "AMD" ]]; then + # If family greater or equal than 0x15 +- if [[ $family -ge 21 ]]; then ++ 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" + else + printf "microcode_amd.bin" diff --git a/SOURCES/0524-Simplify-microcode-lookup-for-for-AMD-CPUs.patch b/SOURCES/0524-Simplify-microcode-lookup-for-for-AMD-CPUs.patch new file mode 100644 index 0000000..29586ac --- /dev/null +++ b/SOURCES/0524-Simplify-microcode-lookup-for-for-AMD-CPUs.patch @@ -0,0 +1,33 @@ +From a0e7bc11c8d95e18be89bc96a82d3482b929c0b5 Mon Sep 17 00:00:00 2001 +From: Daniel Molkentin +Date: Thu, 14 Dec 2017 12:24:53 +0100 +Subject: [PATCH] Simplify microcode lookup for for AMD CPUs + +Suggested by Tom Lendacky + +Cherry-picked from: 19453dc8744e6a59725c43b61b2e3db01cb4c57c +Resolves: #1476039 +--- + dracut-functions.sh | 9 ++------- + 1 file changed, 2 insertions(+), 7 deletions(-) + +diff --git a/dracut-functions.sh b/dracut-functions.sh +index ef52274..98a4b88 100755 +--- a/dracut-functions.sh ++++ b/dracut-functions.sh +@@ -1738,13 +1738,8 @@ 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 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" ++ if [[ $family -ge 21 ]]; then ++ printf "microcode_amd_fam%xh.bin" $family + else + printf "microcode_amd.bin" + fi diff --git a/SPECS/dracut.spec b/SPECS/dracut.spec index 072f1e9..fb34544 100644 --- a/SPECS/dracut.spec +++ b/SPECS/dracut.spec @@ -10,7 +10,7 @@ Name: dracut Version: 033 -Release: 502%{?dist} +Release: 502%{?dist}.1 Summary: Initramfs generator using udev %if 0%{?fedora} || 0%{?rhel} @@ -531,6 +531,8 @@ Patch499: 0499-Add-check-for-aarch64-to-the-arm-kernel-module-list.patch Patch500: 0500-fips-add-cmac-kernel-module.patch Patch501: 0501-95iscsi-run-iscsistart-with-DefaultDependencies-no.patch Patch502: 0502-01fips-add-authenec-module.patch +Patch503: 0523-Support-Microcode-Updates-for-AMD-CPU-Family-0x17.patch +Patch504: 0524-Simplify-microcode-lookup-for-for-AMD-CPUs.patch BuildRequires: bash git @@ -961,6 +963,10 @@ rm -rf -- $RPM_BUILD_ROOT %endif %changelog +* Mon Dec 18 2017 Lukáš Nykrýn - 033-502.1 +- Support Microcode Updates for AMD CPU Family 0x17 +Resolves: #1476039 + * Wed Jun 28 2017 Lukáš Nykrýn - 033-502 - 01fips: add authenec module Resolves: #1465946