Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] No X on iGPU of AMD 7950x
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
warrens
Apprentice
Apprentice


Joined: 04 Jan 2005
Posts: 239
Location: Don't Tread On Me!

PostPosted: Wed Mar 22, 2023 3:16 am    Post subject: [Solved] No X on iGPU of AMD 7950x Reply with quote

Every time I try to startx or start display manager I get dumped to the console

/var/log/Xorg.0.log https://pastebin.com/aymbFUsL

.local/share/xorg/Xorg.0.log https://pastebin.com/QhfMuTjw

Part of dmesg containing amdgpu info https://pastebin.com/3iwDnSiJ

what is sad is this actually works on Kubuntu. I want it to work on Gentoo though.
_________________
The BIGGER the GOVERNMENT, the smaller the citizen.

DON'T TREAD ON ME!!!

My Bias #1
The best government is the government that governs least.


Last edited by warrens on Thu Mar 23, 2023 7:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Wed Mar 22, 2023 10:09 am    Post subject: Reply with quote

Mostly a guess, but how have you set CONFIG_DRM_FBDEV_EMULATION?
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
warrens
Apprentice
Apprentice


Joined: 04 Jan 2005
Posts: 239
Location: Don't Tread On Me!

PostPosted: Wed Mar 22, 2023 3:06 pm    Post subject: Reply with quote

It is set to: CONFIG_DRM_FBDEV_EMULATION=y
_________________
The BIGGER the GOVERNMENT, the smaller the citizen.

DON'T TREAD ON ME!!!

My Bias #1
The best government is the government that governs least.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54397
Location: 56N 3W

PostPosted: Wed Mar 22, 2023 5:56 pm    Post subject: Reply with quote

warrens,

Post your
Code:
lspci -nnk
and pastebin your entire dmesg output please.

You may as well put your kernel .config onto a pastebin too, we may want to change it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
warrens
Apprentice
Apprentice


Joined: 04 Jan 2005
Posts: 239
Location: Don't Tread On Me!

PostPosted: Wed Mar 22, 2023 8:35 pm    Post subject: Reply with quote

my lspci -nnk: https://pastebin.com/Uxm1dhHY

my full dmesg: https://pastebin.com/vUgtiW7B

and my kernel config for 6.1.19: https://pastebin.com/mdFi5gaE
_________________
The BIGGER the GOVERNMENT, the smaller the citizen.

DON'T TREAD ON ME!!!

My Bias #1
The best government is the government that governs least.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54397
Location: 56N 3W

PostPosted: Wed Mar 22, 2023 9:44 pm    Post subject: Reply with quote

warrens,

You have two video cards. it looks like the nVidia card is set up to be passed to a guest. Hence Kernel driver in use: vfio-pci.
Code:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU102 [GeForce RTX 2080 Ti Rev. A] [10de:1e07] (rev a1)
   Subsystem: Micro-Star International Co., Ltd. [MSI] TU102 [GeForce RTX 2080 Ti Rev. A] [1462:3717]
   Kernel driver in use: vfio-pci

13:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c1)
   Subsystem: Gigabyte Technology Co., Ltd Raphael [1458:d000]
   Kernel driver in use: amdgpu
   Kernel modules: amdgpu


The amdgpu kernel driver is not happy
Code:
[    4.694701] ------------[ cut here ]------------
[    4.694702] WARNING: CPU: 20 PID: 2131 at drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:5090 dp_retrieve_lttpr_cap+0x14f/0x1c0 [amdgpu]
...

but I can't see why.

This page does not list your 1002:164e PCI ID as a supported device.
That's a auto generated page for the kernel source tree.

A couple of long shots ...
You have
Code:
CONFIG_MICROCODE=y
CONFIG_MICROCODE_AMD=y
but do not provide the microcode in
Code:
CONFIG_EXTRA_FIRMWARE=""
Its possible that its in your initrd but only if you asked for it to be included.
Updated microcode can fix problems.

6.1.19-gentoo is not the newest kernel. Its the newest stable on Gentoo. However it will only get bug fixes and security patches. No new features.
Try the Gentoo testing kernel. Your Raphael is AMD zen4, which is new. Follow the testing kernel for a while.

One thing I didn't think to check, in make.conf, your VIDEO_CARDS needn to be "amdgpu radeonsi"
That's amdgpu for Xorg and radeonsi for mesa.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
warrens
Apprentice
Apprentice


Joined: 04 Jan 2005
Posts: 239
Location: Don't Tread On Me!

PostPosted: Thu Mar 23, 2023 9:50 am    Post subject: Reply with quote

