Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[SOLVED] amdgpu PSP firmware loading failed

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
NyneR
n00b
n00b
Posts: 35
Joined: Sat Dec 19, 2020 3:33 pm

[SOLVED] amdgpu PSP firmware loading failed

  • Quote

Post by NyneR » Sat Dec 19, 2020 4:15 pm

Hello everyone,

I am new to gentoo and tried installing gentoo following the AMD64 Handbook and am running into an error with the kernel.
When loading the kernel the screen does not update after

Code: Select all

Populating /dev with existing devices through uevents ... 
I was still able to login to the machine with ssh and get the output of dmesg: https://pastebin.com/JwffQYji
The error begins at 8.075341

I have an AMD Radeon 5700 XT and tried enabling "AMD GPU" as built-in and module, however as soon as it gets loaded the monitor gets unresponsive.

I hope someone can help me out with this problem. Please let me know, if there is additional output I can provide.

Thank you in advance
Last edited by NyneR on Wed Oct 20, 2021 12:56 pm, edited 1 time in total.
Top
theotherjoe
Guru
Guru
Posts: 393
Joined: Sat Nov 22, 2003 12:50 am

  • Quote

Post by theotherjoe » Sun Dec 20, 2020 10:18 am

NyneR,

have a look at following wiki page
https://wiki.gentoo.org/wiki/AMDGPU
especially the firmware part
Top
NyneR
n00b
n00b
Posts: 35
Joined: Sat Dec 19, 2020 3:33 pm

  • Quote

Post by NyneR » Sun Dec 20, 2020 5:27 pm

Hey theotherjoe,

thanks for taking a look.
have a look at following wiki page
https://wiki.gentoo.org/wiki/AMDGPU
especially the firmware part
I have already downloaded the firmware like described here:
https://wiki.gentoo.org/wiki/Handbook:A ... g_firmware
and the .bin files appear under /lib/firmware/amdgpu.

I also just tried compiling the kernel from scratch again using "sys-kernel/gentoo-sources" and only adding the required modules from both articles.
However I still get the same error "[drm:psp_hw_start [amdgpu]] *ERROR* Failed to load toc".

The AMDGPU Wiki article mentions installing a X11-driver which would be installed if

Code: Select all

VIDEO_CARDS="amdgpu radeonsi"
was set.
Is this driver also required if only Wayland is going to be used? And if it is needed would the USE-flag "-X" interfere with downloading the driver?
Top
nick_gentoo
Tux's lil' helper
Tux's lil' helper
Posts: 140
Joined: Mon Jan 07, 2019 7:42 pm

  • Quote

Post by nick_gentoo » Sun Dec 20, 2020 8:41 pm

NyneR, could you post here a link to your kernel config?
To see the exact options that you selected for the graphics drivers.
Top
NyneR
n00b
n00b
Posts: 35
Joined: Sat Dec 19, 2020 3:33 pm

  • Quote

Post by NyneR » Sun Dec 20, 2020 8:55 pm

Sure here it is: https://pastebin.com/Kc3URxyk
Top
nick_gentoo
Tux's lil' helper
Tux's lil' helper
Posts: 140
Joined: Mon Jan 07, 2019 7:42 pm

  • Quote

Post by nick_gentoo » Mon Dec 21, 2020 7:47 am

I think the amdgpu-related configuration looks ok. It is similar to mine, but I have a much older card.
Some ideas I have right now, in case something helps:
  • you compiled the AMDGPU driver as a module, so it is not needed to include the firmware files into the kernel; you could remove all of them and see what happens
  • maybe try also a newer, unstable kernel
Top
theotherjoe
Guru
Guru
Posts: 393
Joined: Sat Nov 22, 2003 12:50 am

  • Quote

Post by theotherjoe » Mon Dec 21, 2020 2:09 pm

NyneR,

for comparison I attached graphics support and related stuff
from my current kernel .config (which btw is a 5.4 version) for a AMD RX 550.
I am leaving out the list of firmware blobs for my hardware.
other than your latest config I am compiling driver and firmware into
the kernel instead of using modules.
hope that helps finding the gremlins and getting a proper console.
final remark: before you havent figured out how to get your
kernel statup properly there is no point thinking about X11 or wayland.

