diff options
author | Bob Paauwe <bob.j.paauwe@intel.com> | 2015-12-07 13:53:35 -0800 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2015-12-09 17:27:56 +0200 |
commit | 4cc40ad4fe80f4d107e8e4279b0b07243b91f77c (patch) | |
tree | 174a8c4af1d2d549d27167bba39e4e10fef12a03 /tests/pm_rps.c | |
parent | 4aa1b99a121a6cb843f463af64cbd92942f809e0 (diff) |
igt/test/pm_rps: load GPU to force not-idle to idle transition.
When changing the sysfs GT min frequency, the kernel won't
automatcilly drop the GT frequency to idle unless the GPU
transitions from busy to idle.
Load the GPU after increasing the GT min frequency to force
a busy to idle transition. This matches the behavior when
decreasing the GT min frequency.
Signed-off-by: Bob Paauwe <bob.j.paauwe@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'tests/pm_rps.c')
-rw-r--r-- | tests/pm_rps.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/pm_rps.c b/tests/pm_rps.c index 9d054fdb..9f752f8e 100644 --- a/tests/pm_rps.c +++ b/tests/pm_rps.c @@ -388,10 +388,14 @@ static void min_max_config(void (*check)(void), bool load_gpu) igt_debug("\nIncrease min to midpoint...\n"); writeval(stuff[MIN].filp, fmid); + if (load_gpu) + do_load_gpu(); check(); igt_debug("\nIncrease min to RP0...\n"); writeval(stuff[MIN].filp, origfreqs[RP0]); + if (load_gpu) + do_load_gpu(); check(); igt_debug("\nIncrease min above RP0 (invalid)...\n"); |