Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Problems with amdgpu/radeonsi drivers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Hackerpilot
n00b
n00b


Joined: 18 Jan 2016
Posts: 3

PostPosted: Mon Jan 18, 2016 5:06 am    Post subject: [SOLVED] Problems with amdgpu/radeonsi drivers Reply with quote

Problems:

  • 2d is incredibly slow
  • Mesa claims to only support GL 2.1

Currently running:

  • Kernel 4.4.0 (also tested with 4.4.0-next)
  • Mesa 11.1.1 (also tested with 11.1)
  • xf86-video-amdgpu 0.0.01_pre20150814 (also tested with 1.0 built from source)
  • xorg-server-1.17.4


I'm confused because all of the log files that I can check seem to say that everything is fine. For instance, I see the following in my X log:

Code:

[  1662.832] (II) AMDGPU(0): [DRI2] Setup complete
[  1662.832] (II) AMDGPU(0): [DRI2]   DRI driver: radeonsi
[  1662.832] (II) AMDGPU(0): [DRI2]   VDPAU driver: radeonsi
[  1662.832] (II) AMDGPU(0): Front buffer pitch: 8192 bytes
[  1662.832] (II) AMDGPU(0): SYNC extension fences enabled
[  1662.832] (II) AMDGPU(0): Present extension enabled
[  1662.832] (**) AMDGPU(0): DRI3 enabled
[  1662.832] (==) AMDGPU(0): Backing store enabled
[  1662.832] (II) AMDGPU(0): Direct rendering enabled
[  1662.851] (II) AMDGPU(0): Use GLAMOR acceleration.
[  1662.851] (II) AMDGPU(0): Acceleration enabled
[  1662.851] (==) AMDGPU(0): DPMS enabled
[  1662.851] (==) AMDGPU(0): Silken mouse enabled
[  1662.851] (II) AMDGPU(0): Set up textured video (glamor)
[  1662.851] (II) AMDGPU(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[  1662.851] (--) RandR disabled
[  1662.852] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[  1662.852] (II) AIGLX: enabled GLX_ARB_create_context
[  1662.852] (II) AIGLX: enabled GLX_ARB_create_context_profile
[  1662.852] (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
[  1662.852] (II) AIGLX: enabled GLX_INTEL_swap_event
[  1662.852] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[  1662.852] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[  1662.852] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[  1662.852] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[  1662.852] (II) AIGLX: enabled GLX_ARB_create_context_robustness
[  1662.852] (II) AIGLX: Loaded and initialized radeonsi
[  1662.852] (II) GLX: Initialized DRI2 GL provider for screen 0
[  1662.857] (II) AMDGPU(0): Setting screen physical size to 508 x 285


LIBGL_DEBUG=verbose glxinfo Gives the following:
Code:

name of display: :0.0

...

libGL: pci id for fd 4: 1002:7300, driver radeonsi
libGL: OpenDriver: trying /usr/lib64/dri/tls/radeonsi_dri.so
libGL: OpenDriver: trying /usr/lib64/dri/radeonsi_dri.so

...

libGL: Using DRI3 for screen 0
display: :0  screen: 0
direct rendering: Yes

...

Extended renderer info (GLX_MESA_query_renderer):
    Vendor: X.Org (0x1002)
    Device: AMD FIJI (DRM 3.1.0, LLVM 3.7.1) (0x7300)
    Version: 11.1.0
    Accelerated: yes
    Video memory: 4096MB
    Unified memory: no
    Preferred profile: compat (0x2)
    Max core profile version: 0.0
    Max compat profile version: 2.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 2.0
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD FIJI (DRM 3.1.0, LLVM 3.7.1)
OpenGL version string: 2.1 Mesa 11.1.0
OpenGL shading language version string: 1.30


Note that the renderer string doesn't mention "llvmpipe" or any other software emulation. It correctly identifies the card that I have in the machine.

Any ideas?

EDIT:
The solution was to make sure that everything is built with
Code:
USE="-bindist"


EDIT 2:
The "bindist" change fixed 3d, but the following options were necessary to get 2d up to a usable speed:
Code:

Section "Device"
        Identifier      "AMD"
        Driver          "amdgpu"
        Option          "DRI"   "3"
        Option          "TearFree" "true"
        Option          "ShadowPrimary" "true"
        Option          "AccelMethod"   "glamor"
EndSection


EDIT 3:
3d performance was still pretty bad and unstable. Upgrading to kernel 4.5-rc2 fixed that. Don't use 4.5-rc1 or earlier kernels.


Last edited by Hackerpilot on Mon Feb 01, 2016 8:43 am; edited 3 times in total
Back to top
View user's profile Send private message
Aquous
l33t
l33t


Joined: 08 Jan 2011
Posts: 700

PostPosted: Mon Jan 18, 2016 9:43 pm    Post subject: Reply with quote

See if using glamor speeds up 2d accel. Also, be sure your mesa is built with USE=-bindist.
Back to top
View user's profile Send private message
Hackerpilot
n00b
n00b


Joined: 18 Jan 2016
Posts: 3

PostPosted: Tue Jan 19, 2016 4:04 am    Post subject: Reply with quote

Aquous wrote:
See if using glamor speeds up 2d accel.

I'm not sure if I should point out that the log file snippet I included showed that glamor is enabled...
Aquous wrote:
Also, be sure your mesa is built with USE=-bindist.

or thank you for pointing out the solution.

Eh. Why not both? :D
Back to top
View user's profile Send private message
Aquous
l33t
l33t


Joined: 08 Jan 2011
Posts: 700

PostPosted: Tue Jan 19, 2016 7:34 pm    Post subject: Reply with quote

uhh, I have two cheeks on my face so you may slap one with a large trout and thank the other :P

I don't know about your specific GPU, but if it has a non-glamor alternative codepath (I think the very earliest GCN cards had EXA support brought up in the DDX driver next to glamor, not sure though, and certainly not sure about your specific card), you might try if disabling glamor speeds up 2d accel. Glamor is a bit hit-and-miss wrt performance, since it uses the 3d engine for 2d operations, meaning faster support bringup (because the 3d engine needs to be worked on anyway, but the 2d engine can be ditched in this case), but it's not specialized for the job as EXA accel is.
Back to top
View user's profile Send private message
Hackerpilot
n00b
n00b


Joined: 18 Jan 2016
Posts: 3

PostPosted: Sat Jan 23, 2016 2:57 am    Post subject: Reply with quote

Aquous wrote:
uhh, I have two cheeks on my face so you may slap one with a large trout and thank the other :P

I don't know about your specific GPU, but if it has a non-glamor alternative codepath (I think the very earliest GCN cards had EXA support brought up in the DDX driver next to glamor, not sure though, and certainly not sure about your specific card), you might try if disabling glamor speeds up 2d accel. Glamor is a bit hit-and-miss wrt performance, since it uses the 3d engine for 2d operations, meaning faster support bringup (because the 3d engine needs to be worked on anyway, but the 2d engine can be ditched in this case), but it's not specialized for the job as EXA accel is.


There were a few other options I had to tweak before 2d started working correctly. I edited my first post to document them.
Back to top
View user's profile Send private message
Leio
Developer
Developer


Joined: 27 Feb 2003
Posts: 487
Location: Estonia

PostPosted: Sat Jan 23, 2016 7:54 am    Post subject: Reply with quote

USE=bindist disables potential patent encumbered things, and that includes ARB_texture_float, EXT_texture_shared_exponent, and EXT_packed_float extensions OpenGL extensions, all of which are required to avertise GL3 or higher.
Maybe we should include the GL3 aspect in metadata.xml description...
_________________
GNOME team lead; GStreamer; MIPS/ARM64
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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