[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220519082552.117736-4-wangkefeng.wang@huawei.com>
Date: Thu, 19 May 2022 16:25:49 +0800
From: Kefeng Wang <wangkefeng.wang@...wei.com>
To: <catalin.marinas@....com>, <will@...nel.org>,
<akpm@...ux-foundation.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>
CC: <linux-mm@...ck.org>, <hch@...radead.org>, <arnd@...db.de>,
<anshuman.khandual@....com>,
Kefeng Wang <wangkefeng.wang@...wei.com>,
Christoph Hellwig <hch@....de>
Subject: [PATCH v3 3/6] mm: ioremap: Setup phys_addr of struct vm_struct
Show physical address of each ioremap in /proc/vmallocinfo.
Acked-by: Andrew Morton <akpm@...ux-foundation.org>
Reviewed-by: Christoph Hellwig <hch@....de>
Reviewed-by: Anshuman Khandual <anshuman.khandual@....com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@...wei.com>
---
mm/ioremap.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/ioremap.c b/mm/ioremap.c
index 1f9597fbcc07..7cb9996b0c12 100644
--- a/mm/ioremap.c
+++ b/mm/ioremap.c
@@ -32,6 +32,7 @@ void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, unsigned long pro
if (!area)
return NULL;
vaddr = (unsigned long)area->addr;
+ area->phys_addr = phys_addr;
if (ioremap_page_range(vaddr, vaddr + size, phys_addr, __pgprot(prot))) {
free_vm_area(area);
--
2.35.3
Powered by blists - more mailing lists