Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 670580 - sys-kernel/linux-firmware-20181026: amdgpu firmware in wrong place
Summary: sys-kernel/linux-firmware-20181026: amdgpu firmware in wrong place
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Chí-Thanh Christopher Nguyễn
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-07 11:59 UTC by lekto
Modified: 2018-11-07 23:23 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lekto 2018-11-07 11:59:41 UTC
I can't get my Sempron 3850 APU work after kernel update to 4.19.

>[    2.089630] amdgpu 0000:00:01.0: Direct firmware load for amdgpu/kabini_pfp.bin failed with error -2
>[    2.089633] gfx7: Failed to load firmware "amdgpu/kabini_pfp.bin"
>[    2.102444] [drm:amdgpu_device_init.cold.31] *ERROR* sw_init of IP block <gfx_v7_0> failed -2
>[    2.111100] amdgpu 0000:00:01.0: amdgpu_device_ip_init failed
>[    2.116889] amdgpu 0000:00:01.0: Fatal error during GPU init

>dedyk ~ # equery f linux-firmware 
> [...]
>/lib/firmware/radeon
>/lib/firmware/radeon/kabini_ce.bin
>/lib/firmware/radeon/kabini_me.bin
>/lib/firmware/radeon/kabini_mec.bin
>/lib/firmware/radeon/kabini_pfp.bin
>/lib/firmware/radeon/kabini_rlc.bin
>/lib/firmware/radeon/kabini_sdma.bin
>/lib/firmware/radeon/kabini_sdma1.bin
>/lib/firmware/radeon/kabini_uvd.bin
>/lib/firmware/radeon/kabini_vce.bin
> [...]

Looks like kernel wants to load firmware from amdgpu directory, but linux-firmware provide them in radeon directory.
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2018-11-07 14:39:12 UTC
Your "equery f" is wrong:

# equery files sys-kernel/linux-firmware | grep -i kabini_pfp
/lib/firmware/amdgpu/kabini_pfp.bin
/lib/firmware/radeon/KABINI_pfp.bin
/lib/firmware/radeon/kabini_pfp.bin

# find /lib/firmware/ -iname '*kabini_pfp*'
/lib/firmware/radeon/kabini_pfp.bin
/lib/firmware/radeon/KABINI_pfp.bin
/lib/firmware/amdgpu/kabini_pfp.bin
# sha1sum /lib/firmware/radeon/kabini_pfp.bin
1bb75ecf7d1b6ee198bb6d8eb454d6b9e4ed7f8d  /lib/firmware/radeon/kabini_pfp.bin
# sha1sum /lib/firmware/radeon/KABINI_pfp.bin
e1ea258af22770c90b858568c1eaf7031540ca64  /lib/firmware/radeon/KABINI_pfp.bin
# sha1sum /lib/firmware/amdgpu/kabini_pfp.bin
ee710c8e17cbc3ac4be02292d84afe93afae249e  /lib/firmware/amdgpu/kabini_pfp.bin


Also *we* do not move files. We just merge untouched upstream file layout.

Also keep in mind that

> Direct firmware load for amdgpu/kabini_pfp.bin failed with error -2

says nothing about the reason. For example for Intel wifi you often see

> Direct firmware load for iwlwifi-7265D-26.ucode failed with error -2
> Direct firmware load for iwlwifi-7265D-25.ucode failed with error -2
> Direct firmware load for iwlwifi-7265D-24.ucode failed with error -2
> Direct firmware load for iwlwifi-7265D-23.ucode failed with error -2
> loaded firmware version 22.391740.0 op_mode iwlmvm

I.e. driver ties to load a firmware file and somehow detects that this firmware isn't suitable for that device and tries another file. But error msg is the same: "-2".

And if I am not wrong this file was never changed: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/log/amdgpu/kabini_pfp.bin

So it looks like you have a different problem.
Comment 2 lekto 2018-11-07 22:18:28 UTC
I'm using saveconfig for linux-firmware to get radeon/kabini* (that are needed acording to https://wiki.gentoo.org/wiki/AMDGPU) and firmware is builded into kernel, this machine was working with that for about 2 years. I just changed every radeon/kabini* to amdgpu/kabini* in saveconfig and kernel config, and looks like everythin is working now.
Looks like there was some changes in kernel (and big yellow important box over firmware table at gentoo wiki) about which I didn't know.
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2018-11-07 23:23:05 UTC
Thank you for the feedback. Closing as invalid because no bug in ebuild/package.