/[packages]/updates/6/dracut/current/SOURCES/0535-Add-early-microcode-support-for-AMD-family-16h.patch
ViewVC logotype

Contents of /updates/6/dracut/current/SOURCES/0535-Add-early-microcode-support-for-AMD-family-16h.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1191337 - (show annotations) (download)
Sun Jan 7 19:55:37 2018 UTC (6 years, 3 months ago) by tmb
File size: 1020 byte(s)
add early microcode loadingsupport for Amd fam16, fam17 and newer
1 From af6eee79e3b27480d3d79f885c073de9fe9f629e Mon Sep 17 00:00:00 2001
2 From: jonathan-teh <30538043+jonathan-teh@users.noreply.github.com>
3 Date: Sat, 29 Jul 2017 00:19:19 +0100
4 Subject: [PATCH 1/4] Add early microcode support for AMD family 16h
5
6 ---
7 dracut-functions.sh | 6 ++++--
8 1 file changed, 4 insertions(+), 2 deletions(-)
9
10 diff --git a/dracut-functions.sh b/dracut-functions.sh
11 index 249d8fb4..112b2434 100755
12 --- a/dracut-functions.sh
13 +++ b/dracut-functions.sh
14 @@ -661,8 +661,10 @@ get_ucode_file ()
15 local stepping=`grep -E "stepping" /proc/cpuinfo | head -1 | sed s/.*:\ //`
16
17 if [[ "$(get_cpu_vendor)" == "AMD" ]]; then
18 - # If family greater or equal than 0x15
19 - if [[ $family -ge 21 ]]; then
20 + # If family greater than or equal to 0x16
21 + if [[ $family -ge 22 ]]; then
22 + printf "microcode_amd_fam16h.bin"
23 + elif [[ $family -eq 21 ]]; then
24 printf "microcode_amd_fam15h.bin"
25 else
26 printf "microcode_amd.bin"
27 --
28 2.15.1
29

  ViewVC Help
Powered by ViewVC 1.1.30