summaryrefslogtreecommitdiff
path: root/tests/i915/i915_pm_rpm.c
diff options
context:
space:
mode:
authorAnshuman Gupta <anshuman.gupta@intel.com>2022-02-23 22:23:14 +0530
committerAshutosh Dixit <ashutosh.dixit@intel.com>2022-02-23 10:31:59 -0800
commit83ec34916bd8268bc331105cf77c4d3d3cd352be (patch)
tree54a550e748f7bb9549ec19e8aa07726c754b8634 /tests/i915/i915_pm_rpm.c
parent7146765b80919e3f134398ba433b36a56377e4c9 (diff)
i915_pm_rpm: Use __igt_debugfs_dump for i915_runtime_pm_status
Use __igt_debugfs_dump() in wait_for_suspended() in order to specify explicit igt log level. We need to dump the i915_runtime_pm_status even in case of igt test's skips while setting up envirnment as well, that requires log level to be IGT_LOG_INFO. v2: - Add a comment "Dump status even if the test skips" before __igt_debugfs_dump(). [Ashutosh] Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Diffstat (limited to 'tests/i915/i915_pm_rpm.c')
-rw-r--r--tests/i915/i915_pm_rpm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
index 6c8ffbd5..1df0ed22 100644
--- a/tests/i915/i915_pm_rpm.c
+++ b/tests/i915/i915_pm_rpm.c
@@ -206,8 +206,10 @@ static bool wait_for_suspended(void)
} else {
bool suspended = igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_SUSPENDED);
- if (!suspended)
- igt_debugfs_dump(drm_fd, "i915_runtime_pm_status");
+ if (!suspended) {
+ /* Dump runtime pm status even if test skips */
+ __igt_debugfs_dump(drm_fd, "i915_runtime_pm_status", IGT_LOG_INFO);
+ }
return suspended;
}