drm/amd/display: turn off cursor when disconnect plane
authorEric Yang <Eric.Yang2@amd.com>
Fri, 19 Jan 2018 23:10:00 +0000 (18:10 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:31 +0000 (14:19 -0500)
As a precaution to prevent cases where cursor is enabled on a pipe
that is disabled, always turn off cursor when disconnecting plane.

Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c

index 265092b..57c74ac 100644 (file)
@@ -73,6 +73,9 @@ static void hubp1_disconnect(struct hubp *hubp)
 
        REG_UPDATE(DCHUBP_CNTL,
                        HUBP_TTU_DISABLE, 1);
+
+       REG_UPDATE(CURSOR_CONTROL,
+                       CURSOR_ENABLE, 0);
 }
 
 static void hubp1_set_hubp_blank_en(struct hubp *hubp, bool blank)