diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-01-07 11:54:25 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-01-07 13:09:52 +0000 |
commit | f6e8aa387171919572d3e7556a58a14862e8bf1c (patch) | |
tree | 9f6a7e2614a6482dfe2b5ebda2ea280b61883006 /drivers/gpu/drm/i915/selftests/mock_engine.h | |
parent | e4fc69f24b07eca44dba5dab94c574d8602eabb8 (diff) |
drm/i915: Report the number of closed vma held by each context in debugfs
Include the total size of closed vma when reporting the per_ctx_stats of
debugfs/i915_gem_objects.
Whilst adjusting the context tracking, note that we can simply use our
list of contexts in i915->contexts rather than circumlocute via
dev->filelist and the per-file context idr, with the result that we can
show objects allocated to different vm (i.e. contexts within a file).
We change the output to show every context of each client, with its own
unique set of objects (for full-ppgtt machines, i.e. gen7+, for older
hardware all objects are in the global gtt and so can not be associated
with a single context). That should result in no loss of information,
and for gen7+, no duplication of active objects.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190107115509.12523-2-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/selftests/mock_engine.h')
0 files changed, 0 insertions, 0 deletions