[Intel-gfx] [RFC 2/3] drm/i915: Track aggregate per-object VMA pin count

Chris Wilson chris at chris-wilson.co.uk
Thu Apr 21 12:53:56 UTC 2016


On Thu, Apr 21, 2016 at 01:15:57PM +0100, Chris Wilson wrote:
> On Thu, Apr 21, 2016 at 01:05:52PM +0100, Tvrtko Ursulin wrote:
> > From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> > 
> > This allows trivial (non-iterating) i915_gem_obj_is_pinned
> > implementation which in turns prevents i915_gem_madvise_ioctl
> > showing up in profiles in benchmarks like SynMark2/OglDrvCtx.
> 
> madvise doesn't need to check is-pinned at all.

And if you are keen on solving the madvise contention, I've some patches
to migrate it from struct_mutex to its own obj->mm.mutex. The patch is
in very early (functional) state:
https://cgit.freedesktop.org/~ickle/linux-2.6/commit/?h=tasklet&id=239350fdd06f5aca4112c3d046979b281b7adf60
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list