Skip to contentSkip to conversation

igt/test/pm_rps: load GPU to force not-idle to idle transition.

PATCH In review Bob Paauwe 2 participants 2 messages Dec 7, 2015 – Dec 9, 2015

lore
Share & tools
lore

Bob Paauwe

author
#0 lore raw

PATCH 1/1 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.

---
 tests/pm_rps.c | 4 ++++
 1 file changed, 4 insertions(+)
tests/pm_rps.c +4 -0
index 9d054fd..9f752f8 100644
@@ -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");
Signature · 6 lines
2.4.3

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Bob Paauwe

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.

Yep, this fixes igt/pm_rps for me on BXT:

I pushed the patch to igt.

Quoted 21 lines

---
 tests/pm_rps.c | 4 ++++

 1 file changed, 4 insertions(+)
tests/pm_rps.c +0 -0
index 9d054fd..9f752f8 100644
@@ -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);

tests/pm_rps.c +2 -0
+	if (load_gpu)
+		do_load_gpu();

  check();

  igt_debug("\nIncrease min to RP0...\n"); writeval(stuff[MIN].filp, origfreqs[RP0]);

tests/pm_rps.c +2 -0
+	if (load_gpu)
+		do_load_gpu();
Quoted 3 lines

  check();

  igt_debug("\nIncrease min above RP0 (invalid)...\n");

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx