[Mesa-dev] leak of gem_objects on intel i965

Lampersperger Andreas lampersperger.andreas at heidenhain.de
Tue Jun 14 06:21:13 PDT 2011


Which Versions of 

libdrm 
mesa 
xf86_video_intel
xorg-server
gtkglext
linux-kernel

do you use?

You think the most suspect part is i915.ko? I watched (via systemtap) all calls to drm_gem_object_alloc(), drm_gem_object_free(), and to drm_gem_object_destroy() (in drm.ko) and I saw that with every realize/unrealize of simple.c there are 2 drm_gem_object_alloc() calls (between other drm_gem_object_allocs/frees) where I cannot found a suitable drm_gem_object_free or .._destroy call. This leads me to suspect the user-space. Or is this wrong, that for every drm_gem_object_alloc()-call there have to be a drm_gem_object_free()-call?

Can you give me some hint, where to start debugging/watching in i915.ko? 

-Andreas


-----Ursprüngliche Nachricht-----
Von: Chris Wilson [mailto:chris at chris-wilson.co.uk] 
Gesendet: Dienstag, 14. Juni 2011 13:37
An: Lampersperger Andreas; mesa-dev at lists.freedesktop.org
Betreff: Re: AW: [Mesa-dev] leak of gem_objects on intel i965

On Tue, 14 Jun 2011 13:05:56 +0200, Lampersperger Andreas <lampersperger.andreas at heidenhain.de> wrote:
> Hello Chris,
> 
> I have modified the simple.c from the gtkglext examples. Just replace in gtkglext-1.2.0/examples the original simple.c with the attached version.

Builds fine. I see a flashing quadric (every other frame, the gtkglarea
appears unrealized) and watching /sys/kernel/debug/dri/0/i915_gem_objects,
the number of bo remains static. I think the most likely suspect is
i915.ko. Over the years we've had a number of gem leaks mostly associated
with vma references and I'm pretty sure that they have not all been
backported to 2.6.33
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

-------------- next part --------------
-------------------------------------------------------------------------------------------------------
Registergericht: Traunstein / Registry Court: HRB 275 ? Sitz / Head Office: Traunreut
Aufsichtsratsvorsitzender / Chairman of Supervisory Board: Rainer Burkhard
Geschäftsführung / Management Board: Thomas Sesselmann (Vorsitzender / Chairman),
Michael Grimm, Matthias Fauser, Sebastian Tondorf

E-Mail Haftungsausschluss / E-Mail Disclaimer: http://www.heidenhain.de/disclaimer



More information about the mesa-dev mailing list