You are not logged in.

#1 2024-09-04 13:35:28

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,849
Website

Tiny artifacts around text at 100hz with amdgpu

Bought a new AMD apu PC with a 2k monitor that has 100hz AMD freesync vrr connected with DP. In the beginning everything seemed fined until i noticed that small text has some artifacts around the edges sometimes, usually on the right side of the screen at the end of sentences. It seems only to happen when the text background is something else than pure white. My initial thought was that I had bought a defective monitor and i started contemplating the pain in the ass that would be if I had to return this purchase. But then i decided to have a look in wiki about amd graphics and there was something:

https://wiki.archlinux.org/title/AMDGPU … cy_problem

Dynamic power management may cause screen artifacts to appear when displaying to monitors at higher frequencies (anything above 60Hz) due to issues in the way GPU clock speeds are managed.

Unfortunately the suggested udev rule had no effect on /sys/class/drm/card1/device/power_dpm_force_performance_level upon reboot and editing the setting manually to "high" also yielded no result.

I went on to freedesktop bug tracker and looked up other results for screen corruption with AMD graphics but couldn't find anything that looked like mine

Eventually the bright idea came to notch down the refresh rate by one step down from 100hz to 75hz and the glitches went away and that is my current workaround.

Here are pictures of my monitor, since the artifacts won't appear in screenshots: https://ugjka.net/download/amdgpu/

System information:
Monitor: Acer, CB272U E3bmiiprzx, 27"

cpu:

Architecture:                         x86_64
CPU op-mode(s):                       32-bit, 64-bit
Address sizes:                        48 bits physical, 48 bits virtual
Byte Order:                           Little Endian
CPU(s):                               16
On-line CPU(s) list:                  0-15
Vendor ID:                            AuthenticAMD
Model name:                           AMD Ryzen 7 5700G with Radeon Graphics
CPU family:                           25
Model:                                80
Thread(s) per core:                   2
Core(s) per socket:                   8
Socket(s):                            1
Stepping:                             0
CPU(s) scaling MHz:                   32%
CPU max MHz:                          4673,0000
CPU min MHz:                          400,0000
BogoMIPS:                             7586,23
Flags:                                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local user_shstk clzero irperf xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip pku ospke vaes vpclmulqdq rdpid overflow_recov succor smca fsrm debug_swap
Virtualization:                       AMD-V
L1d cache:                            256 KiB (8 instances)
L1i cache:                            256 KiB (8 instances)
L2 cache:                             4 MiB (8 instances)
L3 cache:                             16 MiB (1 instance)
NUMA node(s):                         1
NUMA node0 CPU(s):                    0-15
Vulnerability Gather data sampling:   Not affected
Vulnerability Itlb multihit:          Not affected
Vulnerability L1tf:                   Not affected
Vulnerability Mds:                    Not affected
Vulnerability Meltdown:               Not affected
Vulnerability Mmio stale data:        Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed:               Not affected
Vulnerability Spec rstack overflow:   Mitigation; Safe RET
Vulnerability Spec store bypass:      Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:             Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:             Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
Vulnerability Srbds:                  Not affected
Vulnerability Tsx async abort:        Not affected

system:

