You are not logged in.

#1 2023-07-04 12:50:28

lechain
Member
Registered: 2016-04-09
Posts: 8

[Solved][amdgpu]severe graphics regression on 6.4.1

Hello,

since the linux kernel upgrade to the 6.4.1.arch1-1. I get a less than 20 fps and extremely bad lags in game genshin impact on my pc with 6900xt and 5600x,
when i switch to 6.3 or earlier, it is stabled 60fps and I have a normal smooth game experience

I have found this issue some time ago when I install and use the linux-mainline or linux-amd-drm-next when the official kernel release is 6.3

and now, the linux 6.4.1.arch1-1 have been release and archlinux has got the upgrade, I get a default  6.4.1.arch1-1 kernel and a terrible gaming experience

I change all the other conditions, and have no effect. The only thing that works is downgrading the kernel to 6.3 or earlier.

I also checked the kernel debug message(journalctl -k) and nothing helpful found

Is here anyone encountered the same issue? any workaround can temporarily avoid this issue in 6.4 kernel?(because I want just use the official linux package)

Last edited by lechain (2023-07-05 03:40:54)

Offline

#2 2023-07-04 12:58:17

loqs
Member
Registered: 2014-03-06
Posts: 18,735

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

Is the issue present in the current linux-amd-drm-next ?  Have you located the commit that introduced the issue?  Have you reported the issue upstream?

Offline

#3 2023-07-04 12:59:52

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,450

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

Quick workaround is to switch to official linux-lts package and submit a bug report upstream hoping to be fixed before the bug reaches lts too.

Cannot personally test your issue.

Last edited by kokoko3k (2023-07-04 13:00:24)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#4 2023-07-04 14:36:06

lechain
Member
Registered: 2016-04-09
Posts: 8

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

I think I have found the cause of the problem, the gpu memory clock is locked, I watch this value via cpu-x for a while and the value is always 96Mhz

loqs wrote:

Is the issue present in the current linux-amd-drm-next ?

yes, get same result

loqs wrote:

Have you located the commit that introduced the issue?  Have you reported the issue upstream?

sorry, not yet

may take some time for me to search and read the relative commit in the kernel code

Last edited by lechain (2023-07-04 14:36:24)

Offline

#5 2023-07-04 18:31:01

loqs
Member
Registered: 2014-03-06
Posts: 18,735

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

lechain wrote:
loqs wrote:

Have you located the commit that introduced the issue?  Have you reported the issue upstream?

may take some time for me to search and read the relative commit in the kernel code

Let me know if you need any help with the bisection.

Offline

#6 2023-07-05 03:40:18

lechain
Member
Registered: 2016-04-09
Posts: 8

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

loqs wrote:

Let me know if you need any help with the bisection.

thanks very much, but I searched the solution by google keywords "amdgpu mclk 6.4"

https://gitlab.freedesktop.org/drm/amd/-/issues/2657

according to the discussion from the freedesktop thread above,
the tag amd-drm-next-6.5-2023-06-16 fixed the issue,

Good news: It's fixed with tag amd-drm-next-6.5-2023-06-16 , VRAM correctly clocks up and down with 165Hz. Will close once fix is in mainline / stable.

I will find a way to upgrade it from tag 2023-05-31 now to tag 2023-06-16 in my arch

Offline

#7 2023-07-05 14:21:23

cubethethird
Member
Registered: 2016-01-25
Posts: 96
Website

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

Hey, I just upgraded to an AMD gpu only to discover this issue as well!

I did find a sort of workaround though? For me, when I suspend and wakeup my system, the VRAM speed gets set to the max 1000MHz. Unfortunately it seems to stay at that speed, but at least the performance is better.

Offline

#8 2023-07-05 18:32:37

loqs
Member
Registered: 2014-03-06
Posts: 18,735

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

@lechain @cubethethird does the kernel linked below have the issue
https://drive.google.com/file/d/1-CTrA5 … sp=sharing linux-6.4.1-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/16cmpue … sp=sharing linux-headers-6.4.1-1.1-x86_64.pkg.tar.zst
With the commits mentioned in https://gitlab.freedesktop.org/drm/amd/ … te_1976042 reverted

