[PATCH i-g-t 3/3] tests/intel/xe_oa: Use buf->bo_size for xe_bo_map
Ashutosh Dixit
ashutosh.dixit at intel.com
Tue Dec 10 02:08:12 UTC 2024
From: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>
Doing so fixes crashes on ATSM.
Reviewed-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at 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 c660720ea0..4483a5a19c 100644
--- a/tests/intel/xe_oa.c
+++ b/tests/intel/xe_oa.c
@@ -742,7 +742,7 @@ static void *buf_map(int fd, struct intel_buf *buf, bool write)
void *p;
if (is_xe_device(fd)) {
- buf->ptr = xe_bo_map(fd, buf->handle, buf->surface[0].size);
+ buf->ptr = xe_bo_map(fd, buf->handle, buf->bo_size);
p = buf->ptr;
} else {
if (gem_has_llc(fd))
--
2.47.1
More information about the igt-dev
mailing list