]> Git Repo - linux.git/commit
drm/i915: Report the number of closed vma held by each context in debugfs
authorChris Wilson <[email protected]>
Mon, 7 Jan 2019 11:54:25 +0000 (11:54 +0000)
committerChris Wilson <[email protected]>
Mon, 7 Jan 2019 13:09:52 +0000 (13:09 +0000)
commitf6e8aa387171919572d3e7556a58a14862e8bf1c
tree9f6a7e2614a6482dfe2b5ebda2ea280b61883006
parente4fc69f24b07eca44dba5dab94c574d8602eabb8
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 <[email protected]>
Reviewed-by: Mika Kuoppala <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_debugfs.c
This page took 0.060893 seconds and 4 git commands to generate.