Offline

#9 2023-07-06 12:05:37

lechain
Member
Registered: 2016-04-09
Posts: 8

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

loqs wrote:

@lechain @cubethethird does the kernel linked below have the issue
https://drive.google.com/file/d/1-CTrA5 … sp=sharing linux-6.4.1-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/16cmpue … sp=sharing linux-headers-6.4.1-1.1-x86_64.pkg.tar.zst
With the commits mentioned in https://gitlab.freedesktop.org/drm/amd/ … te_1976042 reverted

yes, the gpu mclk is fixed to 1000Mhz in the kernel from the above links, thank you very much...

Offline

#10 2023-07-06 13:07:02

loqs
Member
Registered: 2014-03-06
Posts: 18,735

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

So lets add half the reverts back and see if it still works

  git revert -n 663b930e24842 #drm/amdgpu: enable tmz by default for GC 11.0.1
  git revert -n e490d60a2f76b #drm/amd/pm: resolve reboot exception for si oland
  git revert -n bc3e1d60f933f #drm/amdgpu: add RAS POISON interrupt funcs for jpeg_v4_0
  git revert -n 30b2d778f629d #drm/amdgpu: add RAS POISON interrupt funcs for jpeg_v2_6
  git revert -n ce784421a3e15 #drm/amdgpu: separate ras irq from jpeg instance irq for UVD_POISON
  git revert -n 020c76d983151 #drm/amdgpu: add RAS POISON interrupt funcs for vcn_v4_0
  git revert -n 6889f28c736c3 #drm/amdgpu: add RAS POISON interrupt funcs for vcn_v2_6
  git revert -n ac1d8e2f074d9 #drm/amdgpu: separate ras irq from vcn instance irq for UVD_POISON
#  git revert -n 8e1b45c578b79 #Revert "drm/amd/display: Do not set drr on pipe commit"
#  git revert -n c14fb01c4629b #Revert "drm/amd/display: Block optimize on consecutive FAMS enables"
#  git revert -n 55e02c14f9b5f #drm/amd/pm: reverse mclk and fclk clocks levels for renoir
#  git revert -n bfc03568d9d81 #drm/amd/pm: reverse mclk and fclk clocks levels for vangogh
#  git revert -n f1373a97a41f4 #drm/amd/pm: reverse mclk and fclk clocks levels for yellow carp
#  git revert -n c1d35412b3e82 #drm/amd/pm: reverse mclk clocks levels for SMU v13.0.5
#  git revert -n 6a07826f2057b #drm/amd/pm: reverse mclk and fclk clocks levels for SMU v13.0.4

https://drive.google.com/file/d/1abTaIT … sp=sharing linux-6.4.1-1.2-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1GL_Oez … sp=sharing linux-headers-6.4.1-1.2-x86_64.pkg.tar.zst

Offline

#11 2023-07-06 14:31:42

lechain
Member
Registered: 2016-04-09
Posts: 8

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

loqs wrote:

So lets add half the reverts back and see if it still works

  git revert -n 663b930e24842 #drm/amdgpu: enable tmz by default for GC 11.0.1
  git revert -n e490d60a2f76b #drm/amd/pm: resolve reboot exception for si oland
  git revert -n bc3e1d60f933f #drm/amdgpu: add RAS POISON interrupt funcs for jpeg_v4_0
  git revert -n 30b2d778f629d #drm/amdgpu: add RAS POISON interrupt funcs for jpeg_v2_6
  git revert -n ce784421a3e15 #drm/amdgpu: separate ras irq from jpeg instance irq for UVD_POISON
  git revert -n 020c76d983151 #drm/amdgpu: add RAS POISON interrupt funcs for vcn_v4_0
  git revert -n 6889f28c736c3 #drm/amdgpu: add RAS POISON interrupt funcs for vcn_v2_6
  git revert -n ac1d8e2f074d9 #drm/amdgpu: separate ras irq from vcn instance irq for UVD_POISON
