From 0aebb3aec9cc04ba85e8e866b551669724768e9f Mon Sep 17 00:00:00 2001 From: Pengfei Xu Date: Wed, 20 Sep 2023 17:34:56 +0800 Subject: sys/linux: correct the md_check_refs variable length and uptr Based on Linux kernel iommufd_test.h line 68 struct check_refs: https://github.com/torvalds/linux/blob/master/drivers/iommu/iommufd/iommufd_test.h correct the md_check_refs variable length and uptr in correct position. Signed-off-by: Pengfei Xu --- sys/linux/dev_iommu.txt | 2 +- sys/linux/test/dev_iommu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/linux') diff --git a/sys/linux/dev_iommu.txt b/sys/linux/dev_iommu.txt index af1914d45..7abda765b 100644 --- a/sys/linux/dev_iommu.txt +++ b/sys/linux/dev_iommu.txt @@ -242,8 +242,8 @@ iommu_test_cmd$md_check_refs { op const[IOMMU_TEST_OP_MD_CHECK_REFS, int32] id fd_access __reserved const[0x0, int32] - uptr ptr64[in, array[int8]] length len[uptr, int64] + uptr ptr64[in, array[int8]] refs int32 } [size[IOMMU_TEST_CMD_SIZE]] diff --git a/sys/linux/test/dev_iommu b/sys/linux/test/dev_iommu index 04be5492f..354b0abaa 100644 --- a/sys/linux/test/dev_iommu +++ b/sys/linux/test/dev_iommu @@ -54,7 +54,7 @@ ioctl$IOMMU_TEST_OP_DESTROY_ACCESS_PAGES(r0, 0x3ba0, &AUTO={0x38, 0x6, r2, 0x0, ioctl$IOMMU_IOAS_MAP(r0, 0x3b85, &AUTO={0x28, 0x7, r1, 0x0, &(0x7f00000a0000)='LLLLLLLLLLLLLLLLLLLLLLLLLLLL', 0x1000, 0x1c}) ioctl$IOMMU_TEST_OP_MD_CHECK_MAP(r0, 0x3ba0, &AUTO={0x38, 0x3, r2, 0x0, 0x1c, 0x1000, &AUTO='LLLLLLLLLLLLLLLLLLLLLLLLLLLL'}) -ioctl$IOMMU_TEST_OP_MD_CHECK_REFS(r0, 0x3ba0, &AUTO={0x38, 0x4, r2, 0x0, &AUTO='LLLLLLLLLLLLLLLLLLLLLLLLLLLL', 0x800, 0x1}) +ioctl$IOMMU_TEST_OP_MD_CHECK_REFS(r0, 0x3ba0, &AUTO={0x38, 0x4, r2, 0x0, 0x800, &AUTO='LLLLLLLLLLLLLLLLLLLLLLLLLLLL', 0x1}) ioctl$IOMMU_IOAS_UNMAP(r0, 0x3b86, &AUTO={0x18, r1, 0x1c, 0x800}) close(r2) -- cgit mrf-deployment