Commit f659bb6d authored by Ahzo's avatar Ahzo Committed by Alex Deucher

drm/amd/powerplay/smu7: enforce minimal VBITimeout (v2)

This fixes screen corruption/flickering on 75 Hz displays.

v2: make print statement debug only (Alex)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102646Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAhzo <Ahzo@tutanota.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 108b4d92
......@@ -4068,6 +4068,11 @@ static int smu7_program_display_gap(struct pp_hwmgr *hwmgr)
data->frame_time_x2 = frame_time_in_us * 2 / 100;
if (data->frame_time_x2 < 280) {
pr_debug("%s: enforce minimal VBITimeout: %d -> 280\n", __func__, data->frame_time_x2);
data->frame_time_x2 = 280;
}
display_gap2 = pre_vbi_time_in_us * (ref_clock / 100);
cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, ixCG_DISPLAY_GAP_CNTL2, display_gap2);
......
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