Solved drm-kmod / drm-61-kmod / amd issues starting xorg

Hi,
I cant start my Xorg.
i have tried drm-kmod and dr-61-kmod. Runing latest 14 Stable
radeonkms loaded but when i try to do startx xorg wont start and logs states:
Code:
[   358.338] (--) PCI:*(4@0:0:0) 1002:7341:1028:0b0c rev 0, Mem @ 0xa0000000/268435456, 0xb0000000/2097152, 0xbe100000/524288, I/O @ 0x00006000/256, BIOS @ 0x????????/65536
[   358.338] (--) PCI: (14@0:0:0) 1a03:2000:1043:85f9 rev 48, Mem @ 0xbc000000/33554432, 0xbe000000/131072, I/O @ 0x00003000/128, BIOS @ 0x????????/65536
[   358.338] (--) PCI: (129@0:0:0) 10de:1dba:10de:12eb rev 161, Mem @ 0xfa000000/16777216, 0x3ffe0000000/268435456, 0x3fff0000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/65536
[   358.338] (II) LoadModule: "glx"
[   358.338] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[   358.339] (II) Module glx: vendor="X.Org Foundation"
[   358.339]     compiled for 1.21.1.14, module version = 1.0.0
[   358.339]     ABI class: X.Org Server Extension, version 10.0
[   358.339] (II) LoadModule: "radeon"
[   358.339] (WW) Warning, couldn't open module radeon
[   358.339] (EE) Failed to load module "radeon" (module does not exist, 0)
[   358.339] (EE) No drivers available.
[   358.339] (EE)
Fatal server error:
[   358.339] (EE) no screens found(EE)
[   358.339] (EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
 for help.
[   358.339] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   358.339] (EE)
[   358.340] (EE) Server terminated with error (1). Closing log file.

i have 20-radeon.conf file with Driver "radeon" and BusID specified to my AMD gpu.
pciconf -lv|grep -B4 VGA
Code:
vgapci0@pci0:4:0:0:     class=0x030000 rev=0x00 hdr=0x00 vendor=0x1002 device=0x7341 subvendor=0x1028 subdevice=0x0b0c
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Navi 14 [Radeon Pro W5500]'
    class      = display
    subclass   = VGA
--
vgapci1@pci0:14:0:0:    class=0x030000 rev=0x30 hdr=0x00 vendor=0x1a03 device=0x2000 subvendor=0x1043 subdevice=0x85f9
    vendor     = 'ASPEED Technology, Inc.'
    device     = 'ASPEED Graphics Family'
    class      = display
    subclass   = VGA
--
vgapci2@pci0:129:0:0:   class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1dba subvendor=0x10de subdevice=0x12eb
    vendor     = 'NVIDIA Corporation'
    device     = 'GV100GL [Quadro GV100]'
    class      = display
    subclass   = VGA
kldstat
Code:
Id Refs Address                Size Name
 1   76 0xffffffff80200000  1f3db88 kernel
 2    1 0xffffffff8213f000    1c5e8 geom_eli.ko
 3    1 0xffffffff8215c000   5db918 zfs.ko
 4    1 0xffffffff82738000     7808 cryptodev.ko
 5    1 0xffffffff831f9000   152de8 radeonkms.ko
 6    2 0xffffffff8334c000    86090 drm.ko
 7    1 0xffffffff833d3000     22b8 iic.ko
 8    2 0xffffffff833d6000     4120 linuxkpi_video.ko
 9    3 0xffffffff833db000     7350 dmabuf.ko
10    3 0xffffffff833e3000     3378 lindebugfs.ko
11    1 0xffffffff833e7000     c338 ttm.ko
12    1 0xffffffff833f4000    30b10 linux.ko
13    2 0xffffffff83425000     c2a8 linux_common.ko
14    1 0xffffffff83432000    2de48 linux64.ko
15    1 0xffffffff83460000     3390 acpi_wmi.ko
16    1 0xffffffff83464000     4250 ichsmb.ko
17    1 0xffffffff83469000     2178 smbus.ko
18    1 0xffffffff8346c000     3360 uhid.ko
19    1 0xffffffff83470000     3360 wmt.ko
20    1 0xffffffff83474000     2a68 mac_ntpd.ko
 
