Rendering issue on Librem 5 (Vivante GC7000Lite)
System information
System:
Host: mobian Kernel: 5.15-librem5 arch: aarch64 bits: 64 compiler: gcc
v: 11.3.0 Desktop: phoc dm: N/A Distro: Debian GNU/Linux bookworm/sid
CPU:
Info: quad core model: N/A variant: cortex-a53 bits: 64 type: MCP
arch: ARMv8 rev: 4
Speed (MHz): avg: 1500 min/max: 1000/1500 cores: 1: 1500 2: 1500 3: 1500
4: 1500 bogomips: N/A
Graphics:
Device-1: gc driver: etnaviv_gpu v: N/A bus-ID: N/A
chip-ID: vivante:38000000
Device-2: imx8mq-cdns-dp driver: cdns_mhdp_imx v: kernel bus-ID: N/A
chip-ID: nxp:32c00000
Device-3: imx8mq-dcss driver: imx_dcss v: kernel bus-ID: N/A
chip-ID: nxp:32e00000
Display: server: Xwayland v: 22.1.3 compositor: phoc driver: N/A note: X
driver n/a display-ID: localhost:10.0 note: <missing: xdpyinfo/xrandr>
Monitor-1: DSI-1 size-res: N/A
Describe the issue
On the Librem 5 the screen is all glitchy (see image) with the last available Mesa on Mobian (22.2.0~rc1).
Regression
I cannot say precisely when the bug was introduced but mesa 21.3.7-1 works fine.
Log files as attachment
Result from dmesg | grep "drm\|vga\|gpu\|dsi\|dri" -w
:
[ 0.150223] platform 30a00000.mipi-dsi: Fixing up cyclic dependency with 30320000.lcd-controller
[ 3.039081] etnaviv etnaviv: bound 38000000.gpu (ops 0xffff800008bb2f68)
[ 3.045809] etnaviv-gpu 38000000.gpu: model: GC7000, revision: 6214
[ 3.054061] [drm] Initialized etnaviv 1.3.0 20151214 for etnaviv on minor 0
[ 3.080973] nwl-dsi 30a00000.mipi-dsi: [drm:nwl_dsi_probe] Using LCDIF as input source
[ 3.103477] led-backlight backlight-dsi: Not enough levels defined
[ 3.110087] nwl-dsi 30a00000.mipi-dsi: [drm:nwl_dsi_host_attach] lanes=4, format=0x0 flags=0x7
[ 3.118719] panel-mantix-mlaf057we51 30a00000.mipi-dsi.0: 720x1440@63 24bpp dsi 4dl - ready
[ 3.128853] [drm] Initialized mxsfb-drm 1.0.0 20160824 for 30320000.lcd-controller on minor 1
[ 3.373996] mxsfb 30320000.lcd-controller: [drm] fb0: mxsfb-drmdrmfb frame buffer device
[ 9.636376] systemd[1]: Starting Load Kernel Module drm...
[ 9.804763] systemd[1]: modprobe@drm.service: Deactivated successfully.
[ 9.812157] systemd[1]: Finished Load Kernel Module drm.
[ 11.474768] cdns-mhdp-imx 32c00000.hdmi: [drm:cdns_mhdp_read_fw_version [cdns_mhdp_drmcore]] firmware version: 50d385ac
[ 11.512001] [drm] Initialized imx-dcss 1.0.0 20190917 for 32e00000.display-controller on minor 2
[ 11.522727] [drm] Connector status: 0
[ 11.528888] imx-dcss 32e00000.display-controller: [drm] Cannot find any crtc or sizes
[ 11.542558] [drm] Connector status: 0
[ 11.542604] imx-dcss 32e00000.display-controller: [drm] Cannot find any crtc or sizes
[ 11.554239] [drm] Connector status: 0
[ 11.554298] imx-dcss 32e00000.display-controller: [drm] Cannot find any crtc or sizes
[ 16.690286] [drm] Connector status: 0
Screenshots/video files
Any extra information would be greatly appreciated
I have confirmed that it's mesa related (see here for original Mobian issue).
I don't know if it can help but kmscube
does not seem to work, neither with the newer nor the older mesa.