diff options
| author | Damien Lespiau <damien.lespiau@intel.com> | 2015-06-04 18:31:04 +0100 |
|---|---|---|
| committer | Damien Lespiau <damien.lespiau@intel.com> | 2015-06-13 18:41:49 +0100 |
| commit | 4b944c92eb85c3cdf6526e65a1a746c979de55bd (patch) | |
| tree | 7d5520a21da05906529035537bcea5261647a7cf /tests | |
| parent | b88212c036fbd909d70b8388fc8fffb1fac75e5b (diff) | |
pm_rpm: Update the debugfs filename
v2: Try to open i915_pc8_status first to make the transition (or just
running on older kernels) better. (Paulo)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/pm_rpm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c index a1f40132..238a6e31 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; } |
