drm/amd/display: Pass SDP spliting in parameters
authorNikola Cornij <nikola.cornij@amd.com>
Wed, 13 Mar 2019 00:11:37 +0000 (20:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Mar 2019 03:42:30 +0000 (22:42 -0500)
pass SDP splitting when setting stream attributes for future use

Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.h
drivers/gpu/drm/amd/display/dc/inc/hw/stream_encoder.h
drivers/gpu/drm/amd/display/dc/virtual/virtual_stream_encoder.c

index ac128f7a9d854e7032941ec8023099932450d3f9..f5ec65ec14603a410f111877a7f7126dd32cf6eb 100644 (file)
@@ -2576,7 +2576,8 @@ void core_link_enable_stream(
                pipe_ctx->stream_res.stream_enc->funcs->dp_set_stream_attribute(
                        pipe_ctx->stream_res.stream_enc,
                        &stream->timing,
-                       stream->output_color_space);
+                       stream->output_color_space,
+                       stream->link->dpcd_caps.dprx_feature.bits.SST_SPLIT_SDP_CAP);
 
        if (dc_is_hdmi_tmds_signal(pipe_ctx->stream->signal))
                pipe_ctx->stream_res.stream_enc->funcs->hdmi_set_stream_attribute(
index 67cad0016f9600cb66709f0a760b2d235edb5b06..14309fe6f2e62e9592d178aee1e1a57823e82159 100644 (file)
@@ -272,7 +272,8 @@ static void dce110_update_hdmi_info_packet(
 static void dce110_stream_encoder_dp_set_stream_attribute(
        struct stream_encoder *enc,
        struct dc_crtc_timing *crtc_timing,
-       enum dc_color_space output_color_space)
+       enum dc_color_space output_color_space,
+       uint32_t enable_sdp_splitting)
 {
 #if defined(CONFIG_DRM_AMD_DC_DCN1_0)
        uint32_t h_active_start;
index 6a0e748f0e57ffcf76356d2a5cd10a2fa615a662..8ee9f6dc1d62920ac8ac1b8d83ecfc071998e761 100644 (file)
@@ -245,7 +245,8 @@ static void enc1_update_hdmi_info_packet(
 void enc1_stream_encoder_dp_set_stream_attribute(
        struct stream_encoder *enc,
        struct dc_crtc_timing *crtc_timing,
-       enum dc_color_space output_color_space)
+       enum dc_color_space output_color_space,
+       uint32_t enable_sdp_splitting)
 {
        uint32_t h_active_start;
        uint32_t v_active_start;
index b7c800e10a32fabc6aba11d34f3642a8f51b8cfc..e654c2f559711833408f0f6466a6f76b66687065 100644 (file)
@@ -462,7 +462,8 @@ void enc1_update_generic_info_packet(
 void enc1_stream_encoder_dp_set_stream_attribute(
        struct stream_encoder *enc,
        struct dc_crtc_timing *crtc_timing,
-       enum dc_color_space output_color_space);
+       enum dc_color_space output_color_space,
+       uint32_t enable_sdp_splitting);
 
 void enc1_stream_encoder_hdmi_set_stream_attribute(
        struct stream_encoder *enc,
index ce3c4ecd9c24a91203adf1e6c91a833d7d62c6ed..49854eb73d1d6ac5a501ee017400d904dfa665e6 100644 (file)
@@ -90,7 +90,8 @@ struct stream_encoder_funcs {
        void (*dp_set_stream_attribute)(
                struct stream_encoder *enc,
                struct dc_crtc_timing *crtc_timing,
-               enum dc_color_space output_color_space);
+               enum dc_color_space output_color_space,
+               uint32_t enable_sdp_splitting);
 
        void (*hdmi_set_stream_attribute)(
                struct stream_encoder *enc,
index 3dc1733eea204bd43503c30ee11dd10345b48a21..fdcf9e66d852fc3605b771c937c1714f0b388a8c 100644 (file)
@@ -29,7 +29,8 @@
 static void virtual_stream_encoder_dp_set_stream_attribute(
        struct stream_encoder *enc,
        struct dc_crtc_timing *crtc_timing,
-       enum dc_color_space output_color_space) {}
+       enum dc_color_space output_color_space,
+       uint32_t enable_sdp_splitting) {}
 
 static void virtual_stream_encoder_hdmi_set_stream_attribute(
        struct stream_encoder *enc,