From: Roman Li Date: Tue, 3 Nov 2020 22:43:24 +0000 (-0500) Subject: drm/amd/display: fix psr panel lightup X-Git-Tag: baikal/mips/sdk5.9~12066^2~12^2~5 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=4c2b07680312c9f79e27901d0a5b3778c9c7dbfd;p=kernel.git drm/amd/display: fix psr panel lightup [Why] The change for correct asic type check caused a psr regression due to incorrect chip family id for Raven. [How] Use correct family id. Signed-off-by: Roman Li Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- 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 6b8bc8dde6ea6..09b51fca3d44d 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -2740,7 +2740,7 @@ bool dc_link_setup_psr(struct dc_link *link, #if defined(CONFIG_DRM_AMD_DC_DCN) /*skip power down the single pipe since it blocks the cstate*/ - if ((link->ctx->asic_id.chip_family == FAMILY_AI) && + if ((link->ctx->asic_id.chip_family == FAMILY_RV) && ASICREV_IS_RAVEN(link->ctx->asic_id.hw_internal_rev)) psr_context->psr_level.bits.SKIP_CRTC_DISABLE = true; #endif