drm/amdgpu/display: protect DCN specific stuff in process_deferred_updates
Subsystems (3)
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu/display: protect DCN specific stuff in process_deferred_updates
Need to protect this function with CONFIG_DRM_AMD_DC_DCN.
Fixes bfd34644dedb ("drm/amd/display: Defer LUT memory powerdown until LUT bypass latches")
Cc Michael Strauss <[email protected]>
Cc Eric Yang <[email protected]>
Cc Anson Jacob <[email protected]>
Reported-by Stephen Rothwell <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/display/dc/core/dc.c +2 -0
@@ -1802,12 +1802,14 @@ static bool is_flip_pending_in_pipes(struct dc *dc, struct dc_state *context)*/ static void process_deferred_updates (struct dc *dc) { +#ifdef CONFIG_DRM_AMD_DC_DCN int i;if (dc->debug.enable_mem_low_power.bits.cm)for (i =0 ; i < dc->dcn_ip->max_num_dpp; i++)if (dc->res_pool->dpps[i]->funcs->dpp_deferred_update) dc->res_pool->dpps[i]->funcs->dpp_deferred_update (dc->res_pool->dpps[i]); +#endif }void dc_post_update_surfaces_to_stream (struct dc *dc)
Signature · 1 line
2.31.1
Quoted 8 lines · Alex Deucher
Need to protect this function with
CONFIG_DRM_AMD_DC_DCN.Fixes bfd34644dedb ("drm/amd/display: Defer LUT memory powerdown until LUT bypass latches")Cc Michael Strauss <[email protected]>Cc Eric Yang <[email protected]>Cc Anson Jacob <[email protected]>Reported-by Stephen Rothwell <[email protected]>Signed-off-by Alex Deucher <[email protected]>
Reviewed-by Harry Wentland <[email protected]>
Harry
Quoted 24 lines
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/amd/display/dc/core/dc.c +2
-0@@ -1802,12 +1802,14 @@ static bool is_flip_pending_in_pipes(struct dc *dc, struct dc_state *context)*/ static void process_deferred_updates (struct dc *dc) { +#ifdef CONFIG_DRM_AMD_DC_DCN int i;if (dc->debug.enable_mem_low_power.bits.cm)for (i =0 ; i < dc->dcn_ip->max_num_dpp; i++)if (dc->res_pool->dpps[i]->funcs->dpp_deferred_update) dc->res_pool->dpps[i]->funcs->dpp_deferred_update (dc->res_pool->dpps[i]); +#endif }void dc_post_update_surfaces_to_stream (struct dc *dc)