Skip to content

Commit

Permalink
drm/i915: Do not check or a stalled pageflip prior to it being queued
Browse files Browse the repository at this point in the history
When we queue the command or operation to change the scanout address, we
mark the flip as in progress. We can use this flag to prevent us from
checking for a stalled flip prior to its existence!

Signed-off-by: Chris Wilson <[email protected]>
Reviewed-by: Ville Syrjälä <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
  • Loading branch information
ickle authored and danvet committed Aug 14, 2015
1 parent ed75a55 commit 908565c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -11236,6 +11236,9 @@ static bool __intel_pageflip_stall_check(struct drm_device *dev,
if (atomic_read(&work->pending) >= INTEL_FLIP_COMPLETE)
return true;

if (atomic_read(&work->pending) < INTEL_FLIP_PENDING)
return false;

if (!work->enable_stall_check)
return false;

Expand Down

0 comments on commit 908565c

Please sign in to comment.