From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C70CBC433F5 for ; Mon, 2 May 2022 09:50:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384362AbiEBJxk (ORCPT ); Mon, 2 May 2022 05:53:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381912AbiEBJxd (ORCPT ); Mon, 2 May 2022 05:53:33 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 53F0F2700 for ; Mon, 2 May 2022 02:50:05 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1D6B123A; Mon, 2 May 2022 02:50:05 -0700 (PDT) Received: from [10.163.32.39] (unknown [10.163.32.39]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E2B433F774; Mon, 2 May 2022 02:49:58 -0700 (PDT) Message-ID: Date: Mon, 2 May 2022 15:20:57 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2 2/5] mm: ioremap: Setup phys_addr of struct vm_struct Content-Language: en-US To: Kefeng Wang , catalin.marinas@arm.com, will@kernel.org, akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, hch@infradead.org, arnd@arndb.de, Christoph Hellwig References: <20220429103225.75121-1-wangkefeng.wang@huawei.com> <20220429103225.75121-3-wangkefeng.wang@huawei.com> From: Anshuman Khandual In-Reply-To: <20220429103225.75121-3-wangkefeng.wang@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/29/22 16:02, Kefeng Wang wrote: > Show physical address of each ioremap in /proc/vmallocinfo. > > Acked-by: Andrew Morton > Reviewed-by: Christoph Hellwig > Signed-off-by: Kefeng Wang Reviewed-by: Anshuman Khandual > --- > 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);