Revert "drm/amd/display: New path for enabling DPG"
authorWesley Chalmers <Wesley.Chalmers@amd.com>
Wed, 27 Jan 2021 20:22:55 +0000 (15:22 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Feb 2021 21:43:10 +0000 (16:43 -0500)
This reverts commit f8e792dc5c45d306a542b9ee991ae80e1c78e4c5

[Why]
We are not implementing the planned new HW
sequence for HUBP disable.

[How]
Revert most related changes to minimize regressions.

Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Reviewed-by: Martin Leung <Martin.Leung@amd.com>
Acked-by: Qingqing Zhuo <Qingqing.Zhuo@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc_stream.h

index 2d8c6e6..e2cc1a1 100644 (file)
@@ -2284,8 +2284,6 @@ static void copy_stream_update_to_stream(struct dc *dc,
        if (update->dither_option)
                stream->dither_option = *update->dither_option;
 
-       if (update->pending_test_pattern)
-               stream->test_pattern = *update->pending_test_pattern;
        /* update current stream with writeback info */
        if (update->wb_update) {
                int i;
@@ -2382,15 +2380,6 @@ static void commit_planes_do_stream_update(struct dc *dc,
                                }
                        }
 
-                       if (stream_update->pending_test_pattern) {
-                               dc_link_dp_set_test_pattern(stream->link,
-                                       stream->test_pattern.type,
-                                       stream->test_pattern.color_space,
-                                       stream->test_pattern.p_link_settings,
-                                       stream->test_pattern.p_custom_pattern,
-                                       stream->test_pattern.cust_pattern_size);
-                       }
-
                        /* Full fe update*/
                        if (update_type == UPDATE_TYPE_FAST)
                                continue;
index a4f7ec8..e243c01 100644 (file)
@@ -130,14 +130,6 @@ union stream_update_flags {
        uint32_t raw;
 };
 
-struct test_pattern {
-       enum dp_test_pattern type;
-       enum dp_test_pattern_color_space color_space;
-       struct link_training_settings const *p_link_settings;
-       unsigned char const *p_custom_pattern;
-       unsigned int cust_pattern_size;
-};
-
 struct dc_stream_state {
        // sink is deprecated, new code should not reference
        // this pointer
@@ -235,8 +227,6 @@ struct dc_stream_state {
 
        uint32_t stream_id;
        bool is_dsc_enabled;
-
-       struct test_pattern test_pattern;
        union stream_update_flags update_flags;
 };
 
@@ -271,7 +261,6 @@ struct dc_stream_update {
        struct dc_dsc_config *dsc_config;
        struct dc_transfer_func *func_shaper;
        struct dc_3dlut *lut3d_func;
-       struct test_pattern *pending_test_pattern;
 };
 
 bool dc_is_stream_unchanged(