Messages in this thread Patch in this message | | | From | Kefeng Wang <> | Subject | [PATCH v5 3/6] mm: ioremap: Setup phys_addr of struct vm_struct | Date | Tue, 7 Jun 2022 20:50:24 +0800 |
| |
Show physical address of each ioremap in /proc/vmallocinfo.
Acked-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> --- mm/ioremap.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/mm/ioremap.c b/mm/ioremap.c index 2d754b48d230..e1d008e8f87f 100644 --- a/mm/ioremap.c +++ b/mm/ioremap.c @@ -33,6 +33,7 @@ void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, 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))) { -- 2.35.3
| |