summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorCharlene Liu <Charlene.Liu@amd.com>2026-05-14 17:41:30 -0400
committerAlex Deucher <alexander.deucher@amd.com>2026-06-03 13:32:05 -0400
commit95bb92e33e99cc89bc9975e7c934a81e806c14dc (patch)
treef6efedcadb8382079b8375a0c43d498ebb092300 /drivers/gpu
parent4d8cfd570386eb0b6cb8aa0ca9e9db60a0404337 (diff)
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 <ovidiu.bunea@amd.com> Signed-off-by: Charlene Liu <Charlene.Liu@amd.com> Signed-off-by: Ray Wu <ray.wu@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/display/dc/resource/dcn42/dcn42_resource.c6
1 files changed, 4 insertions, 2 deletions
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 efe025ca4ed3..b9f998ea2d0f 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);