mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 16:36:14 +00:00
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>
This commit is contained in:
parent
4aa1b99a12
commit
4cc40ad4fe
@ -388,10 +388,14 @@ static void min_max_config(void (*check)(void), bool load_gpu)
|
|||||||
|
|
||||||
igt_debug("\nIncrease min to midpoint...\n");
|
igt_debug("\nIncrease min to midpoint...\n");
|
||||||
writeval(stuff[MIN].filp, fmid);
|
writeval(stuff[MIN].filp, fmid);
|
||||||
|
if (load_gpu)
|
||||||
|
do_load_gpu();
|
||||||
check();
|
check();
|
||||||
|
|
||||||
igt_debug("\nIncrease min to RP0...\n");
|
igt_debug("\nIncrease min to RP0...\n");
|
||||||
writeval(stuff[MIN].filp, origfreqs[RP0]);
|
writeval(stuff[MIN].filp, origfreqs[RP0]);
|
||||||
|
if (load_gpu)
|
||||||
|
do_load_gpu();
|
||||||
check();
|
check();
|
||||||
|
|
||||||
igt_debug("\nIncrease min above RP0 (invalid)...\n");
|
igt_debug("\nIncrease min above RP0 (invalid)...\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user