RE: [PATCH 1/1] swiotlb: add a KUnit test suite

From: Michael Kelley
Date: Mon Mar 25 2024 - 16:11:01 EST


From: Petr Tesařík <petr@xxxxxxxxxxx> Sent: Monday, March 25, 2024 7:07 AM
>
> On Wed, 13 Mar 2024 10:27:40 +0100
> Petr Tesarik <petrtesarik@xxxxxxxxxxxxxxx> wrote:
>
> > From: Petr Tesarik <petr.tesarik1@xxxxxxxxxxxxxxxxxxx>
> >
> > Add unit tests to help avoid regressions in the SWIOTLB code.
> >
> > These features are covered by the test suite:
> >
> > * basic functionality (map, sync)
> > * alignment based on mapping size
> > * alignment based on min_align_mask
> > * explicit alignment with alloc_align_mask
> > * combination of alignment constraints
> >
> > Select CONFIG_SWIOTLB rather than depend on it, because it allows to run
> > the test with UML (default KUnit target).
>
> Hi all,
>
> I know it's not super-urgent, but I'm just curious: Has anyone had time
> to try out this patch? Did it work for you?
>

I've read through the patch code, but I haven't run it. I'll need to
do some reading on Kunit as it's not something I've used before.
I'm not sure when/if I will get to it.

Michael