[igt-dev] [PATCH igt] tests/msm: Fix mapping test
Abhinav Kumar
quic_abhinavk at quicinc.com
Tue Jul 5 16:04:36 UTC 2022
On 6/27/2022 2:05 PM, Rob Clark wrote:
> 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>
Reviewed-by: Abhinav Kumar <quic_abhinavk at quicinc.com>
> ---
> 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);
> }
More information about the igt-dev
mailing list