From: Alvin Lee <[email protected]>

[Why&How]
DML should have a method of disabling alt-ch pstate method.
Add a debug mask bit to disable the alt-ch pstate method in PMO.

Reviewed-by: Dillon Varone <[email protected]>
Signed-off-by: Alvin Lee <[email protected]>
Signed-off-by: Ivan Lipski <[email protected]>
---
 .../drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c   | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c 
b/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
index f4f848d738208..d456fb3d616d4 100644
--- a/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
+++ b/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
@@ -31,6 +31,7 @@ static void dml21_populate_pmo_options(struct 
dml2_pmo_options *pmo_options,
                        disable_fams2;
        pmo_options->disable_drr_var = 
((in_dc->debug.dml21_disable_pstate_method_mask >> 4) & 1) ||
                        disable_fams2;
+       pmo_options->disable_alternate_memory_training = 
((in_dc->debug.dml21_disable_pstate_method_mask >> 5) & 1);
        pmo_options->disable_fams2 = disable_fams2;
 
        pmo_options->disable_drr_var_when_var_active = 
in_dc->debug.disable_fams_gaming == INGAME_FAMS_DISABLE ||
-- 
2.43.0

Reply via email to