diff mbox

[i-g-t,v2] pm_rpm: Update the debugfs filename

Message ID 1433518477-21985-1-git-send-email-damien.lespiau@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lespiau, Damien June 5, 2015, 3:34 p.m. UTC
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@intel.com>
---
 tests/pm_rpm.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox

Patch

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;
 }