diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-01-28 09:56:04 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-01-28 09:57:43 +0000 |
commit | 0ecbff50d72538b5e548fc6dd48a07173e9f8b42 (patch) | |
tree | 38a3f2c833990a4fdc4166dc721da71bf3d2857a | |
parent | f6e219f941b80d738c96c3187d4f760c10d09498 (diff) |
i915/i915_pm_rps: Boosting can only apply when RP0 != RPn
If the min and max frequencies are the same, we cannot tell apart a
boosted frequency from the norm.
Closes: https://gitlab.freedesktop.org/drm/intel/issues/1038
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
-rw-r--r-- | tests/i915/i915_pm_rps.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/i915/i915_pm_rps.c b/tests/i915/i915_pm_rps.c index cb1500d2f..68b66c166 100644 --- a/tests/i915/i915_pm_rps.c +++ b/tests/i915/i915_pm_rps.c @@ -578,6 +578,8 @@ static void waitboost(int fd, bool reset) int fmid = (origfreqs[RPn] + origfreqs[RP0]) / 2; fmid = get_hw_rounded_freq(fmid); + igt_require(origfreqs[RP0] > origfreqs[RPn]); + load_helper_run(LOW); igt_debug("Apply low load...\n"); |