[Q] is this possible: amdgpu + polaris10 + polaris12 ?

Zeus Panchenko zeus at ibs.dn.ua
Wed Sep 9 14:00:35 UTC 2020


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

greetings,

I'm trying to get xorg working on my installation with two polaris card
and I experience weird behavior of amdgpu.

Can it work at all (multi-card support question?) ?

0. === SOFTWARE ===============================================

FreeBSD 12.1-RELEASE-p1 GENERIC
drm-fbsd12.0-kmod-4.16.g20200221
drm-kmod-g20190710
drm_info-2.2.0_1
gpu-firmware-kmod-g20200503
libdrm-2.4.102,1
mesa-dri-19.0.8_9
xorg-server-1.20.8_3,1
clover-19.0.8_1
libclc-0.4.0.20190527_2
ocl-icd-2.2.12
opencl-2.2_2

1. === HARDWARE ===============================================

 MB: Asus P6T SE
CPU: Intel(R) Xeon(R) X5660
RAM: 24Gb
VIDEO CARDs:

installed to the most distant from CPU ( 3-d ) sloth 
vgapci0 at pci0:1:0:0:     class=0x030000 card=0x353e174b chip=0x67df1002 rev=0xcf hdr=0x00
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]'
    class      = display
    subclass   = VGA
hdac0 at pci0:1:0:1:       class=0x040300 card=0xaaf0174b chip=0xaaf01002 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]'
    class      = multimedia
    subclass   = HDA

installed to the nearest to CPU ( 1-st ) sloth 
vgapci1 at pci0:2:0:0:     class=0x030000 card=0x22fe1458 chip=0x699f1002 rev=0xc7 hdr=0x00
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X]'
    class      = display
    subclass   = VGA
hdac1 at pci0:2:0:1:       class=0x040300 card=0xaae01458 chip=0xaae01002 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X]'
    class      = multimedia
    subclass   = HDA



2. === BOOT ===================================================

- ---[ dmesg quotation start ]-------------------------------------------
drmn0: <drmn> on vgapci0
drmn0: successfully loaded firmware image with name: amdgpu/polaris10_XXX.bin
drmn0: VRAM: 8192M 0x000000F400000000 - 0x000000F5FFFFFFFF (8192M used)
drmn0: GTT: 256M 0x0000000000000000 - 0x000000000FFFFFFF
[drm] Initialized amdgpu 3.23.0 20150101 for drmn0 on minor 0
drmn1: <drmn> on vgapci1
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_mc.bin
drmn1: VRAM: 2048M 0x000000F400000000 - 0x000000F47FFFFFFF (2048M used)
drmn1: GTT: 256M 0x0000000000000000 - 0x000000000FFFFFFF
[drm] Initialized amdgpu 3.23.0 20150101 for drmn1 on minor 1
- ---[ dmesg quotation end   ]-------------------------------------------

while driver initializes, output is going to monitors connected to RX550
just the driver's initialized, output switches to the monitor connected to RX470



3. === XORG ===================================================
3.1 -- without xorg.conf --------------------------------------

modeset is initializes for the second card

- ---[ quotation start ]-------------------------------------------
[    54.609] (!!) More than one possible primary device found
[    54.609] (--) PCI: (1 at 0:0:0) 1002:67df:174b:353e rev 207, Mem @ 0xb0000000/268435456, 0xcfc00000/2097152, 0xfba80000/262144, I/O @ 0x0000a000/256, BIOS @ 0x????????/65536
[    54.610] (--) PCI: (2 at 0:0:0) 1002:699f:1458:22fe rev 199, Mem @ 0xd0000000/268435456, 0xcfe00000/2097152, 0xfbb80000/262144, I/O @ 0x0000b000/256, BIOS @ 0x????????/65536
[    54.683] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    54.683] (II) modeset(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
- ---[ quotation end   ]-------------------------------------------
     

3.2 -- xorg.conf with driver set to amdgpu ----------------------

[   283.319] (!!) More than one possible primary device found
[   283.319] (--) PCI: (1 at 0:0:0) 1002:67df:174b:353e rev 207, Mem @ 0xb0000000/268435456, 0xcfc00000/2097152, 0xfba80000/262144, I/O @ 0x0000a000/256, BIOS @ 0x????????/65536
[   283.319] (--) PCI: (2 at 0:0:0) 1002:699f:1458:22fe rev 199, Mem @ 0xd0000000/268435456, 0xcfe00000/2097152, 0xfbb80000/262144, I/O @ 0x0000b000/256, BIOS @ 0x????????/65536
[   283.346] (II) AMDGPU(0): [KMS] Kernel modesetting enabled.
[   283.347] (II) AMDGPU(1): [KMS] Kernel modesetting enabled.
[   283.347] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   284.139] (II) AMDGPU(0): Setting screen physical size to 508 x 285
[   284.139] (II) AMDGPU(1): Setting screen physical size to 1016 x 317
[   284.282] (EE) 
[   284.282] (EE) Backtrace:
[   284.284] (EE) 0: /usr/local/bin/Xorg (?+0x0) [0x41bc20]
[   284.287] (EE) 1: /lib/libthr.so.3 (pthread_sigmask+0x53e) [0x80091682e]
[   284.289] (EE) 2: /lib/libthr.so.3 (pthread_getspecific+0xdef) [0x80091663f]
[   284.291] (EE) 3: ? (?+0x0) [0x7ffffffff193]
[   284.293] (EE) 4: /usr/local/lib/xorg/modules/drivers/amdgpu_drv.so (?+0x0) [0x802254880]
[   284.295] (EE) 5: /usr/local/lib/xorg/modules/drivers/amdgpu_drv.so (?+0x0) [0x802255ba0]
[   284.298] (EE) 6: /usr/local/bin/Xorg (?+0x0) [0x2ccc50]
[   284.300] (EE) 7: /usr/local/bin/Xorg (?+0x0) [0x2a04e0]
[   284.302] (EE) 8: /usr/local/bin/Xorg (?+0x0) [0x289000]
[   284.304] (EE) 9: ? (?+0x0) [0x800457000]
[   284.304] (EE) 
[   284.304] (EE) Segmentation fault at address 0x0
[   284.304] (EE) 
Fatal server error:
[   284.304] (EE) Caught signal 11 (Segmentation fault). Server aborting



4. === TESTS ON CURRENT =======================================

the same situation I see while testing live images of CURRENT with
mesa20, provided by manu@ in this post

https://lists.freebsd.org/pipermail/freebsd-x11/2020-September/026584.html


- -- 
Zeus V. Panchenko				jid:zeus at im.ibs.dn.ua
IT Dpt., I.B.S. LLC					  GMT+2 (EET)
-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQQYIXL6FUmD7SUfqoOveOk+D/ejKgUCX1jf3gAKCRCveOk+D/ej
KmDJAKCZGh/nfWcdvgfPs8vvaaSgvGO3dACeIK1pYPOwe8as4tfIp6C+NtW+Ojg=
=nA2Z
-----END PGP SIGNATURE-----


More information about the freebsd-x11 mailing list