#  git revert -n 8e1b45c578b79 #Revert "drm/amd/display: Do not set drr on pipe commit"
#  git revert -n c14fb01c4629b #Revert "drm/amd/display: Block optimize on consecutive FAMS enables"
#  git revert -n 55e02c14f9b5f #drm/amd/pm: reverse mclk and fclk clocks levels for renoir
#  git revert -n bfc03568d9d81 #drm/amd/pm: reverse mclk and fclk clocks levels for vangogh
#  git revert -n f1373a97a41f4 #drm/amd/pm: reverse mclk and fclk clocks levels for yellow carp
#  git revert -n c1d35412b3e82 #drm/amd/pm: reverse mclk clocks levels for SMU v13.0.5
#  git revert -n 6a07826f2057b #drm/amd/pm: reverse mclk and fclk clocks levels for SMU v13.0.4

thanks,gpu mclk is fixed at 96Mhz in the 6.4.1-1.2 case

Offline

#12 2023-07-06 17:07:59

loqs
Member
Registered: 2014-03-06
Posts: 18,735

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

  git revert -n 663b930e24842 #drm/amdgpu: enable tmz by default for GC 11.0.1
  git revert -n e490d60a2f76b #drm/amd/pm: resolve reboot exception for si oland
  git revert -n bc3e1d60f933f #drm/amdgpu: add RAS POISON interrupt funcs for jpeg_v4_0
  git revert -n 30b2d778f629d #drm/amdgpu: add RAS POISON interrupt funcs for jpeg_v2_6
  git revert -n ce784421a3e15 #drm/amdgpu: separate ras irq from jpeg instance irq for UVD_POISON
  git revert -n 020c76d983151 #drm/amdgpu: add RAS POISON interrupt funcs for vcn_v4_0
  git revert -n 6889f28c736c3 #drm/amdgpu: add RAS POISON interrupt funcs for vcn_v2_6
  git revert -n ac1d8e2f074d9 #drm/amdgpu: separate ras irq from vcn instance irq for UVD_POISON
  git revert -n 8e1b45c578b79 #Revert "drm/amd/display: Do not set drr on pipe commit"
  git revert -n c14fb01c4629b #Revert "drm/amd/display: Block optimize on consecutive FAMS enables"
#  git revert -n 55e02c14f9b5f #drm/amd/pm: reverse mclk and fclk clocks levels for renoir
#  git revert -n bfc03568d9d81 #drm/amd/pm: reverse mclk and fclk clocks levels for vangogh
#  git revert -n f1373a97a41f4 #drm/amd/pm: reverse mclk and fclk clocks levels for yellow carp
#  git revert -n c1d35412b3e82 #drm/amd/pm: reverse mclk clocks levels for SMU v13.0.5
#  git revert -n 6a07826f2057b #drm/amd/pm: reverse mclk and fclk clocks levels for SMU v13.0.4

https://drive.google.com/file/d/1c_8uwC … sp=sharing linux-6.4.1-1.3-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1FM8oy7 … sp=sharing linux-headers-6.4.1-1.3-x86_64.pkg.tar.zst

  git revert -n 663b930e24842 #drm/amdgpu: enable tmz by default for GC 11.0.1
  git revert -n e490d60a2f76b #drm/amd/pm: resolve reboot exception for si oland
  git revert -n bc3e1d60f933f #drm/amdgpu: add RAS POISON interrupt funcs for jpeg_v4_0
  git revert -n 30b2d778f629d #drm/amdgpu: add RAS POISON interrupt funcs for jpeg_v2_6
  git revert -n ce784421a3e15 #drm/amdgpu: separate ras irq from jpeg instance irq for UVD_POISON
  git revert -n 020c76d983151 #drm/amdgpu: add RAS POISON interrupt funcs for vcn_v4_0
  git revert -n 6889f28c736c3 #drm/amdgpu: add RAS POISON interrupt funcs for vcn_v2_6
  git revert -n ac1d8e2f074d9 #drm/amdgpu: separate ras irq from vcn instance irq for UVD_POISON
  git revert -n 8e1b45c578b79 #Revert "drm/amd/display: Do not set drr on pipe commit"
  git revert -n c14fb01c4629b #Revert "drm/amd/display: Block optimize on consecutive FAMS enables"
  git revert -n 55e02c14f9b5f #drm/amd/pm: reverse mclk and fclk clocks levels for renoir
  git revert -n bfc03568d9d81 #drm/amd/pm: reverse mclk and fclk clocks levels for vangogh
  git revert -n f1373a97a41f4 #drm/amd/pm: reverse mclk and fclk clocks levels for yellow carp
