You are not logged in.

#1 2019-04-14 13:35:31

tollaska
Member
Registered: 2019-04-14
Posts: 2

GCN 1.0 awful performance in laptop

Hi,
I compile new kernel (5.0.6) with SI and CIK support, because I want to use dedicated GPU (R5 M330) in Arch.

[akos@HP15 ~]$ cat /proc/config.gz | gunzip | grep CONFIG_DRM_AMDGPU
CONFIG_DRM_AMDGPU=m
CONFIG_DRM_AMDGPU_SI=y
CONFIG_DRM_AMDGPU_CIK=y
CONFIG_DRM_AMDGPU_USERPTR=y
# CONFIG_DRM_AMDGPU_GART_DEBUGFS is not set

I install xf86-video-amdgpu and put /etc/mkinitcpio.conf in modules. I use some files in /etc/modprode.d folder:

[akos@HP15 ~]$ cat /etc/modprobe.d/amdgpu.conf 
options amdgpu si_support=1
options amdgpu cik_support=1
[akos@HP15 modprobe.d]$ cat blacklist.conf 
blacklist radeon
[akos@HP15 modprobe.d]$ cat radeon.conf 
options radeon si_support=0
options radeon cik_support=0

inxi -G output:

Graphics:  Device-1: Intel HD Graphics 5500 driver: i915 v: kernel 
           Device-2: AMD Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / R7 M520] driver: amdgpu v: kernel 
           Display: x11 server: X.Org 1.20.4 driver: amdgpu,intel FAILED: ati unloaded: modesetting,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 5500 (Broadwell GT2) v: 4.5 Mesa 19.0.1

dmesg | grep amdgpu output:

[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.0.6-amdgpu root=UUID=c018da09-ab91-4cbe-9df9-bcc31c995c72 rw amdgpu.dc=0 radeon.si_support=0 amdgpu.si_support=1 radeon.cik_support=0 amdgpu.cik_support=1 radeon.modeset=0
[    0.229229] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.0.6-amdgpu root=UUID=c018da09-ab91-4cbe-9df9-bcc31c995c72 rw amdgpu.dc=0 radeon.si_support=0 amdgpu.si_support=1 radeon.cik_support=0 amdgpu.cik_support=1 radeon.modeset=0
[    1.574385] [drm] amdgpu kernel modesetting enabled.
[    1.574972] amdgpu 0000:0d:00.0: enabling device (0100 -> 0103)
[    1.575258] amdgpu 0000:0d:00.0: kfd not supported on this ASIC
[    1.596117] amdgpu 0000:0d:00.0: VRAM: 2048M 0x000000F400000000 - 0x000000F47FFFFFFF (2048M used)
[    1.596120] amdgpu 0000:0d:00.0: GART: 256M 0x000000FF00000000 - 0x000000FF0FFFFFFF
[    1.596839] [drm] amdgpu: 2048M of VRAM memory ready
[    1.596841] [drm] amdgpu: 3072M of GTT memory ready.
[    1.597644] amdgpu 0000:0d:00.0: PCIE GART of 256M enabled (table at 0x000000F400000000).
[    1.598232] [drm] amdgpu: dpm initialized
[    2.339848] [drm] Initialized amdgpu 3.27.0 20150101 for 0000:0d:00.0 on minor 0
[   20.860890] amdgpu 0000:0d:00.0: PCIE GART of 256M enabled (table at 0x000000F400000000).
[ 1432.167246] amdgpu 0000:0d:00.0: PCIE GART of 256M enabled (table at 0x000000F400000000).
[ 1541.957342] amdgpu 0000:0d:00.0: PCIE GART of 256M enabled (table at 0x000000F400000000).

And it's my /etc/default/grub config one parts

GRUB_CMDLINE_LINUX_DEFAULT="radeon.si_support=0 amdgpu.si_support=1 radeon.cik_support=0 amdgpu.cik_support=1 radeon.modeset=0"
GRUB_CMDLINE_LINUX=""

And I update grub and initramfs with "grub-mkconfig -o /boot/grub/grub.cfg" and "mkinitcpio -k 5.0.6 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.0.6-amdgpu.img" commands.
And the problem: I run "DRI_PRIME=0 vblank_mode=0 glxgears" in Intel HD Graphics Card and I get 6351 FPS, but I run in "DRI_PRIME=1" I get less (2753 FPS).
What can I do to make wrong in amdgpu driver setup?
Thank you in advance for your help and sorry for my english smile

Last edited by tollaska (2019-04-14 13:37:11)

Offline

#2 2019-04-14 14:14:20

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,891

Re: GCN 1.0 awful performance in laptop

I compile new kernel (5.0.6) with SI and CIK support, because I want to use dedicated GPU (R5 M330) in Arch.

stock archlinux kernels come with that support, see

https://wiki.archlinux.org/index.php/AM … K)_support


http://wiki.cchtml.com/index.php/Glxgea … _Benchmark
https://unigine.com/en/products/benchmarks

all 5 unigine benchmarks are in AUR.
Unless you're interested in 32-bit performance, you may want to skip tropics as that's 32-bit only.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#3 2019-04-14 14:20:37

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: GCN 1.0 awful performance in laptop

Maybe that's just how things are because glxgears draws at thousands of fps and those frames have to be shoveled from one GPU to the other for displaying? Can you test with a different program that stresses the GPU more and can't run at hundreds of fps on your Intel GPU?

I don't know what program would be good for testing, maybe "unigine-heaven" from the AUR?

Last edited by Ropid (2019-04-14 14:21:55)

Offline

#4 2019-04-14 14:38:39

tollaska
Member
Registered: 2019-04-14
Posts: 2

Re: GCN 1.0 awful performance in laptop

I try heaven benchmark and almost the same result: Intel HD 389 score and AMD 371.
I attach glxinfo outputs:

[akos@HP15 Unigine_Heaven-4.0]$ DRI_PRIME=0 glxinfo | grep renderer
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer, 
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2) 
[akos@HP15 Unigine_Heaven-4.0]$ DRI_PRIME=1 glxinfo | grep renderer
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_MESA_query_renderer, GLX_MESA_swap_control, GLX_OML_swap_method, 
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: AMD Radeon (TM) R5 M330 (HAINAN, DRM 3.27.0, 5.0.6, LLVM 8.0.0)

Offline

Board footer

Powered by FluxBB