Commit 550db288 authored by Gary Kattan's avatar Gary Kattan Committed by Alex Deucher

drm/amd/display: Fix DAL217 tests modify DTN logs for other tests

[Why]Update Code to get DTN golden log check to pass for tests run after
DAL217 tests.
[How]Change how dcn10_log_hw_state function prints HW state info
(CM_GAMUT_REMAP_Cx_Cx registers) when GAMUT REMAP is in bypass mode.
Signed-off-by: default avatarGary Kattan <gary.kattan@amd.com>
Reviewed-by: default avatarDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 182388fc
...@@ -116,12 +116,14 @@ void dpp_read_state(struct dpp *dpp_base, ...@@ -116,12 +116,14 @@ void dpp_read_state(struct dpp *dpp_base,
REG_GET(CM_GAMUT_REMAP_CONTROL, REG_GET(CM_GAMUT_REMAP_CONTROL,
CM_GAMUT_REMAP_MODE, &s->gamut_remap_mode); CM_GAMUT_REMAP_MODE, &s->gamut_remap_mode);
s->gamut_remap_c11_c12 = REG_READ(CM_GAMUT_REMAP_C11_C12); if (s->gamut_remap_mode) {
s->gamut_remap_c13_c14 = REG_READ(CM_GAMUT_REMAP_C13_C14); s->gamut_remap_c11_c12 = REG_READ(CM_GAMUT_REMAP_C11_C12);
s->gamut_remap_c21_c22 = REG_READ(CM_GAMUT_REMAP_C21_C22); s->gamut_remap_c13_c14 = REG_READ(CM_GAMUT_REMAP_C13_C14);
s->gamut_remap_c23_c24 = REG_READ(CM_GAMUT_REMAP_C23_C24); s->gamut_remap_c21_c22 = REG_READ(CM_GAMUT_REMAP_C21_C22);
s->gamut_remap_c31_c32 = REG_READ(CM_GAMUT_REMAP_C31_C32); s->gamut_remap_c23_c24 = REG_READ(CM_GAMUT_REMAP_C23_C24);
s->gamut_remap_c33_c34 = REG_READ(CM_GAMUT_REMAP_C33_C34); s->gamut_remap_c31_c32 = REG_READ(CM_GAMUT_REMAP_C31_C32);
s->gamut_remap_c33_c34 = REG_READ(CM_GAMUT_REMAP_C33_C34);
}
} }
/* Program gamut remap in bypass mode */ /* Program gamut remap in bypass mode */
......
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