This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: Debugging GPU / Video memory problems

Part Number: AM5728


Hello everyone, can I have some pointers on debugging GPU / VPE / VIP related issues on Weston and Linux (4.14) and SGX (1.14.3699939).

We have HDMI input and output working independently. Problem arises when we run the input and output simultaneously.

It seems to suggest video memory is running low, but setting the "cma" to a larger value (512MiB  from 125MiB) from U-Boot runs into the same issue eventually.

==== vCreate_surface ================================
wlpvr: Creating Wayland Client surface 2 buffers for process pid=2683!
wlpvr: ERROR: GetBuffers:739: PVRSRVMapDmaBuf failed
wlpvr: ERROR: CreateDrawable:680: Could not get buffers!
[620] vCreate_surface: pnative=0xa97ae7d0, psurface=0xa97ae7a0, w=1856, h=1014, egl.dpy=1
eglGetError 0x3003 EGL_BAD_ALLOC

vpe-common:vpe_output_init [382] count:6  vpe->disp_bufs:0xb2309530

display-wayland::get_buffers[285]  count:1

display-wayland::alloc_buffers [260] n:1  bufs:0xb2309a30, size:4

display-wayland:alloc_buffers [272] buffer alloced 0:0xb2309a40

vpe o/p: QBUF failed: Invalid argument, index = 3

We can run the application with GDB, but I'm hoping there is GPU specific debug tools.

Thanks,

Adam