[PATCH] ilk-no-ips

Chris Wilson chris at chris-wilson.co.uk
Mon Jan 25 14:38:26 UTC 2021


---
 drivers/gpu/drm/i915/gt/intel_rps.c | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/gt/intel_rps.c b/drivers/gpu/drm/i915/gt/intel_rps.c
index 405d814e9040..7b03fcea59b7 100644
--- a/drivers/gpu/drm/i915/gt/intel_rps.c
+++ b/drivers/gpu/drm/i915/gt/intel_rps.c
@@ -277,9 +277,16 @@ static void gen5_rps_init(struct intel_rps *rps)
 	drm_dbg(&i915->drm, "fmax: %d, fmin: %d, fstart: %d\n",
 		fmax, fmin, fstart);
 
-	rps->min_freq = fmax;
-	rps->efficient_freq = fstart;
-	rps->max_freq = fmin;
+	if (!IS_ENABLED(CONFIG_INTEL_IPS)) {
+		/* Without reclocking support, go nuts and run at full power! */
+		rps->min_freq = fmin;
+		rps->efficient_freq = fmin;
+		rps->max_freq = fmin;
+	} else {
+		rps->min_freq = fmax;
+		rps->efficient_freq = fstart;
+		rps->max_freq = fmin;
+	}
 }
 
 static unsigned long
-- 
2.20.1



More information about the Intel-gfx-trybot mailing list