[RESPONDED] Blocky artifacts on AMD Framework laptop 13

Hey, I’ve got the exact same issue. Framework 13 AMD, 64gb with arch and i3.

How would I downgrade the driver? Is it just a case of replacing that file with an older version then rebooting?

Download this version

And replace it in your filesystem and rebuild the initrd and reboot.

I faced this on 6.7.0 when I got my laptop last week but haven’t faced this after downgrading to linux-lts which is 6.6.x.

I also use GNOME on Wayland + Arch.

Would you mind bisecting it?

Sure, I will spend some time tomorrow on this and get back.

Screen corruption similar to the OP on kernel 6.7.0 (linux-6.7.arch3-1-x86_64.pkg.tar.zst) : https://i.imgur.com/6nBuB0L.jpg

Firmware package: linux-firmware-20240115.9b6d0b08-1-any.pkg.tar.zst
DE: GNOME on Wayland
Distro: Arch

Now I have downgraded to linux-lts which is 6.6.13. Here I expect to experience white screen issues randomly throughout the day.

I will share a picture when I do. I was able to solve the white screen problem by using amdgpu.sg_display=0. I posted my experience here a week ago: [RESPONDED] FW13 AMD 7840U Arch Graphics Output Corruption - #2 by bullza

Is there any way we can fix this issue without disabling scatter/gather?

There are two issues here - the blocky corruption and the white screen.

The blocky corruption seems to be either a Linux firmware regression or 6.7 regression (unclear which right now).

The white screen issue with scatter gather doesn’t have a root cause.

I can’t reproduce either of these myself.

After ~3 hours of use, I now faced the white screen problem on linux-lts v6.6.13 : https://i.imgur.com/bFNGhoc.jpg

I have now added amdgpu.sg_display=0 back again and I expect things to be stable.

You might want to use an external monitor (via USB-C). I forgot to mention that I use an external monitor as well. Using a web browser + maximized window speeds up occurrence of the white screen problem. I have tried both Firefox (manually enabled VA-API in about:config) and Vivaldi (Chromium-based, default settings).

1 Like

Yeah I’ve tried multiple external monitors connected to a dock as well as VRAM stress workloads running on the system. I can’t reproduce it.

Please let me know if there is something else I can do to help you.