#  git revert -n c1d35412b3e82 #drm/amd/pm: reverse mclk clocks levels for SMU v13.0.5
#  git revert -n 6a07826f2057b #drm/amd/pm: reverse mclk and fclk clocks levels for SMU v13.0.4

https://drive.google.com/file/d/1S8N8KC … sp=sharing linux-6.4.1-1.4-x86_64.pkg.tar.zst
https://drive.google.com/file/d/17KBrNe … sp=sharing linux-headers-6.4.1-1.4-x86_64.pkg.tar.zst

Offline

#13 2023-07-07 11:07:47

lechain
Member
Registered: 2016-04-09
Posts: 8

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

both 6.4.1-1.3 and 6.4.1-1.4 are ok

Offline

#14 2023-07-07 11:30:18

loqs
Member
Registered: 2014-03-06
Posts: 18,735

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

Is it enough to just revert these two commits

#  git revert -n 663b930e24842 #drm/amdgpu: enable tmz by default for GC 11.0.1
#  git revert -n e490d60a2f76b #drm/amd/pm: resolve reboot exception for si oland
#  git revert -n bc3e1d60f933f #drm/amdgpu: add RAS POISON interrupt funcs for jpeg_v4_0
#  git revert -n 30b2d778f629d #drm/amdgpu: add RAS POISON interrupt funcs for jpeg_v2_6
#  git revert -n ce784421a3e15 #drm/amdgpu: separate ras irq from jpeg instance irq for UVD_POISON
#  git revert -n 020c76d983151 #drm/amdgpu: add RAS POISON interrupt funcs for vcn_v4_0
#  git revert -n 6889f28c736c3 #drm/amdgpu: add RAS POISON interrupt funcs for vcn_v2_6
#  git revert -n ac1d8e2f074d9 #drm/amdgpu: separate ras irq from vcn instance irq for UVD_POISON
  git revert -n 8e1b45c578b79 #Revert "drm/amd/display: Do not set drr on pipe commit"
  git revert -n c14fb01c4629b #Revert "drm/amd/display: Block optimize on consecutive FAMS enables"
#  git revert -n 55e02c14f9b5f #drm/amd/pm: reverse mclk and fclk clocks levels for renoir
#  git revert -n bfc03568d9d81 #drm/amd/pm: reverse mclk and fclk clocks levels for vangogh
#  git revert -n f1373a97a41f4 #drm/amd/pm: reverse mclk and fclk clocks levels for yellow carp
#  git revert -n c1d35412b3e82 #drm/amd/pm: reverse mclk clocks levels for SMU v13.0.5
#  git revert -n 6a07826f2057b #drm/amd/pm: reverse mclk and fclk clocks levels for SMU v13.0.4

https://drive.google.com/file/d/1O8WOnt … sp=sharing linux-6.4.1-1.5-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1Mq_cLh … sp=sharing linux-headers-6.4.1-1.5-x86_64.pkg.tar.zst

Offline

#15 2023-07-07 12:15:25

lechain
Member
Registered: 2016-04-09
Posts: 8

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

6.4.1-1.5 is ok

Offline

#16 2023-07-07 12:39:47

loqs
Member
Registered: 2014-03-06
Posts: 18,735

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

