Skip to content

Commit 8d6da3b

Browse files
Dmytro Laktyushkinalexdeucher
authored andcommitted
drm/amd/display: fix dml max voltage state
Gabe's formula sometimes uses values from non-existent 'unsupported' state to do validation. This change adds this extra state so validation can work correctly. Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent b76dfbe commit 8d6da3b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/gpu/drm/amd/display/dc/dml/display_mode_structs.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ struct _vcs_dpi_soc_bounding_box_st {
113113
int use_urgent_burst_bw;
114114
double max_hscl_ratio;
115115
double max_vscl_ratio;
116-
struct _vcs_dpi_voltage_scaling_st clock_limits[7];
116+
unsigned int num_states;
117+
struct _vcs_dpi_voltage_scaling_st clock_limits[8];
117118
};
118119

119120
struct _vcs_dpi_ip_params_st {

0 commit comments

Comments
 (0)