Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
(In reply to Jonathan Teh from comment #0)
> Patch will need revising when AMD family 17h (23, Zen microarchitecture)
> microcode is available.
Once we're updating dracut, we might as well handle both 16h and 17h at the same time. Extending the patch for another family is pretty straightforward:
diff --git a/dracut-functions.sh b/dracut-functions.sh
index 4051596b1d18..0b456f5cd2ab 100755
--- a/dracut-functions.sh
+++ b/dracut-functions.sh
@@ -1738,8 +1738,14 @@ 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 0x17
+ if [[ $family -ge 23 ]]; then
+ printf "microcode_amd_fam17h.bin"
# If family greater or equal than 0x15
- if [[ $family -ge 21 ]]; then
+ elif [[ $family -ge 22 ]]; then
+ printf "microcode_amd_fam16h.bin"
+ # If family greater or equal than 0x15
+ elif [[ $family -ge 21 ]]; then
printf "microcode_amd_fam15h.bin"
else
printf "microcode_amd.bin"
Shouldn't that be:
--- dracut-functions.sh.orig 2017-08-05 16:02:47.000000000 +0100
+++ dracut-functions.sh 2017-12-11 22:35:48.601627126 +0000
@@ -1737,8 +1737,12 @@
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 21 ]]; 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"
else
printf "microcode_amd.bin"
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2018:0964
Created attachment 1305689 [details] Bugfix for dracut-functions.sh Description of problem: Microcode on AMD family 16h (22) processors (Jaguar microarchitecture) is not updated early in the boot process, only later. Version-Release number of selected component (if applicable): dracut-033-463.el7_3.2.x86_64 Bug is also present in current git version. How reproducible: Every time. Steps to Reproduce: 1. Boot RHEL/CentOS 7.3 on a system with AMD family 16h CPU. 2. 3. Actual results: $ dmesg | grep microcode [ 1.287156] microcode: CPU0: patch_level=0x0700010b [ 1.287168] microcode: CPU1: patch_level=0x0700010b [ 1.287180] microcode: CPU2: patch_level=0x0700010b [ 1.287192] microcode: CPU3: patch_level=0x0700010b [ 1.287250] microcode: Microcode Update Driver: v2.01 <tigran.co.uk>, Peter Oruba [ 8.273684] microcode: CPU0: new patch_level=0x0700010f [ 8.274709] microcode: CPU1: new patch_level=0x0700010f [ 8.275741] microcode: CPU2: new patch_level=0x0700010f [ 8.276757] microcode: CPU3: new patch_level=0x0700010f Expected results: $ dmesg | grep microcode [ 1.103284] microcode: microcode: updated early to new patch_level=0x0700010f [ 1.302144] microcode: CPU0: patch_level=0x0700010f [ 1.302158] microcode: CPU1: patch_level=0x0700010f [ 1.302170] microcode: CPU2: patch_level=0x0700010f [ 1.302178] microcode: CPU3: patch_level=0x0700010f [ 1.302245] microcode: Microcode Update Driver: v2.01 <tigran.co.uk>, Peter Oruba Additional info: Bug occurs on this CPU: $ lscpu processor : 0 vendor_id : AuthenticAMD cpu family : 22 model : 0 model name : AMD Athlon(tm) 5350 APU with Radeon(tm) R3 stepping : 1 microcode : 0x700010f dracut has incorrectly copied family 15h microcode into initramfs: ======================================================================== Early CPIO image ======================================================================== drwxr-xr-x 3 root root 0 Jun 20 19:48 . -rw-r--r-- 1 root root 2 Jun 20 19:48 early_cpio drwxr-xr-x 3 root root 0 Jun 20 19:48 kernel drwxr-xr-x 3 root root 0 Jun 20 19:48 kernel/x86 drwxr-xr-x 2 root root 0 Jun 20 19:48 kernel/x86/microcode -rw-r--r-- 1 root root 7876 Jun 20 19:48 kernel/x86/microcode/AuthenticAMD.bin ======================================================================== Version: dracut-033-463.el7_3.1 $ ls -l /lib/firmware/amd-ucode/ total 40 -rw-r--r--. 1 root root 12684 Nov 6 2016 microcode_amd.bin -rw-r--r--. 1 root root 490 Nov 6 2016 microcode_amd.bin.asc -rw-r--r--. 1 root root 7876 Nov 6 2016 microcode_amd_fam15h.bin -rw-r--r--. 1 root root 473 Nov 6 2016 microcode_amd_fam15h.bin.asc -rw-r--r--. 1 root root 3510 Nov 6 2016 microcode_amd_fam16h.bin -rw-r--r--. 1 root root 473 Nov 6 2016 microcode_amd_fam16h.bin.asc With the attached patch, it copies the correct family 16h microcode: ======================================================================== Early CPIO image ======================================================================== drwxr-xr-x 3 root root 0 Jun 28 23:54 . -rw-r--r-- 1 root root 2 Jun 28 23:54 early_cpio drwxr-xr-x 3 root root 0 Jun 28 23:54 kernel drwxr-xr-x 3 root root 0 Jun 28 23:54 kernel/x86 drwxr-xr-x 2 root root 0 Jun 28 23:54 kernel/x86/microcode -rw-r--r-- 1 root root 3510 Jun 28 23:54 kernel/x86/microcode/AuthenticAMD.bin ======================================================================== Version: dracut-033-463.el7_3.1 Patch will need revising when AMD family 17h (23, Zen microarchitecture) microcode is available.