drm/amd/display: add some parameters to validate bandwidth functions
authorCharlene Liu <charlene.liu@amd.com>
Mon, 3 Jun 2019 14:53:44 +0000 (10:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 22 Jun 2019 14:34:13 +0000 (09:34 -0500)
required for new checks.

Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@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/dc_types.h
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_stream_encoder.c
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.h
drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.h

index 7ce8d62ce5ae23702ce4bce5de8299fb3e49dbbc..a06429ca00196723db26dcab61529766a231e6bd 100644 (file)
@@ -574,6 +574,14 @@ struct dc_info_packet {
        uint8_t sb[32];
 };
 
+struct dc_info_packet_128 {
+       bool valid;
+       uint8_t hb0;
+       uint8_t hb1;
+       uint8_t hb2;
+       uint8_t hb3;
+       uint8_t sb[128];
+};
 #define DC_PLANE_UPDATE_TIMES_MAX 10
 
 struct dc_plane_flip_time {
index d71a0dcf652ac109c1bf25d43e11b43e45504ac6..310687ec166e258c203cee9ba0cab37f0308a257 100644 (file)
@@ -2364,7 +2364,8 @@ bool dcn20_validate_bandwidth(struct dc *dc, struct dc_state *context,
                                pipe_cnt,
                                pipe_idx,
                                cstate_en,
-                               context->bw_ctx.bw.dcn.clk.p_state_change_support);
+                               context->bw_ctx.bw.dcn.clk.p_state_change_support,
+                               false, false, false);
 
                context->bw_ctx.dml.funcs.rq_dlg_get_rq_reg(&context->bw_ctx.dml,
                                &context->res_ctx.pipe_ctx[i].rq_regs,
index 130b01801a2690a8953bbc4df644f6eddb961626..791aa745efd22354a254e7c7aed47b1259935a62 100644 (file)
@@ -204,14 +204,7 @@ static void enc2_stream_encoder_stop_hdmi_info_packets(
 }
 
 #ifdef CONFIG_DRM_AMD_DC_DSC_SUPPORT
-struct dc_info_packet_128 {
-       bool valid;
-       uint8_t hb0;
-       uint8_t hb1;
-       uint8_t hb2;
-       uint8_t hb3;
-       uint8_t sb[128];
-};
+
 
 /* Update GSP7 SDP 128 byte long */
 static void enc2_send_gsp7_128_info_packet(
index ec518ab0f694652520f0c55ae05968596e7919f0..878bf4782ce611703e05eeb0ef1d1af300c2e39d 100644 (file)
@@ -1567,7 +1567,10 @@ void dml20_rq_dlg_get_dlg_reg(struct display_mode_lib *mode_lib,
                const unsigned int num_pipes,
                const unsigned int pipe_idx,
                const bool cstate_en,
-               const bool pstate_en)
+               const bool pstate_en,
+               const bool vm_en,
+               const bool ignore_viewport_pos,
+               const bool immediate_flip_support)
 {
        display_rq_params_st rq_param = {0};
        display_dlg_sys_params_st dlg_sys_param = {0};
index ebb26105cf59afdaf0518fae86eebaf435e0b698..8c86b63ddf077901ab6f935f97fdca216453dc6d 100644 (file)
@@ -66,6 +66,9 @@ void dml20_rq_dlg_get_dlg_reg(
                const unsigned int num_pipes,
                const unsigned int pipe_idx,
                const bool cstate_en,
-               const bool pstate_en);
+               const bool pstate_en,
+               const bool vm_en,
+               const bool ignore_viewport_pos,
+               const bool immediate_flip_support);
 
 #endif
index 61541c431110db7d26443937183dfd26e6b8bd0e..5bf13d67f289e27c4332e1e1ea5eb3e50dda4208 100644 (file)
@@ -50,7 +50,10 @@ struct dml_funcs {
                        const unsigned int num_pipes,
                        const unsigned int pipe_idx,
                        const bool cstate_en,
-                       const bool pstate_en);
+                       const bool pstate_en,
+                       const bool vm_en,
+                       const bool ignore_viewport_pos,
+                       const bool immediate_flip_support);
        void (*rq_dlg_get_rq_reg)(
                struct display_mode_lib *mode_lib,
                display_rq_regs_st *rq_regs,