Re: [PATCH] drm/amd/display: Fix DC_FP_START/END use on non-DCN builds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2022-02-17 16:05, sunpeng.li@xxxxxxx wrote:
> From: Leo Li <sunpeng.li@xxxxxxx>
> 
> DC_FP_START/END is only defined for CONFIG_DRM_AMD_DC_DCN enabled
> builds, and update_bw_bounding_box() is only valid for DCN ASICs.
> 
> Therefore, wrap the entire thing in the ifdef guard.
> 
> Acked-by: Alex Deucher <alexander.deucher@xxxxxxx>
> Signed-off-by: Leo Li <sunpeng.li@xxxxxxx>

Reviewed-by: Harry Wentland <harry.wentland@xxxxxxx>

Harry

> ---
>  drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
> index 4ea114725d61..b1ce3c0cf477 100644
> --- a/drivers/gpu/drm/amd/display/dc/core/dc.c
> +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
> @@ -987,13 +987,13 @@ static bool dc_construct(struct dc *dc,
>  		goto fail;
>  #ifdef CONFIG_DRM_AMD_DC_DCN
>  	dc->clk_mgr->force_smu_not_present = init_params->force_smu_not_present;
> -#endif
>  
>  	if (dc->res_pool->funcs->update_bw_bounding_box) {
>  		DC_FP_START();
>  		dc->res_pool->funcs->update_bw_bounding_box(dc, dc->clk_mgr->bw_params);
>  		DC_FP_END();
>  	}
> +#endif
>  
>  	/* Creation of current_state must occur after dc->dml
>  	 * is initialized in dc_create_resource_pool because




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux