panfrost: INSTR_INVALID_ENC error with test app
- OS: Linux
- GPU: Mali G52
- Kernel version 5.10
- Mesa version: 22.1.2
When running a test application, the kernel will throw the following errors:
[32803.462679] panfrost 13040000.mali: js fault, js=0, status=INSTR_INVALID_ENC, head=0x6136600, tail=0x6136600
[32803.463958] panfrost 13040000.mali: gpu sched timeout, js=0, config=0x7300, status=0x51, head=0x6136600, tail=0x6136600, sched_job=4a32c17f
I ran the test application with the following command line to get relevant debug data:
PAN_MESA_DEBUG="trace","sync" apitrace trace --api egl test_app
Here's the apitrace output as well as the single pandecode that comes out: (This all happens on the first frame):
As can be seen from the apitrace, the app is using eglCreateImageKHR and there may be bugs in the test app. Regardless, it seems that this may be exposing a real bug in the GPU driver.
Edited by Chris Healy