summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSai Teja Pottumuttu <sai.teja.pottumuttu@intel.com>2025-03-19 09:53:36 +0530
committerAshutosh Dixit <ashutosh.dixit@intel.com>2025-03-21 10:08:25 -0700
commitb6673db372bd8987f65948d3a97f8dcd2ef42b01 (patch)
tree24be428597aff02b6840c6499e0437f51fe113eb
parent8b20280be34914dfaf0fdc9930a1590b58472a20 (diff)
tests/intel/xe_oa: Keep OA user buffer size dynamicHEADmaster
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> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
-rw-r--r--tests/intel/xe_oa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
index d15462c18..b355ba58e 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;