drm/amd/display: Add debug option for idle reg checks
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 27 Feb 2024 21:28:01 +0000 (16:28 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Mar 2024 17:38:13 +0000 (13:38 -0400)
[Why]
Leave disabled by default due to sequencing issues around power states
where these flags aren't properly reset.

[How]
Allow re-enabling from DC debug option.

Reviewed-by: Gabe Teeger <gabe.teeger@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@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/dc.h

index e17ddda8ec384f69b0b972b05acf772bbeef26de..8abd19e7f8267327faabc258a963e008f605aaaf 100644 (file)
@@ -991,6 +991,7 @@ struct dc_debug_options {
        bool disable_dmub_reallow_idle;
        bool disable_timeout;
        bool disable_extblankadj;
+       bool enable_idle_reg_checks;
        unsigned int static_screen_wait_frames;
        bool force_chroma_subsampling_1tap;
 };