All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t, v2] tests/kms_psr2_su: Change to igt_info when the failing of PSR2 enabling
@ 2020-07-17 17:23 Gwan-gyeong Mun
  2020-07-17 17:26 ` Souza, Jose
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gwan-gyeong Mun @ 2020-07-17 17:23 UTC (permalink / raw)
  To: igt-dev

The psr_print_debugfs() function uses igt_debug() for logging.
As igt_require() does not raise printing out of IGT_LOG_DEBUG level.
It changes igt_debug() to igt_info() for getting log on
skipping test case of kms_psr2_su.

v2: Address José's review comments.
 - Use igt_info for getting log instead of using igt_assert in order to
   avoid failure of psr test.

Cc: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
---
 lib/igt_psr.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index 899784dc..6cdb97bc 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -45,8 +45,8 @@ static bool psr_active_check(int debugfs_fd, enum psr_mode mode)
 	ret = igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status",
 				     buf, sizeof(buf));
 	if (ret < 0) {
-		igt_debug("Could not read i915_edp_psr_status: %s\n",
-			  strerror(-ret));
+		igt_info("Could not read i915_edp_psr_status: %s\n",
+			 strerror(-ret));
 		return false;
 	}
 
@@ -244,10 +244,10 @@ void psr_print_debugfs(int debugfs_fd)
 	ret = igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status", buf,
 				      sizeof(buf));
 	if (ret < 0) {
-		igt_debug("Could not read i915_edp_psr_status: %s\n",
-			  strerror(-ret));
+		igt_info("Could not read i915_edp_psr_status: %s\n",
+			 strerror(-ret));
 		return;
 	}
 
-	igt_debug("%s", buf);
+	igt_info("%s", buf);
 }
-- 
2.25.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

end of thread, other threads:[~2020-07-17 20:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-17 17:23 [igt-dev] [PATCH i-g-t, v2] tests/kms_psr2_su: Change to igt_info when the failing of PSR2 enabling Gwan-gyeong Mun
2020-07-17 17:26 ` Souza, Jose
2020-07-17 18:29 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2020-07-17 20:58 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

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.