2020-12-27 16:45:48

by Mikhail Gavrilov

[permalink] [raw]
Subject: [bug] Radeon 3900XT not switch to graphic mode on kernel 5.10

Hi folks.
I bought myself a gift a new AMD 6900 XT graphics card to replace the
AMD Radeon VII.
But all joy was overshadowed that this video card did not working in Linux.
Output on the my boot screen was ended with message "fb0: switching to
amdgpudrmfb from EFI VGA" and videocard not switched to graphic mode.
https://photos.app.goo.gl/zwpErNrusq9CNyES7

I suppose the root of cause my problem here:

[ 3.961326] amdgpu 0000:0b:00.0: Direct firmware load for
amdgpu/sienna_cichlid_sos.bin failed with error -2
[ 3.961359] amdgpu 0000:0b:00.0: amdgpu: failed to init sos firmware
[ 3.961433] [drm:psp_sw_init [amdgpu]] *ERROR* Failed to load psp firmware!
[ 3.961529] [drm:amdgpu_device_init.cold [amdgpu]] *ERROR* sw_init
of IP block <psp> failed -2
[ 3.961549] amdgpu 0000:0b:00.0: amdgpu: amdgpu_device_ip_init failed
[ 3.961569] amdgpu 0000:0b:00.0: amdgpu: Fatal error during GPU init
[ 3.961911] amdgpu: probe of 0000:0b:00.0 failed with error -2

Can anybody here help me get firmware?
my distro: Fedora Rawhide
kernel: 5.10 rc6
mesa: from git 21.0.0 devel

Sorry for disturb and merry xmas.


--
Best Regards,
Mike Gavrilov.


Attachments:
dmesg.txt (200.19 kB)

2020-12-27 17:00:51

by Mikhail Gavrilov

[permalink] [raw]
Subject: Re: [bug] Radeon 3900XT not switch to graphic mode on kernel 5.10

On Sun, 27 Dec 2020 at 21:39, Mikhail Gavrilov
<[email protected]> wrote:
> I suppose the root of cause my problem here:
>
> [ 3.961326] amdgpu 0000:0b:00.0: Direct firmware load for
> amdgpu/sienna_cichlid_sos.bin failed with error -2
> [ 3.961359] amdgpu 0000:0b:00.0: amdgpu: failed to init sos firmware
> [ 3.961433] [drm:psp_sw_init [amdgpu]] *ERROR* Failed to load psp firmware!
> [ 3.961529] [drm:amdgpu_device_init.cold [amdgpu]] *ERROR* sw_init
> of IP block <psp> failed -2
> [ 3.961549] amdgpu 0000:0b:00.0: amdgpu: amdgpu_device_ip_init failed
> [ 3.961569] amdgpu 0000:0b:00.0: amdgpu: Fatal error during GPU init
> [ 3.961911] amdgpu: probe of 0000:0b:00.0 failed with error -2
>

# dnf provides */sienna_cichlid_sos.bin
Last metadata expiration check: 3:01:27 ago on Sun 27 Dec 2020 06:53:25 PM +05.
linux-firmware-20201218-116.fc34.noarch : Firmware files used by the
Linux kernel
Repo : @System
Matched from:
Filename : /usr/lib/firmware/amdgpu/sienna_cichlid_sos.bin

linux-firmware-20201218-116.fc34.noarch : Firmware files used by the
Linux kernel
Repo : rawhide
Matched from:
Filename : /usr/lib/firmware/amdgpu/sienna_cichlid_sos.bin

# dnf install linux-firmware-20201218-116.fc34.noarch
Last metadata expiration check: 3:02:11 ago on Sun 27 Dec 2020 06:53:25 PM +05.
Package linux-firmware-20201218-116.fc34.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!

Looks like firmware is present. So I didn't understand why the kernel
cannot read firmware.

--
Best Regards,
Mike Gavrilov.

2020-12-31 00:44:18

by Mikhail Gavrilov

[permalink] [raw]
Subject: Re: [bug] Radeon 3900XT not switch to graphic mode on kernel 5.10

On Tue, 29 Dec 2020 at 20:15, Deucher, Alexander
<[email protected]> wrote:
>
> It looks like the driver is not able to access the firmware for some reason. Please make sure it is available in your initrd or compiled into the kernel depending on your config.

Exactly! Thanks!

# 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

I think every update of linux-firmware should regenerate initramfs.
But my downstream report was closed:
https://bugzilla.redhat.com/show_bug.cgi?id=1911745

--
Best Regards,
Mike Gavrilov.