drm/amd/display: Keep OTG on when Z10 is disable
authorLewis Huang <Lewis.Huang@amd.com>
Fri, 23 Sep 2022 02:42:40 +0000 (10:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Oct 2022 16:00:48 +0000 (12:00 -0400)
[Why]
Disable OTG when PSRSU with z10 even if z10 is disable

[How]
Reverse condition to keep OTG on when Z10 is disable

Reviewed-by: Robin Chen <po-tchen@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Lewis Huang <Lewis.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c

index c4daef1..d7b1ace 100644 (file)
@@ -3378,8 +3378,8 @@ bool dc_link_setup_psr(struct dc_link *link,
                case FAMILY_YELLOW_CARP:
                case AMDGPU_FAMILY_GC_10_3_6:
                case AMDGPU_FAMILY_GC_11_0_1:
-                       if(!dc->debug.disable_z10)
-                               psr_context->psr_level.bits.SKIP_CRTC_DISABLE = false;
+                       if (dc->debug.disable_z10)
+                               psr_context->psr_level.bits.SKIP_CRTC_DISABLE = true;
                        break;
                default:
                        psr_context->psr_level.bits.SKIP_CRTC_DISABLE = true;