drm/i915: Skip waking the device to service pwrite
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 19 Oct 2017 06:37:33 +0000 (07:37 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 19 Oct 2017 12:56:38 +0000 (13:56 +0100)
commit8bd8181590501bc0bae2b6bd9f38d1371e9413a3
tree4afadfddb9cc8a6ad2805ce88ae2d0d947ade389
parent2f26cdc0e2e64b1af10e0885a251fbd38e4b2336
drm/i915: Skip waking the device to service pwrite

If the device is in runtime suspend, resuming takes time and reduces our
powersaving. If this was for a small write into an object, that resume
will take longer than any savings in using the indirect GGTT access to
avoid the cpu cache.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171019063733.31620-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c