Bug 1911745 - Every linux-firmware update should regenerate initramfs
Summary: Every linux-firmware update should regenerate initramfs
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: linux-firmware
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Woodhouse
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-31 00:15 UTC by Mikhail
Modified: 2020-12-31 00:43 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-12-31 00:16:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2020-12-31 00:15:29 UTC
Description of problem:

# lsinitrd /boot/initramfs-5.10.0-0.rc6.20201204git34816d20f173.92.fc34.x86_64.img | grep sienna_cichlid

# ls /usr/lib/firmware/amdgpu | grep sienna_cichlid
sienna_cichlid_ce.bin
sienna_cichlid_dmcub.bin
sienna_cichlid_me.bin
sienna_cichlid_mec2.bin
sienna_cichlid_mec.bin
sienna_cichlid_pfp.bin
sienna_cichlid_rlc.bin
sienna_cichlid_sdma.bin
sienna_cichlid_smc.bin
sienna_cichlid_sos.bin
sienna_cichlid_ta.bin
sienna_cichlid_vcn.bin

# dracut -f --regenerate-all

# lsinitrd /boot/initramfs-5.10.0-0.rc6.20201204git34816d20f173.92.fc34.x86_64.img | grep sienna_cichlid
-rw-r--r--   1 root     root       263296 Dec 15 14:00 usr/lib/firmware/amdgpu/sienna_cichlid_ce.bin
-rw-r--r--   1 root     root        80244 Dec 15 14:00 usr/lib/firmware/amdgpu/sienna_cichlid_dmcub.bin
-rw-r--r--   1 root     root       263424 Dec 15 14:00 usr/lib/firmware/amdgpu/sienna_cichlid_me.bin
-rw-r--r--   2 root     root       268592 Dec 15 14:00 usr/lib/firmware/amdgpu/sienna_cichlid_mec2.bin
-rw-r--r--   2 root     root            0 Dec 15 14:00 usr/lib/firmware/amdgpu/sienna_cichlid_mec.bin
-rw-r--r--   1 root     root       263424 Dec 15 14:00 usr/lib/firmware/amdgpu/sienna_cichlid_pfp.bin
-rw-r--r--   1 root     root       128592 Dec 15 14:00 usr/lib/firmware/amdgpu/sienna_cichlid_rlc.bin
-rw-r--r--   1 root     root        34048 Dec 15 14:00 usr/lib/firmware/amdgpu/sienna_cichlid_sdma.bin
-rw-r--r--   1 root     root       247396 Dec 15 14:00 usr/lib/firmware/amdgpu/sienna_cichlid_smc.bin
-rw-r--r--   1 root     root       215152 Dec 15 14:00 usr/lib/firmware/amdgpu/sienna_cichlid_sos.bin
-rw-r--r--   1 root     root       333568 Dec 15 14:00 usr/lib/firmware/amdgpu/sienna_cichlid_ta.bin
-rw-r--r--   1 root     root       504224 Dec 15 14:00 usr/lib/firmware/amdgpu/sienna_cichlid_vcn.bin


# grep '20201204git34816d20f173\|linux-firmware-20201218-116' /var/log/dnf.rpm.log
2020-12-06T12:40:44+0500 SUBDEBUG Installed: kernel-core-5.10.0-0.rc6.20201204git34816d20f173.92.fc34.x86_64
2020-12-06T12:40:46+0500 SUBDEBUG Installed: kernel-modules-5.10.0-0.rc6.20201204git34816d20f173.92.fc34.x86_64
2020-12-06T12:41:03+0500 SUBDEBUG Installed: kernel-5.10.0-0.rc6.20201204git34816d20f173.92.fc34.x86_64
2020-12-06T12:41:03+0500 SUBDEBUG Installed: kernel-modules-extra-5.10.0-0.rc6.20201204git34816d20f173.92.fc34.x86_64
2020-12-21T10:52:43+0500 SUBDEBUG Upgrade: linux-firmware-20201218-116.fc34.noarch

As you can see linux-firmware upgraded after kernel package and needed firmwares not added to initramfs. Without new firmware computer didn't start with new AMD Radeon 6900XT graphic card.

Details here: https://www.spinics.net/lists/kernel/msg3780011.html

Comment 1 Peter Robinson 2020-12-31 00:16:56 UTC
it would be upgraded with the next kernel which are generally at least weekly

Comment 2 Mikhail 2020-12-31 00:36:01 UTC
Why you wont upgrade firmware immediately in initramfs?
This is a deception of users, the package was updated, but in fact old firmware is used.

Comment 3 Peter Robinson 2020-12-31 00:43:05 UTC
most firmware isn't actually loaded until switch root so it generally doesn't matter and the added complexity generally isn't worth it. I suspect you only noticed  due to the fact that the sienna firmware was only added with the latest update and with the festive break kernel updates have slowed down. PR's welcome in pagure for review if you wish to contribute.


Note You need to log in before you can comment on or make changes to this bug.