From: Ville Syrjälä Date: Wed, 11 May 2016 19:44:46 +0000 (+0300) Subject: drm/i915: Remove 10% cdclk guardband on BXT X-Git-Tag: MMI-PSA29.97-13-9~7427^2~45^2~51 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=760e1477260a1c83503f93c1fa3e94df81ba474d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drm/i915: Remove 10% cdclk guardband on BXT We don't need any pixel clock vs. cdclk guardband since HSW. BXT still tries to add one though. Get rid of it. Signed-off-by: Ville Syrjälä Link: http://patchwork.freedesktop.org/patch/msgid/1462995892-32416-8-git-send-email-ville.syrjala@linux.intel.com Reviewed-by: Imre Deak --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index d837bc4a7e39..fcfd68b2590b 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -5901,16 +5901,15 @@ static int broxton_calc_cdclk(int max_pixclk) { /* * FIXME: - * - remove the guardband, it's not needed on BXT * - set 19.2MHz bypass frequency if there are no active pipes */ - if (max_pixclk > 576000*9/10) + if (max_pixclk > 576000) return 624000; - else if (max_pixclk > 384000*9/10) + else if (max_pixclk > 384000) return 576000; - else if (max_pixclk > 288000*9/10) + else if (max_pixclk > 288000) return 384000; - else if (max_pixclk > 144000*9/10) + else if (max_pixclk > 144000) return 288000; else return 144000;