omapdrm + etnaviv memory leak
Tomi Valkeinen
tomi.valkeinen at ti.com
Thu May 24 08:39:33 UTC 2018
Hi Lucas,
On 23/05/18 11:53, Lucas Stach wrote:
>> With each run, I can see buffers being left lying around, visible in
>> both omapdrm's and etnaviv's 'gem' debugfs file. And they're there
>> even after killing X.
>>
>> If I try to rmmod etnaviv, I get the warnings below. Unloading
>> omapdrm is not possible, as it's being referenced by something
>> (presumably by etnaviv having imported omapdrm's dmabufs).
>>
>> I haven't debugged this much yet, but we do use dmabuf import &
>> export successfully with omapdrm and v4l2. Has etnaviv dmabuf
>> import/export been tested?
>
> Yes, dma-buf import/export with etnaviv is extensively being used, as
> we need to work with imx-drm on the scanout side and a V4L2 driven VPU
> for video-decode.
I managed to create a simple test case for this, and I can see the leak
happen without omapdrm too, with etna + vgem combination.
https://github.com/tomba/kmsxx/blob/etna-debug/utils/buftest.cpp
With etna_bo_map(), buffers leak.
Tomi
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
More information about the dri-devel
mailing list