All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests: i915_pm_rpm : Dump i915_runtime_pm_status
@ 2022-02-11 16:13 Anshuman Gupta
  2022-02-11 16:44 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
  2022-02-12  1:23 ` [igt-dev] [PATCH i-g-t] " Dixit, Ashutosh
  0 siblings, 2 replies; 4+ messages in thread
From: Anshuman Gupta @ 2022-02-11 16:13 UTC (permalink / raw)
  To: igt-dev

Dump i915_runtime_pm_status conditionally whenever runtime pm status
got active and it was expected to be suspended.

Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
---
 tests/i915/i915_pm_rpm.c | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
index 648b0cffb..d1ba69af4 100644
--- a/tests/i915/i915_pm_rpm.c
+++ b/tests/i915/i915_pm_rpm.c
@@ -201,10 +201,17 @@ static bool wait_for_pc8_status(enum pc8_status status)
 
 static bool wait_for_suspended(void)
 {
-	if (has_pc8 && !has_runtime_pm)
+	bool suspended = false;
+
+	if (has_pc8 && !has_runtime_pm) {
 		return wait_for_pc8_status(PC8_ENABLED);
-	else
-		return igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_SUSPENDED);
+	} else {
+		suspended = igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_SUSPENDED);
+		if (!suspended)
+			igt_debugfs_dump(drm_fd, "i915_runtime_pm_status");
+
+		return suspended;
+	}
 }
 
 static bool wait_for_active(void)
-- 
2.26.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-14 15:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-11 16:13 [igt-dev] [PATCH i-g-t] tests: i915_pm_rpm : Dump i915_runtime_pm_status Anshuman Gupta
2022-02-11 16:44 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2022-02-12  1:23 ` [igt-dev] [PATCH i-g-t] " Dixit, Ashutosh
2022-02-14 15:47   ` Gupta, Anshuman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.