drm/i915/display: Apply interactive priority to explicit flip fences
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Jan 2021 20:44:54 +0000 (20:44 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Jan 2021 23:22:33 +0000 (23:22 +0000)
commitf99e67f1b929635655ff8419e36751f3bf44f1ae
treef441d869149f4ee63dd39105a54e3afd2a3c406b
parentd60d3374d343304b61df2e774e2ef4574c604852
drm/i915/display: Apply interactive priority to explicit flip fences

Currently, if a modeset/pageflip needs to wait for render completion to
an object, we boost the priority of that rendering above all other work.
We can apply the same interactive priority boosting to explicit fences
that we can unwrap into a native i915_request (i.e. sync_file).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210119204454.10343-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/gem/i915_gem_object.h
drivers/gpu/drm/i915/gem/i915_gem_wait.c