Commit 1b2c7b2c authored by Bhawanpreet Lakha's avatar Bhawanpreet Lakha Committed by Alex Deucher
Browse files

drm/amd/display: call update_bw_bounding_box



call update_bw_bounding_box in DC construct

Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 30221ad8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -689,6 +689,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
+5 −0
Original line number Diff line number Diff line
@@ -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

};