From: Ville Syrjälä Date: Mon, 10 Nov 2014 20:55:15 +0000 (+0200) Subject: drm/i915: Change CHV SKU400 GPU freq divider to 10 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ab3fb15730fd7a3d2d00c926bc95a81bb283a90f;p=linux-beck.git drm/i915: Change CHV SKU400 GPU freq divider to 10 According to "Cherryview_GFXclocks_y14w36d1.xlsx" the GPU frequency divider should be 10 in when the CZ clock is 400 MHz. Change the code to agree so that we report the correct frequencies. Signed-off-by: Ville Syrjälä Reviewed-by: Deepak S Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 290af15af067..929648f2373f 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -7215,8 +7215,9 @@ static int vlv_gpu_freq_div(unsigned int czclk_freq) return 12; case 320: case 333: - case 400: return 16; + case 400: + return 20; default: return -1; }