I also read somewhere that using UMA_Game_Optimized in UEFI reduces the probability of this occurring. I have it disabled (i.e., I am using the default setting).

  1. For first issue (blocky artifacts) If you can please bisect the issue with the blocky artifacts down to a kernel commit that would be really helpful.
  2. For second issue (white screen) I guess pay attention to specific sequence of events that causes it. When it happens, can you try to capture as much stateful information as you can over SSH from another machine? /sys/bus/pci/drivers/amdgpu/*/mem_info*, a scan from GC, and SDMA registers using UMR, and a kernel log? You can put these on a bug report on AMD’s Gitlab please. Right now I don’t know if it’s a mesa bug, a platform firmware bug, or a graphics bug. Until AMD can reproduce it it’s just guesses.
1 Like

I will start with 2 as it won’t interfere much with my work hours.

A bit off-topic, I only get the following message when I run: umr --logscan -O bits,follow,empty_log

Cannot open DRI name under debugfs: No such file or directory
ERROR: amdgpu.ko is loaded but /sys/kernel/debug/dri/0/name is not found
[WARNING]: Unknown ASIC [amd15bf] should be added to pci.did to get proper name
sh: line 1: /sys/kernel/debug/tracing/events/amdgpu/amdgpu_mm_wreg/enable: No such file or directory
sh: line 1: /sys/kernel/debug/tracing/events/amdgpu/amdgpu_mm_rreg/enable: No such file or directory
[ERROR]: Could not enable mm tracers

I think I need to enable some debug flags or something.

Sounds like debugfs isn’t enabled in your kernel.

Nothing to add here except to point out everything Mario indicated and requested would be helpful for troubleshooting.

This issue happens to me using an HDMI monitor as well

Running the UMR command above gives me the same output as @bullza

Here are fixes you can try:

  1. umr -i 1 --logscan -O bits,follow,empty_log as the device is exposed as 1 under dri folder
  2. amdgpu_mm_wreg and amgpu_mm_rreg are exposed as amdgpu_device_wreg and amdgpu_device_rreg. Need to fix paths within umr’s code and re-compile.

I haven’t tried these yet, but I will.

Thanks! I’ll run it tomorrow. I hope this gets fixed soon because it’s hindering my productivity

@Mario_Limonciello

Please let me know if this is enough information. If it is, I will create a bug report on AMD’s Gitlab. I am on kernel 6.6.14 now and I had to wait the entire day to reproduce the white screen error under latest GNOME.

Output of ./umr -i 1 --print-sdma

SDMA 0  RLC 0
  RB BASE 0x45f000  RPTR 0xa9a5c0  WPTR 0xa9a5c0  RPTR_ADDR 0x4015e0  CNTL 0x841817

umr -i 1 --logscan -O bits,follow,empty_log does not print anything.

Dmesg output during white screen error:

[14234.884102] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffeb801000 flags=0x0000]
[14234.884118] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffeb802000 flags=0x0000]
[14234.884133] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffeb803000 flags=0x0000]
[14234.884147] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffeb804000 flags=0x0000]
[14234.884187] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffeb805000 flags=0x0000]
[14234.884202] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffeb806000 flags=0x0000]
[14234.884217] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffeb807000 flags=0x0000]
[14234.884231] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffeb820000 flags=0x0000]
[14234.884245] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffeb80c000 flags=0x0000]
[14239.884225] amd_iommu_report_page_fault: 65429 callbacks suppressed
[14239.884233] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe0c20000 flags=0x0000]
[14239.884249] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe0c21000 flags=0x0000]
[14239.884261] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe0c22000 flags=0x0000]
[14239.884271] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe0c23000 flags=0x0000]
[14239.884281] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe0c24000 flags=0x0000]
[14239.884291] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe0c25000 flags=0x0000]
[14239.884301] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe0c26000 flags=0x0000]
[14239.884311] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe0c27000 flags=0x0000]
[14239.884321] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe0c28000 flags=0x0000]
[14239.884331] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe0c44000 flags=0x0000]
[14244.888793] amd_iommu_report_page_fault: 64891 callbacks suppressed
[14244.888800] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde080000 flags=0x0000]
[14244.888808] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde081000 flags=0x0000]
[14244.888813] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde082000 flags=0x0000]
[14244.888817] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde083000 flags=0x0000]
[14244.888821] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde084000 flags=0x0000]
[14244.888825] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde085000 flags=0x0000]
[14244.888829] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde086000 flags=0x0000]
[14244.888833] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde087000 flags=0x0000]
[14244.888837] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde088000 flags=0x0000]
[14244.888841] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde094000 flags=0x0000]
[14249.891012] amd_iommu_report_page_fault: 65346 callbacks suppressed
[14249.891020] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde2c0000 flags=0x0000]
[14249.891029] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde2c1000 flags=0x0000]
[14249.891033] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde2c2000 flags=0x0000]
[14249.891037] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde2c3000 flags=0x0000]
[14249.891041] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde2c4000 flags=0x0000]
[14249.891045] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde2c5000 flags=0x0000]
[14249.891049] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde2c6000 flags=0x0000]
[14249.891053] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde2c7000 flags=0x0000]
[14249.891057] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde2c8000 flags=0x0000]
[14249.891061] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffde2d4000 flags=0x0000]
[14254.894436] amd_iommu_report_page_fault: 63985 callbacks suppressed
[14254.894441] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff100000 flags=0x0000]
[14254.894448] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff101000 flags=0x0000]
[14254.894452] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff102000 flags=0x0000]
[14254.894456] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff103000 flags=0x0000]
[14254.894460] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff104000 flags=0x0000]
[14254.894464] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff105000 flags=0x0000]
[14254.894468] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff106000 flags=0x0000]
[14254.894472] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff107000 flags=0x0000]
[14254.894476] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff108000 flags=0x0000]
[14254.894479] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff114000 flags=0x0000]
[14259.898105] amd_iommu_report_page_fault: 64994 callbacks suppressed
[14259.898118] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffee80000 flags=0x0000]
[14259.898135] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffee81000 flags=0x0000]
[14259.898146] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffee82000 flags=0x0000]
[14259.898156] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffee83000 flags=0x0000]
[14259.898166] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffee84000 flags=0x0000]
[14259.898176] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffee85000 flags=0x0000]
[14259.898186] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffee86000 flags=0x0000]
[14259.898196] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffee87000 flags=0x0000]
[14259.898206] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffee88000 flags=0x0000]
[14259.898215] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffee94000 flags=0x0000]
[14264.901960] amd_iommu_report_page_fault: 64286 callbacks suppressed
[14264.901972] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffe770000 flags=0x0000]
[14264.901995] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffe771000 flags=0x0000]
[14264.902011] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffe772000 flags=0x0000]
[14264.902026] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffe773000 flags=0x0000]
[14264.902040] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffe774000 flags=0x0000]
[14264.902054] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffe775000 flags=0x0000]
[14264.902068] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffe776000 flags=0x0000]
[14264.902082] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffe777000 flags=0x0000]
[14264.902096] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xffffe778000 flags=0x0000]
[14264.902110] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffff805000 flags=0x0000]
[14269.904989] amd_iommu_report_page_fault: 64973 callbacks suppressed
[14269.904994] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffffb80000 flags=0x0000]
[14269.905000] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffffb81000 flags=0x0000]
[14269.905005] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffffb82000 flags=0x0000]
[14269.905009] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffffb83000 flags=0x0000]
[14269.905013] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffffb84000 flags=0x0000]
[14269.905017] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffffb85000 flags=0x0000]
[14269.905021] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffffb86000 flags=0x0000]
[14269.905025] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffffb87000 flags=0x0000]
[14269.905029] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffffb88000 flags=0x0000]
[14269.905032] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffffb94000 flags=0x0000] ```