Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Getting RX 5500XT to work
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
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 420

PostPosted: Mon Dec 23, 2019 10:29 pm    Post subject: [solved] Getting RX 5500XT to work Reply with quote

Hallo,
I recently bought a Sapphire RX5500XT pulse. Unfortunately I can not get it to work properly.
I upgraded from a working Sapphire RX460 nitro, which is working with amdgpu already.

I read the wiki article https://wiki.gentoo.org/wiki/AMDGPU and included all firmware files for navi14.

The screen "freezes" at boot where normally kms would kick in and all the pinguins appear. The system boots fine and I can ssh into it.

The only error I can find is about "SMU init failed error -62".
Amdgpu is built into kernel as well as all firmware blobs.

I'm running:
Code:
[ebuild   R    ] sys-devel/llvm-9.0.1:9::gentoo  USE="libffi ncurses xml -debug -doc -exegesis -gold -libedit -test -xar -z3" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARM -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -XCore" 0 KiB
[ebuild   R    ] sys-kernel/gentoo-sources-5.4.5:5.4.5::gentoo  USE="-build -experimental -symlink" 0 KiB
[ebuild   R    ] media-libs/mesa-19.3.1::gentoo  USE="X classic dri3 egl gallium gbm gles2 llvm vaapi valgrind vdpau wayland xvmc -d3d9 -debug -gles1 -libglvnd -lm-sensors -opencl -osmesa -pax_kernel (-selinux) -test -unwind -vulkan -vulkan-overlay -xa" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="radeon radeonsi (-freedreno) -i915 -i965 -intel -iris (-lima) -nouveau (-panfrost) -r100 -r200 -r300 -r600 (-vc4) -virgl (-vivante) -vmware" 0 KiB


Anybody any idea ?

Update:
Here are some interesting messages from "dmesg" command captured via ssh:
Code:
1.303437] AMD-Vi: Completion-Wait loop timed out
[    1.428378] pci 0000:0a:00.0: Adding to iommu group 15
[    1.431703] AMD-Vi: Completion-Wait loop timed out
[    1.558440] AMD-Vi: Completion-Wait loop timed out
[    1.681774] pci 0000:0a:00.0: Using iommu direct mapping
[    1.685094] AMD-Vi: Completion-Wait loop timed out
[    1.808529] pci 0000:0a:00.1: Adding to iommu group 16
[    1.811853] AMD-Vi: Completion-Wait loop timed out
[    1.935270] pci 0000:0b:00.0: Adding to iommu group 17
[    1.938601] AMD-Vi: Completion-Wait loop timed out
[    2.061993] pci 0000:0b:00.2: Adding to iommu group 18
[    2.065323] AMD-Vi: Completion-Wait loop timed out
[    2.188720] pci 0000:0b:00.3: Adding to iommu group 19
[    2.303655] pci 0000:0c:00.0: Adding to iommu group 20
[    2.306984] AMD-Vi: Completion-Wait loop timed out
[    2.430629] pci 0000:0c:00.2: Adding to iommu group 21
[    2.433960] AMD-Vi: Completion-Wait loop timed out
[    2.557579] pci 0000:0c:00.3: Adding to iommu group 22
[    2.560909] AMD-Vi: Completion-Wait loop timed out


Code:
[    2.684952] iommu ivhd0: AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=0a:00.0 address=0x7fb878950]
[    2.685074] iommu ivhd0: AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=0a:00.0 address=0x7fb878970]

Code:
[    2.699251] AMD-Vi: Completion-Wait loop timed out
[    2.826402] AMD-Vi: Completion-Wait loop timed out
[    2.952860] AMD-Vi: Completion-Wait loop timed out
[    3.079675] AMD-Vi: Completion-Wait loop timed out
(repeated some more times)

Code:
[    4.307546] iommu ivhd0: AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=0a:00.0 address=0x7fb8789e0]
[    4.307755] iommu ivhd0: AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=0a:00.0 address=0x7fb878a00]


with device=0a:00.0 being the graphics card.

Update 2:
If I boot with kernel option iommu=off or iommu=soft I can get kms to work. But if I type "startx" the screen freezes again. Using ssh to get into the system I can see that dmesg reports somthing like "gfxhub page fault"
Xorg.0.log though seems fine (card and screen detected properly).
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...


Last edited by drizzt on Sat Jan 04, 2020 3:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
Banana
Guru
Guru


Joined: 21 May 2004
Posts: 334
Location: Germany

PostPosted: Wed Dec 25, 2019 3:45 pm    Post subject: Reply with quote

may be this can help: https://forums.gentoo.org/viewtopic-t-1100010-start-0-postdays-0-postorder-asc-highlight-5700.html
_________________
My personal space
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 420

PostPosted: Thu Dec 26, 2019 9:11 pm    Post subject: Reply with quote

*_-=Banana=-_* wrote:
may be this can help: https://forums.gentoo.org/viewtopic-t-1100010-start-0-postdays-0-postorder-asc-highlight-5700.html


Thanks for the answer. I read this thread so many times I could recite every post... :D

But, on the bright side, by using kernel 5.5-rc3 and disabling iommu via kernel commandline I can now use the rx 5500xt.

Can anybody tell me if there are any downsides with disabling iommu (normal desktop usage, no VM) ?

Thanks and happy holidays everyone
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
Back to top
View user's profile Send private message
Banana
Guru
Guru


Joined: 21 May 2004
Posts: 334
Location: Germany

PostPosted: Sun Dec 29, 2019 9:37 am    Post subject: Reply with quote

No info about iommu usage but found this:

Quote:
If you encounter issues with graphics devices, you can try adding option intel_iommu=igfx_off to turn off the integrated graphics engine. If this fixes anything, please ensure you file a bug reporting the problem.

From here: https://www.kernel.org/doc/html/latest/x86/intel-iommu.html#graphics-problems
_________________
My personal space
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 420

PostPosted: Sun Dec 29, 2019 10:27 am    Post subject: Reply with quote

Banana wrote:
No info about iommu usage but found this:

Quote:
If you encounter issues with graphics devices, you can try adding option intel_iommu=igfx_off to turn off the integrated graphics engine. If this fixes anything, please ensure you file a bug reporting the problem.

From here: https://www.kernel.org/doc/html/latest/x86/intel-iommu.html#graphics-problems


Thank you for looking up that information. I think it will not help me since I have AMD Ryzen system with AMD_iommu. Intel_iommu is not even activated in my kernel.

greetings
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
Back to top
View user's profile Send private message
Banana
Guru
Guru


Joined: 21 May 2004
Posts: 334
Location: Germany

PostPosted: Sun Dec 29, 2019 7:05 pm    Post subject: Reply with quote

nah was lost in the iommu space and forgot the AMD thing :roll:
_________________
My personal space
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