From: Anthony Koo Date: Tue, 6 Jun 2017 20:30:51 +0000 (-0400) Subject: drm/amd/display: Temporary disable BTR FreeSync support for now X-Git-Tag: v4.15-rc1~56^2~23^2~426 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fea0f581ab529e194d424452a6f7ecd88c5a2116;p=thirdparty%2Fkernel%2Flinux.git drm/amd/display: Temporary disable BTR FreeSync support for now Reduce timer tick interval for the static screen Signed-off-by: Anthony Koo Reviewed-by: Tony Cheng Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c index f79c47951f90c..7109742bd67c1 100644 --- a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c +++ b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c @@ -436,11 +436,14 @@ static void calc_freesync_range(struct core_freesync *core_freesync, } /* Determine whether BTR can be supported */ - if (max_frame_duration_in_ns >= - 2 * min_frame_duration_in_ns) - core_freesync->map[index].caps->btr_supported = true; - else - core_freesync->map[index].caps->btr_supported = false; + //if (max_frame_duration_in_ns >= + // 2 * min_frame_duration_in_ns) + // core_freesync->map[index].caps->btr_supported = true; + //else + // core_freesync->map[index].caps->btr_supported = false; + + /* Temp, keep btr disabled */ + core_freesync->map[index].caps->btr_supported = false; /* Cache the time variables */ state->time.max_render_time_in_us =