drm/amd/display: Don't check output BPP for phantom
authorAlvin Lee <Alvin.Lee2@amd.com>
Tue, 1 Nov 2022 20:10:49 +0000 (16:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Nov 2022 18:35:14 +0000 (13:35 -0500)
[Description]
- If we're enabling phantom pipe for a high
  link rate display we could
  fail DML on the phantom pipe since it's
  set to virtual signal
- Therefore don't consider Output BPP for
  phantom pipe

Reviewed-by: Dillon Varone <Dillon.Varone@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Alvin Lee <Alvin.Lee2@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c

index 244fd15d24b433075dbbf7948765f1ad2ec23547..7aaf67b464e0dae10b68c4e41d4891855ebecea6 100644 (file)
@@ -2284,7 +2284,7 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
                                        && (mode_lib->vba.Output[k] == dm_dp || mode_lib->vba.Output[k] == dm_dp2p0
                                                        || mode_lib->vba.Output[k] == dm_edp
                                                        || mode_lib->vba.Output[k] == dm_hdmi)
-                                       && mode_lib->vba.OutputBppPerState[i][k] == 0) {
+                                       && mode_lib->vba.OutputBppPerState[i][k] == 0 && (mode_lib->vba.UsesMALLForPStateChange[k] != dm_use_mall_pstate_change_phantom_pipe)) {
                                mode_lib->vba.LinkCapacitySupport[i] = false;
                        }
                }