Panfrost mapping error on rk3399
System information
- OS: Debian GNU/Linux
- GPU: mali-t860 (rk3399)
- Kernel version: Linux armelle 5.6.0-07637-g185ebf43e3274 #1 (closed) SMP PREEMPT Thu Apr 2 20:05:45 CEST 2020 aarch64 GNU/Linux
- Mesa version: 3.1 Mesa 20.0.4
- Xserver version: X.Org X Server 1.20.8
- Desktop manager and compositor: awesome window manager (no compositor)
Describe the issue
When starting X11 on Linux on a Samsung Chromebook Plus (rk3399), if glamor is available, graphics will start, a bad mapping happens at the gpu:
[ 12.483722] DMA-API: panfrost ff9a0000.gpu: mapping sg segment longer than device claims to support [len=184320] [max=65536]
Then lots of gpu errors follow:
[ 24.551810] panfrost ff9a0000.gpu: js fault, js=0, status=INSTR_OPERAND_FAULT, head=0x72c4e00, tail=0x72c4e00
[ 24.551890] panfrost ff9a0000.gpu: gpu sched timeout, js=0, config=0x3300, status=0x53, head=0x72c4e00, tail=0x72c4e00, sched_job=0000000085362b74
Graphical artifacts are visible and desktop is unusable. Removing glamor prevents Xorg from using the gpu.