gpu: amd rx 460 requires newer kernel

Issues related to hardware problems
Post Reply
yakoub
Posts: 8
Joined: 2018/09/24 05:35:38

gpu: amd rx 460 requires newer kernel

Post by yakoub » 2018/09/24 05:46:22

centos 7.5 has kernel 3.10 but i think my gpu requires kernel and firmware upgrade .
how do i upgrade the kernel and firmware ?

i have amd rx 460 graphic driver and A10-7850k radeon r7 apu .
i installed amdpu pro driver .

but i encountered some errors and can only operate the radeon r7 while rx 460 shows blank screen .

example errors from dmesg

[drm] Found UVD firmware Version: 1.64 Family ID: 9
[drm] Found VCE firmware Version: 50.10 Binary ID: 2
[drm:construct [amdgpu]] *ERROR* construct: Invalid Connector ObjectID from Adapter Service for connector index:1! type 0 expected 3
[drm] dce110_link_encoder_construct: Failed to get encoder_cap_info from VBIOS with error code 4!
[drm:vce_v2_0_start [amdgpu]] *ERROR* VCE not responding, trying to reset the ECPU!!!
[drm:amdgpu_vce_ring_test_ib [amdgpu]] *ERROR* amdgpu: IB test timed out.
[drm:amdgpu_ib_ring_tests [amdgpu]] *ERROR* amdgpu: failed testing IB on ring 12 (-110).
[drm:amdgpu_device_ip_late_init_func_handler [amdgpu]] *ERROR* ib ring test failed (-110).

yakoub
Posts: 8
Joined: 2018/09/24 05:35:38

Re: gpu: amd rx 460 requires newer kernel

Post by yakoub » 2018/09/29 09:52:19

did i post in wrong forum ?
should i upgrade the kernel or should i post in amd forums instead ?

yakoub
Posts: 8
Joined: 2018/09/24 05:35:38

Re: gpu: amd rx 460 requires newer kernel

Post by yakoub » 2018/09/29 20:11:12

i just software update and received new kernel .

now i see error : gfx7: Failed to load firmware "radeon/kaveri_pfp.bin"
and then other errors follow :
mc: Failed to load firmware "amdgpu/polaris11_mc.bin"
amdgpu 0000:01:00.0: amdgpu_device_ip_init failed
amdgpu 0000:01:00.0: Fatal error during GPU init

i see in gnome details the graphics is running : llvmpipe

yakoub
Posts: 8
Joined: 2018/09/24 05:35:38

Re: gpu: amd rx 460 requires newer kernel

Post by yakoub » 2018/09/29 20:13:22

more info :

abrt-cli list --since 1538243250
id c967fca44393f00563ad4af39f5b50c0a4b50402
reason: WARNING: CPU: 1 PID: 265 at drivers/gpu/drm/drm_mm.c:892 drm_mm_takedown+0x2e/0x30 [drm]
time: Sat 29 Sep 2018 11:00:54 PM IDT
cmdline: BOOT_IMAGE=/vmlinuz-3.10.0-862.14.4.el7.x86_64 root=/dev/mapper/centos-root ro crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet LANG=en_US.UTF-8
uid: 0
Directory: /var/spool/abrt/oops-2018-09-29-23:00:54-877-0
Reported: cannot be reported

id f3500d8caf98aee0af7f0db15a784edf99800a7d
reason: WARNING: CPU: 0 PID: 269 at drivers/gpu/drm/drm_mm.c:892 drm_mm_takedown+0x2e/0x30 [drm]
time: Sat 29 Sep 2018 08:49:16 PM IDT
cmdline: BOOT_IMAGE=/vmlinuz-3.10.0-862.14.4.el7.x86_64 root=/dev/mapper/centos-root ro crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet LANG=en_US.UTF-8
uid: 0
Directory: /var/spool/abrt/oops-2018-09-29-20:49:16-887-0
Reported: cannot be reported

yakoub
Posts: 8
Joined: 2018/09/24 05:35:38

Re: gpu: amd rx 460 requires newer kernel

Post by yakoub » 2018/09/30 06:16:59

