From: Dillon Varone Date: Wed, 4 Jan 2023 16:00:31 +0000 (-0500) Subject: drm/amd/display: Disable MALL SS and messages for PSR supported configs X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0bed85e48af1a1a2851f44bd4c486bff414f1079;p=linux.git drm/amd/display: Disable MALL SS and messages for PSR supported configs [Description] The two features are not supported at the same time in driver at this time, so disable it. Reviewed-by: Alvin Lee Acked-by: Alan Liu Signed-off-by: Dillon Varone Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c index 3b44006e1a80d..56c90752df6db 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c @@ -247,6 +247,13 @@ bool dcn32_apply_idle_power_optimizations(struct dc *dc, bool enable) if (!dc->ctx->dmub_srv) return false; + for (i = 0; i < dc->current_state->stream_count; i++) { + /* MALL SS messaging is not supported with PSR at this time */ + if (dc->current_state->streams[i] != NULL && + dc->current_state->streams[i]->link->psr_settings.psr_version != DC_PSR_VERSION_UNSUPPORTED) + return false; + } + if (enable) { if (dc->current_state) {