]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/display: Fallback to dmcub for psr when dmcu is disabled
authorWyatt Wood <wyatt.wood@amd.com>
Fri, 28 Feb 2020 15:45:39 +0000 (10:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Mar 2020 04:03:04 +0000 (00:03 -0400)
[Why]
We want to be able to enable/disable psr on dmcub and fallback to dmcu
when necessary.

[How]
Use dc config option to do so.

Signed-off-by: Wyatt Wood <wyatt.wood@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c

index 37f9a71eb4c1b33c78fcd60d5489ecfa4c80af6f..51b5910cd05fab3e5efd7c8ddbbc1e88e4684382 100644 (file)
@@ -1864,7 +1864,7 @@ static bool dcn21_resource_construct(
                goto create_fail;
        }
 
-       if (dc->config.psr_on_dmub) {
+       if (dc->debug.disable_dmcu) {
                pool->base.psr = dmub_psr_create(ctx);
 
                if (pool->base.psr == NULL) {