Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What firmware files are required by amdgpu?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
nagmat84
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2007
Posts: 118

PostPosted: Mon Dec 26, 2016 5:27 pm    Post subject: What firmware files are required by amdgpu? Reply with quote

I use the amgpu driver. Unfortunately, if the driver fails to load the required firmware the kernel silently hangs and does not print any error message what file is missing. If I create an initial ramdisk that includes the whole directory structure below /lib/firmware, then everything works but the ramdisk is huge.
Code:

genkernel --kernel-config=linux/.config --ramdisk-modules --plymouth-theme=breeze --firmware --firmware-dir=/lib/firmware initramfs
I failed to include only the firmware files that are actually required. On a first shot I tried
Code:

genkernel --kernel-config=linux/.config --ramdisk-modules --plymouth-theme=breeze --firmware --firmware-files=/lib/firmware/amdgpu/tonga_mec2.bin,/lib/firmware/amdgpu/tonga_me.bin,/lib/firmware/amdgpu/tonga_pfp.bin,/lib/firmware/amdgpu/tonga_smc.bin,/lib/firmware/amdgpu/tonga_sdma.bin,/lib/firmware/amdgpu/tonga_ce.bin,/lib/firmware/amdgpu/tonga_vce.bin,/lib/firmware/amdgpu/tonga_sdma1.bin,/lib/firmware/amdgpu/tonga_rlc.bin,/lib/firmware/amdgpu/tonga_uvd.bin,/lib/firmware/amdgpu/tonga_mec.bin,/lib/firmware/amdgpu/tonga_mc.bin initramfs
, because I know I have a card from the Tonga family (PowerColor Radeon R9 380), but this is apparently not sufficient. Any idea what I am missing?
Back to top
View user's profile Send private message
snkmoorthy
Guru
Guru


Joined: 19 Nov 2002
Posts: 376

PostPosted: Tue Dec 27, 2016 6:22 am    Post subject: Reply with quote

https://wiki.gentoo.org/wiki/Radeon

Any firmware error in 'dmesg'?
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Tue Dec 27, 2016 3:20 pm    Post subject: Reply with quote

R9 380 is the newer revision of Tonga, it requires the tonga_k_smc.bin firmware for kernel 4.8 and newer.
Back to top
View user's profile Send private message
nagmat84
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2007
Posts: 118

PostPosted: Thu Dec 29, 2016 9:34 am    Post subject: Reply with quote

@snkmoorthy: As I have already written:
Quote:
the kernel silently hangs and does not print any error message what file is missing
This also impies, there is no firmware error.

@chithanh: If the R9 380 requires tonga_k_smc.bin, why does it work then if I include the whole /lib/firmware directory into the initramfs or if I compile amdgpu as a module so it it loads after /lib/firmware becomes available? tonga_k_smc.bin does not exists on my machine.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum