path: root/drivers/gpu/drm/i915/gt/selftest_workarounds.c
diff options
authorChris Wilson <>2020-05-27 17:24:18 +0100
committerRodrigo Vivi <>2020-05-28 06:06:27 -0700
commit1f65efb624c4164bfd2e2a025fc25e8bfb651daa (patch)
tree0b95b77c336fd72e35622fb7d192c845b002315b /drivers/gpu/drm/i915/gt/selftest_workarounds.c
parent822d6bd1890dbeaedf661d30d2c5280e127ef4b3 (diff)
drm/i915/gt: Prevent timeslicing into unpreemptable requests
We have a I915_REQUEST_NOPREEMPT flag that we set when we must prevent the HW from preempting during the course of this request. We need to honour this flag and protect the HW even if we have a heartbeat request, or other maximum priority barrier, pending. As such, restrict the timeslicing check to avoid preempting into the topmost priority band, leaving the unpreemptable requests in blissful peace running uninterrupted on the HW. v2: Set the I915_PRIORITY_BARRIER to be less than I915_PRIORITY_UNPREEMPTABLE so that we never submit a request (heartbeat or barrier) that can legitimately preempt the current non-premptable request. Fixes: 2a98f4e65bba ("drm/i915: add infrastructure to hold off preemption on a request") Signed-off-by: Chris Wilson <> Cc: Tvrtko Ursulin <> Reviewed-by: Tvrtko Ursulin <> Link: (cherry picked from commit b72f02d78e4f257761ed003444ae52083f962076) Signed-off-by: Rodrigo Vivi <>
Diffstat (limited to 'drivers/gpu/drm/i915/gt/selftest_workarounds.c')
0 files changed, 0 insertions, 0 deletions