From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932224AbbAFO6M (ORCPT ); Tue, 6 Jan 2015 09:58:12 -0500 Received: from mail-oi0-f43.google.com ([209.85.218.43]:37843 "EHLO mail-oi0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932146AbbAFO6K (ORCPT ); Tue, 6 Jan 2015 09:58:10 -0500 MIME-Version: 1.0 In-Reply-To: <20150106141701.GC3484@arm.com> References: <20150106141701.GC3484@arm.com> Date: Tue, 6 Jan 2015 22:58:09 +0800 Message-ID: Subject: Re: [PATCH] arm64: add ioremap physical address information From: Min-Hua Chen To: Will Deacon Cc: Catalin Marinas , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 6, 2015 at 10:17 PM, Will Deacon wrote: > On Fri, Dec 26, 2014 at 04:52:10PM +0000, Min-Hua Chen wrote: >> In /proc/vmallocinfo, it's good to show the physical address >> of each ioremap in vmallocinfo. Add physical address information >> in arm64 ioremap. >> >> 0xffffc900047f2000-0xffffc900047f4000 8192 _nv013519rm+0x57/0xa0 >> [nvidia] phys=f8100000 ioremap >> 0xffffc900047f4000-0xffffc900047f6000 8192 _nv013519rm+0x57/0xa0 >> [nvidia] phys=f8008000 ioremap >> 0xffffc90004800000-0xffffc90004821000 135168 e1000_probe+0x22c/0xb95 >> [e1000e] phys=f4300000 ioremap >> 0xffffc900049c0000-0xffffc900049e1000 135168 _nv013521rm+0x4d/0xd0 >> [nvidia] phys=e0140000 ioremap >> >> Signed-off-by: Min-Hua Chen >> --- > > Thanks, this looks useful for debugging. > > Acked-by: Will Deacon > > I assume this can wait for 3.20? Sure, thanks. Min-Hua > > Will > > >> arch/arm64/mm/ioremap.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/arch/arm64/mm/ioremap.c b/arch/arm64/mm/ioremap.c >> index cbb99c8..01e88c8 100644 >> --- a/arch/arm64/mm/ioremap.c >> +++ b/arch/arm64/mm/ioremap.c >> @@ -62,6 +62,7 @@ static void __iomem *__ioremap_caller(phys_addr_t >> phys_addr, size_t size, >> if (!area) >> return NULL; >> addr = (unsigned long)area->addr; >> + area->phys_addr = phys_addr; >> >> err = ioremap_page_range(addr, addr + size, phys_addr, prot); >> if (err) { >> -- >> 1.7.10.4 >>