Dmytro Laktyushkin c42656f8fc drm/amd/display: Fix dcn21 num_states
[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>
2020-03-31 12:26:15 -04:00
..
2020-03-31 12:26:15 -04:00
2020-03-02 09:22:43 +01:00
2020-03-31 15:15:47 +10:00
2020-03-31 15:15:47 +10:00
2020-03-31 15:15:47 +10:00
2020-03-11 07:27:21 +10:00
2020-03-31 15:15:47 +10:00
2020-02-21 05:44:40 +10:00
2020-03-20 13:08:38 +10:00
2020-03-02 09:22:49 +01:00
2020-03-19 11:01:58 +10:00
2020-03-12 12:42:56 +10:00
2020-03-02 09:22:56 +01:00
2020-03-31 15:15:47 +10:00
2020-03-11 07:27:21 +10:00
2020-03-19 10:11:09 +10:00
2020-03-19 11:01:58 +10:00
2020-03-12 12:42:56 +10:00
2020-03-16 09:26:18 +01:00
2020-03-11 07:27:21 +10:00
2020-01-14 16:22:17 -05:00
2019-10-08 18:29:00 +02:00
2020-03-19 10:40:27 +10:00
2020-03-31 15:15:47 +10:00
2020-01-14 16:22:17 -05:00
2020-01-14 16:22:17 -05:00
2020-03-16 09:27:09 +01:00
2020-03-09 09:22:50 +00:00
2020-03-16 09:25:22 +01:00