[Intel-gfx] [PATCH i-g-t v2] pm_rpm: Update the debugfs filename

Damien Lespiau damien.lespiau at intel.com
Fri Jun 5 08:34:37 PDT 2015


v2: Try first to open i915_pc8_status to make the transition (or just
running on older kernels) better. (Paulo)

Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 tests/pm_rpm.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c
index a1f4013..238a6e3 100644
--- a/tests/pm_rpm.c
+++ b/tests/pm_rpm.c
@@ -670,8 +670,11 @@ static void setup_pc8(void)
 		return;
 
 	pc8_status_fd = igt_debugfs_open("i915_pc8_status", O_RDONLY);
+	if (pc8_status_fd == -1)
+		pc8_status_fd = igt_debugfs_open("i915_runtime_pm_status",
+						 O_RDONLY);
 	igt_assert_f(pc8_status_fd >= 0,
-		     "Can't open /sys/kernel/debug/dri/0/i915_pc8_status");
+		     "Can't open /sys/kernel/debug/dri/0/i915_runtime_pm_status");
 
 	has_pc8 = true;
 }
-- 
2.1.0



More information about the Intel-gfx mailing list