lkml.org 
[lkml]   [2021]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] iommu/tegra-smmu: Add pagetable mappings to debugfs
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.

\
 
 \ /
  Last update: 2021-03-10 23:13    [W:0.050 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site