]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/shrinker: Only report objects with extra pinned pages as pinned
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 20 Apr 2016 11:09:50 +0000 (12:09 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 20 Apr 2016 12:44:19 +0000 (13:44 +0100)
commit8e9d6c2f244707b43a5cc099ce5236d0be8c6eab
treed0b3ea3fcaa533561f34fc4baceeea95f2e606b6
parenta3ec292d787c157dd503e3bec04ca7d70d5637f0
drm/i915/shrinker: Only report objects with extra pinned pages as pinned

When iterating over the bound list, we expect all objects there to have
their pages pinned (by the bound VMA). So only report those objects with
additional pin count on their pages as "pinned". These should be those
objects used for display and hardware access.

Reported-by: Akash Goel <akash.goel@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Akash Goel <akash.goel@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1461150592-27818-1-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_shrinker.c