Thread (15 messages) 15 messages, 4 authors, 2025-10-18

Re: [PATCH 0/2] iommu: Add io_ptdump debug interface for iommu

From: Qinxin Xia <xiaqinxin@huawei.com>
Date: 2025-09-10 03:20:16
Also in: linux-iommu, lkml


On 2025/9/3 00:10:28, Jason Gunthorpe [off-list ref] wrote:
On Thu, Aug 14, 2025 at 05:30:03PM +0800, Qinxin Xia wrote:
quoted
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.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help