[igt-dev] [PATCH igt] tests/msm: Fix mapping test
Rob Clark
robdclark at gmail.com
Mon Jun 27 21:05:34 UTC 2022
From: Rob Clark <robdclark at chromium.org>
The format of the fault-info in the devcore is a bit different from what
it was looking for.
Signed-off-by: Rob Clark <robdclark at chromium.org>
---
tests/msm/msm_mapping.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/msm/msm_mapping.c b/tests/msm/msm_mapping.c
index e1474f9f..21cdc8e1 100644
--- a/tests/msm/msm_mapping.c
+++ b/tests/msm/msm_mapping.c
@@ -211,10 +211,10 @@ do_mapping_test(struct msm_pipe *pipe, const char *buffername, bool write)
/* Make sure the devcore is from iova fault: */
igt_fail_on(!strstr(devcore, "fault-info"));
- s = strstr(devcore, " - far: ");
+ s = strstr(devcore, " - iova=");
igt_fail_on(!s);
- ret = sscanf(s, " - far: %"PRIx64, &fault_addr);
+ ret = sscanf(s, " - iova=%"PRIx64, &fault_addr);
igt_fail_on(ret != 1);
igt_fail_on(addr != fault_addr);
}
--
2.36.1
More information about the igt-dev
mailing list