diff options
author | Lewis Huang <Lewis.Huang@amd.com> | 2022-09-23 10:42:40 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-10-06 12:00:48 -0400 |
commit | 8cab4ef0ad9521030e1ae4bd294a1e2e6a04659f (patch) | |
tree | 9e468e0a23c343f8411bc85ce4e5be51b85b18c6 /drivers/gpu | |
parent | 4931ce22eca6ed5f8a3a3820fd13e586011ac219 (diff) | |
download | linux-stable-8cab4ef0ad9521030e1ae4bd294a1e2e6a04659f.tar.gz linux-stable-8cab4ef0ad9521030e1ae4bd294a1e2e6a04659f.tar.bz2 linux-stable-8cab4ef0ad9521030e1ae4bd294a1e2e6a04659f.zip |
drm/amd/display: Keep OTG on when Z10 is disable
[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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc_link.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index c4daef1e708c..d7b1ace6328a 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -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; |