Ok, the warnings were caused by the display port, switched to hdmi warnings went away.
Even with the warnings gone I still have no X

Latest Kernel config (6.2.7) https://pastebin.com/KvgqpP7Y

Latest dmesg https://pastebin.com/wuBmZ0RL

read-edid does not give any results, complaining about not finding any ports Just about wished I stuck with Intel :/


The weird thing is that this iGPU works with kubuntu 2210, just have not been able to get vifo to work with it. Vifo works in Gentoo, just no joy so far with this iGPU.
_________________
The BIGGER the GOVERNMENT, the smaller the citizen.

DON'T TREAD ON ME!!!

My Bias #1
The best government is the government that governs least.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54397
Location: 56N 3W

PostPosted: Thu Mar 23, 2023 4:52 pm    Post subject: Reply with quote

warrens,

dmesg looks healthy.

Going back to your Xorg.0.log its missing starting the amdgpu driver.

It loads OK but
Code:
[   238.647] (II) AMDGPU: Driver for AMD Radeon:
   All GPUs supported by the amdgpu kernel driver
[   238.647] (II) modesetting: Driver for Modesetting Kernel Drivers: kms

Before the modesetting drive line should be lots of AMDGPU lines.

Please post the output of
Code:
emerge --info
and pastebin the Xorg.0.log now you are on the 6.2.7 kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
warrens
Apprentice
Apprentice


Joined: 04 Jan 2005
Posts: 239
Location: Don't Tread On Me!

PostPosted: Thu Mar 23, 2023 5:39 pm    Post subject: Reply with quote

Emerge info https://pastebin.com/GyAMMZa9

Xorg,0,log https://pastebin.com/RRkQKkH3
_________________
The BIGGER the GOVERNMENT, the smaller the citizen.

DON'T TREAD ON ME!!!

My Bias #1
The best government is the government that governs least.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54397
Location: 56N 3W

PostPosted: Thu Mar 23, 2023 6:53 pm    Post subject: Reply with quote

warrens,

VIDEO_CARDS="amdgpu radeonsi fbdev" and
Code:
[   261.987] (II) LoadModule: "ati"
[   261.987] (II) Loading /usr/lib64/xorg/modules/drivers/ati_drv.so

are at odds.

You should not have the ati driver installed but its probably harmless.

Code:
CPU_FLAGS_X86="mmx mmxext sse sse2"
are the generig settings from your profile.
Use the settings that
Code:
app-portage/cpuid2cpuflags
gives you.
It will improve multimedia and crypto performance mostly.

As you have two graphics cards, I wonder if the log really means what it says ...
Code:
[   262.102] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices


Xorg sees both your graphics cards.
Code:
[   261.974] (--) PCI:*(1@0:0:0) 10de:1e07:1462:3717 rev 161, Mem @ 0xfb000000/16777216, 0xfcc0000000/268435456, 0xfcd0000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/524288
[   261.974] (--) PCI: (19@0:0:0) 1002:164e:1458:d000 rev 193, Mem @ 0xfce0000000/268435456, 0xfcf0000000/2097152, 0xfce00000/524288, I/O @ 0x0000e000/256
and the automatics will try to use the first one. There is no framebuffer there, so
Code:
 [   262.099] (EE) Unable to find a valid framebuffer device
follows.
Then its all down hill.

Lets tell Xorg to use the card at
Code:
PCI: (19@0:0:0)


Make a file called /etc/X11/xorg.conf.d/use_amd.conf with the content

Code:
Section "Device"
   Identifier "Raphael"
   Driver     "amdgpu"
   BusID  “PCI:19@0:0:0”
EndSection


See
Code:
man xorg.conf
for the details.

What this does is to tell Xorg to use the amdgpu driver on the graphics card found at PCI:19@0:0:0, which from your log, is where the your GPU is.

I can never remember if “PCI:19@0:0:0” should be hex or decimal, so “PCI:13@0:0:0” might be what's needed, as per your lspci output.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
warrens
Apprentice
Apprentice


Joined: 04 Jan 2005
Posts: 239
Location: Don't Tread On Me!

PostPosted: Thu Mar 23, 2023 7:31 pm    Post subject: Reply with quote

/etc/X11/xorg.conf.d/use_amd.conf solved the problem.

posting from my newly installed Gentoo :)

Thanks for the help Neddy
_________________
The BIGGER the GOVERNMENT, the smaller the citizen.

DON'T TREAD ON ME!!!

My Bias #1
The best government is the government that governs least.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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