Just installed mesa-20.3.4-1 from Unstable Branch with linux-vim-5.10.8-1, Panfrost seems to have much less visual glitches to the point where a times it looks normal.
But mesa-20.3.4-1 glmark2-es2 score is quite significantly lower compared to latest mesa-git (285 compared to 400).
But with this mesa-20.3.4-1 and linux-vim-5.10.8-1, I noticed this Panfrost error for the first time.
dmesg output:
50.339616] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x4f41680, tail=0x4f41680
[ 50.343803] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x4f41680, tail=0x4f41680, sched_job=00000000e3ae3dfc
[ 59.420653] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x4f82d00, tail=0x4f82d00
[ 59.424859] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x4f82d00, tail=0x4f82d00, sched_job=00000000a80fb335
[ 66.436437] panfrost ffe40000.gpu: js fault, js=1, status=DATA_INVALID_FAULT, head=0x6399000, tail=0x6399000
[ 66.440633] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x58, head=0x6399000, tail=0x6399000, sched_job=000000002362dfcc
[ 78.227119] audit: type=1131 audit(1612359934.786:92): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=blueman-mechanism comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 113.769798] panfrost ffe40000.gpu: js fault, js=1, status=DATA_INVALID_FAULT, head=0x30d7100, tail=0x30d7580
[ 113.774020] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x58, head=0x30d7100, tail=0x30d7580, sched_job=0000000017633c34
[ 156.881572] panfrost ffe40000.gpu: js fault, js=1, status=DATA_INVALID_FAULT, head=0x4f44100, tail=0x4f44100
[ 156.885790] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x58, head=0x4f44100, tail=0x4f44100, sched_job=00000000ad67c865
[ 168.064398] panfrost ffe40000.gpu: js fault, js=0, status=UNKNOWN, head=0x4f36cc0, tail=0x4f36cc0
[ 168.067636] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x5b, head=0x4f36cc0, tail=0x4f36cc0, sched_job=000000004c0502ee
[ 169.602682] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x313d340, tail=0x313d340
[ 169.606868] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x313d340, tail=0x313d340, sched_job=000000007834315e
[ 192.620180] panfrost ffe40000.gpu: js fault, js=0, status=UNKNOWN, head=0x4f52d00, tail=0x4f52d00
[ 192.623426] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x5b, head=0x4f52d00, tail=0x4f52d00, sched_job=00000000b98551a1
[ 226.131396] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x4ee5800, tail=0x4ee5800
[ 226.135594] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x4ee5800, tail=0x4ee5800, sched_job=00000000c0f06af1
[ 236.796845] panfrost ffe40000.gpu: js fault, js=0, status=UNKNOWN, head=0x6399740, tail=0x6399740
[ 236.800082] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x5b, head=0x6399740, tail=0x6399740, sched_job=00000000432dac40
[ 241.365370] panfrost ffe40000.gpu: js fault, js=0, status=UNKNOWN, head=0x4ee5080, tail=0x4ee5080
[ 241.368606] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x5b, head=0x4ee5080, tail=0x4ee5080, sched_job=000000007582d8fa
[ 305.435077] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x31e8040, tail=0x31e8040
[ 305.439276] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x31e8040, tail=0x31e8040, sched_job=00000000c605b1d2
[ 320.680753] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x6399000, tail=0x6399000
[ 320.684963] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x6399000, tail=0x6399000, sched_job=00000000e866af59
[ 412.192315] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x4f803c0, tail=0x4f803c0
[ 412.196510] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x4f803c0, tail=0x4f803c0, sched_job=00000000da63aa67
[ 413.712020] panfrost ffe40000.gpu: js fault, js=0, status=UNKNOWN, head=0x30d8dc0, tail=0x30d8dc0
[ 413.715270] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x5b, head=0x30d8dc0, tail=0x30d8dc0, sched_job=000000002e740a23
[ 427.451520] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x30d9540, tail=0x30d9540
[ 427.455719] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x30d9540, tail=0x30d9540, sched_job=000000009b533bc6
[ 445.753029] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x4f35280, tail=0x4f35280
[ 445.757225] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x4f35280, tail=0x4f35280, sched_job=000000002725d206
[ 450.326993] panfrost ffe40000.gpu: js fault, js=0, status=DATA_INVALID_FAULT, head=0x4eee000, tail=0x4eee000
[ 450.331194] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x58, head=0x4eee000, tail=0x4eee000, sched_job=00000000432dac40
[ 465.444904] panfrost ffe40000.gpu: Unhandled Page fault in AS0 at VA 0x0000000000000000
Reason: TODO
raw fault status: 0x10002C2
decoded fault status: SLAVE FAULT
exception type 0xC2: TRANSLATION_FAULT_LEVEL2
access type 0x2: READ
source id 0x100
[ 465.494513] panfrost ffe40000.gpu: Unhandled Page fault in AS0 at VA 0x0000000000000000
Reason: TODO
raw fault status: 0x10002C2
decoded fault status: SLAVE FAULT
exception type 0xC2: TRANSLATION_FAULT_LEVEL2
access type 0x2: READ
source id 0x100
[ 465.554491] panfrost ffe40000.gpu: Unhandled Page fault in AS0 at VA 0x0000000000000000
Reason: TODO
raw fault status: 0x10002C2
decoded fault status: SLAVE FAULT
exception type 0xC2: TRANSLATION_FAULT_LEVEL2
access type 0x2: READ
source id 0x100
[ 465.624538] panfrost ffe40000.gpu: Unhandled Page fault in AS0 at VA 0x0000000000000000
Reason: TODO
raw fault status: 0x10002C2
decoded fault status: SLAVE FAULT
exception type 0xC2: TRANSLATION_FAULT_LEVEL2
access type 0x2: READ
source id 0x100
[ 465.704600] panfrost ffe40000.gpu: Unhandled Page fault in AS0 at VA 0x0000000000000000
Reason: TODO
raw fault status: 0x10002C2
decoded fault status: SLAVE FAULT
exception type 0xC2: TRANSLATION_FAULT_LEVEL2
access type 0x2: READ
source id 0x100
[ 465.794519] panfrost ffe40000.gpu: Unhandled Page fault in AS0 at VA 0x0000000000000000
Reason: TODO
raw fault status: 0x10002C2
decoded fault status: SLAVE FAULT
exception type 0xC2: TRANSLATION_FAULT_LEVEL2
access type 0x2: READ
source id 0x100
[ 465.894660] panfrost ffe40000.gpu: Unhandled Page fault in AS0 at VA 0x0000000000000000
Reason: TODO
raw fault status: 0x10002C2
decoded fault status: SLAVE FAULT
exception type 0xC2: TRANSLATION_FAULT_LEVEL2
access type 0x2: READ
source id 0x100
[ 465.962888] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x8, head=0x4ef2000, tail=0x4ef2100, sched_job=00000000b94a390e
[ 466.001956] panfrost ffe40000.gpu: js fault, js=1, status=DATA_INVALID_FAULT, head=0x6cac000, tail=0x6cac000
[ 466.006149] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7300, status=0x58, head=0x6cac000, tail=0x6cac000, sched_job=00000000914b5ba1
[ 467.203052] panfrost ffe40000.gpu: js fault, js=0, status=UNKNOWN, head=0x7acdb00, tail=0x7acdb00
[ 467.206325] panfrost ffe40000.gpu: gpu sched timeout, js=0, config=0x7300, status=0x5b, head=0x7acdb00, tail=0x7acdb00, sched_job=0000000079dfb17b
[jfl@MNJROGTKPRO ~]$
Edit: It looks like someone else had already reported this issue: Graphics glitches after upgrade to mesa 20.3 on Khadas VIM3 Pro (Mali G52 GPU) (#4157) · Issues · Mesa / mesa " Graphics glitches after upgrade to mesa 20.3 on Khadas VIM3 Pro (Mali G52 GPU)".
Robin Murphy @robmur01 · 1 day ago
The dmesg output looks a lot like you’re hitting the S922 coherency issue which was fixed in 5.11.