From: Bhawanpreet Lakha <bhawanpreet.la...@amd.com>

call update_bw_bounding_box in DC construct

Signed-off-by: Bhawanpreet Lakha <bhawanpreet.la...@amd.com>
Signed-off-by: Alex Deucher <alexander.deuc...@amd.com>
---
 drivers/gpu/drm/amd/display/dc/core/dc.c        | 5 +++++
 drivers/gpu/drm/amd/display/dc/inc/core_types.h | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c 
b/drivers/gpu/drm/amd/display/dc/core/dc.c
index e46aaff55fb9..00e3679024fc 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
@@ -686,6 +686,11 @@ static bool construct(struct dc *dc,
        if (!dc->clk_mgr)
                goto fail;
 
+#ifdef CONFIG_DRM_AMD_DC_DCN2_1
+       if (dc->res_pool->funcs->update_bw_bounding_box)
+               dc->res_pool->funcs->update_bw_bounding_box(dc, 
dc->clk_mgr->bw_params);
+#endif
+
        /* Creation of current_state must occur after dc->dml
         * is initialized in dc_create_resource_pool because
         * on creation it copies the contents of dc->dml
diff --git a/drivers/gpu/drm/amd/display/dc/inc/core_types.h 
b/drivers/gpu/drm/amd/display/dc/inc/core_types.h
index df28fbc4c63c..8726bd7dd910 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/core_types.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/core_types.h
@@ -142,6 +142,11 @@ struct resource_funcs {
                        display_e2e_pipe_params_st *pipes,
                        int pipe_cnt);
 #endif
+#if defined(CONFIG_DRM_AMD_DC_DCN2_1)
+       void (*update_bw_bounding_box)(
+                       struct dc *dc,
+                       struct clk_bw_params *bw_params);
+#endif
 
 };
 
-- 
2.20.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to