OSDN Git Service

Revert "drm/amd/display: Enable fast plane updates when state->allow_modeset = true"
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 20 Jun 2019 12:30:09 +0000 (08:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Jun 2019 16:38:53 +0000 (11:38 -0500)
This reverts commit ebc8c6f18322ad54275997a888ca1731d74b711f.

There are still missing corner cases with cursor interaction and these
fast plane updates on Picasso and Raven2 leading to endless PSTATE
warnings for typical desktop usage depending on the userspace.

This change should be reverted until these issues have been resolved.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110949
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: David Francis <david.francis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 35530f6..6bea5fe 100644 (file)
@@ -6528,6 +6528,14 @@ static bool should_reset_plane(struct drm_atomic_state *state,
        struct drm_crtc_state *new_crtc_state;
        int i;
 
+       /*
+        * TODO: Remove this hack once the checks below are sufficient
+        * enough to determine when we need to reset all the planes on
+        * the stream.
+        */
+       if (state->allow_modeset)
+               return true;
+
        /* Exit early if we know that we're adding or removing the plane. */
        if (old_plane_state->crtc != new_plane_state->crtc)
                return true;