[PATCH i-g-t v2 4/9] tests/msm/msm_mapping: update for sparse
Rob Clark
rob.clark at oss.qualcomm.com
Wed Jul 2 19:02:44 UTC 2025
The debugfs format changes a bit. Update the igt test to handle both
cases.
Signed-off-by: Rob Clark <rob.clark at oss.qualcomm.com>
---
tests/msm/msm_mapping.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/msm/msm_mapping.c b/tests/msm/msm_mapping.c
index 1749a670e70d..64dc62c3cda6 100644
--- a/tests/msm/msm_mapping.c
+++ b/tests/msm/msm_mapping.c
@@ -147,7 +147,11 @@ get_bo_addr(int drm_fd, const char *name)
igt_fail_on(!line);
ret = sscanf(line, " vmas: [gpu: aspace=%"PRIx64", %"PRIx64",mapped,inuse=1]",
- &dummy, &addr);
+ &dummy, &addr);
+ if (ret != 2) {
+ ret = sscanf(line, " vmas: [gpu: vm=%"PRIx64", %"PRIx64", mapped]",
+ &dummy, &addr);
+ }
igt_fail_on(ret != 2);
return addr;
--
2.50.0
More information about the igt-dev
mailing list