summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_evict.c
diff options
context:
space:
mode:
authorBen Widawsky2013-09-24 18:57:56 +0200
committerDaniel Vetter2013-10-01 07:45:20 +0200
commitbcccff847d1fdb53c2fae999a7f03facfa399bab (patch)
tree9f394c582355edb3d4daad34fb724935eeba9be1 /drivers/gpu/drm/i915/i915_gem_evict.c
parentdrm/i915: remove "extern" keywords from intel_drv.h functions (diff)
downloadkernel-qcow2-linux-bcccff847d1fdb53c2fae999a7f03facfa399bab.tar.gz
kernel-qcow2-linux-bcccff847d1fdb53c2fae999a7f03facfa399bab.tar.xz
kernel-qcow2-linux-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.c2
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)