Commit 30c3a330 authored by Alvin Lee's avatar Alvin Lee Committed by Alex Deucher

drm/amd/display: Enable subvp high refresh up to 175hz

[Description]
Expand the SubVP policy to include up to 175hz displays
for better power saving on more display configs.
Reviewed-by: default avatarChaitanya Dhere <chaitanya.dhere@amd.com>
Acked-by: default avatarStylon Wang <stylon.wang@amd.com>
Signed-off-by: default avatarAlvin Lee <alvin.lee2@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 945355c9
...@@ -321,7 +321,7 @@ static bool is_subvp_high_refresh_candidate(struct dc_stream_state *stream) ...@@ -321,7 +321,7 @@ static bool is_subvp_high_refresh_candidate(struct dc_stream_state *stream)
* remain in HW cursor mode if there's no cursor update which will * remain in HW cursor mode if there's no cursor update which will
* then cause corruption. * then cause corruption.
*/ */
if ((refresh_rate >= 120 && refresh_rate <= 165 && if ((refresh_rate >= 120 && refresh_rate <= 175 &&
stream->timing.v_addressable >= 1440 && stream->timing.v_addressable >= 1440 &&
stream->timing.v_addressable <= 2160) && stream->timing.v_addressable <= 2160) &&
(dc->current_state->stream_count > 1 || (dc->current_state->stream_count > 1 ||
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
static const struct subvp_high_refresh_list subvp_high_refresh_list = { static const struct subvp_high_refresh_list subvp_high_refresh_list = {
.min_refresh = 120, .min_refresh = 120,
.max_refresh = 165, .max_refresh = 175,
.res = { .res = {
{.width = 3840, .height = 2160, }, {.width = 3840, .height = 2160, },
{.width = 3440, .height = 1440, }, {.width = 3440, .height = 1440, },
...@@ -1064,7 +1064,8 @@ static bool subvp_subvp_admissable(struct dc *dc, ...@@ -1064,7 +1064,8 @@ static bool subvp_subvp_admissable(struct dc *dc,
} }
if (subvp_count == 2 && ((min_refresh < 120 && max_refresh < 120) || if (subvp_count == 2 && ((min_refresh < 120 && max_refresh < 120) ||
(min_refresh >= 120 && max_refresh <= 165))) (min_refresh >= subvp_high_refresh_list.min_refresh &&
max_refresh <= subvp_high_refresh_list.max_refresh)))
result = true; result = true;
return result; return result;
......
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