#  git revert -n 663b930e24842 #drm/amdgpu: enable tmz by default for GC 11.0.1
#  git revert -n e490d60a2f76b #drm/amd/pm: resolve reboot exception for si oland
#  git revert -n bc3e1d60f933f #drm/amdgpu: add RAS POISON interrupt funcs for jpeg_v4_0
#  git revert -n 30b2d778f629d #drm/amdgpu: add RAS POISON interrupt funcs for jpeg_v2_6
#  git revert -n ce784421a3e15 #drm/amdgpu: separate ras irq from jpeg instance irq for UVD_POISON
#  git revert -n 020c76d983151 #drm/amdgpu: add RAS POISON interrupt funcs for vcn_v4_0
#  git revert -n 6889f28c736c3 #drm/amdgpu: add RAS POISON interrupt funcs for vcn_v2_6
#  git revert -n ac1d8e2f074d9 #drm/amdgpu: separate ras irq from vcn instance irq for UVD_POISON
  git revert -n 8e1b45c578b79 #Revert "drm/amd/display: Do not set drr on pipe commit"
#  git revert -n c14fb01c4629b #Revert "drm/amd/display: Block optimize on consecutive FAMS enables"
#  git revert -n 55e02c14f9b5f #drm/amd/pm: reverse mclk and fclk clocks levels for renoir
#  git revert -n bfc03568d9d81 #drm/amd/pm: reverse mclk and fclk clocks levels for vangogh
#  git revert -n f1373a97a41f4 #drm/amd/pm: reverse mclk and fclk clocks levels for yellow carp
#  git revert -n c1d35412b3e82 #drm/amd/pm: reverse mclk clocks levels for SMU v13.0.5
#  git revert -n 6a07826f2057b #drm/amd/pm: reverse mclk and fclk clocks levels for SMU v13.0.4

If this is good the cause is 8e1b45c578b79 if not it is c14fb01c4629b but that commit can not be reverted on its own as it depends on 8e1b45c578b79.
Please report which ever one it is to https://gitlab.freedesktop.org/drm/amd/-/issues/2657
https://drive.google.com/file/d/1peenwv … sp=sharing linux-6.4.1-1.6-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1pyIDXS … sp=sharing linux-headers-6.4.1-1.6-x86_64.pkg.tar.zst

Offline

#17 2023-07-07 13:24:53

lechain
Member
Registered: 2016-04-09
Posts: 8

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

6.4.1-1.6 is also ok

Offline

#18 2023-07-12 12:52:42

Pulec
Member
Registered: 2014-07-06
Posts: 23

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

I had this issue on 6.4.2.arch1-1, although I didn't check the GPU Memory Clock, so I can't say for sure.  It's fine on 6.3.9-arch1-1.

Do you have this issue on the latest 6.4.3.arch1-1 ?


IRC: pulec

Offline

#19 2023-07-12 18:05:23

debellator
Member
From: Hamburg
Registered: 2012-07-23
Posts: 24

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

Having an AMD Ryzen 7 5800X3d with an AMD Radeon RX6600XT I can confirm that since 6.4.x the graphic performance is worse. I am able to solve these issues by one of these:

- disabling FreeSync in the monitor settings
- changing the refresh rate in Gnome Display Settings below 120Hz
- downgrading the kernel to 6.3.9-arch1-1

The latest kernel release (6.4.2.arch1-1) did not solve the issues.

Offline

#20 2023-07-23 02:59:51

Pulec
Member
Registered: 2014-07-06
Posts: 23

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

This is not solved,

On 6.4.4-arch1-1 and corectrl reports the GPU  memory clock is stuck at 96 MHz.

I also have 5800x3d as debellator, but radeon 6700xt though, shouldn't be a big difference.

I however refuse to use the refresh rate below 120hz or disable freesync, so I am staying on 6.3.9.

Last edited by Pulec (2023-07-23 03:03:52)


IRC: pulec

Offline

#21 2023-07-23 10:07:13

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

Re: [Solved][amdgpu]severe graphics regression on 6.4.1

OP (lechain) has stated several times their issues are solved with latest 6.4.x kernel.
Pulec, Debellator : you appear to have different problems then OP, please start your own threads.


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

Offline

Board footer

Powered by FluxBB