Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d6da3bb authored by Dmytro Laktyushkin's avatar Dmytro Laktyushkin Committed by Alex Deucher
Browse files

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: default avatarDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarLeo Li <sunpeng.li@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b76dfbef
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -113,7 +113,8 @@ struct _vcs_dpi_soc_bounding_box_st {
	int use_urgent_burst_bw;
	double max_hscl_ratio;
	double max_vscl_ratio;
	struct _vcs_dpi_voltage_scaling_st clock_limits[7];
	unsigned int num_states;
	struct _vcs_dpi_voltage_scaling_st clock_limits[8];
};

struct _vcs_dpi_ip_params_st {