3d acceleration ryzen laptop

I have a Lenovo L14 (AMD) with a Ryzen 7 4750U and many (all?) programs that require 3d acceleration give the following message:

si_init_perfcounters: max_sh_per_se = 2 not supported (inaccurate performance counters)

3D acceleration still seems to work in most cases though.

System:    Kernel: 5.9.1-1-MANJARO x86_64 bits: 64 compiler: N/A Desktop: i3 4.18.2 info: i3bar dm: LightDM 1.30.0 
           Distro: Manjaro Linux 
Machine:   Type: Laptop System: LENOVO product: 20U50001GE v: ThinkPad L14 Gen 1 serial: <filter> Chassis: type: 10 
           serial: <filter> 
           Mobo: LENOVO model: 20U50001GE serial: <filter> UEFI: LENOVO v: R19ET26W (1.10 ) date: 06/22/2020 
Battery:   ID-1: BAT0 charge: 45.2 Wh condition: 45.6/45.7 Wh (100%) volts: 12.6/11.1 model: Celxpert LNV-5B10W13897�� 
           type: Li-poly serial: <filter> status: Charging cycles: 7 
Memory:    RAM: total: 62.25 GiB used: 1.78 GiB (2.9%) 
           RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:       Topology: 8-Core model: AMD Ryzen 7 PRO 4750U with Radeon Graphics bits: 64 type: MT MCP arch: Zen rev: 1 
           L2 cache: 4096 KiB bogomips: 54324 
           Speed: 1398 MHz min/max: 1400/1700 MHz boost: enabled Core speeds (MHz): 1: 1397 2: 1397 3: 1397 4: 1397 5: 1397 
           6: 1397 7: 1397 8: 1397 9: 1397 10: 1397 11: 1397 12: 1396 13: 1397 14: 1397 15: 1397 16: 1397 
           Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 bmi2 bpext cat_l3 cdp_l3 clflush 
           clflushopt clwb clzero cmov cmp_legacy constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total cqm_occup_llc 
           cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht 
           hw_pstate ibpb ibrs ibs irperf lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx 
           nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq pdpe1gb perfctr_core 
           perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse pse36 rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep 
           sha_ni skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor svm svm_lock syscall tce topoext 
           tsc tsc_scale umip v_vmsave_vmload vgif vmcb_clean vme vmmcall wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr 
           xsaveopt xsaves 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Renoir vendor: Lenovo driver: amdgpu v: kernel bus ID: 06:00.0 
           chip ID: 1002:1636 
           Device-2: Chicony Integrated Camera type: USB driver: uvcvideo bus ID: 4-3:2 chip ID: 04f2:b6be serial: <filter> 
           Display: x11 server: X.Org 1.20.9 driver: amdgpu,ati unloaded: modesetting alternate: fbdev,vesa resolution: 
           1: 1920x1080~60Hz 2: 3840x2160~30Hz 3: 2160x3840 s-dpi: 96 
           OpenGL: renderer: AMD RENOIR (DRM 3.39.0 5.9.1-1-MANJARO LLVM 10.0.1) v: 4.6 Mesa 20.1.8 direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 06:00.1 
           chip ID: 1002:1637 
           Device-2: Advanced Micro Devices [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Lenovo driver: N/A 
           bus ID: 06:00.5 chip ID: 1022:15e2 
           Device-3: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel 
           bus ID: 06:00.6 chip ID: 1022:15e3 
           Device-4: Lenovo type: USB driver: hid-generic,snd-usb-audio,usbhid bus ID: 2-1.3.3.2:6 chip ID: 17ef:a396 
           serial: <filter> 
           Sound Server: ALSA v: k5.9.1-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169 v: kernel port: 2400 
           bus ID: 02:00.0 chip ID: 10ec:8168 
           IF: enp2s0f0 state: up speed: 100 Mbps duplex: full mac: <filter> 
           IP v4: <filter> type: dynamic noprefixroute scope: global broadcast: <filter> 
           IP v6: <filter> type: noprefixroute scope: link 
           Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: 2000 bus ID: 03:00.0 chip ID: 8086:2723 
           IF: wlp3s0 state: up mac: <filter> 
           IP v4: <filter> type: dynamic noprefixroute scope: global broadcast: <filter> 
           IP v6: <filter> type: noprefixroute scope: link 
           Device-3: Lenovo USB3.1 Hub type: USB driver: r8152 bus ID: 3-1.1:3 chip ID: 17ef:a387 serial: <filter> 
           IF: enp6s0f3u1u1 state: down mac: <filter> 
           WAN IP: <filter> 
Drives:    Local Storage: total: 1.82 TiB used: 557.56 GiB (29.9%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 2TB size: 1.82 TiB speed: 31.6 Gb/s lanes: 4 
           serial: <filter> rev: 2B2QEXM7 scheme: GPT 
           Message: No Optical or Floppy data was found. 
RAID:      Message: No RAID data was found. 
Partition: ID-1: / size: 1.79 TiB used: 557.56 GiB (30.4%) fs: ext4 dev: /dev/nvme0n1p2 label: N/A 
           uuid: a1a3daf1-9cf6-46ba-b0e6-1d76891a3043 
           ID-2: /boot/efi size: 299.4 MiB used: 312 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 label: N/A uuid: D2B3-CAA3 
Swap:      ID-1: swap-1 type: file size: 16.00 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile 
Unmounted: Message: No unmounted partitions found. 
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 1 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002 
           Hub: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002 
           Hub: 2-1:2 info: Lenovo USB2.0 Hub ports: 4 rev: 2.1 speed: 480 Mb/s chip ID: 17ef:a392 
           Hub: 2-1.3:3 info: Lenovo ports: 4 rev: 2.1 speed: 480 Mb/s chip ID: 17ef:a394 
           Hub: 2-1.3.3:4 info: Lenovo ports: 4 rev: 2.0 speed: 480 Mb/s chip ID: 17ef:a395 
           Device-1: 2-1.3.3.1:5 info: Lenovo USB2.0 Hub type: Billboard,HID driver: hid-generic,usbhid interfaces: 2 rev: 2.0 
           speed: 12 Mb/s chip ID: 17ef:a38f serial: <filter> 
           Device-2: 2-1.3.3.2:6 info: Lenovo type: Audio,HID driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 2.0 
           speed: 12 Mb/s chip ID: 17ef:a396 serial: <filter> 
           Device-3: 2-1.3.3.3:7 info: Cherry type: Keyboard,HID driver: hid-generic,usbhid interfaces: 2 rev: 2.0 
           speed: 1.5 Mb/s chip ID: 046a:0113 
           Device-4: 2-1.3.3.4:8 info: Cherry type: Mouse driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 1.5 Mb/s 
           chip ID: 046a:b092 
           Hub: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s chip ID: 1d6b:0003 
           Hub: 3-1:2 info: Lenovo USB3.1 Hub ports: 4 rev: 3.1 speed: 10 Gb/s chip ID: 17ef:a391 
           Device-1: 3-1.1:3 info: Lenovo USB3.1 Hub type: Network driver: r8152 interfaces: 1 rev: 3.0 speed: 5 Gb/s 
           chip ID: 17ef:a387 serial: <filter> 
           Hub: 3-1.3:4 info: Lenovo ports: 4 rev: 3.1 speed: 10 Gb/s chip ID: 17ef:a393 
           Hub: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002 
           Device-1: 4-3:2 info: Chicony Integrated Camera type: Video driver: uvcvideo interfaces: 5 rev: 2.0 speed: 480 Mb/s 
           chip ID: 04f2:b6be serial: <filter> 
           Device-2: 4-4:3 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s 
           chip ID: 8087:0029 
           Hub: 5-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s chip ID: 1d6b:0003 
Sensors:   System Temperatures: cpu: 41.9 C mobo: N/A gpu: amdgpu temp: 31 C 
           Fan Speeds (RPM): fan-1: 0 
Info:      Processes: 323 Uptime: 2m Init: systemd v: 246 Compilers: gcc: 10.2.0 Packages: pacman: 1410 Shell: Bash v: 5.0.18 
           running in: xfce4-terminal inxi: 3.1.05 

There are some failures:

[    0.484891] smp: Bringing up secondary CPUs ...
[    0.484998] x86: Booting SMP configuration:
[    0.484999] .... node  #0, CPUs:        #1
[    0.486166] TSC synchronization [CPU#0 -> CPU#1]:
[    0.486166] Measured 6571456641 cycles TSC warp between CPUs, turning off TSC clock.
[    0.486166] tsc: Marking TSC unstable due to check_tsc_sync_source failed
[    0.486166]   #2  #3  #4  #5  #6  #7  #8  #9 #10 #11 #12 #13 #14 #15
[    0.489939] smp: Brought up 1 node, 16 CPUs

...

[    2.092611] Intel(R) Wireless WiFi driver for Linux
[    2.093108] iwlwifi 0000:03:00.0: enabling device (0000 -> 0002)
[    2.103650] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-cc-a0-56.ucode failed with error -2
[    2.105000] iwlwifi 0000:03:00.0: api flags index 2 larger than supported by driver
[    2.105016] iwlwifi 0000:03:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.22
[    2.105019] iwlwifi 0000:03:00.0: Found debug destination: EXTERNAL_DRAM
[    2.105020] iwlwifi 0000:03:00.0: Found debug configuration: 0
[    2.105349] iwlwifi 0000:03:00.0: loaded firmware version 55.d9698065.0 cc-a0-55.ucode op_mode iwlmvm

...


[   11.223739] audit: type=1130 audit(1603698592.929:82): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=NetworkManager-wait-online comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   11.243489] audit: type=1130 audit(1603698592.949:83): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=org.cups.cupsd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   13.099847] audit: type=1131 audit(1603698594.806:84): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   16.682238] audit: type=1100 audit(1603698598.386:85): pid=1781 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=PAM:authentication grantors=? acct="gkraemer" exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=failed'
[   25.072525] audit: type=1100 audit(1603698606.776:86): pid=1839 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=PAM:authentication grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="gkraemer" exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success'
[   25.074575] audit: type=1101 audit(1603698606.779:87): pid=1839 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=PAM:accounting grantors=pam_access,pam_permit,pam_time acct="gkraemer" exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success'
[   25.154320] audit: type=1106 audit(1603698606.859:88): pid=1584 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=PAM:session_close grantors=pam_unix,pam_systemd acct="lightdm" exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success'
[   25.154325] audit: type=1104 audit(1603698606.859:89): pid=1584 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=PAM:setcred grantors=pam_env,pam_permit acct="lightdm" exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success'
[   25.158695] audit: type=1103 audit(1603698606.863:90): pid=1839 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=PAM:setcred grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="gkraemer" exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success'
[   25.158868] audit: type=1006 audit(1603698606.863:91): pid=1839 uid=0 subj==unconfined old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=2 res=1
[   25.204654] audit: type=1130 audit(1603698606.909:92): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=user-runtime-dir@1000 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   25.215614] audit: type=1101 audit(1603698606.919:93): pid=1845 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=PAM:accounting grantors=pam_access,pam_permit,pam_time acct="gkraemer" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   25.215620] audit: type=1103 audit(1603698606.919:94): pid=1845 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=PAM:setcred grantors=? acct="gkraemer" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'

