From: Charlene Liu Date: Thu, 14 May 2026 21:41:30 +0000 (-0400) Subject: drm/amd/display: Add DC_VALIDATE_MODE_AND_PROGRAMMING condition check for force odm2:1 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=95bb92e33e99cc89bc9975e7c934a81e806c14dc;p=thirdparty%2Flinux.git drm/amd/display: Add DC_VALIDATE_MODE_AND_PROGRAMMING condition check for force odm2:1 [Why & How] Need to limit force ODM 2:1 to DC_VALIDATE_MODE_AND_PROGRAMMING only, i.e. not block isCofunc check for topology mapping allowed. Reviewed-by: Ovidiu Bunea Signed-off-by: Charlene Liu Signed-off-by: Ray Wu Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/resource/dcn42/dcn42_resource.c b/drivers/gpu/drm/amd/display/dc/resource/dcn42/dcn42_resource.c index efe025ca4ed3e..b9f998ea2d0fa 100644 --- a/drivers/gpu/drm/amd/display/dc/resource/dcn42/dcn42_resource.c +++ b/drivers/gpu/drm/amd/display/dc/resource/dcn42/dcn42_resource.c @@ -1725,8 +1725,10 @@ enum dc_status dcn42_validate_bandwidth(struct dc *dc, bool out = false; DC_FP_START(); - - dcn42_decide_odm_override(dc, context); + if (validate_mode == DC_VALIDATE_MODE_AND_PROGRAMMING) { + /*only do this when programing HW*/ + dcn42_decide_odm_override(dc, context); + } out = dml2_validate(dc, context, context->bw_ctx.dml2, validate_mode);