From: Mostafa Saleh <smostafa@google.com>
To: Jason Gunthorpe <jgg@ziepe.ca>
Cc: iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, robin.murphy@arm.com,
will@kernel.org, joro@8bytes.org, praan@google.com
Subject: Re: [PATCH v2 3/3] iommu/io-pgtable-arm-selftests: Use KUnit
Date: Wed, 17 Sep 2025 20:31:22 +0000 [thread overview]
Message-ID: <aMsamiTEssyR1wsd@google.com> (raw)
In-Reply-To: <20250917194454.GM1326709@ziepe.ca>
On Wed, Sep 17, 2025 at 04:44:54PM -0300, Jason Gunthorpe wrote:
> On Wed, Sep 17, 2025 at 07:11:40PM +0000, Mostafa Saleh wrote:
> > Integrate the selftests as part of kunit, this makes the test
> > available through debugfs.
> >
> > Suggested-by: Jason Gunthorpe <jgg@ziepe.ca>
> > Signed-off-by: Mostafa Saleh <smostafa@google.com>
> > ---
> > drivers/iommu/Kconfig | 2 +-
> > drivers/iommu/io-pgtable-arm-selftests.c | 93 +++++++++++++-----------
> > 2 files changed, 51 insertions(+), 44 deletions(-)
> >
> > diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
> > index 553522ef3ca9..f7e6d1db6ce6 100644
> > --- a/drivers/iommu/Kconfig
> > +++ b/drivers/iommu/Kconfig
> > @@ -42,7 +42,7 @@ config IOMMU_IO_PGTABLE_LPAE
> >
> > config IOMMU_IO_PGTABLE_LPAE_SELFTEST
>
> This should probably be renamed to xxx_KUNIT_TEST
Will do.
>
> > tristate "LPAE selftests"
> > - depends on IOMMU_IO_PGTABLE_LPAE
> > + depends on IOMMU_IO_PGTABLE_LPAE && KUNIT
>
> I wonder if it should be:
>
> select IOMMU_IO_PGTABLE_LPAE
> depends on KUNIT
> default KUNIT_ALL_TESTS
>
> ?
>
> At least the default should be there
Makes sense, will do.
>
> > help
> > Enable self-tests for LPAE page table allocator. This performs
> > a series of page-table consistency checks during boot.
>
> "kunit tests" here as well
Will do.
>
> > -subsys_initcall(arm_lpae_do_selftests);
>
> Oh so it does drop the initcall, the coverletter is a bit confusing then.
Yes, I will reword the cover letter.
Thanks,
Mostafa
>
> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
>
> Jason
next prev parent reply other threads:[~2025-09-17 20:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-17 19:11 [PATCH v2 0/3] Move io-pgtable-arm selftest to KUnit Mostafa Saleh
2025-09-17 19:11 ` [PATCH v2 1/3] iommu/io-pgtable-arm: Move selftests to a separate file Mostafa Saleh
2025-09-17 19:38 ` Jason Gunthorpe
2025-09-17 20:20 ` Mostafa Saleh
2025-09-17 21:48 ` Jason Gunthorpe
2025-09-18 11:41 ` Mostafa Saleh
2025-09-17 19:11 ` [PATCH v2 2/3] iommu/io-pgtable-arm-selftests: Modularize the test Mostafa Saleh
2025-09-17 19:39 ` Jason Gunthorpe
2025-09-17 19:11 ` [PATCH v2 3/3] iommu/io-pgtable-arm-selftests: Use KUnit Mostafa Saleh
2025-09-17 19:44 ` Jason Gunthorpe
2025-09-17 20:31 ` Mostafa Saleh [this message]
2025-09-17 19:27 ` [PATCH v2 0/3] Move io-pgtable-arm selftest to KUnit Jason Gunthorpe
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=aMsamiTEssyR1wsd@google.com \
--to=smostafa@google.com \
--cc=iommu@lists.linux.dev \
--cc=jgg@ziepe.ca \
--cc=joro@8bytes.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=praan@google.com \
--cc=robin.murphy@arm.com \
--cc=will@kernel.org \
/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