[Intel-gfx] [PATCH 2/7] drm/i915: Only refcount ppgtt if it actually is one

Daniel Vetter daniel.vetter at ffwll.ch
Thu Jul 31 10:18:49 CEST 2014


On Thu, Jul 31, 2014 at 9:39 AM, Daniel Vetter <daniel.vetter at ffwll.ch> wrote:
> On Thu, Jul 31, 2014 at 8:52 AM, Chris Wilson <chris at chris-wilson.co.uk> wrote:
>> On Wed, Jul 30, 2014 at 09:41:59PM +0200, Daniel Vetter wrote:
>>> This essentially unbreaks non-ppgtt operation where we'd scribble over
>>> random memory.
>>>
>>> While at it give the vm_to_ppgtt function a proper prefix and make it
>>> a bit more paranoid.
>>
>> Wrong direction. If you make ggtt/ppgtt more similar we can loose
>> having to write fragile code.
>
> So moving the kref into the address space? I guess that would work
> too, but I'm off for my extended w/e now ;-)

Ok got bored and tried to implement this, but it doesn't work out too
well. It needs a fair bit of reorg so that we can handle the global
gtt and the ppgtt with the same refcounting scheme and clean them up
properly. I think as a stop-gap this one here is better and the
refcounting unification needs to be done on top.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch



More information about the Intel-gfx mailing list