Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved?] Radeon open source driver firmware confusion
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
soulsource
n00b
n00b


Joined: 25 Jan 2014
Posts: 26

PostPosted: Wed Oct 22, 2014 4:20 pm    Post subject: [Solved?] Radeon open source driver firmware confusion Reply with quote

Hi!
I've just stumbled across Bug 522890, and I must say, I'm honestly confused. Which firmware files are now really needed for kernel 3.17? Only the lower case ones? If yes, what happened to the UVD firmware (for instance TAHITI_uvd)?
Is there anywhere a listing of which files are required with which kernel version, apart from the (obviously outdated) wiki page?
Thanks in advance for any helpful comments.


Last edited by soulsource on Tue Oct 28, 2014 11:03 am; edited 1 time in total
Back to top
View user's profile Send private message
AndrewAmmerlaan
Developer
Developer


Joined: 25 Jun 2014
Posts: 262
Location: Nijmegen

PostPosted: Fri Oct 24, 2014 6:19 pm    Post subject: Reply with quote

If you put VIDEO_CARDS="radeon" in make.conf, portage will install all the stuff required for radeon, no additional installing is required. In the case of radeon, portage will install radeon-ucode, which should work, if you enable support in your kernel. As stated in the bug report"
Quote:
These files are not duplicate. I agree however that they are named in a confusing way, and reported this to upstream radeon and linux-firmware maintainers. Their reply was that they don't see any problem with that.

The lower-case files are for kernel 3.17 and later.

Though this is not the answer to your question, I don't know if there is such a list, but as I said portage will install the right packages as long as VIDEO_CARDS has been set.
I'm sorry I can't be of more help, if you want to know more about radeon I suggest you take a look at:
http://www.x.org/wiki/radeon/
http://xorg.freedesktop.org/wiki/RadeonFeature/
_________________
OS: Gentoo 6.7.3-gentoo-dist, ~amd64, 17.1/desktop/plasma/systemd/merged-usr
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400
Back to top
View user's profile Send private message
soulsource
n00b
n00b


Joined: 25 Jan 2014
Posts: 26

PostPosted: Mon Oct 27, 2014 9:19 am    Post subject: Reply with quote

I'm usually compiling everything needed to run my computer directly into the kernel image, instead of using modules. In such a case, one should include the firmware in the image as well (as written on the radeon wiki page). The reason I was asking was simply in order to know which files I should list for inclusion in the kernel image.

Anyhow, there's no hurry with that information, since for the moment I'm stuck with 3.16 anyhow, because of a performance regression triggered by using 3.17, which is probably the same as reported in Mesa bug 84662.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Mon Oct 27, 2014 9:28 am    Post subject: Reply with quote

The firmware files needed for each chip is detailed in the Wiki, just scroll a bit down:

http://wiki.gentoo.org/wiki/Radeon
Back to top
View user's profile Send private message
soulsource
n00b
n00b


Joined: 25 Jan 2014
Posts: 26

PostPosted: Tue Oct 28, 2014 11:03 am    Post subject: Reply with quote

I'm aware of that, yet it seems that the list is outdated, regarding the latest radeon-ucode package and Linux kernel 3.17 and newer.

Meanwhile I've been looking at the kernel source (just looking, not trying to understand what it really does), and it seems that for Linux 3.17 both, the upper and lower case filename firmware files are required. Here are two snippets from drivers/gpu/dri/radeon/si.c, one for 3.16 and one for 3.17 (it's the part relevant for my card, but all other radeon firmware files are listed in the same source file):

Linux 3.16.6:
Code:
MODULE_FIRMWARE("radeon/PITCAIRN_pfp.bin");
MODULE_FIRMWARE("radeon/PITCAIRN_me.bin");
MODULE_FIRMWARE("radeon/PITCAIRN_ce.bin");
MODULE_FIRMWARE("radeon/PITCAIRN_mc.bin");
MODULE_FIRMWARE("radeon/PITCAIRN_mc2.bin");
MODULE_FIRMWARE("radeon/PITCAIRN_rlc.bin");
MODULE_FIRMWARE("radeon/PITCAIRN_smc.bin");


Linux 3.17.1:
Code:
MODULE_FIRMWARE("radeon/PITCAIRN_pfp.bin");
MODULE_FIRMWARE("radeon/PITCAIRN_me.bin");
MODULE_FIRMWARE("radeon/PITCAIRN_ce.bin");
MODULE_FIRMWARE("radeon/PITCAIRN_mc.bin");
MODULE_FIRMWARE("radeon/PITCAIRN_mc2.bin");
MODULE_FIRMWARE("radeon/PITCAIRN_rlc.bin");
MODULE_FIRMWARE("radeon/PITCAIRN_smc.bin");

MODULE_FIRMWARE("radeon/pitcairn_pfp.bin");
MODULE_FIRMWARE("radeon/pitcairn_me.bin");
MODULE_FIRMWARE("radeon/pitcairn_ce.bin");
MODULE_FIRMWARE("radeon/pitcairn_mc.bin");
MODULE_FIRMWARE("radeon/pitcairn_rlc.bin");
MODULE_FIRMWARE("radeon/pitcairn_smc.bin");


Regarding the UVD firmware, there is no difference between these two kernel versions, so probably only the upper case filename file is required.

For the moment I'm simply putting all these files (and the UVD firmware as listed in radeon_uvd.c) into the kernel image, and it seems to work.
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