drm/i915: Change CHV SKU400 GPU freq divider to 10
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 10 Nov 2014 20:55:15 +0000 (22:55 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 17 Nov 2014 14:34:44 +0000 (15:34 +0100)
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ä <ville.syrjala@linux.intel.com>
Reviewed-by: Deepak S<deepak.s@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c

index 290af15af06770bc05491e2f21a2231fd4a6359d..929648f2373f2e9b29b771e1f908ed17d62dd1ae 100644 (file)
@@ -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;
        }