drm/i915/scheduler: Boost priorities for flips
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Nov 2016 20:41:05 +0000 (20:41 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Nov 2016 21:01:22 +0000 (21:01 +0000)
commit6b5e90f58c565f14e80365cb0afba53b5883821f
treed5e5d56f570f4cbe94143a5fecaa1a88471c24e8
parent9f792ebafe0079e6cedde726ea943bc0f412ff6b
drm/i915/scheduler: Boost priorities for flips

Boost the priority of any rendering required to show the next pageflip
as we want to avoid missing the vblank by being delayed by invisible
workload. We prioritise avoiding jank and jitter in the GUI over
starving background tasks.

v2: Descend dma_fence_array when boosting priorities.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161114204105.29171-10-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_display.c