[PATCH v4 1/4] iommu/io-pgtable-arm: Simplify error prints for selftests
Jason Gunthorpe
jgg at ziepe.ca
Mon Sep 22 06:30:09 PDT 2025
On Mon, Sep 22, 2025 at 08:59:25AM +0000, Mostafa Saleh wrote:
> At the moment, if the self test fails it prints a lot of information
> about the page table (size, levels...) this requires access to many
> internals, which has to be exposed in the next patch moving the
> tests out.
>
> Instead, we can simplify the print, using ias, oas, pgsize_bitmap
> and fmt is enough to identify the failed case, and the rest can
> be deduced from the code.
>
> Signed-off-by: Mostafa Saleh <smostafa at google.com>
> ---
> drivers/iommu/io-pgtable-arm.c | 10 +++-------
> 1 file changed, 3 insertions(+), 7 deletions(-)
Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
Jason
More information about the linux-arm-kernel
mailing list