Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/xe_oa: Print oa_status value in the helper
@ 2025-03-26 22:17 Umesh Nerlige Ramappa
  2025-03-26 22:24 ` Dixit, Ashutosh
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Umesh Nerlige Ramappa @ 2025-03-26 22:17 UTC (permalink / raw)
  To: igt-dev

OA status value is useful when any bits are set. Print the value in the
helper, so that each call to fetch the oa_status does not need to print
the debug message explicitly.

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
 tests/intel/xe_oa.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
index caf713c2a6df..0e9fa966464a 100644
--- a/tests/intel/xe_oa.c
+++ b/tests/intel/xe_oa.c
@@ -383,6 +383,9 @@ static u32 get_stream_status(int fd)
 
 	do_ioctl(fd, DRM_XE_OBSERVATION_IOCTL_STATUS, &status);
 
+	if (status.oa_status)
+		igt_debug("oa status %llx\n", status.oa_status);
+
 	return status.oa_status;
 }
 
@@ -1337,7 +1340,6 @@ read_2_oa_reports(int format_id,
 			;
 		if (errno == EIO) {
 			oa_status = get_stream_status(stream_fd);
-			igt_debug("oa_status %#x\n", oa_status);
 			continue;
 		}
 
@@ -1773,7 +1775,6 @@ static void test_oa_exponents(const struct drm_xe_engine_class_instance *hwe)
 				;
 			if (errno == EIO) {
 				oa_status = get_stream_status(stream_fd);
-				igt_debug("oa_status %#x\n", oa_status);
 				continue;
 			}
 
@@ -2505,7 +2506,6 @@ test_non_zero_reason(const struct drm_xe_engine_class_instance *hwe, size_t oa_b
 		(len == -1 && (errno == EINTR || errno == EIO)))) {
 		if (errno == EIO) {
 			oa_status = get_stream_status(stream_fd);
-			igt_debug("oa_status %#x\n", oa_status);
 			igt_assert(!(oa_status & DRM_XE_OASTATUS_BUFFER_OVERFLOW));
 		}
 		if (len > 0)
-- 
2.43.0


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

end of thread, other threads:[~2025-04-06 16:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-26 22:17 [PATCH i-g-t] tests/intel/xe_oa: Print oa_status value in the helper Umesh Nerlige Ramappa
2025-03-26 22:24 ` Dixit, Ashutosh
2025-03-26 22:28   ` Umesh Nerlige Ramappa
2025-03-26 22:56 ` ✓ Xe.CI.BAT: success for " Patchwork
2025-03-26 23:14 ` ✓ i915.CI.BAT: " Patchwork
2025-03-27  0:54 ` ✗ i915.CI.Full: failure " Patchwork
2025-03-27 18:48   ` Umesh Nerlige Ramappa
2025-03-27 13:04 ` ✗ Xe.CI.Full: " Patchwork
2025-03-28 11:42 ` Patchwork
2025-04-06 16:17 ` Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox