[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210310220808.GA10431@Asurada-Nvidia>
Date: Wed, 10 Mar 2021 14:08:09 -0800
From: Nicolin Chen <nicoleotsuka@...il.com>
To: Dmitry Osipenko <digetx@...il.com>
Cc: joro@...tes.org, thierry.reding@...il.com, will@...nel.org,
vdumpa@...dia.com, jonathanh@...dia.com,
linux-tegra@...r.kernel.org, iommu@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org
Subject: Re: [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.
Powered by blists - more mailing lists