Message ID | 0-v2-5c26bde5c22d+58b-iommu_pt_jgg@nvidia.com |
---|---|
Headers | show |
Series | Consolidate iommu page table implementations (AMD) | expand |
On Mon, May 05, 2025 at 11:18:45AM -0300, Jason Gunthorpe wrote: > This intends to have high coverage of the page table format functions and > the IOMMU implementation itself, exercising the various corner cases. > > The kunit can be run in the kunit framework, using commands like: > > tools/testing/kunit/kunit.py run --build_dir build_kunit_arm64 --arch arm64 --make_options LLVM=1 --make_options LLVM_SUFFIX=-19 --kunitconfig ./drivers/iommu/generic_pt/.kunitconfig Just a small comment about the command: --make_options LLVM=1 --make_options LLVM_SUFFIX=-19 can be simplified to just --make_options LLVM=-19 You should never need to specify either LLVM_SUFFIX or LLVM_PREFIX. Cheers, Nathan
On Mon, May 05, 2025 at 10:44:58AM -0700, Nathan Chancellor wrote: > On Mon, May 05, 2025 at 11:18:45AM -0300, Jason Gunthorpe wrote: > > This intends to have high coverage of the page table format functions and > > the IOMMU implementation itself, exercising the various corner cases. > > > > The kunit can be run in the kunit framework, using commands like: > > > > tools/testing/kunit/kunit.py run --build_dir build_kunit_arm64 --arch arm64 --make_options LLVM=1 --make_options LLVM_SUFFIX=-19 --kunitconfig ./drivers/iommu/generic_pt/.kunitconfig > > Just a small comment about the command: > > --make_options LLVM=1 --make_options LLVM_SUFFIX=-19 > > can be simplified to just > > --make_options LLVM=-19 > > You should never need to specify either LLVM_SUFFIX or LLVM_PREFIX. Oh wow, I had no idea. Can I encourage you to send a patch for 'make help' to explain how to use it? Thanks, Jason
On Mon, May 05, 2025 at 02:47:47PM -0300, Jason Gunthorpe wrote: > On Mon, May 05, 2025 at 10:44:58AM -0700, Nathan Chancellor wrote: > > On Mon, May 05, 2025 at 11:18:45AM -0300, Jason Gunthorpe wrote: > > > This intends to have high coverage of the page table format functions and > > > the IOMMU implementation itself, exercising the various corner cases. > > > > > > The kunit can be run in the kunit framework, using commands like: > > > > > > tools/testing/kunit/kunit.py run --build_dir build_kunit_arm64 --arch arm64 --make_options LLVM=1 --make_options LLVM_SUFFIX=-19 --kunitconfig ./drivers/iommu/generic_pt/.kunitconfig > > > > Just a small comment about the command: > > > > --make_options LLVM=1 --make_options LLVM_SUFFIX=-19 > > > > can be simplified to just > > > > --make_options LLVM=-19 > > > > You should never need to specify either LLVM_SUFFIX or LLVM_PREFIX. > > Oh wow, I had no idea. Can I encourage you to send a patch for 'make > help' to explain how to use it? I will see if I can come up with something concise for 'make help' but we have it written up in Documentation/kbuild/llvm.rst: https://docs.kernel.org/kbuild/llvm.html Cheers, Nathan