[Intel-gfx] [PATCH] drm/i915/ehl: Update voltage level checks

Matt Roper matthew.d.roper at intel.com
Mon Nov 18 16:44:12 UTC 2019


The bspec was recently updated with new cdclk -> voltage level tables to
accomodate the new 324/326.4 cdclk values.

Bspec: 21809
Cc: José Roberto de Souza <jose.souza at intel.com>
Cc: Vivek Kasireddy <vivek.kasireddy at intel.com>
Cc: Bob Paauwe <bob.j.paauwe at intel.com>
Signed-off-by: Matt Roper <matthew.d.roper at intel.com>
---
There are some platform tagging issues on this bspec page and multiple
tables are actually tagged with the EHL label, but the bspec changelog
makes it pretty clear which table we're supposed to be using (plus the
other tables don't match the set of cdclks supported by the platform).

 drivers/gpu/drm/i915/display/intel_cdclk.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_cdclk.c b/drivers/gpu/drm/i915/display/intel_cdclk.c
index 8b702317557e..7d1ab1e5b7c3 100644
--- a/drivers/gpu/drm/i915/display/intel_cdclk.c
+++ b/drivers/gpu/drm/i915/display/intel_cdclk.c
@@ -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;
-- 
2.21.0



More information about the Intel-gfx mailing list