:+1: Welcome to Manjaro! :+1:

Please read this:

and post some more information so we can see what’s really going on. Now we know the symptom of the disease, but we need some more probing to know where the origin lies…

An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information… (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)

:+1:

P.S. If you enter a bit more details in your profile, we can also see which Desktop Environment you’re using, which CPU/GPU you have, …

2 Likes

I think I have found the cause for the error, it is thrown by this line [1], I guess the GPU is too new for the mesa version that comes with Manjaro. In newer versions of mesa, this has been implemented for newer GPUs.

How can I see the status of a package and when it get moved into the stable branch?

[1] mesa/si_perfcounter.c at 7277ff1dc252d5d6577d4c562244fc1cb8079a57 · maemo-leste/mesa · GitHub

With AMD if the chipset is very new, the only thing we can tell you is: Try a newer kernel.

  • On stable, this is the one you’re running already, so have a little bit of patience.
  • On the testing branch the experimental kernel 5.10 RC1 is already available so if you’re on that branch:

:warning: Do not switch branches unless you know what you’re doing!

If you wish to continue to evilness, press the triangle
  • use the GUI kernel application

  • or alternatively:

    sudo mhwd-kernel --install linux510
    
  • to ensure grub is showing, execute:

     sudo nano --backup /etc/default/grub
    
  • Change (or add?) the following 3 lines:

    GRUB_TIMEOUT=3
    #GRUB_HIDDEN_TIMEOUT=0
    #GRUB_TIMEOUT_STYLE=hidden
    

    (3 or higher is fine, add the # before the lines above if those lines are present)

  • Ctrl+X Y Enter to save if there is anything to save

  • If you did save, execute:

     sudo update-grub
    
  • Reboot

  • Go to grub’s Advanced options

  • Choose the 5.10 kernel and see if that helps.

:scream:

P.S. I’ve specifically not included the instructions on how to switch branches, because if you don’t know how to do that, you shouldn’t…

1 Like

Thanks for the reply and the words of caution. It’s a work computer so I don’t really want to do anything too crazy, so no unstable/testing branch. I may try kernel 5.10 though. I have seen that mesa 20.2.1 is already in testing. Is there a discussion forum or similar where I could get an ETA of that package into the stable branch?

1 Like

There is never an ETA. It’ll be ready for stable when it’ll be out of testing…

:man_shrugging:

1 Like

The ETA is inversely proportional to the time passed since the last arrival.

1 Like

Is it possible to get historical data on package updates to estimate a probability distribution? :grinning: :eyeglasses:

About every 2 weeks. Here’s the history

There’s a new release today:

:stuck_out_tongue_winking_eye: :crazy_face:

Thanks :+1:, I installed it, mesa got updated to the latest version and the error message is gone. Some of the software doesn’t want to work anyways, but I guess that is not the driver’s fault :slightly_frowning_face:

1 Like

I’ve marked the below answer as the solution to your question as it is by far the best answer you’ll get.

However, if you disagree with my choice, please feel free to take any other answer as the solution to your question or even remove the solution altogether: You are in control! (If you disagree with my choice, just send me a personal message and explain why I shouldn’t have done this or :heart: or :+1: if you agree)

:innocent:
P.S. In the future, please don’t forget to come back and click the 3 dots below the answer to mark a solution like this below the answer that helped you most:
Solution
so that the next person that has the exact same problem you just had will benefit from your post as well as your question will now be in the “solved” status.

1 Like

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