drm/amd/display: Disable MALL SS and messages for PSR supported configs
authorDillon Varone <Dillon.Varone@amd.com>
Wed, 4 Jan 2023 16:00:31 +0000 (11:00 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jan 2023 17:25:14 +0000 (12:25 -0500)
[Description]
The two features are not supported at the same time in driver at this time,
so disable it.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Dillon Varone <Dillon.Varone@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/dcn32/dcn32_hwseq.c

index 3b44006e1a80d7199f8ee3326050cdf84eb197a3..56c90752df6db81a6baae7bd178dbe242f274670 100644 (file)
@@ -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) {