Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v2] tests/intel/xe_oa: Keep OA user buffer size dynamic
@ 2025-03-19  4:23 Sai Teja Pottumuttu
  2025-03-19  4:51 ` ✓ Xe.CI.BAT: success for tests/intel/xe_oa: Keep OA user buffer size dynamic (rev2) Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Sai Teja Pottumuttu @ 2025-03-19  4:23 UTC (permalink / raw)
  To: igt-dev; +Cc: sai.teja.pottumuttu, ashutosh.dixit, umesh.nerlige.ramappa

non-zero-reason OA test has a hardcoded user buffer size for
any kernel OA buffer. This makes the test act differently for
different sizes. Thus make the user buffer size to be in line
with the kernel OA buffer being allocated.

v2: Address operator precedence (Ashutosh)

Signed-off-by: Sai Teja Pottumuttu <sai.teja.pottumuttu@intel.com>
---
 tests/intel/xe_oa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
index 9bc62c5b9..5c768e4cf 100644
--- a/tests/intel/xe_oa.c
+++ b/tests/intel/xe_oa.c
@@ -2480,7 +2480,7 @@ test_non_zero_reason(const struct drm_xe_engine_class_instance *hwe, size_t oa_b
 		.num_properties = ARRAY_SIZE(properties) / 2,
 		.properties_ptr = to_user_pointer(properties),
 	};
-	uint32_t buf_size = 3 * 65536 * report_size;
+	uint32_t buf_size = 3 * (oa_buffer_size ?: buffer_fill_size);
 	uint8_t *buf = malloc(buf_size);
 	uint32_t total_len = 0;
 	const uint32_t *last_report;
-- 
2.34.1


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

end of thread, other threads:[~2025-03-19  6:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-19  4:23 [PATCH i-g-t v2] tests/intel/xe_oa: Keep OA user buffer size dynamic Sai Teja Pottumuttu
2025-03-19  4:51 ` ✓ Xe.CI.BAT: success for tests/intel/xe_oa: Keep OA user buffer size dynamic (rev2) Patchwork
2025-03-19  5:04 ` ✓ i915.CI.BAT: " Patchwork
2025-03-19  5:27 ` [PATCH i-g-t v2] tests/intel/xe_oa: Keep OA user buffer size dynamic Dixit, Ashutosh
2025-03-19  5:35 ` ✗ Xe.CI.Full: failure for tests/intel/xe_oa: Keep OA user buffer size dynamic (rev2) Patchwork
2025-03-19  6:49 ` ✗ i915.CI.Full: " Patchwork

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