Operating System: Arch Linux 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.7-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics
Memory: 30,6 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUS
[ugjka@ugjka ~]$ xrandr --verbose 
Screen 0: minimum 16 x 16, current 2560 x 1440, maximum 32767 x 32767
DP-1 connected primary 2560x1440+0+0 (0x426) normal (normal left inverted right x axis y axis) 597mm x 336mm
        Identifier: 0x21
        Timestamp:  318890
        Subpixel:   unknown
        Gamma:      inf:inf:inf
        Brightness: 0.45
        Clones:    
        CRTC:       0
        CRTCs:      0
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        RANDR Emulation: 1 
        non-desktop: 0 
                supported: 0, 1
  2560x1440 (0x426) 542.250MHz -HSync +VSync *current +preferred
        h: width  2560 start 2776 end 3056 total 3552 skew    0 clock 152.66KHz
        v: height 1440 start 1443 end 1448 total 1527           clock  99.97Hz
  1920x1440 (0x427) 405.500MHz -HSync +VSync
        h: width  1920 start 2080 end 2288 total 2656 skew    0 clock 152.67KHz
        v: height 1440 start 1443 end 1447 total 1527           clock  99.98Hz
  1600x1200 (0x428) 281.000MHz -HSync +VSync
        h: width  1600 start 1736 end 1904 total 2208 skew    0 clock 127.26KHz
        v: height 1200 start 1203 end 1207 total 1274           clock  99.89Hz
  1440x1080 (0x429) 225.500MHz -HSync +VSync
        h: width  1440 start 1552 end 1704 total 1968 skew    0 clock 114.58KHz
        v: height 1080 start 1083 end 1087 total 1147           clock  99.90Hz
  1400x1050 (0x42a) 213.000MHz -HSync +VSync
        h: width  1400 start 1512 end 1656 total 1912 skew    0 clock 111.40KHz
        v: height 1050 start 1053 end 1057 total 1115           clock  99.91Hz
  1280x1024 (0x42b) 189.500MHz -HSync +VSync
        h: width  1280 start 1376 end 1512 total 1744 skew    0 clock 108.66KHz
        v: height 1024 start 1027 end 1034 total 1087           clock  99.96Hz
  1280x960 (0x42c) 177.500MHz -HSync +VSync
        h: width  1280 start 1376 end 1512 total 1744 skew    0 clock 101.78KHz
        v: height  960 start  963 end  967 total 1020           clock  99.78Hz
  1152x864 (0x42d) 143.750MHz -HSync +VSync
        h: width  1152 start 1240 end 1360 total 1568 skew    0 clock  91.68KHz
        v: height  864 start  867 end  871 total  918           clock  99.87Hz
  1024x768 (0x42e) 112.250MHz -HSync +VSync
        h: width  1024 start 1096 end 1200 total 1376 skew    0 clock  81.58KHz
        v: height  768 start  771 end  775 total  816           clock  99.97Hz
  800x600 (0x42f) 67.250MHz -HSync +VSync
        h: width   800 start  848 end  928 total 1056 skew    0 clock  63.68KHz
        v: height  600 start  603 end  607 total  639           clock  99.66Hz
  640x480 (0x430) 42.500MHz -HSync +VSync
        h: width   640 start  672 end  736 total  832 skew    0 clock  51.08KHz
        v: height  480 start  483 end  487 total  512           clock  99.77Hz
  320x240 (0x431) 10.250MHz -HSync +VSync
        h: width   320 start  336 end  360 total  400 skew    0 clock  25.62KHz
        v: height  240 start  243 end  247 total  258           clock  99.32Hz
  1920x1200 (0x432) 336.000MHz -HSync +VSync
        h: width  1920 start 2072 end 2280 total 2640 skew    0 clock 127.27KHz
        v: height 1200 start 1203 end 1209 total 1274           clock  99.90Hz
  1680x1050 (0x433) 256.500MHz -HSync +VSync
        h: width  1680 start 1816 end 1992 total 2304 skew    0 clock 111.33KHz
        v: height 1050 start 1053 end 1059 total 1115           clock  99.85Hz
  1440x900 (0x434) 188.000MHz -HSync +VSync
        h: width  1440 start 1552 end 1704 total 1968 skew    0 clock  95.53KHz
        v: height  900 start  903 end  909 total  956           clock  99.93Hz
  1280x800 (0x435) 146.750MHz -HSync +VSync
        h: width  1280 start 1368 end 1504 total 1728 skew    0 clock  84.92KHz
        v: height  800 start  803 end  809 total  850           clock  99.91Hz
  1152x720 (0x436) 118.500MHz -HSync +VSync
        h: width  1152 start 1232 end 1352 total 1552 skew    0 clock  76.35KHz
        v: height  720 start  723 end  729 total  766           clock  99.68Hz
  960x600 (0x437) 81.500MHz -HSync +VSync
        h: width   960 start 1024 end 1120 total 1280 skew    0 clock  63.67KHz
        v: height  600 start  603 end  609 total  639           clock  99.64Hz
  928x580 (0x438) 76.000MHz -HSync +VSync
        h: width   928 start  984 end 1080 total 1232 skew    0 clock  61.69KHz
        v: height  580 start  583 end  589 total  617           clock  99.98Hz
  800x500 (0x439) 56.000MHz -HSync +VSync
        h: width   800 start  848 end  928 total 1056 skew    0 clock  53.03KHz
        v: height  500 start  503 end  509 total  533           clock  99.49Hz
  768x480 (0x43a) 51.500MHz -HSync +VSync
        h: width   768 start  816 end  888 total 1008 skew    0 clock  51.09KHz
        v: height  480 start  483 end  489 total  512           clock  99.79Hz
  720x480 (0x43b) 48.000MHz -HSync +VSync
        h: width   720 start  760 end  832 total  944 skew    0 clock  50.85KHz
        v: height  480 start  483 end  493 total  512           clock  99.31Hz
  640x400 (0x43c) 34.750MHz -HSync +VSync
        h: width   640 start  664 end  728 total  816 skew    0 clock  42.59KHz
        v: height  400 start  403 end  409 total  427           clock  99.73Hz
  320x200 (0x43d)  8.500MHz -HSync +VSync
        h: width   320 start  336 end  360 total  400 skew    0 clock  21.25KHz
        v: height  200 start  203 end  209 total  215           clock  98.84Hz
  2048x1152 (0x43e) 344.000MHz -HSync +VSync
        h: width  2048 start 2208 end 2432 total 2816 skew    0 clock 122.16KHz
        v: height 1152 start 1155 end 1160 total 1223           clock  99.88Hz
  1920x1080 (0x43f) 302.500MHz -HSync +VSync
        h: width  1920 start 2072 end 2280 total 2640 skew    0 clock 114.58KHz
        v: height 1080 start 1083 end 1088 total 1147           clock  99.90Hz
  1600x900 (0x440) 207.750MHz -HSync +VSync
        h: width  1600 start 1720 end 1888 total 2176 skew    0 clock  95.47KHz
        v: height  900 start  903 end  908 total  956           clock  99.87Hz
  1368x768 (0x441) 150.750MHz -HSync +VSync
        h: width  1368 start 1464 end 1608 total 1848 skew    0 clock  81.57KHz
        v: height  768 start  771 end  781 total  816           clock  99.97Hz
  1280x720 (0x442) 132.000MHz -HSync +VSync
        h: width  1280 start 1368 end 1504 total 1728 skew    0 clock  76.39KHz
        v: height  720 start  723 end  728 total  766           clock  99.72Hz
  1024x576 (0x443) 83.250MHz -HSync +VSync
        h: width  1024 start 1088 end 1192 total 1360 skew    0 clock  61.21KHz
        v: height  576 start  579 end  584 total  613           clock  99.86Hz
  864x486 (0x444) 58.750MHz -HSync +VSync
        h: width   864 start  912 end 1000 total 1136 skew    0 clock  51.72KHz
        v: height  486 start  489 end  494 total  518           clock  99.84Hz
  720x400 (0x445) 39.500MHz -HSync +VSync
        h: width   720 start  752 end  824 total  928 skew    0 clock  42.56KHz
        v: height  400 start  403 end  413 total  427           clock  99.68Hz
  640x350 (0x446) 30.250MHz -HSync +VSync
        h: width   640 start  664 end  728 total  816 skew    0 clock  37.07KHz
        v: height  350 start  353 end  363 total  374           clock  99.12Hz

