Commit 00812bfc authored by Nicholas Kazlauskas's avatar Nicholas Kazlauskas Committed by Alex Deucher

drm/amd/display: Add debug option to skip PSR CRTC disable

[Why]
It's currently tied to Z10 support, and is required for Z10, but
we can still support Z10 display off without PSR.

We currently need to skip the PSR CRTC disable to prevent stuttering
and underflow from occuring during PSR-SU.

[How]
Add a debug option to allow specifying this separately.
Reviewed-by: default avatarRobin Chen <robin.chen@amd.com>
Acked-by: default avatarStylon Wang <stylon.wang@amd.com>
Signed-off-by: default avatarNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6f0bf2db
...@@ -3378,7 +3378,7 @@ bool dc_link_setup_psr(struct dc_link *link, ...@@ -3378,7 +3378,7 @@ bool dc_link_setup_psr(struct dc_link *link,
case FAMILY_YELLOW_CARP: case FAMILY_YELLOW_CARP:
case AMDGPU_FAMILY_GC_10_3_6: case AMDGPU_FAMILY_GC_10_3_6:
case AMDGPU_FAMILY_GC_11_0_1: case AMDGPU_FAMILY_GC_11_0_1:
if (dc->debug.disable_z10) if (dc->debug.disable_z10 || dc->debug.psr_skip_crtc_disable)
psr_context->psr_level.bits.SKIP_CRTC_DISABLE = true; psr_context->psr_level.bits.SKIP_CRTC_DISABLE = true;
break; break;
default: default:
......
...@@ -844,6 +844,7 @@ struct dc_debug_options { ...@@ -844,6 +844,7 @@ struct dc_debug_options {
int crb_alloc_policy_min_disp_count; int crb_alloc_policy_min_disp_count;
bool disable_z10; bool disable_z10;
bool enable_z9_disable_interface; bool enable_z9_disable_interface;
bool psr_skip_crtc_disable;
union dpia_debug_options dpia_debug; union dpia_debug_options dpia_debug;
bool disable_fixed_vs_aux_timeout_wa; bool disable_fixed_vs_aux_timeout_wa;
bool force_disable_subvp; bool force_disable_subvp;
......
...@@ -886,6 +886,7 @@ static const struct dc_plane_cap plane_cap = { ...@@ -886,6 +886,7 @@ static const struct dc_plane_cap plane_cap = {
static const struct dc_debug_options debug_defaults_drv = { static const struct dc_debug_options debug_defaults_drv = {
.disable_z10 = false, .disable_z10 = false,
.enable_z9_disable_interface = true, .enable_z9_disable_interface = true,
.psr_skip_crtc_disable = true,
.disable_dmcu = true, .disable_dmcu = true,
.force_abm_enable = false, .force_abm_enable = false,
.timing_trace = false, .timing_trace = false,
......
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