Code:
[   358.338] (--) PCI:*(4@0:0:0) 1002:7341:1028:0b0c rev 0, Mem @ 0xa0000000/268435456, 0xb0000000/2097152, 0xbe100000/524288, I/O @ 0x00006000/256, BIOS @ 0x????????/65536
[   358.339] (II) LoadModule: "radeon"
[   358.339] (WW) Warning, couldn't open module radeon
[   358.339] (EE) Failed to load module "radeon" (module does not exist, 0)
[   358.339] (EE) No drivers available.
Most probably you do not have GPU modules installed. graphics/gpu-firmware-kmod
 
Isn't driver "radeon" a driver for pre-DRM era?
And if multiple GPUs are installed in the same computer, you need to specify a set of Identifier (i.e., Card0), Driver (i.e., intel, amd, nvidia,...) and BusID (i.e., PCI:1:0:0) per GPU. The number of Card* should be match with corresponding /dev/dri/card*. Otherwise X11 wouldn' be able to tie related configurations correctly, I doubt.
 
Isn't driver "radeon" a driver for pre-DRM era?
You might be right.
Changed to amdgpu and kldstat:
Code:
11    1 0xffffffff8390e000    2f050 amdgpu_navi14_sos_bin.ko
12    1 0xffffffff8393e000    2c2e0 amdgpu_navi14_asd_bin.ko
13    1 0xffffffff8396b000     a3e0 amdgpu_navi14_ta_bin.ko
14    1 0xffffffff83976000    42a70 amdgpu_navi14_smc_bin.ko
15    1 0xffffffff839b9000    425e0 amdgpu_navi14_pfp_wks_bin.ko
16    1 0xffffffff839fc000    425e0 amdgpu_navi14_me_wks_bin.ko
17    1 0xffffffff83a3f000    42560 amdgpu_navi14_ce_wks_bin.ko
18    1 0xffffffff83a82000     c848 amdgpu_navi14_rlc_bin.ko
19    1 0xffffffff83a8f000    43a10 amdgpu_navi14_mec_wks_bin.ko
20    1 0xffffffff83ad3000    43a10 amdgpu_navi14_mec2_wks_bin.ko
21    1 0xffffffff83b17000     a4e0 amdgpu_navi14_sdma_bin.ko
22    1 0xffffffff83b22000     a4e0 amdgpu_navi14_sdma1_bin.ko
23    1 0xffffffff83b2d000    643a0 amdgpu_navi14_vcn_bin.ko

But now screens are black.
And if multiple GPUs are installed in the same computer, you need to specify a set of Identifier (i.e., Card0), Driver (i.e., intel, amd, nvidia,...) and BusID (i.e., PCI:1:0:0) per GPU. The number of Card* should be match with corresponding /dev/dri/card*. Otherwise X11 wouldn' be able to tie related configurations correctly, I doubt.
Yes, if you have multiple GPU`s you need to do it... i have config for it.

But im currently using 61kmod. going to try again with older ones.
 
515 works , screens are showing but still Xorg wont load.
in 20-radeon.conf i tried drivers as amd,amdgpu and radeon - same issues.
 
Maybe, i dont recall how i used to install nVidia as i did it a while ago and i just dont keep it in my memory :)
But if i understand - when you install nvidia drm kmod it pulls nvidia-drivers right ? but when you do drm-kmod it does not pull intel and amd drivers ? so you have to install it manually ?
 
But if i understand - when you install nvidia drm kmod it pulls nvidia-drivers right ? but when you do drm-kmod it does not pull intel and amd drivers ? so you have to install it manually ?
graphics/nvidia-drm-kmod is a wrapper to choose which actual port to be installed and graphics/nvidia-drm-[510|515|61]-kmod are the actual ports, which conflicts each other (just like graphics/drm-kmod and drm-[510|515|61]-kmod ports).

And yes, all of graphics/nvidia-drm-[510|515|61]-kmod pulls in x11/nvidia-driver and corresponding drm-[510|515|61]-kmod as dependencies.
For nvidia GPUs, no optional firmwares are needed (self-contained), but you need to install firmwares for Intel and/or AMD GPUs separately as you would already know. If you need to install Intel/AMD firmwares, using fwget(8) or graphics/gpu-firmware*-kmod ports/pkgs.
 
Back
Top