[PATCH 0/2] iommu: Add io_ptdump debug interface for iommu
Qinxin Xia
xiaqinxin at huawei.com
Tue Sep 9 20:20:08 PDT 2025
On 2025/9/3 00:10:28, Jason Gunthorpe <jgg at ziepe.ca> wrote:
> On Thu, Aug 14, 2025 at 05:30:03PM +0800, Qinxin Xia wrote:
>> This patch supports the iopgtable_dump function (similar to kernel_page_dump).
>> The IOMMU page table dump debugging function is added to the framework layer.
>> Different architectures only need to provide the implemented dump ops.
>> It also provides the implementation of ARM SMMUv3 and io-pgtable-arm.
>>
>> Qinxin Xia (2):
>> iommu/debug: Add IOMMU page table dump debug facility
>> iommu/io-pgtable: Add ARM SMMUv3 page table dump support
>
> I'd prefer we do this on top of iommu pt please, I don't want to
> further deeping the hole of changing all the page table code in all
> drivers for debugfs.
>
> Jason
Ok, I see, my colleague Wang Zhou also released a version of io_ptdump
a long time ago, which is implemented in smmu debugfs. Will recommends
that io_ptdump be implemented in a way similar to CPU page table dump.
Using debugfs to expose the data and using format-specific callbacks to
implement specific data dumps, I'll talk to him about this as well.
More information about the linux-arm-kernel
mailing list