On Wed, Mar 10, 2021 at 11:38:47PM +0300, Dmitry Osipenko wrote: > 10.03.2021 06:36, Nicolin Chen пишет: > > This patch dumps all active mapping entries from pagetable > > to a debugfs directory named "mappings". > > > > Ataching an example: > > > > SWGROUP: hc > > ASID: 0 > > reg: 0x250 > > PTB_ASID: 0xe0080004 > > as->pd_dma: 0x80004000 > > { > > [1023] 0xf0080013 (1) > > { > > PTE RANGE PHYS IOVA SIZE ATTR > > #1023 - #1023 0x122e5e000 0xfffff000 0x1000 0x5 > > } > > } > > Total PDE count: 1 > > Total PTE count: 1 > > Addresses are 32bit on ARM32, please fix the formatting. The phys_addr_t > and dma_addr_t have special printk specifiers [1]. > > [1] > https://www.kernel.org/doc/html/latest/core-api/printk-formats.html?highlight=printk#physical-address-types-phys-addr-t > > as->pd_dma: 0xc026e81b0000026c > { > [0] 0xf0082848 (1024) > { > PTE RANGE PHYS IOVA SIZE > ATTR > #0 - #15 0xc0f9fc40bfde0000 0x0 0x10000 Thanks for the feedback! I will send v3.