Commit 8defa1a3 authored by Wyatt Wood's avatar Wyatt Wood Committed by Alex Deucher

drm/amd/display: Fallback to dmcub for psr when dmcu is disabled

[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: default avatarWyatt Wood <wyatt.wood@amd.com>
Reviewed-by: default avatarNicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f0a574c9
...@@ -1864,7 +1864,7 @@ static bool dcn21_resource_construct( ...@@ -1864,7 +1864,7 @@ static bool dcn21_resource_construct(
goto create_fail; goto create_fail;
} }
if (dc->config.psr_on_dmub) { if (dc->debug.disable_dmcu) {
pool->base.psr = dmub_psr_create(ctx); pool->base.psr = dmub_psr_create(ctx);
if (pool->base.psr == NULL) { if (pool->base.psr == NULL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment