drm/i915/ehl: Update voltage level checks
authorMatt Roper <matthew.d.roper@intel.com>
Mon, 18 Nov 2019 16:44:12 +0000 (08:44 -0800)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 25 Nov 2019 13:00:44 +0000 (15:00 +0200)
The bspec was recently updated with new cdclk -> voltage level tables to
accommodate the new 324/326.4 cdclk values.

Bspec: 21809
Fixes: 63c9dae71dc5 ("drm/i915/ehl: Add voltage level requirement table")
Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Vivek Kasireddy <vivek.kasireddy@intel.com>
Cc: Bob Paauwe <bob.j.paauwe@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191118164412.26216-1-matthew.d.roper@intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
(cherry picked from commit d147483884ed08ee6bb618ef610ee0329a27fda7)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/display/intel_cdclk.c

index 0caef2592a7e2aec8fdac9f046fd3c4317ca590c..ed8c7ce621195d4fb800b8b4cbc0e244ae898a9e 100644 (file)
@@ -1273,7 +1273,9 @@ static u8 icl_calc_voltage_level(int cdclk)
 
 static u8 ehl_calc_voltage_level(int cdclk)
 {
-       if (cdclk > 312000)
+       if (cdclk > 326400)
+               return 3;
+       else if (cdclk > 312000)
                return 2;
        else if (cdclk > 180000)
                return 1;