drm/amd/display: Check for DP2.0 when checking ODM combine
authorWesley Chalmers <Wesley.Chalmers@amd.com>
Mon, 20 Jun 2022 21:19:11 +0000 (17:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Jul 2022 20:48:50 +0000 (16:48 -0400)
[WHY]
Certain DP 2.0 modes may fail validation if DP 2.0 is not considered for
ODM combine.

Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Acked-by: Solomon Chiu <solomon.chiu@amd.com>
Signed-off-by: Wesley Chalmers <Wesley.Chalmers@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/dcn31/display_mode_vba_31.c

index 9957313da73251b2a9080ea9e926e49256abbf95..3fab19134480d3784dc237b14349bcb0a1377d19 100644 (file)
@@ -4212,6 +4212,7 @@ void dml31_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
 
                                if (v->ODMCombinePolicy == dm_odm_combine_policy_none
                                                || !(v->Output[k] == dm_dp ||
+                                                    v->Output[k] == dm_dp2p0 ||
                                                     v->Output[k] == dm_edp)) {
                                        v->ODMCombineEnablePerState[i][k] = dm_odm_combine_mode_disabled;
                                        v->PlaneRequiredDISPCLK = v->PlaneRequiredDISPCLKWithoutODMCombine;