pm_rpm: Update the debugfs filename
PATCH 1/1 pm_rpm: Update the debugfs filename
--- tests/pm_rpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/pm_rpm.c +2 -2
@@ -669,9 +669,9 @@ static void setup_pc8(void)if (!supports_pc8_plus_residencies ())return ; - pc8_status_fd =igt_debugfs_open ("i915_pc8_status" ,O_RDONLY ); + 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; }
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
2015-06-04 14:32 GMT-03:00 Damien Lespiau <[email protected]>:
Quoted 10 lines
Signed-off-by Damien Lespiau <[email protected]>--- tests/pm_rpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)tests/pm_rpm.c +0
-0
tests/pm_rpm.c static void setup_pc8(void) · line 672
Quoted 5 lines
tests/pm_rpm.c +1
-1@@ -669,9 +669,9 @@ static void setup_pc8(void)if (!supports_pc8_plus_residencies ())return ; - pc8_status_fd =igt_debugfs_open ("i915_pc8_status" ,O_RDONLY ); + pc8_status_fd =igt_debugfs_open ("i915_runtime_pm_status" ,O_RDONLY );
I kinda fear this can lead to a situation where we temporarily fail to test things. OTOH, PC8 residency testing is the least important thing of that tool, because when QA reports bugs on this we just assume their machines are badly configured.. So if you have a lot of free time, you could try to check for the existence of both files. Otherwise, feel free to just push the patch.
Quoted 13 lines
tests/pm_rpm.c +1
-2igt_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
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Paulo Zanoni _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 1/1 pm_rpm: Update the debugfs filename
v2: Try first to open i915_pc8_status to make the transition (or just running on older kernels) better. (Paulo)
--- tests/pm_rpm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
tests/pm_rpm.c +4 -1
@@ -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; }
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx