kvim2-gentoo ~ # dmesg | grep panfrost
[ 13.597976] panfrost d00c0000.gpu: clock rate = 666666666
[ 13.598073] panfrost d00c0000.gpu: mali-t820 id 0x820 major 0x1 minor 0x0 status 0x0
[ 13.598080] panfrost d00c0000.gpu: features: 00000000,101e76ff, issues: 00000000,24040400
[ 13.598088] panfrost d00c0000.gpu: Features: L2:0x07110206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002821 AS:0xff JS:0x7
[ 13.598093] panfrost d00c0000.gpu: shader_present=0x7 l2_present=0x1
[ 13.598180] panfrost d00c0000.gpu: GPU Fault 0x000000ad (UNKNOWN) at 0x33c299f2c0d9d62d
[ 13.598185] panfrost d00c0000.gpu: There were multiple GPU faults - some have not been reported
[ 13.605895] panfrost d00c0000.gpu: error powering up gpu
[ 13.622361] panfrost d00c0000.gpu: Fatal error during GPU init
[ 13.632411] panfrost: probe of d00c0000.gpu failed with error -12
clearly the GPU reports some faults.
I am curious to know if people see similar of same faults.
fwiw another box shows same except
[ 14.022634] panfrost d00c0000.gpu: GPU Fault 0x00000088 (UNKNOWN) at 0x000000e7e733c1c0
so I guess Fault and Address are somewhat random
^ I think the last few commits on that branch are the proposed longer-term fixes; I haven’t had much time to test anything recently so I’ve not tested them. Applications and usage will be user/device specific but from a panfrost perspective all S912 hardware is identical. I’ve never used panfrost for desktop tasks (only Kodi) so have no knowledge of other use cases.
Going from mainline kernel 5.3.1 to 5.4.0, panfrost does now init upon modprobe but he ‘GPU Fault 0x… (UNKNOWN) at 0x…’ is still there upon boot.
Moreover, as when I applied d0a03a1870329ebd76ab6affcfa3f103183ea771 and commit/5c46c60ef67f0d417ea29602e21f435b5da19a3e to 5.3.1, Xorg unfortunately fails to start …
Note that Xorg has always worked for me.
Of course, now that panfrost issues are ‘fixed’, maybe I need to configure something extra for making X find the drivers, but then: also note I did never configure anything to make Xorg work before.
Looks like I will have to follow some patch to make panfrost work on vim2 as I just tried without fbturbo drivers and it fails to load display manager. Whole panfrost is already present in the kernel.
I will check the above patch and compare it with the current kernel.
I have X11 working again and panfrost at least works perfect for sure with kmscube directly. X11 glxinfo also mentions ‘direct rendering’. Video upto HD seems to work. 4K is too slow to follow sound. There was one weird gotcha on my (gentoo) linux: X11 would probe card0 and try to display on card1 so I had to rename /dev/dri/card1 to e.g. /dev/dri/card1_ to make X11 display on probed card0.
I tried your advice but that didn’t help. I have panfrost in lsmod but lightDM fails to load.
Also panfrost have nothing to do with video playback as video decoding is done by vpu and some of the video decoding format support is just accepted into mainline kernel. Do either you’re using custom kernel or its software decoding as s912 is quite powerful to process upto 1080p without any issue.