drm/amd/display: wait for test pattern after when all pipes are programmed
authorWenjing Liu <Wenjing.Liu@amd.com>
Tue, 17 Dec 2019 17:38:54 +0000 (12:38 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Jan 2020 19:16:15 +0000 (14:16 -0500)
[why]
Currently we wait for test pattern after each pipe is programmed.  For
ODM combined scenario it will cause test pattern is shown on only half
screen for 1 frame. This is not desirable.

[how]
No wait between odm pipe programming, only wait after all pipes are
programmed.

Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c

index 75dc387bbb2b6d8905994dbc9e0667c9169043f1..8c257a9f4c7fd553f0e90cdc069109308f52d6f0 100644 (file)
@@ -3657,12 +3657,6 @@ static void set_crtc_test_pattern(struct dc_link *link,
                                        NULL,
                                        width,
                                        height);
-                               /* wait for dpg to blank pixel data with test pattern */
-                               for (count = 0; count < 1000; count++)
-                                       if (odm_opp->funcs->dpg_is_blanked(odm_opp))
-                                               break;
-                                       else
-                                               udelay(100);
                        }
                        opp->funcs->opp_set_disp_pattern_generator(opp,
                                controller_test_pattern,