[PATCH] drm/amdgpu/display: protect DCN specific stuff in process_deferred_updates

Harry Wentland harry.wentland at amd.com
Wed Sep 29 21:02:41 UTC 2021


On 2021-09-29 16:36, Alex Deucher wrote:
> 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 <michael.strauss at amd.com>
> Cc: Eric Yang <Eric.Yang2 at amd.com>
> Cc: Anson Jacob <Anson.Jacob at amd.com>
> Reported-by: Stephen Rothwell <sfr at canb.auug.org.au>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

Reviewed-by: Harry Wentland <harry.wentland at amd.com>

Harry

> ---
>  drivers/gpu/drm/amd/display/dc/core/dc.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
> index 0f0440408a16..b113e7e74ded 100644
> --- a/drivers/gpu/drm/amd/display/dc/core/dc.c
> +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
> @@ -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)
> 



More information about the amd-gfx mailing list