diff options
author | Ben Widawsky <benjamin.widawsky@intel.com> | 2013-09-24 09:57:56 -0700 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-10-01 07:45:20 +0200 |
commit | bcccff847d1fdb53c2fae999a7f03facfa399bab (patch) | |
tree | 9f394c582355edb3d4daad34fb724935eeba9be1 /drivers/gpu/drm/i915/i915_gem_evict.c | |
parent | 874404252e26518b5c3327a75f9f81670298cc1e (diff) | |
download | lwn-bcccff847d1fdb53c2fae999a7f03facfa399bab.tar.gz lwn-bcccff847d1fdb53c2fae999a7f03facfa399bab.zip |
drm/i915: trace vm eviction instead of everything
Tracing vm eviction is really the event we care about. For the cases we
evict everything, we still will get the trace.
v2: Add the drm device to the trace since we might not be the only
device in the system. (Chris)
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_evict.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_evict.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_evict.c b/drivers/gpu/drm/i915/i915_gem_evict.c index 3a3981eb3012..b7376533633d 100644 --- a/drivers/gpu/drm/i915/i915_gem_evict.c +++ b/drivers/gpu/drm/i915/i915_gem_evict.c @@ -175,6 +175,8 @@ int i915_gem_evict_vm(struct i915_address_space *vm, bool do_idle) struct i915_vma *vma, *next; int ret; + trace_i915_gem_evict_vm(vm); + if (do_idle) { ret = i915_gpu_idle(vm->dev); if (ret) |