Skip to content

Commit 435f5b3

Browse files
Tianci Yinalexdeucher
authored andcommitted
drm/amd/display: Enable fast plane updates on DCN3.2 and above
[WHY] When cursor moves across screen boarder, lag cursor observed, since subvp settings need to sync up with vblank that causes cursor updates being delayed. [HOW] Enable fast plane updates on DCN3.2 to fix it. Cc: Mario Limonciello <mario.limonciello@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Acked-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Tianci Yin <tianci.yin@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 270b301 commit 435f5b3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9606,14 +9606,14 @@ static bool should_reset_plane(struct drm_atomic_state *state,
96069606
struct drm_plane *other;
96079607
struct drm_plane_state *old_other_state, *new_other_state;
96089608
struct drm_crtc_state *new_crtc_state;
9609+
struct amdgpu_device *adev = drm_to_adev(plane->dev);
96099610
int i;
96109611

96119612
/*
9612-
* TODO: Remove this hack once the checks below are sufficient
9613-
* enough to determine when we need to reset all the planes on
9614-
* the stream.
9613+
* TODO: Remove this hack for all asics once it proves that the
9614+
* fast updates works fine on DCN3.2+.
96159615
*/
9616-
if (state->allow_modeset)
9616+
if (adev->ip_versions[DCE_HWIP][0] < IP_VERSION(3, 2, 0) && state->allow_modeset)
96179617
return true;
96189618

96199619
/* Exit early if we know that we're adding or removing the plane. */

0 commit comments

Comments
 (0)