i tried installing the driver again and got this warning :
Adding any weak-modules
Possible missing firmware "amdgpu/vegam_rlc.bin" for kernel module "amdgpu.ko"
Possible missing firmware "amdgpu/vegam_mec2.bin" for kernel module "amdgpu.ko"
Possible missing firmware "amdgpu/vegam_mec.bin" for kernel module "amdgpu.ko"
Possible missing firmware "amdgpu/vegam_me.bin" for kernel module "amdgpu.ko"
Possible missing firmware "amdgpu/vegam_pfp.bin" for kernel module "amdgpu.ko"
Possible missing firmware "amdgpu/vegam_ce.bin" for kernel module "amdgpu.ko"
Possible missing firmware "amdgpu/vegam_sdma1.bin" for kernel module "amdgpu.ko"
Possible missing firmware "amdgpu/vegam_sdma.bin" for kernel module "amdgpu.ko"
Possible missing firmware "amdgpu/vegam_uvd.bin" for kernel module "amdgpu.ko"
Possible missing firmware "amdgpu/vegam_vce.bin" for kernel module "amdgpu.ko"
Possible missing firmware "amdgpu/vegam_smc.bin" for kernel module "amdgpu.ko"

where do i get those missing firmware ?

yakoub
Posts: 8
Joined: 2018/09/24 05:35:38

Re: gpu: amd rx 460 requires newer kernel

Post by yakoub » 2018/09/30 06:32:05

plymouth killed by segmentation fault after last install attempt .

i think there is no solution other than compile custom kernel .
does anyone have any advice before i go on with this ?

yakoub
Posts: 8
Joined: 2018/09/24 05:35:38

Re: gpu: amd rx 460 requires newer kernel

Post by yakoub » 2018/09/30 08:21:02

i installed main line kernel, by building dkms for amdgpu failed .
so .. waiting for amdgpu and centos to upgrade there versions .

this sucks ! i installed this rx 460 a year ago and still no linux support .

on one hand fedora has the latest linux kernel, but amdgpu doesn't support it .
on other hand centos and fedora are supported, but their kernel too old .

should i buy windows ?!

or maybe i should stick with centos old kernel and ask amd forums for help making their driver work for my card ?

i'm going to try ubuntu .

gulik
Posts: 1
Joined: 2018/10/09 07:09:27

Re: gpu: amd rx 460 requires newer kernel

Post by gulik » 2018/10/09 07:32:21

I think you can safely go with 18.20/18.30 amdgpu driver
it runs smoothly with Centos 7.5 & old prehistoric kernel 3.10.0-862.14.4.el7 out-of-the-box
after 4 days of troubleshooting the bloody amdgpu 18.20 driver, was able to update Centos 7.5 to the elrepo kernel 4.15.15

main problem was to BAN amdgpu driver to reach for not existing drm_backport.h file @ 4.x.x kernel system
this prehistoric drm_backport is used only in 3.10 kernel,
newer 4.x.x kernels does not support such a "fantastic" feature anymore

as soon as amdgpu-install script fails on 4.x.x kernel /it does however install almost all needed files :D /
with message: amdgpu dkms failed for running kernel

change the installed Makefile as follow:

Code: Select all

sudo nano /usr/src/amdgpu-18.20-606296.el7/Makefile
comment out next line /aka add # at the beginning of line /
#-include /usr/src/kernels/$(KERNELRELEASE)/include/drm/drm_backport.h
save Makefile

run manual dkms

Code: Select all

dkms remove -m amdgpu -v 18.20-606296.el7 --all
dkms add -m amdgpu -v 18.20-606296.el7 -k 4.15.15-1.el7.elrepo.x86_64
dkms build -m amdgpu -v 18.20-606296.el7 -k 4.15.15-1.el7.elrepo.x86_64
dkms install -m amdgpu -v 18.20-606296.el7 -k 4.15.15-1.el7.elrepo.x86_64
reboot
you should be now running with 14.15.15 kernel
Screenshot from 2018-10-09 00-36-46.png
Screenshot from 2018-10-09 00-36-46.png (113.68 KiB) Viewed 3997 times
some additional info:

elrepo kernel 4.17.x & 4.18.x was not working with amdgpu 18.20 due to: vga_switcheroo_set_dynamic_switch
/vga_switcheroo_set_dynamic_switch was implemented only up to 4.16 max, not higher/
elrepo kernel 4.16 was not working with amdgpu 18.20 either due to: amdgpu_connectors.c + drm_edid_to_eld
/amdgpu_connectors.c + drm_edid_to_eld was implemented only up to 4.15 max, not higher/

so I ended up running elrepo kernel 4.15.15 with amdgpu 18.20 driver, for the moment very happy with it
as I needed also an up-to-date kernel as I have a amd combo at home: ryzen 2600 & mainboard B450 & vega 56 :D

yakoub
Posts: 8
Joined: 2018/09/24 05:35:38

Re: gpu: amd rx 460 requires newer kernel

Post by yakoub » 2018/10/20 20:51:32

thank you for all your help, i will try that next weekend .

Post Reply