Linux IOMMU Development
 help / color / mirror / Atom feed
From: Steven Sistare <steven.sistare@oracle.com>
To: Nicolin Chen <nicolinc@nvidia.com>
Cc: iommu@lists.linux.dev, Jason Gunthorpe <jgg@nvidia.com>,
	Kevin Tian <kevin.tian@intel.com>
Subject: Re: [PATCH V7 9/9] iommufd: map file selftest
Date: Fri, 25 Oct 2024 13:58:57 -0400	[thread overview]
Message-ID: <2c7edd3b-61c7-4012-b825-4972c0efcec5@oracle.com> (raw)
In-Reply-To: <ZxvPhQZOBR7g56eh@Asurada-Nvidia>

On 10/25/2024 1:04 PM, Nicolin Chen wrote:
> On Fri, Oct 25, 2024 at 06:11:59AM -0700, Steve Sistare wrote:
>>
>> Add test cases to exercise IOMMU_IOAS_MAP_FILE.
>>
>> Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
>> Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
> 
> The build passes, but I now see a few failing tests. Any idea?

Strange.  All tests pass for me, with patches applied to base commit
e2d8fe9148b79ed1cbf0663edc988db7769173dc

   # modprobe iomufd
   # iommufd
   ...
   Totals: pass:204 fail:0 xfail:0 xpass:0 skip:0 error:0

However, I also needed this patch from Yi Liu to make it work:
[2] https://github.com/yiliu1765/iommufd/commit/ff0772d155c1ae2841e7b7ff0d7ca889271b81b2

Without that, most tests fail, even before my series.

I will try to reproduce your failures.
What is your base commit?
What is your value of /sys/kernel/mm/transparent_hugepage/shmem_enabled ?
   (both always and never pass for me)

- Steve

