[Why] DML expects num_states to exclude the duplicate state. [How] Set num_states to correct value to prevent array off-by-one error. Also refactor max clock level code for diags. Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Signed-off-by: George Shen <george.shen@amd.com> Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> |
||
---|---|---|
.. | ||
dcn20 | ||
dcn21 | ||
dc_features.h | ||
display_mode_enums.h | ||
display_mode_lib.c | ||
display_mode_lib.h | ||
display_mode_structs.h | ||
display_mode_vba.c | ||
display_mode_vba.h | ||
display_rq_dlg_helpers.c | ||
display_rq_dlg_helpers.h | ||
dml1_display_rq_dlg_calc.c | ||
dml1_display_rq_dlg_calc.h | ||
dml_common_defs.c | ||
dml_common_defs.h | ||
dml_inline_defs.h | ||
dml_logger.h | ||
Makefile |