From: Muhammad Ahmed Date: Wed, 6 Dec 2023 23:07:57 +0000 (-0500) Subject: drm/amd/display: add debug option for ExtendedVBlank DLG adjust X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ec39a6d00382dfd23bf74ec28c7cf4b87884ae1b;p=linux.git drm/amd/display: add debug option for ExtendedVBlank DLG adjust [why & how] Add new option for debug usage Reviewed-by: Charlene Liu Acked-by: Wayne Lin Signed-off-by: Muhammad Ahmed Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index c87ec3e0a8cfd..ce00a6eeb1640 100644 --- a/drivers/gpu/drm/amd/display/dc/dc.h +++ b/drivers/gpu/drm/amd/display/dc/dc.h @@ -979,6 +979,7 @@ struct dc_debug_options { unsigned int ips2_eval_delay_us; unsigned int ips2_entry_delay_us; bool disable_timeout; + bool disable_extblankadj; }; struct gpu_info_soc_bounding_box_v1_0; diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c index 2c8eff815ec11..72c580ec650cf 100644 --- a/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c @@ -2221,7 +2221,8 @@ void dcn20_optimize_bandwidth( dc->clk_mgr, context, true); - if (context->bw_ctx.bw.dcn.clk.zstate_support == DCN_ZSTATE_SUPPORT_ALLOW) { + if (context->bw_ctx.bw.dcn.clk.zstate_support == DCN_ZSTATE_SUPPORT_ALLOW && + !dc->debug.disable_extblankadj) { for (i = 0; i < dc->res_pool->pipe_count; ++i) { struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[i];