[PATCH v3 05/13] iommupt/kunit: Skip test configs without supported features
Nicolin Chen
nicolinc at nvidia.com
Tue Nov 24 11:08:52 PST 2026
On Tue, Nov 24, 2026 at 11:08:43AM -0400, Jason Gunthorpe wrote:
> On Mon, Nov 23, 2026 at 09:29:52PM -0800, Nicolin Chen wrote:
>
> > The leak check reads NR_SECONDARY_PAGETABLE with global_node_page_state().
> > That only returns the global counter. Each CPU also keeps a small delta of
> > page updates that is folded into the global counter only after it exceeds
> > a threshold. So the value can be off by a few pages without any leak.
>
> There is a patch already in my tree to deal with this, this test only
> works when you use the kunit runner
6e8127719449e kunit: tool: catch warnings generated by the kernel
You mean this one? It doesn't fix the leak-check failure though.
The test can pass with a UML runner but fails running with arm64:
$ ./tools/testing/kunit/kunit.py run \
--kunitconfig=drivers/iommu/generic_pt
Testing complete. Ran 482 tests: passed: 426, skipped: 56
$ ./tools/testing/kunit/kunit.py run --arch=arm64 \
--kunitconfig=drivers/iommu/generic_pt
Testing complete. Ran 482 tests: passed: 3, failed: 478, skipped: 1
It's likely because UML has CONFIG_SMP=n, so global_node_page_state()
is good enough.
If the test is supposed to run with the UML only, let's ignore the
other case then.
Nicolin
More information about the linux-arm-kernel
mailing list