edit: my system is NOT using EFI, btw. and I cannot supply anything
regarding EFI usage :(

Code: Select all

#
# Graphics support
#
# CONFIG_AGP is not set
# CONFIG_VGA_ARB is not set
# CONFIG_VGA_SWITCHEROO is not set
CONFIG_DRM=y
# CONFIG_DRM_DP_AUX_CHARDEV is not set
# CONFIG_DRM_DEBUG_MM is not set
# CONFIG_DRM_DEBUG_SELFTEST is not set
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_KMS_FB_HELPER=y
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_FBDEV_OVERALLOC=100
# CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM is not set
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
# CONFIG_DRM_DP_CEC is not set
CONFIG_DRM_TTM=y
CONFIG_DRM_SCHED=y

#
# I2C encoder or helper chips
#
# CONFIG_DRM_I2C_CH7006 is not set
# CONFIG_DRM_I2C_SIL164 is not set
# CONFIG_DRM_I2C_NXP_TDA998X is not set
# CONFIG_DRM_I2C_NXP_TDA9950 is not set
# end of I2C encoder or helper chips

#
# ARM devices
#
# end of ARM devices

# CONFIG_DRM_RADEON is not set
CONFIG_DRM_AMDGPU=y
# CONFIG_DRM_AMDGPU_SI is not set
# CONFIG_DRM_AMDGPU_CIK is not set
# CONFIG_DRM_AMDGPU_USERPTR is not set

#
# ACP (Audio CoProcessor) Configuration
#
# CONFIG_DRM_AMD_ACP is not set
# end of ACP (Audio CoProcessor) Configuration

#
# Display Engine Configuration
#
CONFIG_DRM_AMD_DC=y
CONFIG_DRM_AMD_DC_DCN1_0=y
# CONFIG_DRM_AMD_DC_DCN2_0 is not set
# CONFIG_DEBUG_KERNEL_DC is not set
# end of Display Engine Configuration

# CONFIG_HSA_AMD is not set
# CONFIG_DRM_NOUVEAU is not set
# CONFIG_DRM_I915 is not set
# CONFIG_DRM_VGEM is not set
# CONFIG_DRM_VKMS is not set
# CONFIG_DRM_VMWGFX is not set
# CONFIG_DRM_GMA500 is not set
# CONFIG_DRM_UDL is not set
# CONFIG_DRM_AST is not set
# CONFIG_DRM_MGAG200 is not set
# CONFIG_DRM_CIRRUS_QEMU is not set
# CONFIG_DRM_QXL is not set
# CONFIG_DRM_BOCHS is not set
# CONFIG_DRM_VIRTIO_GPU is not set
CONFIG_DRM_PANEL=y

#
# Display Panels
#
# end of Display Panels

CONFIG_DRM_BRIDGE=y
CONFIG_DRM_PANEL_BRIDGE=y

#
# Display Interface Bridges
#
# CONFIG_DRM_ANALOGIX_ANX78XX is not set
# end of Display Interface Bridges

# CONFIG_DRM_ETNAVIV is not set
# CONFIG_DRM_GM12U320 is not set
# CONFIG_DRM_VBOXVIDEO is not set
# CONFIG_DRM_LEGACY is not set
CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y

#
# Frame buffer Devices
#
CONFIG_FB_CMDLINE=y
CONFIG_FB_NOTIFY=y
CONFIG_FB=y
# CONFIG_FIRMWARE_EDID is not set
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_SYS_FILLRECT=y
CONFIG_FB_SYS_COPYAREA=y
CONFIG_FB_SYS_IMAGEBLIT=y
# CONFIG_FB_FOREIGN_ENDIAN is not set
CONFIG_FB_SYS_FOPS=y
CONFIG_FB_DEFERRED_IO=y
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_TILEBLITTING=y

#
# Frame buffer hardware drivers
#
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_VESA is not set
# CONFIG_FB_N411 is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_OPENCORES is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I740 is not set
# CONFIG_FB_LE80578 is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_SMSCUFX is not set
# CONFIG_FB_UDL is not set
# CONFIG_FB_IBM_GXT4500 is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not set
# CONFIG_FB_SIMPLE is not set
# CONFIG_FB_SM712 is not set
# end of Frame buffer Devices

#
# Backlight & LCD device support
#
# CONFIG_LCD_CLASS_DEVICE is not set
CONFIG_BACKLIGHT_CLASS_DEVICE=y
# CONFIG_BACKLIGHT_GENERIC is not set
# CONFIG_BACKLIGHT_APPLE is not set
# CONFIG_BACKLIGHT_PM8941_WLED is not set
# CONFIG_BACKLIGHT_SAHARA is not set
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not set
# CONFIG_BACKLIGHT_LM3639 is not set
# CONFIG_BACKLIGHT_LV5207LP is not set
# CONFIG_BACKLIGHT_BD6107 is not set
# CONFIG_BACKLIGHT_ARCXCNN is not set
# end of Backlight & LCD device support

CONFIG_HDMI=y

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_DUMMY_CONSOLE_COLUMNS=80
CONFIG_DUMMY_CONSOLE_ROWS=25
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
# CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set
# end of Console display driver support

CONFIG_LOGO=y
# CONFIG_LOGO_LINUX_MONO is not set
# CONFIG_LOGO_LINUX_VGA16 is not set
Top
NyneR
n00b
n00b
Posts: 35
Joined: Sat Dec 19, 2020 3:33 pm

  • Quote

Post by NyneR » Mon Dec 21, 2020 4:48 pm

I removed "-X" from my /etc/portage/make.conf and it downloaded a lot of packages after.
However the same error still occurs.

I'll try downloading the sources of newer kernels like mentioned above.
However I get

Code: Select all

emerge --ask sys-kernel/gentoo-sources-5.10.2
!!! 'sys-kernel/gentoo-sources-5.10.2' is not a valid package atom.
!!! Please check ebuild(5) for full details.
Top
NyneR
n00b
n00b
Posts: 35
Joined: Sat Dec 19, 2020 3:33 pm

  • Quote

Post by NyneR » Mon Dec 21, 2020 4:57 pm

I also set

Code: Select all

CONFIG_EXTRA_FIRMWARE=""
. Is that what you meant with removing the firmware nick_gentoo?
That did not help either :(
Top
NyneR
n00b
n00b
Posts: 35
Joined: Sat Dec 19, 2020 3:33 pm

  • Quote

Post by NyneR » Mon Dec 21, 2020 5:35 pm

I also just tried installing a distribution kernel with

Code: Select all

emerge --ask sys-kernel/gentoo-kernel
and still get the same error.
Top
nick_gentoo
Tux's lil' helper
Tux's lil' helper
Posts: 140
Joined: Mon Jan 07, 2019 7:42 pm

  • Quote

Post by nick_gentoo » Mon Dec 21, 2020 7:31 pm

NyneR wrote:I also set

Code: Select all

CONFIG_EXTRA_FIRMWARE=""
. Is that what you meant with removing the firmware nick_gentoo?
That did not help either :(
Yes, this is what I meant.
An Internet search shows that a few other people had similar problems, but no solution...

What other kernel version did you try? Was the dmesg error the same every time? The relevant part seems to be this one:

Code: Select all

[    1.601994] [drm] Found VCN firmware Version ENC: 1.10 DEC: 5 VEP: 0 Revision: 13
[    1.601995] [drm] PSP loading VCN firmware
...
[    8.075341] [drm] psp command failed and response status is (0x0)
[    8.075506] [drm:psp_hw_start [amdgpu]] *ERROR* Failed to load toc
[    8.075646] [drm:psp_hw_start [amdgpu]] *ERROR* PSP tmr init failed!
[    8.075783] [drm:psp_hw_init [amdgpu]] *ERROR* PSP firmware loading failed
[    8.075893] [drm:amdgpu_device_fw_loading [amdgpu]] *ERROR* hw_init of IP block <psp> failed -22
[    8.075898] amdgpu 0000:03:00.0: amdgpu_device_ip_init failed
[    8.075902] amdgpu 0000:03:00.0: Fatal error during GPU init
[    8.075905] [drm] amdgpu: finishing device.
Top
NyneR
n00b
n00b
Posts: 35
Joined: Sat Dec 19, 2020 3:33 pm

  • Quote

Post by NyneR » Mon Dec 21, 2020 7:52 pm

It was pretty much the same yes.
I used emerge to install sys-kernel/gentoo-kernel and it came with version 5.4.80 as well.

Downloading other kernels (at least with emerge) did not work for me.
From what I've gathered from

Code: Select all

man 5 ebuild
the format should be

Code: Select all

<package-name>-<version>
, but with the versions found at https://packages.gentoo.org/packages/sy ... oo-sources emerge complains about invalid package atoms like mentioned above.
Top
nick_gentoo
Tux's lil' helper
Tux's lil' helper
Posts: 140
Joined: Mon Jan 07, 2019 7:42 pm

  • Quote

Post by nick_gentoo » Tue Dec 22, 2020 8:46 am

NyneR wrote:From what I've gathered from

Code: Select all

man 5 ebuild
the format should be

Code: Select all

<package-name>-<version>
, but with the versions found at https://packages.gentoo.org/packages/sy ... oo-sources emerge complains about invalid package atoms like mentioned above.
That's not exactly correct, the man page also says that a prefix has to be added when you use a specific version number in an ebuild name. For the latest unstable kernel sources, it should be

Code: Select all

emerge --ask '=sys-kernel/gentoo-sources-5.10.2'
(the quote marks are needed so that the shell does not interpret the characters of that prefix)

Of course, you need to unmask that version of gentoo-sources, using the package.accept_keywords file. Being the most recent kernel version, it is considered unstable as it can still have some major bugs. But in this case the idea is to check if it also fixes the problem that you are seeing.
Top
NyneR
n00b
n00b
Posts: 35
Joined: Sat Dec 19, 2020 3:33 pm

  • Quote

Post by NyneR » Tue Dec 22, 2020 1:33 pm

I just downloaded the sources for kernel 5.10.0 and recompiled it using the already generated .config file of the 5.4.80 kernel plus the updates that came with 5.10.

The amdgpu drm driver had no issue loading the firmware this time :D

I am now using swaywm and I'll stay on that kernel for now since it seems to work fine so far.

Thanks very much for the help getting my system running again :)
Top
nick_gentoo
Tux's lil' helper
Tux's lil' helper
Posts: 140
Joined: Mon Jan 07, 2019 7:42 pm

  • Quote

Post by nick_gentoo » Tue Dec 22, 2020 2:12 pm

Ok, good to hear that! So a newer kernel solves it.
But be careful with version 5.10.0, I read around here that it has a major bug related to XFS filesystems.

You could now keep an eye on what versions of gentoo-sources become stable in the future, to stay closer to the portage tree.
Top
Post Reply

15 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy