]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Per-process stats work better when evaluated per-process
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 19 Mar 2014 13:45:45 +0000 (13:45 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 20 Mar 2014 14:09:21 +0000 (15:09 +0100)
commitf0f304602470cffb9c01f3a0c82976de7ee31f8c
treeea1ef00091bbe6f11a676e62a745bb04603245da
parent140747271df6854f32d2fc8ece1c673bbe1e1853
drm/i915: Per-process stats work better when evaluated per-process

The idea of printing objects used by each process is to judge how each
process is using them. This means that we need to evaluate whether the
object is bound for that particular process, rather than just whether it
is bound into the global GTT.

v2: Restore the non-full-ppgtt path for simplicity as we may not even
    create vma with older hardware.

v3: Tweak handling of global entries and default context entries.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ben Widawsky <benjamin.widawsky@intel.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_context.c