> #  RUN           iommufd_mock_domain.one_domain_file.basic ...
> # iommufd.c:1521:basic:Expected 0 (0) == _test_ioctl_ioas_map_file( self->fd, self->ioas_id, mfd, 0, PAGE_SIZE, &iova, IOMMU_IOAS_MAP_WRITEABLE | IOMMU_IOAS_MAP_READABLE) (-1)
> # basic: Test terminated by assertion
> #          FAIL  iommufd_mock_domain.one_domain_file.basic
> not ok 136 iommufd_mock_domain.one_domain_file.basic
> #  RUN           iommufd_mock_domain.one_domain_file.ro_unshare ...
> #            OK  iommufd_mock_domain.one_domain_file.ro_unshare
> ok 137 iommufd_mock_domain.one_domain_file.ro_unshare
> #  RUN           iommufd_mock_domain.one_domain_file.all_aligns ...
> # iommufd.c:1602:all_aligns:Expected 0 (0) == _test_ioctl_ioas_map_file( self->fd, self->ioas_id, mfd, start, length, &iova, IOMMU_IOAS_MAP_WRITEABLE | IOMMU_IOAS_MAP_READABLE) (-1)
> # all_aligns: Test terminated by assertion
> #          FAIL  iommufd_mock_domain.one_domain_file.all_aligns
> not ok 138 iommufd_mock_domain.one_domain_file.all_aligns
> #  RUN           iommufd_mock_domain.one_domain_file.all_aligns_copy ...
> # iommufd.c:1656:all_aligns_copy:Expected 0 (0) == _test_ioctl_ioas_map_file( self->fd, self->ioas_id, mfd, start, length, &iova, IOMMU_IOAS_MAP_WRITEABLE | IOMMU_IOAS_MAP_READABLE) (-1)
> # all_aligns_copy: Test terminated by assertion
> #          FAIL  iommufd_mock_domain.one_domain_file.all_aligns_copy
> not ok 139 iommufd_mock_domain.one_domain_file.all_aligns_copy
> #  RUN           iommufd_mock_domain.one_domain_file.user_copy ...
> # iommufd.c:1712:user_copy:Expected 0 (0) == _test_ioctl_ioas_map_file( self->fd, ioas_id, mfd, 0, BUFFER_SIZE, &copy_cmd.src_iova, IOMMU_IOAS_MAP_WRITEABLE | IOMMU_IOAS_MAP_READABLE) (-1)
> # user_copy: Test terminated by assertion
> #          FAIL  iommufd_mock_domain.one_domain_file.user_copy
> not ok 140 iommufd_mock_domain.one_domain_file.user_copy
> #  RUN           iommufd_mock_domain.one_domain_file.replace ...
> #            OK  iommufd_mock_domain.one_domain_file.replace
> ok 141 iommufd_mock_domain.one_domain_file.replace
> #  RUN           iommufd_mock_domain.one_domain_file.alloc_hwpt ...
> #            OK  iommufd_mock_domain.one_domain_file.alloc_hwpt
> ok 142 iommufd_mock_domain.one_domain_file.alloc_hwpt
> #  RUN           iommufd_mock_domain.one_domain_file_hugepage.basic ...
> # iommufd.c:1521:basic:Expected 0 (0) == _test_ioctl_ioas_map_file( self->fd, self->ioas_id, mfd, 0, PAGE_SIZE, &iova, IOMMU_IOAS_MAP_WRITEABLE | IOMMU_IOAS_MAP_READABLE) (-1)
> # basic: Test terminated by assertion
> #          FAIL  iommufd_mock_domain.one_domain_file_hugepage.basic
> not ok 143 iommufd_mock_domain.one_domain_file_hugepage.basic
> #  RUN           iommufd_mock_domain.one_domain_file_hugepage.ro_unshare ...
> #            OK  iommufd_mock_domain.one_domain_file_hugepage.ro_unshare
> ok 144 iommufd_mock_domain.one_domain_file_hugepage.ro_unshare
> #  RUN           iommufd_mock_domain.one_domain_file_hugepage.all_aligns ...
> #            OK  iommufd_mock_domain.one_domain_file_hugepage.all_aligns
> ok 145 iommufd_mock_domain.one_domain_file_hugepage.all_aligns
> #  RUN           iommufd_mock_domain.one_domain_file_hugepage.all_aligns_copy ...
> #            OK  iommufd_mock_domain.one_domain_file_hugepage.all_aligns_copy
> ok 146 iommufd_mock_domain.one_domain_file_hugepage.all_aligns_copy
> #  RUN           iommufd_mock_domain.one_domain_file_hugepage.user_copy ...
> # iommufd.c:1712:user_copy:Expected 0 (0) == _test_ioctl_ioas_map_file( self->fd, ioas_id, mfd, 0, BUFFER_SIZE, &copy_cmd.src_iova, IOMMU_IOAS_MAP_WRITEABLE | IOMMU_IOAS_MAP_READABLE) (-1)
> # user_copy: Test terminated by assertion
> #          FAIL  iommufd_mock_domain.one_domain_file_hugepage.user_copy
> ...
> ok 2 basic_fail_nth.map_domain
> #  RUN           basic_fail_nth.map_file_domain ...
> # iommufd_fail_nth.c:338:map_file_domain:Expected 0 (0) == test_nth_map_file_domain(_metadata, self, variant, &nth_state) (-1)
> # map_file_domain: Test terminated by assertion
> #          FAIL  basic_fail_nth.map_file_domain
> not ok 3 basic_fail_nth.map_file_domain
> 


  reply	other threads:[~2024-10-25 17:59 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-25 13:11 [PATCH V7 0/9] iommu_ioas_map_file Steve Sistare
2024-10-25 13:11 ` [PATCH V7 1/9] mm/gup: folio_add_pins Steve Sistare
2024-10-25 13:11 ` [PATCH V7 2/9] iommufd: rename uptr in iopt_alloc_iova Steve Sistare
2024-10-25 13:11 ` [PATCH V7 3/9] iommufd: generalize iopt_pages address Steve Sistare
2024-10-25 13:11 ` [PATCH V7 4/9] iommufd: pfn reader local variables Steve Sistare
2024-10-25 13:11 ` [PATCH V7 5/9] iommufd: folio subroutines Steve Sistare
2024-10-25 13:11 ` [PATCH V7 6/9] iommufd: pfn reader for file mappings Steve Sistare
2024-10-31  3:34   ` Alexey Kardashevskiy
2024-11-06  3:18     ` Alexey Kardashevskiy
2024-11-06 13:19       ` Steven Sistare
2024-11-07 10:00         ` Alexey Kardashevskiy
2024-11-07 13:21           ` Steven Sistare
2024-11-07 14:08           ` Jason Gunthorpe
2024-11-08  0:01             ` Alexey Kardashevskiy
2024-11-14  4:03               ` Alexey Kardashevskiy
2024-11-14 16:17                 ` Jason Gunthorpe
2024-11-18  1:24                   ` Alexey Kardashevskiy
2024-10-25 13:11 ` [PATCH V7 7/9] iommufd: IOMMU_IOAS_MAP_FILE Steve Sistare
2024-10-25 13:11 ` [PATCH V7 8/9] iommufd: file mappings for mdev Steve Sistare
2024-10-25 13:11 ` [PATCH V7 9/9] iommufd: map file selftest Steve Sistare
2024-10-25 13:14   ` Steven Sistare
2024-10-25 17:00     ` Nicolin Chen
2024-10-25 17:04   ` Nicolin Chen
2024-10-25 17:58     ` Steven Sistare [this message]
2024-10-25 18:39       ` Nicolin Chen
2024-10-25 23:58         ` Jason Gunthorpe
2024-10-26 19:13           ` Steven Sistare
2024-10-26 19:16             ` Steven Sistare
2024-10-26 23:09               ` Nicolin Chen
2024-10-27 14:38                 ` Steven Sistare
2024-10-30  0:11 ` [PATCH V7 0/9] iommu_ioas_map_file Jason Gunthorpe
2024-10-30 12:43   ` Steven Sistare
2024-11-04 13:58     ` Steven Sistare
2024-11-04 14:18       ` Jason Gunthorpe
2024-11-04 14:24         ` Steven Sistare

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2c7edd3b-61c7-4012-b825-4972c0efcec5@oracle.com \
    --to=steven.sistare@oracle.com \
    --cc=iommu@lists.linux.dev \
    --cc=jgg@nvidia.com \
    --cc=kevin.tian@intel.com \
    --cc=nicolinc@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox