[igt-dev] [PATCH igt] igt/pm_rps: Include related kernel RPS info

Chris Wilson chris at chris-wilson.co.uk
Fri Jan 19 13:35:12 UTC 2018


Dump i915_rps_boost_info for debug assertion failures, as that contains
all the pertinent information the kernel has for RPS tuning.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 tests/pm_rps.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/pm_rps.c b/tests/pm_rps.c
index 8dd73917b..f71976ed0 100644
--- a/tests/pm_rps.c
+++ b/tests/pm_rps.c
@@ -434,6 +434,7 @@ static void idle_check(void)
 		wait += IDLE_WAIT_TIMESTEP_MSEC;
 	} while (wait < IDLE_WAIT_TIMEOUT_MSEC);
 
+	igt_debugfs_dump(drm_fd, "i915_rps_boost_info");
 	igt_assert_eq(freqs[CUR], freqs[RPn]);
 	igt_debug("Required %d msec to reach cur=idle\n", wait);
 }
@@ -457,6 +458,7 @@ static void loaded_check(void)
 		wait += LOADED_WAIT_TIMESTEP_MSEC;
 	} while (wait < LOADED_WAIT_TIMEOUT_MSEC);
 
+	igt_debugfs_dump(drm_fd, "i915_rps_boost_info");
 	igt_assert_lte(freqs[MAX], freqs[CUR]);
 	igt_debug("Required %d msec to reach cur=max\n", wait);
 }
@@ -484,6 +486,7 @@ static void stabilize_check(int *out)
 		wait += STABILIZE_WAIT_TIMESTEP_MSEC;
 	} while (wait < STABILIZE_WAIT_TIMEOUT_MSEC);
 
+	igt_debugfs_dump(drm_fd, "i915_rps_boost_info");
 	igt_debug("Waited %d msec to stabilize cur\n", wait);
 }
 
-- 
2.15.1



More information about the igt-dev mailing list