}
 }
 
+static void amdgpu_dm_commit_cursors(struct drm_atomic_state *state)
+{
+       struct drm_plane *plane;
+       struct drm_plane_state *old_plane_state, *new_plane_state;
+       int i;
+
+       /*
+        * TODO: Make this per-stream so we don't issue redundant updates for
+        * commits with multiple streams.
+        */
+       for_each_oldnew_plane_in_state(state, plane, old_plane_state,
+                                      new_plane_state, i)
+               if (plane->type == DRM_PLANE_TYPE_CURSOR)
+                       handle_cursor_update(plane, old_plane_state);
+}
+
 static void amdgpu_dm_commit_planes(struct drm_atomic_state *state,
                                    struct dc_state *dc_state,
                                    struct drm_device *dev,
                goto cleanup;
        }
 
+       /*
+        * Disable the cursor first if we're disabling all the planes.
+        * It'll remain on the screen after the planes are re-enabled
+        * if we don't.
+        */
+       if (acrtc_state->active_planes == 0)
+               amdgpu_dm_commit_cursors(state);
+
        /* update planes when needed */
        for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) {
                struct drm_crtc *crtc = new_plane_state->crtc;
                mutex_unlock(&dm->dc_lock);
        }
 
-       for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i)
-               if (plane->type == DRM_PLANE_TYPE_CURSOR)
-                       handle_cursor_update(plane, old_plane_state);
+       /*
+        * Update cursor state *after* programming all the planes.
+        * This avoids redundant programming in the case where we're going
+        * to be disabling a single plane - those pipes are being disabled.
+        */
+       if (acrtc_state->active_planes)
+               amdgpu_dm_commit_cursors(state);
 
 cleanup:
        kfree(bundle);