gpu reset vs modeset fix, plus page_flip removal
Subsystems (2)
cover gpu reset vs modeset fix, plus page_flip removal
Hi all,
This fixes the dreaded gpu reset vs. modeset deadlocks. And since the defunct legacy page_flip code is the reason for a bunch of special cases I did remove that too, on Maarten's request.
Please review, this is currently blocking extended CI runs on our haswell farm rather badly. The critical patches are up to patch 5.
Compared to last time around I've dropped two patches of dubious benefit, they broke gen3/4 reset a bit and aren't really needed.
Thanks,
Daniel
Daniel Vetter (9):
drm/i915: Nuke legacy flip queueing code
drm/i915: Unbreak gpu reset vs. modeset locking
drm/i915: Avoid the gpu reset vs. modeset deadlock drm/i915: Push i915_sw_fence_wait into the nonblocking atomic commit drm/i915: More surgically unbreak the modeset vs reset deadlock drm/i915: Rip out legacy page_flip completion/irq handling drm/i915: adjust has_pending_fb_unpin to atomic
drm/i915: Remove intel_flip_work infrastructure
drm/i915: Drop unpin stall in atomic_prepare_commit
drivers/gpu/drm/i915/i915_debugfs.c | 70 --- drivers/gpu/drm/i915/i915_drv.c | 1 - drivers/gpu/drm/i915/i915_drv.h | 10 +- drivers/gpu/drm/i915/i915_gem.c | 2 - drivers/gpu/drm/i915/i915_irq.c | 151 +---- drivers/gpu/drm/i915/intel_display.c | 1129 +++------------------------------- drivers/gpu/drm/i915/intel_drv.h | 26 +- drivers/gpu/drm/i915/intel_sprite.c | 8 +- 8 files changed, 94 insertions(+), 1303 deletions(-)
Signature · 6 lines
2.13.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/9 drm/i915: Nuke legacy flip queueing code
Just a very minimal patch to nuke that code. Lots of the flip interrupt handling stuff is still around.
--- drivers/gpu/drm/i915/i915_drv.h | 5 - drivers/gpu/drm/i915/intel_display.c | 656 ----------------------------------- 2 files changed, 661 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +0 -5
@@ -715,11 +715,6 @@ struct drm_i915_display_funcs {void (*fdi_link_train)(struct intel_crtc *crtc,const struct intel_crtc_state *crtc_state);void (*init_clock_gating)(struct drm_i915_private *dev_priv); -int (*queue_flip)(struct drm_device *dev,struct drm_crtc *crtc, -struct drm_framebuffer *fb, -struct drm_i915_gem_object *obj, -struct drm_i915_gem_request *req, -uint32_t flags);void (*hpd_irq_setup)(struct drm_i915_private *dev_priv);/* clock updates for mode set */ /* cursor updates */
drivers/gpu/drm/i915/intel_display.c +0 -656
686 lines not on this page · raw message
Signature · 6 lines
2.13.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/9 drm/i915: Unbreak gpu reset vs. modeset locking
In reply to Daniel VetterTaking the modeset locks unconditionally isn't the greatest idea, because atm that part is still broken and times out (and then atomic keels over). And there's really no reason to do so, the old code didn't do that either.
To make the patch a bit simpler let's also nuke 2 cases that are only around for the old mmioflip paths. Atomic nonblocking workers will not die (minus bugs) when a gpu reset happens.
And of course this doesn't fix any of the gpu reset vs. modeset deadlock fun, but it at least stop modern CI machines from keeling over all over the place for no reason at all.
And we still have the explicit testcases to run the fake gpu reset, so coverage isn't that much worse.
v2: Split out additional changes on top, restrict this to purely reducing the critical section of modeset locks.
v2: Review from Maarten
- update comments
- don't oops when state is NULL in intel_finish_reset, but try to at least still drop locks properly. The hw is going to be toast anyway.
--- drivers/gpu/drm/i915/intel_display.c | 60 +++++++++++------------------------- 1 file changed, 18 insertions(+), 42 deletions(-)
drivers/gpu/drm/i915/intel_display.c +18 -42
@@ -3413,26 +3413,6 @@ static void intel_complete_page_flips(struct drm_i915_private *dev_priv)intel_finish_page_flip_cs (dev_priv, crtc->pipe); } -static void intel_update_primary_planes (struct drm_device *dev) -{ -struct drm_crtc *crtc; - -for_each_crtc (dev, crtc) { -struct intel_plane *plane =to_intel_plane (crtc->primary); -struct intel_plane_state *plane_state = -to_intel_plane_state (plane->base.state); - -if (plane_state->base.visible) { -trace_intel_update_plane (&plane->base, -to_intel_crtc (crtc)); - - plane->update_plane (plane, -to_intel_crtc_state (crtc->state), - plane_state); - } - } -} - static int __intel_display_resume(struct drm_device *dev, struct drm_atomic_state *state,
@@ -3485,6 +3465,12 @@ void intel_prepare_reset(struct drm_i915_private *dev_priv)struct drm_atomic_state *state;int ret; + +/* reset doesn't touch the display */ +if (!i915.force_reset_modeset_test && + !gpu_reset_clobbers_display (dev_priv)) +return ; +/* * Need mode_config.mutex so that we don't * trample ongoing ->detect() and whatnot.
@@ -3498,12 +3484,6 @@ void intel_prepare_reset(struct drm_i915_private *dev_priv)drm_modeset_backoff (ctx); } - -/* reset doesn't touch the display, but flips might get nuked anyway, */ -if (!i915.force_reset_modeset_test && - !gpu_reset_clobbers_display (dev_priv)) -return ; -/* * Disabling the crtcs gracefully seems nicer. Also the * g33 docs say we should at least disable all the planes.
@@ -3533,6 +3513,14 @@ void intel_finish_reset(struct drm_i915_private *dev_priv)struct drm_atomic_state *state = dev_priv->modeset_restore_state;int ret; +/* reset doesn't touch the display */ +if (!i915.force_reset_modeset_test && + !gpu_reset_clobbers_display (dev_priv)) +return ; + +if (!state) + goto unlock; +/* * Flips in the rings will be nuked by the reset, * so complete all pending flips so that user space
@@ -3544,22 +3532,10 @@ void intel_finish_reset(struct drm_i915_private *dev_priv)/* reset doesn't touch the display */ if (!gpu_reset_clobbers_display (dev_priv)) { -if (!state) { -/* -* Flips in the rings have been nuked by the reset, -* so update the base address of all primary -* planes to the the last fb to make sure we're -* showing the correct fb after a reset. -* -* FIXME: Atomic will make this obsolete since we won't schedule -* CS-based flips (which might get lost in gpu resets) any more. -*/ -intel_update_primary_planes (dev); - }else { - ret =__intel_display_resume (dev, state, ctx); +/* for testing only restore the display */ + ret =__intel_display_resume (dev, state, ctx);if (ret)DRM_ERROR ("Restoring old state failed with %i\n" , ret); - } }else {/* * The display has been reset as well,
@@ -3583,8 +3559,8 @@ void intel_finish_reset(struct drm_i915_private *dev_priv)intel_hpd_init (dev_priv); } -if (state) -drm_atomic_state_put (state); +drm_atomic_state_put (state); +unlock:drm_modeset_drop_locks (ctx);drm_modeset_acquire_fini (ctx);mutex_unlock (&dev->mode_config.mutex);
Signature · 6 lines
2.13.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/9 drm/i915: Avoid the gpu reset vs. modeset deadlock
In reply to Daniel Vetter... using the biggest hammer we have. This is essentially a weaponized version of the timeout-based wedging Chris added in
commit 36703e79a982c8ce5a8e43833291f2719e92d0d1
Author: Chris Wilson <[email protected]> Date: Thu Jun 22 11:56:25 2017 +0100
drm/i915: Break modeset deadlocks on reset
Because defense-in-depth is good it's good to still have both. Also note that with the locking change we can now restrict this a lot (old gpus and special testing only), so this doesn't kill the TDR benefits on at least anything remotely modern.
And futuremore with a few tricks it should be possible to make a much more educated guess about whether an atomic commit is stuck waiting on the gpu (atomic_t counting the pending i915_sw_fence used by the atomic modeset code should do it), so we can improve this.
But for now just start with something that is guaranteed to recover faster, for much better CI througput.
This defacto reverts TDR on these platforms, but there's not really a single commit to specify as the sole offender.
--- drivers/gpu/drm/i915/intel_display.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/i915/intel_display.c +5 -0
@@ -3471,6 +3471,11 @@ void intel_prepare_reset(struct drm_i915_private *dev_priv) !gpu_reset_clobbers_display(dev_priv))return ; +/* We have a modeset vs reset deadlock, defensively unbreak it. +* +* FIXME: We can do a _lot_ better, this is just a first iteration.*/ +i915_gem_set_wedged (dev_priv); +/* * Need mode_config.mutex so that we don't * trample ongoing ->detect() and whatnot.
Signature · 6 lines
2.13.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 3/9] drm/i915: Avoid the gpu reset vs. modeset deadlock
Quoting Daniel Vetter (2017-07-19 13:54:56)
Quoted 40 lines
... using the biggest hammer we have. This is essentially a weaponized version of the timeout-based wedging Chris added in
commit
36703e79a982c8ce5a8e43833291f2719e92d0d1Author: Chris Wilson <[email protected]> Date: Thu Jun 22 11:56:25 2017 +0100drm/i915: Break modeset deadlocks on reset
Because defense-in-depth is good it's good to still have both. Also note that with the locking change we can now restrict this a lot (old gpus and special testing only), so this doesn't kill the TDR benefits on at least anything remotely modern.
And futuremore with a few tricks it should be possible to make a much more educated guess about whether an atomic commit is stuck waiting on the gpu (
atomic_tcounting the pendingi915_sw_fenceused by the atomic modeset code should do it), so we can improve this.But for now just start with something that is guaranteed to recover faster, for much better CI througput.
This defacto reverts TDR on these platforms, but there's not really a single commit to specify as the sole offender.
Fixes 4680816be336 ("drm/i915: Wait first for submission, before waiting for request completion")Fixes 221fe7994554 ("drm/i915: Perform a direct reset of the GPU from the waiter")Cc Chris Wilson <[email protected]>Cc Mika Kuoppala <[email protected]>Cc Joonas Lahtinen <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/gpu/drm/i915/intel_display.c +0
-0
drivers/gpu/drm/i915/intel_display.c void intel_prepare_reset(struct drm_i915_private *dev_priv) · line 3476
Quoted 6 lines
drivers/gpu/drm/i915/intel_display.c +3
-0@@ -3471,6 +3471,11 @@ void intel_prepare_reset(struct drm_i915_private *dev_priv) !gpu_reset_clobbers_display(dev_priv))return ; +/* We have a modeset vs reset deadlock, defensively unbreak it. +* +* FIXME: We can do a _lot_ better, this is just a first iteration.*/
You should keep the error message for wedging the device. If all goes well it is removed in a few patches, so shouldn't be an eyesore for long.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 3/9] drm/i915: Avoid the gpu reset vs. modeset deadlock
Quoted 44 lines · Chris Wilson
Quoting Daniel Vetter (2017-07-19 13:54:56)
Quoted 43 lines
... using the biggest hammer we have. This is essentially a weaponized version of the timeout-based wedging Chris added in
commit
36703e79a982c8ce5a8e43833291f2719e92d0d1Author: Chris Wilson <[email protected]> Date: Thu Jun 22 11:56:25 2017 +0100drm/i915: Break modeset deadlocks on reset
Because defense-in-depth is good it's good to still have both. Also note that with the locking change we can now restrict this a lot (old gpus and special testing only), so this doesn't kill the TDR benefits on at least anything remotely modern.
And futuremore with a few tricks it should be possible to make a much more educated guess about whether an atomic commit is stuck waiting on the gpu (
atomic_tcounting the pendingi915_sw_fenceused by the atomic modeset code should do it), so we can improve this.But for now just start with something that is guaranteed to recover faster, for much better CI througput.
This defacto reverts TDR on these platforms, but there's not really a single commit to specify as the sole offender.
Fixes 4680816be336 ("drm/i915: Wait first for submission, before waiting for request completion")Fixes 221fe7994554 ("drm/i915: Perform a direct reset of the GPU from the waiter")Cc Chris Wilson <[email protected]>Cc Mika Kuoppala <[email protected]>Cc Joonas Lahtinen <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/gpu/drm/i915/intel_display.c +0
-0@@ -3471,6 +3471,11 @@ void intel_prepare_reset(struct drm_i915_private *dev_priv) !gpu_reset_clobbers_display(dev_priv))return ;
Quoted 7 lines
drivers/gpu/drm/i915/intel_display.c void intel_prepare_reset(struct drm_i915_private *dev_priv) · line 3476
Quoted 3 lines
drivers/gpu/drm/i915/intel_display.c +3
-0+/* We have a modeset vs reset deadlock, defensively unbreak it. +* +* FIXME: We can do a _lot_ better, this is just a first iteration.*/ You should keep the error message for wedging the device. If all goes well it is removed in a few patches, so shouldn't be an eyesore for long.
Yeah makes sense, just in case the next patches need to be reverted for some reasons. That's why I split it ou. Something like
DRM_ERROR("Wedging gpu to unblock modesets\n");
and then remove that again 2 patches later?
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 3/9] drm/i915: Avoid the gpu reset vs. modeset deadlock
Quoted 53 lines · Daniel Vetter
Quoted 44 lines · Chris Wilson
Quoting Daniel Vetter (2017-07-19 13:54:56)
Quoted 43 lines
... using the biggest hammer we have. This is essentially a weaponized version of the timeout-based wedging Chris added in
commit
36703e79a982c8ce5a8e43833291f2719e92d0d1Author: Chris Wilson <[email protected]> Date: Thu Jun 22 11:56:25 2017 +0100drm/i915: Break modeset deadlocks on reset
Because defense-in-depth is good it's good to still have both. Also note that with the locking change we can now restrict this a lot (old gpus and special testing only), so this doesn't kill the TDR benefits on at least anything remotely modern.
And futuremore with a few tricks it should be possible to make a much more educated guess about whether an atomic commit is stuck waiting on the gpu (
atomic_tcounting the pendingi915_sw_fenceused by the atomic modeset code should do it), so we can improve this.But for now just start with something that is guaranteed to recover faster, for much better CI througput.
This defacto reverts TDR on these platforms, but there's not really a single commit to specify as the sole offender.
Fixes 4680816be336 ("drm/i915: Wait first for submission, before waiting for request completion")Fixes 221fe7994554 ("drm/i915: Perform a direct reset of the GPU from the waiter")Cc Chris Wilson <[email protected]>Cc Mika Kuoppala <[email protected]>Cc Joonas Lahtinen <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/gpu/drm/i915/intel_display.c +0
-0@@ -3471,6 +3471,11 @@ void intel_prepare_reset(struct drm_i915_private *dev_priv) !gpu_reset_clobbers_display(dev_priv))return ;Quoted 7 lines
drivers/gpu/drm/i915/intel_display.c void intel_prepare_reset(struct drm_i915_private *dev_priv) · line 3476
Quoted 3 lines
drivers/gpu/drm/i915/intel_display.c +3
-0+/* We have a modeset vs reset deadlock, defensively unbreak it. +* +* FIXME: We can do a _lot_ better, this is just a first iteration.*/ You should keep the error message for wedging the device. If all goes well it is removed in a few patches, so shouldn't be an eyesore for long.
Quoted 6 lines
Yeah makes sense, just in case the next patches need to be reverted for some reasons. That's why I split it ou. Something like
DRM_ERROR("Wedging gpu to unblock modesets\n");and then remove that again 2 patches later?
After thinking about this a bit more, s/DRM_ERROR/DRM_DEBUG_KMS/ or so. We know we can deadlock here, complaining about that only spams dmesg and results in noise in CI, hiding worse stuff. The timeout based wedging as fallback should have a DRM_ERROR since it's unexpected, this one here imo sholdn't. And with the follow-up patches it won't be unconditional anymore (if we don't have to revert them again).
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/9 drm/i915: Push i915_sw_fence_wait into the nonblocking atomic commit
In reply to Daniel VetterBlocking in a worker is ok, that's what the unbound_wq is for. And it unifies the paths between the blocking and nonblocking commit, giving me just one path where I have to implement the deadlock avoidance trickery in the next patch.
--- drivers/gpu/drm/i915/intel_display.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)
drivers/gpu/drm/i915/intel_display.c +7 -8
@@ -12397,6 +12397,8 @@ static void intel_atomic_commit_tail(struct drm_atomic_state *state)unsigned crtc_vblank_mask =0 ;int i; +i915_sw_fence_wait (&intel_state->commit_ready); +drm_atomic_helper_wait_for_dependencies (state);if (intel_state->modeset)
@@ -12564,10 +12566,7 @@ intel_atomic_commit_ready(struct i915_sw_fence *fence,switch (notify) {case FENCE_COMPLETE : -if (state->base.commit_work.func) -queue_work (system_unbound_wq, &state->base.commit_work);break ; -case FENCE_FREE : { struct intel_atomic_helper *helper =
@@ -12671,14 +12670,14 @@ static int intel_atomic_commit(struct drm_device *dev, }drm_atomic_state_get (state); -INIT_WORK (&state->commit_work, - nonblock ? intel_atomic_commit_work :NULL ); +INIT_WORK (&state->commit_work, intel_atomic_commit_work);i915_sw_fence_commit (&intel_state->commit_ready); -if (!nonblock) { -i915_sw_fence_wait (&intel_state->commit_ready); +if (nonblock) +queue_work (system_unbound_wq, &state->commit_work); +else intel_atomic_commit_tail (state); - } +return 0 ; }
Signature · 6 lines
2.13.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 4/9] drm/i915: Push i915_sw_fence_wait into the nonblocking atomic commit
Quoting Daniel Vetter (2017-07-19 13:54:57)
Quoted 1 line
Blocking in a worker is ok,
but needlessly inefficient,
Quoted 4 lines
that's what the
unbound_wqis for. And it
unifies the paths between the blocking and nonblocking commit, giving me just one path where I have to implement the deadlock avoidance trickery in the next patch.
For reference, I did that the other way by moving it all over to fences. -Chris
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 4/9] drm/i915: Push i915_sw_fence_wait into the nonblocking atomic commit
Quoted 11 lines · Chris Wilson
Quoting Daniel Vetter (2017-07-19 13:54:57)
Quoted 1 line
Blocking in a worker is ok,
but needlessly inefficient,
Quoted 4 lines
that's what the
unbound_wqis for. And it
unifies the paths between the blocking and nonblocking commit, giving me just one path where I have to implement the deadlock avoidance trickery in the next patch.For reference, I did that the other way by moving it all over to fences.
Yeah the commit message fails to explain this here:
"I first tried to implement the following patch without this rework, but force-completing i915_sw_fence creates some serious challenges around properly cleaning things up. So wasn't a feasible short-term approach. Another approach would be to simple keep track of all pending atomic commit work items and manually queue them from the reset code. With the caveat that double-queue in case we race with the i915_sw_fence must be avoided. Given all that, taking the cost of a double schedule in atomic for the short-term fix is the best approach, but can be changed in the future of course."
Thanks, Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 5/9 drm/i915: More surgically unbreak the modeset vs reset deadlock
In reply to Daniel VetterThere's no reason to entirely wedge the gpu, for the minimal deadlock bugfix we only need to unbreak/decouple the atomic commit from the gpu reset. The simplest wait to fix that is by replacing the unconditional fence wait a the top of commit_tail by a wait which completes either when the fences are done (normal case, or when a reset doesn't need to touch the display state). Or when the gpu reset needs to force-unblock all pending modeset states.
Note that in both cases TDR itself keeps working, so from a userspace pov this trickery isn't observable. Users themselvs might spot a short glitch while the rendering is catching up again, but that's still better than pre-TDR where we've thrown away all the rendering, including innocent batches. Also, this fixes the regression TDR introduced of making gpu resets deadlock-prone when we do need to touch the display.
One thing I noticed is that gpu_error.flags seems to use both our own wait-queue in gpu_error.wait_queue, and the generic wait_on_bit facilities. Not entirely sure why this inconsistency exists, I just picked one style.
A possible future avenue could be to insert the gpu reset in-between ongoing modeset changes, which would avoid the momentary glitch. But that's a lot more work to implement in the atomic commit machinery, and given that we only need this for pre-g4x hw, of questionable utility just for the sake of polishing gpu reset even more on those old boxes. It might be useful for other features though.
v2: Rebase onto 4.13 with a s/wait_queue_t/struct wait_queue_entry/.
--- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_display.c | 35 ++++++++++++++++++++++++++++++----- 2 files changed, 31 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +1 -0
@@ -1564,6 +1564,7 @@ struct i915_gpu_error {unsigned long flags;#define I915_RESET_BACKOFF 0#define I915_RESET_HANDOFF 1 +#define I915_RESET_MODESET 2#define I915_WEDGED (BITS_PER_LONG - 1)#define I915_RESET_ENGINE (I915_WEDGED - I915_NUM_ENGINES)
drivers/gpu/drm/i915/intel_display.c +30 -5
@@ -3471,10 +3471,9 @@ void intel_prepare_reset(struct drm_i915_private *dev_priv) !gpu_reset_clobbers_display(dev_priv))return ; -/* We have a modeset vs reset deadlock, defensively unbreak it. -* -* FIXME: We can do a _lot_ better, this is just a first iteration.*/ -i915_gem_set_wedged (dev_priv); +/* We have a modeset vs reset deadlock, defensively unbreak it. */ +set_bit (I915_RESET_MODESET , &dev_priv->gpu_error.flags); +wake_up_all (&dev_priv->gpu_error.wait_queue);/* * Need mode_config.mutex so that we don't
@@ -3569,6 +3568,8 @@ void intel_finish_reset(struct drm_i915_private *dev_priv)drm_modeset_drop_locks (ctx);drm_modeset_acquire_fini (ctx);mutex_unlock (&dev->mode_config.mutex); + +clear_bit (I915_RESET_MODESET , &dev_priv->gpu_error.flags); }static bool abort_flip_on_reset (struct intel_crtc *crtc)
@@ -12384,6 +12385,30 @@ static void intel_atomic_helper_free_state_worker(struct work_struct *work)intel_atomic_helper_free_state (dev_priv); } +static void intel_atomic_commit_fence_wait (struct intel_atomic_state *intel_state) +{ +struct wait_queue_entry wait_fence, wait_reset; +struct drm_i915_private *dev_priv =to_i915 (intel_state->base.dev); + +init_wait_entry (&wait_fence,0 ); +init_wait_entry (&wait_reset,0 ); +for (;;) { +prepare_to_wait (&intel_state->commit_ready.wait, + &wait_fence,TASK_UNINTERRUPTIBLE ); +prepare_to_wait (&dev_priv->gpu_error.wait_queue, + &wait_reset,TASK_UNINTERRUPTIBLE ); + + +if (i915_sw_fence_done (&intel_state->commit_ready) + || (dev_priv->gpu_error.flags &I915_RESET_MODESET )) +break ; + +schedule (); + } +finish_wait (&intel_state->commit_ready.wait, &wait_fence); +finish_wait (&dev_priv->gpu_error.wait_queue, &wait_reset); +} +static void intel_atomic_commit_tail (struct drm_atomic_state *state) {struct drm_device *dev = state->dev;
@@ -12397,7 +12422,7 @@ static void intel_atomic_commit_tail(struct drm_atomic_state *state)unsigned crtc_vblank_mask =0 ;int i; -i915_sw_fence_wait (&intel_state->commit_ready); +intel_atomic_commit_fence_wait (intel_state);drm_atomic_helper_wait_for_dependencies (state);
Signature · 6 lines
2.13.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 5/9] drm/i915: More surgically unbreak the modeset vs reset deadlock
Quoting Daniel Vetter (2017-07-19 13:54:58)
Quoted 56 lines
There's no reason to entirely wedge the gpu, for the minimal deadlock bugfix we only need to unbreak/decouple the atomic commit from the gpu reset. The simplest wait to fix that is by replacing the unconditional fence wait a the top of
commit_tailby a wait which completes either when the fences are done (normal case, or when a reset doesn't need to touch the display state). Or when the gpu reset needs to force-unblock all pending modeset states.Note that in both cases TDR itself keeps working, so from a userspace pov this trickery isn't observable. Users themselvs might spot a short glitch while the rendering is catching up again, but that's still better than pre-TDR where we've thrown away all the rendering, including innocent batches. Also, this fixes the regression TDR introduced of making gpu resets deadlock-prone when we do need to touch the display.
One thing I noticed is that gpu_error.flags seems to use both our own wait-queue in gpu_error.wait_queue, and the generic
wait_on_bitfacilities. Not entirely sure why this inconsistency exists, I just picked one style.A possible future avenue could be to insert the gpu reset in-between ongoing modeset changes, which would avoid the momentary glitch. But that's a lot more work to implement in the atomic commit machinery, and given that we only need this for pre-g4x hw, of questionable utility just for the sake of polishing gpu reset even more on those old boxes. It might be useful for other features though.
v2: Rebase onto 4.13 with a s/wait_queue_t/struct wait_queue_entry/.
Cc Chris Wilson <[email protected]>Cc Mika Kuoppala <[email protected]>Cc Joonas Lahtinen <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_display.c | 35 ++++++++++++++++++++++++++++++----- 2 files changed, 31 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/i915_drv.h +1
-0@@ -1564,6 +1564,7 @@ struct i915_gpu_error {unsigned long flags;#define I915_RESET_BACKOFF 0#define I915_RESET_HANDOFF 1 +#define I915_RESET_MODESET 2#define I915_WEDGED (BITS_PER_LONG - 1)#define I915_RESET_ENGINE (I915_WEDGED - I915_NUM_ENGINES)drivers/gpu/drm/i915/intel_display.c +0
-0
drivers/gpu/drm/i915/intel_display.c void intel_prepare_reset(struct drm_i915_private *dev_priv) · line 3476
Quoted 10 lines
drivers/gpu/drm/i915/intel_display.c +3
-4@@ -3471,10 +3471,9 @@ void intel_prepare_reset(struct drm_i915_private *dev_priv) !gpu_reset_clobbers_display(dev_priv))return ; -/* We have a modeset vs reset deadlock, defensively unbreak it. -* -* FIXME: We can do a _lot_ better, this is just a first iteration.*/ -i915_gem_set_wedged (dev_priv); +/* We have a modeset vs reset deadlock, defensively unbreak it. */ +set_bit (I915_RESET_MODESET , &dev_priv->gpu_error.flags); +wake_up_all (&dev_priv->gpu_error.wait_queue);
How are we breaking the
modeset_lock -> struct_mutex -> wait_on_reset ?
We wait the modeset_lock next which stops the reset from proceeding, and so the deadlock persists until the wedge-me timeout? -Chris
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 5/9] drm/i915: More surgically unbreak the modeset vs reset deadlock
Quoted 19 lines · Chris Wilson
Quoting Daniel Vetter (2017-07-19 13:54:58)
Quoted 5 lines
drivers/gpu/drm/i915/intel_display.c +0
-0drivers/gpu/drm/i915/intel_display.c void intel_prepare_reset(struct drm_i915_private *dev_priv) · line 3476
Quoted 10 lines
drivers/gpu/drm/i915/intel_display.c +3
-4@@ -3471,10 +3471,9 @@ void intel_prepare_reset(struct drm_i915_private *dev_priv) !gpu_reset_clobbers_display(dev_priv))return ; -/* We have a modeset vs reset deadlock, defensively unbreak it. -* -* FIXME: We can do a _lot_ better, this is just a first iteration.*/ -i915_gem_set_wedged (dev_priv); +/* We have a modeset vs reset deadlock, defensively unbreak it. */ +set_bit (I915_RESET_MODESET , &dev_priv->gpu_error.flags); +wake_up_all (&dev_priv->gpu_error.wait_queue);How are we breaking the
Quoted 4 lines
modeset_lock -> struct_mutex -> wait_on_reset ?We wait the
modeset_locknext which stops the reset from proceeding, and so the deadlock persists until the wedge-me timeout?
Hm indeed, I didn't check my logs carefully enough and there's still "i915_reset_device timed out" in it. But I also thought the only real wait we have left for the gpu is the one under i915_sw_fence. I think we could simply switch i915_mutex_lock_interruptible calls in atomic modeset over mutex_lock_interruptible? Or is there another can of worms I'm missing?
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 5/9] drm/i915: More surgically unbreak the modeset vs reset deadlock
Quoted 25 lines · Daniel Vetter
Quoted 19 lines · Chris Wilson
Quoting Daniel Vetter (2017-07-19 13:54:58)
Quoted 5 lines
drivers/gpu/drm/i915/intel_display.c +0
-0drivers/gpu/drm/i915/intel_display.c void intel_prepare_reset(struct drm_i915_private *dev_priv) · line 3476
Quoted 10 lines
drivers/gpu/drm/i915/intel_display.c +3
-4@@ -3471,10 +3471,9 @@ void intel_prepare_reset(struct drm_i915_private *dev_priv) !gpu_reset_clobbers_display(dev_priv))return ; -/* We have a modeset vs reset deadlock, defensively unbreak it. -* -* FIXME: We can do a _lot_ better, this is just a first iteration.*/ -i915_gem_set_wedged (dev_priv); +/* We have a modeset vs reset deadlock, defensively unbreak it. */ +set_bit (I915_RESET_MODESET , &dev_priv->gpu_error.flags); +wake_up_all (&dev_priv->gpu_error.wait_queue);How are we breaking the
Quoted 4 lines
modeset_lock -> struct_mutex -> wait_on_reset ?We wait the
modeset_locknext which stops the reset from proceeding, and so the deadlock persists until the wedge-me timeout?
Quoted 6 lines
Hm indeed, I didn't check my logs carefully enough and there's still "
i915_reset_devicetimed out" in it. But I also thought the only real wait we have left for the gpu is the one underi915_sw_fence. I think we could simply switchi915_mutex_lock_interruptiblecalls in atomic modeset overmutex_lock_interruptible? Or is there another can of worms I'm missing?
Obviously, because that's what we're doing already. But I don't have the DRM_ERROR from i915_gem_wait_for_error anywhere in my logs either, so not clear what exactly is going on ...
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 6/9 drm/i915: Rip out legacy page_flip completion/irq handling
In reply to Daniel VetterAll these races and things are now solved through the vblank evasion trick, plus event handling is done using normal vblank even processing and drm_crtc_arm_vblank_event. We can get rid of all this complexity.
--- drivers/gpu/drm/i915/i915_irq.c | 151 ++++-------------------- drivers/gpu/drm/i915/intel_display.c | 215 ----------------------------------- drivers/gpu/drm/i915/intel_drv.h | 3 - 3 files changed, 22 insertions(+), 347 deletions(-)
drivers/gpu/drm/i915/i915_irq.c +22 -129
@@ -1708,18 +1708,6 @@ static void gen9_guc_irq_handler(struct drm_i915_private *dev_priv, u32 gt_iir) } } -static bool intel_pipe_handle_vblank (struct drm_i915_private *dev_priv, -enum pipe pipe) -{ -bool ret; - - ret =drm_handle_vblank (&dev_priv->drm, pipe); -if (ret) -intel_finish_page_flip_mmio (dev_priv, pipe); - -return ret; -} -static void valleyview_pipestat_irq_ack (struct drm_i915_private *dev_priv,u32 iir,u32 pipe_stats[I915_MAX_PIPES ]) {
@@ -1784,12 +1772,8 @@ static void valleyview_pipestat_irq_handler(struct drm_i915_private *dev_priv,enum pipe pipe;for_each_pipe (dev_priv, pipe) { -if (pipe_stats[pipe] &PIPE_START_VBLANK_INTERRUPT_STATUS && -intel_pipe_handle_vblank (dev_priv, pipe)) -intel_check_page_flip (dev_priv, pipe); - -if (pipe_stats[pipe] &PLANE_FLIP_DONE_INT_STATUS_VLV ) -intel_finish_page_flip_cs (dev_priv, pipe); +if (pipe_stats[pipe] &PIPE_START_VBLANK_INTERRUPT_STATUS ) +drm_handle_vblank (&dev_priv->drm, pipe);if (pipe_stats[pipe] &PIPE_CRC_DONE_INTERRUPT_STATUS )i9xx_pipe_crc_irq_handler (dev_priv, pipe);
@@ -2241,19 +2225,14 @@ static void ilk_display_irq_handler(struct drm_i915_private *dev_priv,DRM_ERROR ("Poison interrupt\n" );for_each_pipe (dev_priv, pipe) { -if (de_iir &DE_PIPE_VBLANK (pipe) && -intel_pipe_handle_vblank (dev_priv, pipe)) -intel_check_page_flip (dev_priv, pipe); +if (de_iir &DE_PIPE_VBLANK (pipe)) +drm_handle_vblank (&dev_priv->drm, pipe);if (de_iir &DE_PIPE_FIFO_UNDERRUN (pipe))intel_cpu_fifo_underrun_irq_handler (dev_priv, pipe);if (de_iir &DE_PIPE_CRC_DONE (pipe))i9xx_pipe_crc_irq_handler (dev_priv, pipe); - -/* plane/pipes map 1:1 on ilk+ */ -if (de_iir &DE_PLANE_FLIP_DONE (pipe)) -intel_finish_page_flip_cs (dev_priv, pipe); }/* check event from PCH */
@@ -2315,13 +2294,8 @@ static void ivb_display_irq_handler(struct drm_i915_private *dev_priv,intel_opregion_asle_intr (dev_priv);for_each_pipe (dev_priv, pipe) { -if (de_iir & (DE_PIPE_VBLANK_IVB (pipe)) && -intel_pipe_handle_vblank (dev_priv, pipe)) -intel_check_page_flip (dev_priv, pipe); - -/* plane/pipes map 1:1 on ilk+ */ -if (de_iir &DE_PLANE_FLIP_DONE_IVB (pipe)) -intel_finish_page_flip_cs (dev_priv, pipe); +if (de_iir & (DE_PIPE_VBLANK_IVB (pipe))) +drm_handle_vblank (&dev_priv->drm, pipe); }/* check event from PCH */
@@ -2502,7 +2476,7 @@ gen8_de_irq_handler(struct drm_i915_private *dev_priv, u32 master_ctl) }for_each_pipe (dev_priv, pipe) { -u32 flip_done, fault_errors; +u32 fault_errors;if (!(master_ctl &GEN8_DE_PIPE_IRQ (pipe)))continue ;
@@ -2516,18 +2490,8 @@ gen8_de_irq_handler(struct drm_i915_private *dev_priv, u32 master_ctl) ret =IRQ_HANDLED ;I915_WRITE (GEN8_DE_PIPE_IIR (pipe), iir); -if (iir &GEN8_PIPE_VBLANK && -intel_pipe_handle_vblank (dev_priv, pipe)) -intel_check_page_flip (dev_priv, pipe); - - flip_done = iir; -if (INTEL_INFO (dev_priv)->gen >=9 ) - flip_done &=GEN9_PIPE_PLANE1_FLIP_DONE ; -else - flip_done &=GEN8_PIPE_PRIMARY_FLIP_DONE ; - -if (flip_done) -intel_finish_page_flip_cs (dev_priv, pipe); +if (iir &GEN8_PIPE_VBLANK ) +drm_handle_vblank (&dev_priv->drm, pipe);if (iir &GEN8_PIPE_CDCLK_CRC_DONE )hsw_pipe_crc_irq_handler (dev_priv, pipe);
@@ -3710,34 +3674,6 @@ static int i8xx_irq_postinstall(struct drm_device *dev)/* * Returns true when a page flip has completed. */ -static bool i8xx_handle_vblank (struct drm_i915_private *dev_priv, -int plane,int pipe,u32 iir) -{ -u16 flip_pending =DISPLAY_PLANE_FLIP_PENDING (plane); - -if (!intel_pipe_handle_vblank (dev_priv, pipe)) -return false; - -if ((iir & flip_pending) ==0 ) - goto check_page_flip; - -/* We detect FlipDone by looking for the change in PendingFlip from '1' -* to '0' on the following vblank, i.e. IIR has the Pendingflip -* asserted following the MI_DISPLAY_FLIP, but ISR is deasserted, hence -* the flip is completed (no longer pending). Since this doesn't raise -* an interrupt per se, we watch for the change at vblank. -*/ -if (I915_READ16 (ISR ) & flip_pending) - goto check_page_flip; - -intel_finish_page_flip_cs (dev_priv, pipe); -return true; - -check_page_flip: -intel_check_page_flip (dev_priv, pipe); -return false; -} -static irqreturn_t i8xx_irq_handler (int irq,void *arg) {struct drm_device *dev = arg;
@@ -3745,9 +3681,6 @@ static irqreturn_t i8xx_irq_handler(int irq, void *arg)u16 iir, new_iir;u32 pipe_stats[2 ];int pipe; -u16 flip_mask = -I915_DISPLAY_PLANE_A_FLIP_PENDING_INTERRUPT | -I915_DISPLAY_PLANE_B_FLIP_PENDING_INTERRUPT ;irqreturn_t ret;if (!intel_irqs_enabled (dev_priv))
@@ -3761,7 +3694,7 @@ static irqreturn_t i8xx_irq_handler(int irq, void *arg)if (iir ==0 ) goto out; -while (iir & ~flip_mask) { +while (iir) {/* Can't rely on pipestat interrupt bit in iir as it might * have been cleared after the pipestat interrupt was received. * It doesn't set the bit in iir again, but it still produces
@@ -3783,7 +3716,7 @@ static irqreturn_t i8xx_irq_handler(int irq, void *arg) }spin_unlock (&dev_priv->irq_lock); -I915_WRITE16 (IIR , iir & ~flip_mask); +I915_WRITE16 (IIR , iir); new_iir =I915_READ16 (IIR );/* Flush posted writes */ if (iir &I915_USER_INTERRUPT )
@@ -3794,9 +3727,8 @@ static irqreturn_t i8xx_irq_handler(int irq, void *arg)if (HAS_FBC (dev_priv)) plane = !plane; -if (pipe_stats[pipe] &PIPE_VBLANK_INTERRUPT_STATUS && -i8xx_handle_vblank (dev_priv, plane, pipe, iir)) - flip_mask &= ~DISPLAY_PLANE_FLIP_PENDING (plane); +if (pipe_stats[pipe] &PIPE_VBLANK_INTERRUPT_STATUS ) +drm_handle_vblank (&dev_priv->drm, pipe);if (pipe_stats[pipe] &PIPE_CRC_DONE_INTERRUPT_STATUS )i9xx_pipe_crc_irq_handler (dev_priv, pipe);
@@ -3896,45 +3828,11 @@ static int i915_irq_postinstall(struct drm_device *dev)return 0 ; } -/* -* Returns true when a page flip has completed. -*/ -static bool i915_handle_vblank (struct drm_i915_private *dev_priv, -int plane,int pipe,u32 iir) -{ -u32 flip_pending =DISPLAY_PLANE_FLIP_PENDING (plane); - -if (!intel_pipe_handle_vblank (dev_priv, pipe)) -return false; - -if ((iir & flip_pending) ==0 ) - goto check_page_flip; - -/* We detect FlipDone by looking for the change in PendingFlip from '1' -* to '0' on the following vblank, i.e. IIR has the Pendingflip -* asserted following the MI_DISPLAY_FLIP, but ISR is deasserted, hence -* the flip is completed (no longer pending). Since this doesn't raise -* an interrupt per se, we watch for the change at vblank. -*/ -if (I915_READ (ISR ) & flip_pending) - goto check_page_flip; - -intel_finish_page_flip_cs (dev_priv, pipe); -return true; - -check_page_flip: -intel_check_page_flip (dev_priv, pipe); -return false; -} -static irqreturn_t i915_irq_handler (int irq,void *arg) {struct drm_device *dev = arg;struct drm_i915_private *dev_priv =to_i915 (dev);u32 iir, new_iir, pipe_stats[I915_MAX_PIPES ]; -u32 flip_mask = -I915_DISPLAY_PLANE_A_FLIP_PENDING_INTERRUPT | -I915_DISPLAY_PLANE_B_FLIP_PENDING_INTERRUPT ;int pipe, ret =IRQ_NONE ;if (!intel_irqs_enabled (dev_priv))
@@ -3945,7 +3843,7 @@ static irqreturn_t i915_irq_handler(int irq, void *arg) iir =I915_READ (IIR ); do { - bool irq_received = (iir & ~flip_mask) != 0; + bool irq_received = (iir) != 0; bool blc_event = false; /* Can't rely on pipestat interrupt bit in iir as it might
@@ -3980,7 +3878,7 @@ static irqreturn_t i915_irq_handler(int irq, void *arg)i9xx_hpd_irq_handler (dev_priv, hotplug_status); } -I915_WRITE (IIR , iir & ~flip_mask); +I915_WRITE (IIR , iir); new_iir =I915_READ (IIR );/* Flush posted writes */ if (iir &I915_USER_INTERRUPT )
@@ -3991,9 +3889,8 @@ static irqreturn_t i915_irq_handler(int irq, void *arg)if (HAS_FBC (dev_priv)) plane = !plane; -if (pipe_stats[pipe] &PIPE_VBLANK_INTERRUPT_STATUS && -i915_handle_vblank (dev_priv, plane, pipe, iir)) - flip_mask &= ~DISPLAY_PLANE_FLIP_PENDING (plane); +if (pipe_stats[pipe] &PIPE_VBLANK_INTERRUPT_STATUS ) +drm_handle_vblank (&dev_priv->drm, pipe);if (pipe_stats[pipe] &PIPE_LEGACY_BLC_EVENT_STATUS ) blc_event = true;
@@ -4026,7 +3923,7 @@ static irqreturn_t i915_irq_handler(int irq, void *arg)*/ ret =IRQ_HANDLED ; iir = new_iir; - }while (iir & ~flip_mask); + }while (iir);enable_rpm_wakeref_asserts (dev_priv);
@@ -4161,9 +4058,6 @@ static irqreturn_t i965_irq_handler(int irq, void *arg)u32 iir, new_iir;u32 pipe_stats[I915_MAX_PIPES ];int ret =IRQ_NONE , pipe; -u32 flip_mask = -I915_DISPLAY_PLANE_A_FLIP_PENDING_INTERRUPT | -I915_DISPLAY_PLANE_B_FLIP_PENDING_INTERRUPT ;if (!intel_irqs_enabled (dev_priv))return IRQ_NONE ;
@@ -4174,7 +4068,7 @@ static irqreturn_t i965_irq_handler(int irq, void *arg) iir =I915_READ (IIR );for (;;) { -bool irq_received = (iir & ~flip_mask) !=0 ; +bool irq_received = (iir) !=0 ;bool blc_event = false;/* Can't rely on pipestat interrupt bit in iir as it might
@@ -4212,7 +4106,7 @@ static irqreturn_t i965_irq_handler(int irq, void *arg)i9xx_hpd_irq_handler (dev_priv, hotplug_status); } -I915_WRITE (IIR , iir & ~flip_mask); +I915_WRITE (IIR , iir); new_iir =I915_READ (IIR );/* Flush posted writes */ if (iir &I915_USER_INTERRUPT )
@@ -4221,9 +4115,8 @@ static irqreturn_t i965_irq_handler(int irq, void *arg)notify_ring (dev_priv->engine[VCS ]);for_each_pipe (dev_priv, pipe) { -if (pipe_stats[pipe] &PIPE_START_VBLANK_INTERRUPT_STATUS && -i915_handle_vblank (dev_priv, pipe, pipe, iir)) - flip_mask &= ~DISPLAY_PLANE_FLIP_PENDING (pipe); +if (pipe_stats[pipe] &PIPE_START_VBLANK_INTERRUPT_STATUS ) +drm_handle_vblank (&dev_priv->drm, pipe);if (pipe_stats[pipe] &PIPE_LEGACY_BLC_EVENT_STATUS ) blc_event = true;
drivers/gpu/drm/i915/intel_display.c +0 -215
239 lines not on this page · raw message
drivers/gpu/drm/i915/intel_drv.h +0 -3
@@ -1408,9 +1408,6 @@ void intel_unpin_fb_vma(struct i915_vma *vma);struct drm_framebuffer *intel_framebuffer_create (struct drm_i915_gem_object *obj,struct drm_mode_fb_cmd2 *mode_cmd); -void intel_finish_page_flip_cs (struct drm_i915_private *dev_priv,int pipe); -void intel_finish_page_flip_mmio (struct drm_i915_private *dev_priv,int pipe); -void intel_check_page_flip (struct drm_i915_private *dev_priv,int pipe);int intel_prepare_plane_fb (struct drm_plane *plane,struct drm_plane_state *new_state); void intel_cleanup_plane_fb(struct drm_plane *plane,
Signature · 6 lines
2.13.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 7/9 drm/i915: adjust has_pending_fb_unpin to atomic
In reply to Daniel VetterA bit an oversight - the current code did nothing, since only legacy flips used the unpin_work_count and assorted logic.
--- drivers/gpu/drm/i915/intel_display.c | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-)
drivers/gpu/drm/i915/intel_display.c +14 -13
@@ -4140,21 +4140,22 @@ static void ironlake_fdi_disable(struct drm_crtc *crtc)bool intel_has_pending_fb_unpin (struct drm_i915_private *dev_priv) { -struct intel_crtc *crtc; - -/* Note that we don't need to be called with mode_config.lock here -* as our list of CRTC objects is static for the lifetime of the -* device and so cannot disappear as we iterate. Similarly, we can -* happily treat the predicates as racy, atomic checks as userspace -* cannot claim and pin a new fb without at least acquring the -* struct_mutex and so serialising with us. -*/ -for_each_intel_crtc (&dev_priv->drm, crtc) { -if (atomic_read (&crtc->unpin_work_count) ==0 ) +struct drm_crtc *crtc; +bool cleanup_done; + +drm_for_each_crtc (crtc, &dev_priv->drm) { +struct drm_crtc_commit *commit; +spin_lock (&crtc->commit_lock); + commit =list_first_entry_or_null (&crtc->commit_list, + struct drm_crtc_commit, commit_entry); + cleanup_done = commit ? +try_wait_for_completion (&commit->cleanup_done) : true; +spin_unlock (&crtc->commit_lock); + +if (cleanup_done)continue ; -if (crtc->flip_work) -intel_wait_for_vblank (dev_priv, crtc->pipe); +drm_crtc_wait_one_vblank (crtc);return true; }
Signature · 6 lines
2.13.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 7/9] drm/i915: adjust has_pending_fb_unpin to atomic
Quoting Daniel Vetter (2017-07-19 13:55:00)
Quoted 6 lines
A bit an oversight - the current code did nothing, since only legacy flips used the
unpin_work_countand assorted logic.Cc Maarten Lankhorst <[email protected]>Cc Ville Syrjälä <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
There's a fence deadlock testcase for this, kms_flip/fence? -Chris
_______________________________________________
Intel-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 7/9] drm/i915: adjust has_pending_fb_unpin to atomic
Quoted 9 lines · Chris Wilson
Quoting Daniel Vetter (2017-07-19 13:55:00)
Quoted 6 lines
A bit an oversight - the current code did nothing, since only legacy flips used the
unpin_work_countand assorted logic.Cc Maarten Lankhorst <[email protected]>Cc Ville Syrjälä <[email protected]>Signed-off-by Daniel Vetter <[email protected]>There's a fence deadlock testcase for this, kms_flip/fence?
Crunching through them, but since I tend to test my stuff all mixed into one pile I've hit a bug in a different patch series of mine. Given that we've run without this for a while, not sure it's that critical really. -Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 7/9] drm/i915: adjust has_pending_fb_unpin to atomic
Quoting Daniel Vetter (2017-07-19 14:15:44)
Quoted 9 lines · Chris Wilson
Quoted 8 lines
Quoting Daniel Vetter (2017-07-19 13:55:00)
Quoted 6 lines
A bit an oversight - the current code did nothing, since only legacy flips used the
unpin_work_countand assorted logic.Cc Maarten Lankhorst <[email protected]>Cc Ville Syrjälä <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Quoted 5 lines
Quoted 1 line
There's a fence deadlock testcase for this, kms_flip/fence?
Crunching through them, but since I tend to test my stuff all mixed into one pile I've hit a bug in a different patch series of mine. Given that we've run without this for a while, not sure it's that critical really.
It's only going to affect gen2 (realistically using 14 fences in a gen3 batch is unlikely) if we can have 3 fb in the pipeline as userspace assumes 2 are reserved for the flip. Or at least if we may race while fb holds 3 fences due to the wq.
EDEADLK is not something I've seen outside of buggy code, but it is certainly possible and this patch should fix it.
-Chris
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 8/9 drm/i915: Remove intel_flip_work infrastructure
In reply to Daniel VetterThis gets rid of all the interactions between the legacy flip code and the modeset code. Yay!
--- drivers/gpu/drm/i915/i915_debugfs.c | 70 --------------------- drivers/gpu/drm/i915/i915_drv.c | 1 - drivers/gpu/drm/i915/i915_drv.h | 4 -- drivers/gpu/drm/i915/i915_gem.c | 2 - drivers/gpu/drm/i915/intel_display.c | 117 +---------------------------------- drivers/gpu/drm/i915/intel_drv.h | 21 +------ drivers/gpu/drm/i915/intel_sprite.c | 8 +-- 7 files changed, 3 insertions(+), 220 deletions(-)
drivers/gpu/drm/i915/i915_debugfs.c +0 -70
@@ -543,75 +543,6 @@ static int i915_gem_gtt_info(struct seq_file *m, void *data)return 0 ; } -static int i915_gem_pageflip_info (struct seq_file *m,void *data) -{ -struct drm_i915_private *dev_priv =node_to_i915 (m->private); -struct drm_device *dev = &dev_priv->drm; -struct intel_crtc *crtc; -int ret; - - ret =mutex_lock_interruptible (&dev->struct_mutex); -if (ret) -return ret; - -for_each_intel_crtc (dev, crtc) { -const char pipe =pipe_name (crtc->pipe); -const char plane =plane_name (crtc->plane); -struct intel_flip_work *work; - -spin_lock_irq (&dev->event_lock); - work = crtc->flip_work; -if (work ==NULL ) { -seq_printf (m,"No flip due on pipe %c (plane %c)\n" , - pipe, plane); - }else { -u32 pending; -u32 addr; - - pending =atomic_read (&work->pending); -if (pending) { -seq_printf (m,"Flip ioctl preparing on pipe %c (plane %c)\n" , - pipe, plane); - }else { -seq_printf (m,"Flip pending (waiting for vsync) on pipe %c (plane %c)\n" , - pipe, plane); - } -if (work->flip_queued_req) { -struct intel_engine_cs *engine = work->flip_queued_req->engine; - -seq_printf (m,"Flip queued on %s at seqno %x, last submitted seqno %x [current breadcrumb %x], completed? %d\n" , - engine->name, - work->flip_queued_req->global_seqno, -intel_engine_last_submit (engine), -intel_engine_get_seqno (engine), -i915_gem_request_completed (work->flip_queued_req)); - }else -seq_printf (m,"Flip not associated with any ring\n" ); -seq_printf (m,"Flip queued on frame %d, (was ready on frame %d), now %d\n" , - work->flip_queued_vblank, - work->flip_ready_vblank, -intel_crtc_get_vblank_counter (crtc)); -seq_printf (m,"%d prepares\n" ,atomic_read (&work->pending)); - -if (INTEL_GEN (dev_priv) >=4 ) - addr =I915_HI_DISPBASE (I915_READ (DSPSURF (crtc->plane))); -else - addr =I915_READ (DSPADDR (crtc->plane)); -seq_printf (m,"Current scanout address 0x%08x\n" , addr); - -if (work->pending_flip_obj) { -seq_printf (m,"New framebuffer address 0x%08lx\n" , (long )work->gtt_offset); -seq_printf (m,"MMIO update completed? %d\n" , addr == work->gtt_offset); - } - } -spin_unlock_irq (&dev->event_lock); - } - -mutex_unlock (&dev->struct_mutex); - -return 0 ; -} -static int i915_gem_batch_pool_info (struct seq_file *m,void *data) {struct drm_i915_private *dev_priv =node_to_i915 (m->private);
@@ -4854,7 +4785,6 @@ static const struct drm_info_list i915_debugfs_list[] = { {"i915_gem_gtt", i915_gem_gtt_info, 0}, {"i915_gem_pin_display", i915_gem_gtt_info, 0, (void *)1}, {"i915_gem_stolen", i915_gem_stolen_list_info }, - {"i915_gem_pageflip", i915_gem_pageflip_info, 0}, {"i915_gem_request", i915_gem_request_info, 0}, {"i915_gem_seqno", i915_gem_seqno_info, 0}, {"i915_gem_fence_regs", i915_gem_fence_regs_info, 0},
drivers/gpu/drm/i915/i915_drv.c +0 -1
@@ -876,7 +876,6 @@ static int i915_driver_init_early(struct drm_i915_private *dev_priv,spin_lock_init (&dev_priv->uncore.lock);spin_lock_init (&dev_priv->mm.object_stat_lock); -spin_lock_init (&dev_priv->mmio_flip_lock);mutex_init (&dev_priv->sb_lock);mutex_init (&dev_priv->modeset_restore_lock);mutex_init (&dev_priv->av_mutex);
drivers/gpu/drm/i915/i915_drv.h +0 -4
@@ -2144,9 +2144,6 @@ struct drm_i915_private {/* protects the irq masks */ spinlock_t irq_lock; -/* protects the mmio flip data */ -spinlock_t mmio_flip_lock; -bool display_irqs_enabled;/* To control wakeup latency, e.g. for irq-driven dp aux transfers. */
@@ -2251,7 +2248,6 @@ struct drm_i915_private {struct intel_crtc *plane_to_crtc_mapping[I915_MAX_PIPES ];struct intel_crtc *pipe_to_crtc_mapping[I915_MAX_PIPES ]; -wait_queue_head_t pending_flip_queue;#ifdef CONFIG_DEBUG_FS struct intel_pipe_crc pipe_crc[I915_MAX_PIPES ];
drivers/gpu/drm/i915/i915_gem.c +0 -2
@@ -4936,8 +4936,6 @@ i915_gem_load_init(struct drm_i915_private *dev_priv)init_waitqueue_head (&dev_priv->gpu_error.wait_queue);init_waitqueue_head (&dev_priv->gpu_error.reset_queue); -init_waitqueue_head (&dev_priv->pending_flip_queue); -atomic_set (&dev_priv->mm.bsd_engine_dispatch_index,0 );spin_lock_init (&dev_priv->fb_tracking.lock);
drivers/gpu/drm/i915/intel_display.c +1 -116
164 lines not on this page · raw message
drivers/gpu/drm/i915/intel_drv.h +1 -20
@@ -797,7 +797,6 @@ struct intel_crtc {u8 plane_ids_mask;unsigned long long enabled_power_domains;struct intel_overlay *overlay; -struct intel_flip_work *flip_work;atomic_t unpin_work_count;
@@ -1132,24 +1131,6 @@ intel_get_crtc_for_plane(struct drm_i915_private *dev_priv, enum plane plane)return dev_priv->plane_to_crtc_mapping[plane]; } -struct intel_flip_work { -struct work_struct unpin_work; -struct work_struct mmio_work; - -struct drm_crtc *crtc; -struct i915_vma *old_vma; -struct drm_framebuffer *old_fb; -struct drm_i915_gem_object *pending_flip_obj; -struct drm_pending_vblank_event *event; -atomic_t pending; -u32 flip_count; -u32 gtt_offset; -struct drm_i915_gem_request *flip_queued_req; -u32 flip_queued_vblank; -u32 flip_ready_vblank; -unsigned int rotation; -}; -struct intel_load_detect_pipe {struct drm_atomic_state *restore_state; };
@@ -1903,7 +1884,7 @@ struct intel_plane *intel_sprite_plane_create(struct drm_i915_private *dev_priv,int intel_sprite_set_colorkey (struct drm_device *dev,void *data,struct drm_file *file_priv);void intel_pipe_update_start (struct intel_crtc *crtc); -void intel_pipe_update_end (struct intel_crtc *crtc,struct intel_flip_work *work); +void intel_pipe_update_end (struct intel_crtc *crtc);/* intel_tv.c */ void intel_tv_init (struct drm_i915_private *dev_priv);
drivers/gpu/drm/i915/intel_sprite.c +1 -7
@@ -176,7 +176,7 @@ void intel_pipe_update_start(struct intel_crtc *crtc)* re-enables interrupts and verifies the update was actually completed * before a vblank using the value of @start_vbl_count. */ -void intel_pipe_update_end (struct intel_crtc *crtc,struct intel_flip_work *work) +void intel_pipe_update_end (struct intel_crtc *crtc) {enum pipe pipe = crtc->pipe;int scanline_end =intel_get_crtc_scanline (crtc);
@@ -184,12 +184,6 @@ void intel_pipe_update_end(struct intel_crtc *crtc, struct intel_flip_work *workktime_t end_vbl_time =ktime_get ();struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); -if (work) { - work->flip_queued_vblank = end_vbl_count; -smp_mb__before_atomic (); -atomic_set (&work->pending,1 ); - } -trace_i915_pipe_update_end (crtc, end_vbl_count, scanline_end);/* We're still in the vblank-evade critical section, this can't race.
Signature · 6 lines
2.13.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 8/9] drm/i915: Remove intel_flip_work infrastructure
Quoting Daniel Vetter (2017-07-19 13:55:01)
Quoted 2 lines
This gets rid of all the interactions between the legacy flip code and the modeset code. Yay!
Including our missed vblank boosting. (That's been dead for a while.) -Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 8/9] drm/i915: Remove intel_flip_work infrastructure
Quoted 5 lines · Chris Wilson
Quoting Daniel Vetter (2017-07-19 13:55:01)
Quoted 2 lines
This gets rid of all the interactions between the legacy flip code and the modeset code. Yay!
Including our missed vblank boosting. (That's been dead for a while.)
Hm right, but should be easy to add (and bonus, for every display update, not just flips) in the intel_sw_fence_wait function. Can you pls point me at what function I should call to reverse-boost an i915_sw_fence (and only that)?
Then we could queue up a vblank callback that fires on the next vblank for any of the CRTC in the update and boosts the i915_sw_fence. If we just boost the fence (instead of the context or something) it should also be easy to filter out boosting when the request has completed meanwhile. -Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 8/9] drm/i915: Remove intel_flip_work infrastructure
Quoting Daniel Vetter (2017-07-19 14:24:20)
Quoted 11 lines · Chris Wilson
Quoted 5 lines
Quoting Daniel Vetter (2017-07-19 13:55:01)
Quoted 2 lines
This gets rid of all the interactions between the legacy flip code and the modeset code. Yay!
Including our missed vblank boosting. (That's been dead for a while.)
Hm right, but should be easy to add (and bonus, for every display update, not just flips) in the
intel_sw_fence_waitfunction. Can you pls point me at what function I should call to reverse-boost ani915_sw_fence(and only that)?
You would have to walk the tree of input sw fences, detect those are dma_fences and check if they are a request. Then for each request mark it as boosted. That information is easier to keep during construction rather than recovering it later, though honestly, I would just boost the exclusive fences for the atomic state, i.e. use the reservation_object under the assumption that the snapshot hasn't drifted too much.
Quoted 4 lines
Then we could queue up a vblank callback that fires on the next vblank for any of the CRTC in the update and boosts the
i915_sw_fence. If we just boost the fence (instead of the context or something) it should also be easy to filter out boosting when the request has completed meanwhile.
Yup, boosting is now completely tied to requests.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 9/9 drm/i915: Drop unpin stall in atomic_prepare_commit
In reply to Daniel VetterThe core already does this in setup_commit(). With this we can also remove the unpin_work_count since it's the last user.
--- drivers/gpu/drm/i915/intel_display.c | 13 +------------ drivers/gpu/drm/i915/intel_drv.h | 2 -- 2 files changed, 1 insertion(+), 14 deletions(-)
drivers/gpu/drm/i915/intel_display.c +1 -12
@@ -11825,18 +11825,7 @@ static int intel_atomic_check(struct drm_device *dev,static int intel_atomic_prepare_commit (struct drm_device *dev,struct drm_atomic_state *state) { -struct drm_i915_private *dev_priv =to_i915 (dev); -struct drm_crtc_state *crtc_state; -struct drm_crtc *crtc; -int i, ret; - -for_each_new_crtc_in_state (state, crtc, crtc_state, i) { -if (state->legacy_cursor_update) -continue ; - -if (atomic_read (&to_intel_crtc (crtc)->unpin_work_count) >=2 ) -flush_workqueue (dev_priv->wq); - } +int ret; ret =mutex_lock_interruptible (&dev->struct_mutex);if (ret)
drivers/gpu/drm/i915/intel_drv.h +0 -2
@@ -798,8 +798,6 @@ struct intel_crtc {unsigned long long enabled_power_domains;struct intel_overlay *overlay; -atomic_t unpin_work_count; -/* Display surface base address adjustement for pageflips. Note that on * gen4+ this only adjusts up to a tile, offsets within a tile are * handled in the hw itself (with the TILEOFF register). */
Signature · 6 lines
2.13.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 9/9] drm/i915: Drop unpin stall in atomic_prepare_commit
Quoting Daniel Vetter (2017-07-19 13:55:02)
Quoted 2 lines
The core already does this in
setup_commit(). With this we can also remove theunpin_work_countsince it's the last user.
Also note that the loop only existed for the legacy pageflip support, with that removed it becomes entirely redundant.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 9/9] drm/i915: Drop unpin stall in atomic_prepare_commit
Quoted 6 lines · Chris Wilson
Quoting Daniel Vetter (2017-07-19 13:55:02)
Quoted 2 lines
The core already does this in
setup_commit(). With this we can also remove theunpin_work_countsince it's the last user.Also note that the loop only existed for the legacy pageflip support, with that removed it becomes entirely redundant.
Yeah, I just wanted to make clear that removing this isn't a bit of code that we failed to move over to atomic. It's been dead since a while. -Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 9/9] drm/i915: Drop unpin stall in atomic_prepare_commit
In reply to Daniel VetterOp 19-07-17 om 14:55 schreef Daniel Vetter:
Quoted 40 lines
The core already does this in
setup_commit(). With this we can also remove theunpin_work_countsince it's the last user.Cc Maarten Lankhorst <[email protected]>Cc Ville Syrjälä <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 13 +------------ drivers/gpu/drm/i915/intel_drv.h | 2 -- 2 files changed, 1 insertion(+), 14 deletions(-)drivers/gpu/drm/i915/intel_display.c +1
-12@@ -11825,18 +11825,7 @@ static int intel_atomic_check(struct drm_device *dev,static int intel_atomic_prepare_commit (struct drm_device *dev,struct drm_atomic_state *state) { -struct drm_i915_private *dev_priv =to_i915 (dev); -struct drm_crtc_state *crtc_state; -struct drm_crtc *crtc; -int i, ret; - -for_each_new_crtc_in_state (state, crtc, crtc_state, i) { -if (state->legacy_cursor_update) -continue ; - -if (atomic_read (&to_intel_crtc (crtc)->unpin_work_count) >=2 ) -flush_workqueue (dev_priv->wq); - } +int ret; ret =mutex_lock_interruptible (&dev->struct_mutex);if (ret)drivers/gpu/drm/i915/intel_drv.h +0
-0
drivers/gpu/drm/i915/intel_drv.h struct intel_crtc { · line 803
Quoted 8 lines
drivers/gpu/drm/i915/intel_drv.h +0
-2@@ -798,8 +798,6 @@ struct intel_crtc {unsigned long long enabled_power_domains;struct intel_overlay *overlay; -atomic_t unpin_work_count; -/* Display surface base address adjustement for pageflips. Note that on * gen4+ this only adjusts up to a tile, offsets within a tile are * handled in the hw itself (with the TILEOFF register). */
I like red diffs..
For patch 1, 4 (with updated commit message), 6-9:
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 9/9] drm/i915: Drop unpin stall in atomic_prepare_commit
Quoted 52 lines · Maarten Lankhorst
Op 19-07-17 om 14:55 schreef Daniel Vetter:
Quoted 40 lines
The core already does this in
setup_commit(). With this we can also remove theunpin_work_countsince it's the last user.Cc Maarten Lankhorst <[email protected]>Cc Ville Syrjälä <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 13 +------------ drivers/gpu/drm/i915/intel_drv.h | 2 -- 2 files changed, 1 insertion(+), 14 deletions(-)drivers/gpu/drm/i915/intel_display.c +1
-12@@ -11825,18 +11825,7 @@ static int intel_atomic_check(struct drm_device *dev,static int intel_atomic_prepare_commit (struct drm_device *dev,struct drm_atomic_state *state) { -struct drm_i915_private *dev_priv =to_i915 (dev); -struct drm_crtc_state *crtc_state; -struct drm_crtc *crtc; -int i, ret; - -for_each_new_crtc_in_state (state, crtc, crtc_state, i) { -if (state->legacy_cursor_update) -continue ; - -if (atomic_read (&to_intel_crtc (crtc)->unpin_work_count) >=2 ) -flush_workqueue (dev_priv->wq); - } +int ret; ret =mutex_lock_interruptible (&dev->struct_mutex);if (ret)drivers/gpu/drm/i915/intel_drv.h +0
-0drivers/gpu/drm/i915/intel_drv.h struct intel_crtc { · line 803
Quoted 8 lines
drivers/gpu/drm/i915/intel_drv.h +0
-2@@ -798,8 +798,6 @@ struct intel_crtc {unsigned long long enabled_power_domains;struct intel_overlay *overlay; -atomic_t unpin_work_count; -/* Display surface base address adjustement for pageflips. Note that on * gen4+ this only adjusts up to a tile, offsets within a tile are * handled in the hw itself (with the TILEOFF register). */ I like red diffs..
Quoted 2 lines
For patch 1, 4 (with updated commit message), 6-9:
Reviewed-by Maarten Lankhorst <[email protected]>
Ok I merged patches 1&2, that take care of this for a lot of users/systems, and the remaining stuff needs a notch more polish, and a lot more testing anyway.
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Patchwork
CI✓ Fi.CI.BAT: success for gpu reset vs modeset fix, plus page_flip removal
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: gpu reset vs modeset fix, plus page_flip removal
URL : https://patchwork.freedesktop.org/series/27576/
State : success
== Summary ==
Series 27576v1 gpu reset vs modeset fix, plus page_flip removal
https://patchwork.freedesktop.org/api/1.0/series/27576/revisions/1/mbox/
Test kms_flip:
Subgroup basic-flip-vs-modeset:
pass -> SKIP (fi-skl-x1585l) fdo#101781
Test kms_pipe_crc_basic:
Subgroup hang-read-crc-pipe-a:
pass -> DMESG-WARN (fi-pnv-d510) fdo#101597 +1
Subgroup suspend-read-crc-pipe-b:
pass -> DMESG-WARN (fi-byt-n2820) fdo#101705fdo#101781 https://bugs.freedesktop.org/show_bug.cgi?id=101781
fdo#101597 https://bugs.freedesktop.org/show_bug.cgi?id=101597
fdo#101705 https://bugs.freedesktop.org/show_bug.cgi?id=101705
fi-bdw-5557u total:279 pass:268 dwarn:0 dfail:0 fail:0 skip:11 time:443s fi-bdw-gvtdvm total:279 pass:265 dwarn:0 dfail:0 fail:0 skip:14 time:427s fi-blb-e6850 total:279 pass:224 dwarn:1 dfail:0 fail:0 skip:54 time:356s fi-bsw-n3050 total:279 pass:243 dwarn:0 dfail:0 fail:0 skip:36 time:537s fi-bxt-j4205 total:279 pass:260 dwarn:0 dfail:0 fail:0 skip:19 time:511s fi-byt-j1900 total:279 pass:254 dwarn:1 dfail:0 fail:0 skip:24 time:491s fi-byt-n2820 total:279 pass:250 dwarn:1 dfail:0 fail:0 skip:28 time:494s fi-glk-2a total:279 pass:260 dwarn:0 dfail:0 fail:0 skip:19 time:598s fi-hsw-4770 total:279 pass:263 dwarn:0 dfail:0 fail:0 skip:16 time:436s fi-hsw-4770r total:279 pass:263 dwarn:0 dfail:0 fail:0 skip:16 time:413s fi-ilk-650 total:279 pass:229 dwarn:0 dfail:0 fail:0 skip:50 time:419s fi-ivb-3520m total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:511s fi-ivb-3770 total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:470s fi-kbl-7500u total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:470s fi-kbl-7560u total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:579s fi-kbl-r total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:586s fi-pnv-d510 total:279 pass:221 dwarn:3 dfail:0 fail:0 skip:55 time:566s fi-skl-6260u total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:460s fi-skl-6700hq total:279 pass:262 dwarn:0 dfail:0 fail:0 skip:17 time:584s fi-skl-6700k total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:475s fi-skl-6770hq total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:476s fi-skl-gvtdvm total:279 pass:266 dwarn:0 dfail:0 fail:0 skip:13 time:434s fi-skl-x1585l total:279 pass:268 dwarn:0 dfail:0 fail:0 skip:11 time:477s fi-snb-2520m total:279 pass:251 dwarn:0 dfail:0 fail:0 skip:28 time:555s fi-snb-2600 total:279 pass:250 dwarn:0 dfail:0 fail:0 skip:29 time:406s
64257e941fca5385627380375782bc4724436366 drm-tip: 2017y-07m-19d-12h-38m-49s UTC integration manifest 60eaaff drm/i915: Drop unpin stall in atomic_prepare_commit
a633438 drm/i915: Remove intel_flip_work infrastructure
ee84f0f drm/i915: adjust has_pending_fb_unpin to atomic
0004897 drm/i915: Rip out legacy page_flip completion/irq handling
33b5239 drm/i915: More surgically unbreak the modeset vs reset deadlock
d3325b0 drm/i915: Push i915_sw_fence_wait into the nonblocking atomic commit
e17d3a6 drm/i915: Avoid the gpu reset vs. modeset deadlock
887c8c2 drm/i915: Unbreak gpu reset vs. modeset locking
a10774a drm/i915: Nuke legacy flip queueing code
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_5234/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: ✓ Fi.CI.BAT: success for gpu reset vs modeset fix, plus page_flip removal
Quoting Patchwork (2017-07-19 15:15:25)
Quoted 17 lines
fi-bdw-5557u total:279 pass:268 dwarn:0 dfail:0 fail:0 skip:11 time:443s fi-bdw-gvtdvm total:279 pass:265 dwarn:0 dfail:0 fail:0 skip:14 time:427s fi-blb-e6850 total:279 pass:224 dwarn:1 dfail:0 fail:0 skip:54 time:356s fi-bsw-n3050 total:279 pass:243 dwarn:0 dfail:0 fail:0 skip:36 time:537s fi-bxt-j4205 total:279 pass:260 dwarn:0 dfail:0 fail:0 skip:19 time:511s fi-byt-j1900 total:279 pass:254 dwarn:1 dfail:0 fail:0 skip:24 time:491s fi-byt-n2820 total:279 pass:250 dwarn:1 dfail:0 fail:0 skip:28 time:494s fi-glk-2a total:279 pass:260 dwarn:0 dfail:0 fail:0 skip:19 time:598s fi-hsw-4770 total:279 pass:263 dwarn:0 dfail:0 fail:0 skip:16 time:436s fi-hsw-4770r total:279 pass:263 dwarn:0 dfail:0 fail:0 skip:16 time:413s fi-ilk-650 total:279 pass:229 dwarn:0 dfail:0 fail:0 skip:50 time:419s fi-ivb-3520m total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:511s fi-ivb-3770 total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:470s fi-kbl-7500u total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:470s fi-kbl-7560u total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:579s fi-kbl-r total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:586s fi-pnv-d510 total:279 pass:221 dwarn:3 dfail:0 fail:0 skip:55 time:566s
Quoted 8 lines
fi-skl-6260u total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:460s fi-skl-6700hq total:279 pass:262 dwarn:0 dfail:0 fail:0 skip:17 time:584s fi-skl-6700k total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:475s fi-skl-6770hq total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:476s fi-skl-gvtdvm total:279 pass:266 dwarn:0 dfail:0 fail:0 skip:13 time:434s fi-skl-x1585l total:279 pass:268 dwarn:0 dfail:0 fail:0 skip:11 time:477s fi-snb-2520m total:279 pass:251 dwarn:0 dfail:0 fail:0 skip:28 time:555s fi-snb-2600 total:279 pass:250 dwarn:0 dfail:0 fail:0 skip:29 time:406s
This would be useful to run across the whole farm, for gen3/gen4 coverage. iirc some of the older ones are on trybot (but not BAT). -Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx