Si_init_perfcounters: max_sh_per_se = 2 not supported


It’s my first post and my first problem since I started using Manjaro in 2018 . A few days ago I change my laptop to ThinkPad with AMD Ryzen 7 PRO 4750U with Radeon Graphics. My problem appears when I try to use one of my favorite application (scrcpy) i get this message -

INFO: scrcpy 1.17 <>
  • daemon not running; starting now at tcp:5037
  • daemon started successfully
    /usr/local/share/scrcpy/scrcpy-server: 1 file pushed. 2.5 MB/s (34930 bytes in 0.013s)
    [server] INFO: Device: samsung SM-G960F (Android 10)
    /usr/share/libdrm/amdgpu.ids: No such file or directory
    si_init_perfcounters: max_sh_per_se = 2 not supported (inaccurate performance counters)
    X Error: BadAlloc
    Request Major code 149 ()
    Request Minor code 2
    Error Serial #105
    Current Serial #106

I already visit some similar problem on this forum but still have problem

Hello @bskowronski :wink:

As i know scrcpy need opengl, so gpu acceleration…

Is it available?

inxi -Gazy 
glxinfo | grep OpenGL

This file:

is ownd by:

pamac search --files amdgpu.ids      
/usr/share/libdrm/amdgpu.ids is owned by libdrm

So install it:

pamac install libdrm
1 Like

@megavolt thank you for answer

inxi -Gazy:
  Device-1: AMD Renoir vendor: Lenovo driver: amdgpu v: kernel bus-ID: 06:00.0 
  chip-ID: 1002:1636 class-ID: 0300 
  Device-2: Acer Integrated Camera type: USB driver: uvcvideo bus-ID: 4-3:3 
  chip-ID: 5986:9106 class-ID: 0e02 
  Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: 
  loaded: modesetting alternate: ati,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-1 res: 1920x1080 hz: 60 dpi: 158 size: 309x174mm (12.2x6.9") 
  diag: 355mm (14") 
  OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.10.34-1-MANJARO LLVM 11.1.0) 
  v: 4.6 Mesa 21.0.3 direct render: Yes
glxinfo | grep OpenGL:
OpenGL vendor string: AMD
OpenGL renderer string: AMD RENOIR (DRM 3.40.0, 5.10.34-1-MANJARO, LLVM 11.1.0)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.0.3
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 21.0.3
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
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
OpenGL ES profile extensions:

i try to install libdrm, but -

There is nothing to be done.The operation was successful.


After some research i can just basically say that max_sh_per_se = 2 is is not supported by your gpu. So it will not run with this chip. I guess the amdgpu driver runs with max_sh_per_se = 1. No idea what this variable stand for.

1 Like