DRI_PRIME=1 freezes amd/amd hybrid graphics

I must have a rare hybrid amd/amd hybrid graphics card in my laptop.

When trying to run programs with dedicated gpu with DRI_PRIME=1 prefix whole system freezes. have to force shutdown.
this happens to any program including glxinfo, therefore i can’t run DRI_PRIME=1 glxinfo.

Is there a possibility that the second graphics card is being unloaded to automatically?
glxgears gives about 60fps on card 0

                                                                                ✔ 
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD KABINI (DRM 2.50.0, 5.12.1-2-MANJARO, LLVM 11.1.0) (0x9851)
    Version: 21.0.3
    Accelerated: yes
    Video memory: 1024MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 1024 MB, largest block: 1024 MB
    VBO free aux. memory - total: 2043 MB, largest block: 2043 MB
    Texture free memory - total: 1024 MB, largest block: 1024 MB
    Texture free aux. memory - total: 2043 MB, largest block: 2043 MB
    Renderbuffer free memory - total: 1024 MB, largest block: 1024 MB
    Renderbuffer free aux. memory - total: 2043 MB, largest block: 2043 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 1024 MB
    Total available memory: 3067 MB
    Currently available dedicated video memory: 1024 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD KABINI (DRM 2.50.0, 5.12.1-2-MANJARO, LLVM 11.1.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 21.0.3
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.5 (Compatibility Profile) Mesa 21.0.3
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.0.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20```

and 

```inxi -Gazy      
                                                                                        ✔ 
Graphics:
  Device-1: AMD Mullins [Radeon R4/R5 Graphics] vendor: Hewlett-Packard 
  driver: radeon v: kernel alternate: amdgpu bus-ID: 00:01.0 
  chip-ID: 1002:9851 class-ID: 0300 
  Device-2: Suyin HP Truevision HD type: USB driver: uvcvideo bus-ID: 2-1.2:3 
  chip-ID: 064e:930a class-ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: 
  loaded: amdgpu,ati,radeon unloaded: modesetting alternate: fbdev,vesa 
  display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: eDP res: 1920x1080 hz: 60 dpi: 142 size: 344x193mm (13.5x7.6") 
  diag: 394mm (15.5") 
  OpenGL: renderer: AMD KABINI (DRM 2.50.0 5.12.1-2-MANJARO LLVM 11.1.0) 
  v: 4.5 Mesa 21.0.3 direct render: Yes ```

```xrandr --listproviders                                                                                   ✔ 
Providers: number : 2
Provider 0: id: 0x53 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 2 outputs: 2 associated providers: 1 name:MULLINS @ pci:0000:00:01.0
Provider 1: id: 0x83 cap: 0xd, Source Output, Source Offload, Sink Offload crtcs: 0 outputs: 0 associated providers: 1 name:AMD Radeon (TM) R7 M360 @ pci:0000:01:00.0```

It seems that no one could help me on this, so i solved the issue by installing arch and it started to work with a few easy steps I will mark it solved.

archlinux% DRI_PRIME=1 glxinfo | grep “OpenGL renderer”
OpenGL renderer string: AMD Radeon ™ R7 M360 (ICELAND, DRM 3.40.0, 5.11.16-arch1-1, LLVM 11.1.0)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.