View previous topic :: View next topic |
Author |
Message |
Courier6 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/HalfLife/Half_Life_-_Scientist.gif)
Joined: 30 Jul 2021 Posts: 15
|
Posted: Thu Sep 21, 2023 4:51 am Post subject: sys-kernel/gentoo-sources-6.5.4 will not build with rx7900xt |
|
|
Hello,
If anyone has any advice as to what I am doing wrong, it would be greatly appreciated.
I am upgrading my current PC's GPU ( 6600xt -> 7900xt) and when I go to rebuild the kernel with the "make -j16 && make modules_install"
command, it compiles fine up until it get's to the portion with the compile where it compiles the GPU part's of the kernel along with it's firmware.
I can also post my kernel .config file as well to shed some more light on what is happening if needed.
This is the kernel I am using:
Code: |
Linux magikarp 6.5.3-gentoo #1 SMP PREEMPT_DYNAMIC Fri Sep 15 15:05:17 CDT 2023 x86_64 AMD Ryzen 7 5700G with Radeon Graphics AuthenticAMD GNU/Linux
|
These are the firmware file's I am using as per the wiki:
Code: |
amdgpu/gc_11_0_0_ce.bin, amdgpu/gc_11_0_0_imu.bin, amdgpu/gc_11_0_0_pfp.bin, amdgpu/gc_11_0_0_me.bin, amdgpu/gc_11_0_0_rlc.bin, amdgpu/gc_11_0_0_mec.bin, amdgpu/gc_11_0_0_mes.bin, amdgpu/gc_11_0_0_mes1.bin, amdgpu/psp_13_0_0_sos.bin, amdgpu/psp_13_0_0_ta.bin, amdgpu/smu_13_0_0.bin, amdgpu/dcn_3_2_0_dmcub.bin, amdgpu/sdma_6_0_0.bin amdgpu/vcn_4_0_0.bin
|
Here is the compile output, edited for convenience for finding the error's that are occurring:
Code: |
GNU nano 7.2 gpu compile errors Modified
make[6]: *** No rule to make target '/lib/firmware/amdgpu/gc_11_0_0_ce.bin,', needed by 'drivers/base/firmware_loader/builtin/amdgpu/gc_11_0_0_ce.bin,.gen.o'. Stop.
make[6]: *** Waiting for unfinished jobs....
CC kernel/cgroup/legacy_freezer.o
UPD drivers/base/firmware_loader/builtin/amdgpu/gc_11_0_0_ce.bin,.gen.S
make[5]: *** [scripts/Makefile.build:480: drivers/base/firmware_loader/builtin] Error 2
make[5]: *** Waiting for unfinished jobs....
CC kernel/cgroup/pids.o
CC drivers/gpu/drm/drm_format_helper.o
CC drivers/base/power/main.o
CC drivers/base/power/wakeup.o
CC drivers/gpu/drm/drm_gem_atomic_helper.o
make[4]: *** [scripts/Makefile.build:480: drivers/base/firmware_loader] Error 2
make[4]: *** Waiting for unfinished jobs....
A little while later with no further error's:
CC drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn301.o
CC drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn302.o
CC drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn303.o
CC drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn31.o
CC drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn314.o
CC drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn315.o
CC drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn316.o
CC drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn32.o
CC drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp_ddc.o
CC drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp_log.o
CC drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp_psp.o
CC drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp.o
CC drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp1_execution.o
CC drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp1_transition.o
CC drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp2_execution.o
CC drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp2_transition.o
AR drivers/gpu/drm/amd/amdgpu/built-in.a
AR drivers/gpu/drm/built-in.a
AR drivers/gpu/built-in.a
make[2]: *** [scripts/Makefile.build:480: drivers] Error 2
make[1]: *** [/home/max/linux-6.5.4-gentoo/Makefile:2034: .] Error 2
make: *** [Makefile:234: __sub-make] Error 2
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
krumpf Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 15 Jul 2018 Posts: 192
|
Posted: Thu Sep 21, 2023 6:18 am Post subject: |
|
|
Hi, 7900xtx user here
There's an error in your file list, "amdgpu/gc_11_0_0_ce.bin" does not exist (check in your /lib/firmware/amdgpu folder).
Here's the firmware list loaded by my 7900xtx (from dmesg) :
Code: | amdgpu/psp_13_0_0_sos.bin
amdgpu/psp_13_0_0_ta.bin
amdgpu/smu_13_0_0.bin
amdgpu/dcn_3_2_0_dmcub.bin
amdgpu/gc_11_0_0_pfp.bin
amdgpu/gc_11_0_0_me.bin
amdgpu/gc_11_0_0_rlc.bin
amdgpu/gc_11_0_0_mec.bin
amdgpu/vcn_4_0_0.bin
amdgpu/gc_11_0_0_mes_2.bin
amdgpu/gc_11_0_0_mes1.bin
amdgpu/gc_11_0_0_imu.bin
amdgpu/sdma_6_0_0.bin |
It is recommended to build amdgpu as module instead of built-in, easier that way.
Plus, the firmware list has changed 2-3 months ago, AMD added the "amdgpu/gc_11_0_0_mes_2.bin" (that file isn't listed in the wiki and didn't exist in the original firmware release for RDNA3).
Hope this helped ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54848 Location: 56N 3W
|
Posted: Thu Sep 21, 2023 7:24 am Post subject: |
|
|
Courier6,
What krumpf said but for built in firmware, every time you update the kernel be sure that linux-firmware has been updated first, then check that the kernel lists all the firmware files for your GPU that are listed in /lib/firmware.
AMD have a habit of adding firmware files and if you don't notice, you need to reboot the old kernel to fix it as you won't even get a console. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 5391 Location: Bavaria
|
Posted: Thu Sep 21, 2023 9:57 am Post subject: |
|
|
krumpf wrote: | It is recommended to build amdgpu as module instead of built-in, easier that way. |
If - for some reasons - a user want built-in the amdgpu into the kernel, THEN this is also a way to go:
Boot with a (gentoo-)kernel where amdgpu is configured as <M>odul and then ask "dmesg | grep firmware". You will get a list of all loaded firmware files and can put this list into your kernel configuration (CONFIG_EXTRA_FIRMWARE=) before change back to a built-in amdgpu. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Courier6 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/HalfLife/Half_Life_-_Scientist.gif)
Joined: 30 Jul 2021 Posts: 15
|
Posted: Fri Sep 22, 2023 3:44 am Post subject: |
|
|
Sorry for such a late reply,
But I did try compiling with the AMDGPU option as a module, it failed out with the same error, even with the newer firmware files added. If needed, I can post my current .config file( with the rx7900xt firmware in it) to see if I left anything out by mistake.
After trying with the prescribed fix while adding it as a module:
Code: |
CC drivers/base/firmware_loader/builtin/main.o
CC drivers/acpi/acpica/utcopy.o
CC drivers/base/node.o
make[6]: *** No rule to make target '/lib/firmware/amdgpu/psp_13_0_0_sos.bin,', needed by 'drivers/base/firmware_loader/builtin/amdgpu/psp_13_0_0_sos.bin,.gen.o'. Stop.
make[6]: *** Waiting for unfinished jobs....
UPD drivers/base/firmware_loader/builtin/amdgpu/psp_13_0_0_sos.bin,.gen.S
CC drivers/gpu/drm/drm_displayid.o
CC fs/ntfs/dir.o
CC fs/lockd/xdr4.o
CC fs/ntfs/file.o
AR arch/x86/mm/built-in.a
CC drivers/acpi/acpica/utexcep.o
AR arch/x86/crypto/built-in.a
CC drivers/acpi/acpica/utdebug.o
CC fs/ntfs3/attrib.o
CC drivers/base/power/generic_ops.o
make[5]: *** [scripts/Makefile.build:480: drivers/base/firmware_loader/builtin] Error 2
make[5]: *** Waiting for unfinished jobs....
CC fs/ntfs3/attrlist.o
CC drivers/acpi/acpica/utdecode.o
CC drivers/acpi/acpica/utdelete.o
CC kernel/trace/trace_uprobe.o
CC drivers/gpu/drm/drm_drv.o
CC kernel/trace/rethook.o
CC net/netfilter/nf_conntrack_expect.o
CC drivers/base/power/common.o
CC fs/nfs/read.o
CC drivers/acpi/acpica/uterror.o
make[4]: *** [scripts/Makefile.build:480: drivers/base/firmware_loader] Error 2
make[4]: *** Waiting for unfinished jobs....
CC drivers/acpi/acpica/uteval.o
CC drivers/acpi/acpica/utglobal.o
and then the error strikes back:
AR net/vmw_vsock/built-in.a
CC drivers/base/power/generic_ops.o
CC net/sunrpc/auth_gss/gss_rpc_upcall.o
CC kernel/events/hw_breakpoint.o
CC drivers/base/firmware_loader/main.o
CC drivers/gpu/drm/drm_atomic_state_helper.o
CC drivers/base/firmware_loader/builtin/main.o
make[6]: *** No rule to make target '/lib/firmware/amdgpu/psp_13_0_0_sos.bin,', needed by 'drivers/base/firmware_loader/builtin/amdgpu/psp_13_0_0_sos.bin,.gen.o'. Stop.
make[6]: *** Waiting for unfinished jobs....
UPD drivers/base/firmware_loader/builtin/amdgpu/psp_13_0_0_sos.bin,.gen.S
CC drivers/base/power/common.o
CC drivers/base/node.o
CC drivers/base/memory.o
CC drivers/base/module.o
CC drivers/base/regmap/regmap.o
CC drivers/base/regmap/regcache.o
CC fs/ntfs/mst.o
make[5]: *** [scripts/Makefile.build:480: drivers/base/firmware_loader/builtin] Error 2
make[5]: *** Waiting for unfinished jobs....
CC fs/ntfs/namei.o
CC fs/nfs/nfstrace.o
CC drivers/base/pinctrl.o
CC drivers/base/power/qos.o
CC net/sunrpc/auth_gss/gss_rpc_xdr.o
CC fs/ntfs/runlist.o
CC drivers/gpu/drm/drm_bridge_connector.o
CC drivers/base/platform-msi.o
make[4]: *** [scripts/Makefile.build:480: drivers/base/firmware_loader] Error 2
make[4]: *** Waiting for unfinished jobs....
CC drivers/gpu/drm/drm_crtc_helper.o
CC fs/ntfs/super.o
CC kernel/events/uprobes.o
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Goverp Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/152613747847c6fd276c31a.jpg)
Joined: 07 Mar 2007 Posts: 2204
|
Posted: Fri Sep 22, 2023 9:47 am Post subject: |
|
|
If you're compiling with AMDGPU as a module, you no longer need to specify the firmware to the kernel, as the amdgpu module itself will load it from /lib/firmware. Remove the firmware loading from the kernel config, otherwise you continue to try to add the firmware into the kernel, and that's what causes your problem. _________________ Greybeard |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23100
|
Posted: Fri Sep 22, 2023 2:54 pm Post subject: |
|
|
Courier6 wrote: | Code: | make[6]: *** No rule to make target '/lib/firmware/amdgpu/psp_13_0_0_sos.bin,', needed by 'drivers/base/firmware_loader/builtin/amdgpupsp_13_0_0_sos.bin,.gen.o'. Stop. |
| Why is there a trailing comma on this filename? If unsure, review your kernel configuration. More generally, did you check that the filenames the kernel build is citing actually exist? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 5391 Location: Bavaria
|
Posted: Fri Sep 22, 2023 3:00 pm Post subject: |
|
|
Hu wrote: | Why is there a trailing comma on this filename? If unsure, review your kernel configuration. More generally, did you check that the filenames the kernel build is citing actually exist? |
Hu, good catch !
Yes I see now also his list:
Code: | amdgpu/gc_11_0_0_ce.bin, amdgpu/gc_11_0_0_imu.bin, amdgpu/gc_11_0_0_pfp.bin, amdgpu/gc_11_0_0_me.bin, amdgpu/gc_11_0_0_rlc.bin, amdgpu/gc_11_0_0_mec.bin, amdgpu/gc_11_0_0_mes.bin, amdgpu/gc_11_0_0_mes1.bin, amdgpu/psp_13_0_0_sos.bin, amdgpu/psp_13_0_0_ta.bin, amdgpu/smu_13_0_0.bin, amdgpu/dcn_3_2_0_dmcub.bin, amdgpu/sdma_6_0_0.bin amdgpu/vcn_4_0_0.bin |
If it was copied from CONFIG_EXTRA_FIRMWARE= then EVERY comma is wrong (He must seperate it only with a space) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Courier6 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/HalfLife/Half_Life_-_Scientist.gif)
Joined: 30 Jul 2021 Posts: 15
|
Posted: Sat Sep 23, 2023 1:28 am Post subject: Thank you so much! |
|
|
pietinger wrote: | Hu wrote: | Why is there a trailing comma on this filename? If unsure, review your kernel configuration. More generally, did you check that the filenames the kernel build is citing actually exist? |
Hu, good catch !
Yes I see now also his list:
Code: | amdgpu/gc_11_0_0_ce.bin, amdgpu/gc_11_0_0_imu.bin, amdgpu/gc_11_0_0_pfp.bin, amdgpu/gc_11_0_0_me.bin, amdgpu/gc_11_0_0_rlc.bin, amdgpu/gc_11_0_0_mec.bin, amdgpu/gc_11_0_0_mes.bin, amdgpu/gc_11_0_0_mes1.bin, amdgpu/psp_13_0_0_sos.bin, amdgpu/psp_13_0_0_ta.bin, amdgpu/smu_13_0_0.bin, amdgpu/dcn_3_2_0_dmcub.bin, amdgpu/sdma_6_0_0.bin amdgpu/vcn_4_0_0.bin |
If it was copied from CONFIG_EXTRA_FIRMWARE= then EVERY comma is wrong (He must seperate it only with a space) |
Oh my goodness. How did I not catch that. After excluding the comma's, unlike this message, I was able to fully build the kernel. I am so sorry for wasting everyone's time with this extremely stupid mistake of mine. Thank you to everyone for helping me figure out the issue, as it was an issue between the chair and the monitor! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 5391 Location: Bavaria
|
Posted: Sat Sep 23, 2023 9:22 am Post subject: Re: Thank you so much! |
|
|
Courier6 wrote: | Thank you to everyone for helping me figure out the issue, [..] |
You are very Welcome !
Have fun with Gentoo ! ![Cool 8)](images/smiles/icon_cool.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|