https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#2 2024-09-04 15:18:39

seth
Member
Registered: 2012-09-03
Posts: 56,250

Re: Tiny artifacts around text at 100hz with amdgpu

https://bugs.freedesktop.org/attachment.cgi?id=125011

Attach a second monitor, set both to 75Hz or 60Hz. Make sure the combined signal is bigger than the 100MHz signal on the single output. Any issues?
1920x1440@100Hz is fine, too?
Checked the cable? (Thoug even DP1.2 should have enough reserves for this…)
Can you test the monitor against a different host?

And just for good measure try the behavior w/ an uncomposited X11 session.

Offline

#3 2024-09-04 17:21:45

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,849
Website

Re: Tiny artifacts around text at 100hz with amdgpu

Nothing like that crazy

Attach a second monitor, set both to 75Hz or 60Hz. Make sure the combined signal is bigger than the 100MHz signal on the single output. Any issues?

Got FHD second monitor and set both to 60hz, no problem

1920x1440@100Hz is fine, too?

No such mode, 100hz seems to be only offered for 2560x1440 at least on linux, i could get a notch down from that (forgot the numbers) on win 11 at 100hz but perhaps it was doing scaling rather than  actual mode.

I guess, I shouldn't post output of xrandr from a wayland session

On X11, xrandr gives this

[test@ugjka ~]$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1200, maximum 16384 x 16384
DisplayPort-0 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95 + 100.00    74.97
   1920x1200     59.95*
   1920x1080     60.00    50.00    59.94
   1600x1200     59.95
   1680x1050     59.95
   1280x1024     75.02    60.02
   1440x900      59.89
   1280x960      60.00
   1280x800      59.81
   1152x864      75.00
   1280x720      60.00    50.00    59.94
   1024x768      75.03    70.07    60.00
   832x624       74.55
   800x600       72.19    75.00    60.32    56.25
   720x576       50.00
   720x480       60.00    59.94
   640x480       75.00    72.81    66.67    60.00    59.94
   720x400       70.08
HDMI-A-0 disconnected (normal left inverted right x axis y axis)

Checked the cable? (Though even DP1.2 should have enough reserves for this…)

I use the cable that came with the box, i think it is 1.4

Can you test the monitor against a different host?

Same problem on windows 11, although that also has AMD, but a dedicated card and intel CPU (can't test integrated intel graphics because it has been disabled for memory integrity security feature)

And just for good measure try the behavior w/ an uncomposited X11 session.

Same problem


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#4 2024-09-04 19:50:30

seth
Member
Registered: 2012-09-03
Posts: 56,250

Re: Tiny artifacts around text at 100hz with amdgpu

No such mode, 100hz seems to be only offered for 2560x1440

Looks like xwayland made that up sad

  1920x1440 (0x427) 405.500MHz -HSync +VSync
        h: width  1920 start 2080 end 2288 total 2656 skew    0 clock 152.67KHz
        v: height 1440 start 1443 end 1447 total 1527           clock  99.98Hz

Got FHD second monitor and set both to 60hz, no problem

Same problem on windows 11, although that also has AMD, but a dedicated card

Monitor or cable - if you don't have a different cable to try, check the monitors config OSD - it probably has some performance related option (speed ./. precision, toggle freesync etc)?

Offline

#5 2024-09-05 15:25:10

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,849
Website

Re: Tiny artifacts around text at 100hz with amdgpu

Tried with ultra high speed hdmi, same thing; tried every setting, same thing. So 75Hz it be


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

Board footer

Powered by FluxBB