Skip to content

Commit 30c3a33

Browse files
Alvin Leealexdeucher
authored andcommitted
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: Chaitanya Dhere <chaitanya.dhere@amd.com> Acked-by: Stylon Wang <stylon.wang@amd.com> Signed-off-by: Alvin Lee <alvin.lee2@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 945355c commit 30c3a33

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

drivers/gpu/drm/amd/display/dc/core/dc_stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ static bool is_subvp_high_refresh_candidate(struct dc_stream_state *stream)
321321
* remain in HW cursor mode if there's no cursor update which will
322322
* then cause corruption.
323323
*/
324-
if ((refresh_rate >= 120 && refresh_rate <= 165 &&
324+
if ((refresh_rate >= 120 && refresh_rate <= 175 &&
325325
stream->timing.v_addressable >= 1440 &&
326326
stream->timing.v_addressable <= 2160) &&
327327
(dc->current_state->stream_count > 1 ||

drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
static const struct subvp_high_refresh_list subvp_high_refresh_list = {
3939
.min_refresh = 120,
40-
.max_refresh = 165,
40+
.max_refresh = 175,
4141
.res = {
4242
{.width = 3840, .height = 2160, },
4343
{.width = 3440, .height = 1440, },
@@ -1064,7 +1064,8 @@ static bool subvp_subvp_admissable(struct dc *dc,
10641064
}
10651065

10661066
if (subvp_count == 2 && ((min_refresh < 120 && max_refresh < 120) ||
1067-
(min_refresh >= 120 && max_refresh <= 165)))
1067+
(min_refresh >= subvp_high_refresh_list.min_refresh &&
1068+
max_refresh <= subvp_high_refresh_list.max_refresh)))
10681069
result = true;
10691070

10701071
return result;

0 commit comments

Comments
 (0)