From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catalin Marinas Subject: Re: [PATCH v2 1/5] mm: create generic early_ioremap() support Date: Tue, 7 Jan 2014 15:25:56 +0000 Message-ID: <20140107152555.GB16947@localhost> References: <1389062120-31896-1-git-send-email-msalter@redhat.com> <1389062120-31896-2-git-send-email-msalter@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1389062120-31896-2-git-send-email-msalter@redhat.com> Sender: owner-linux-mm@kvack.org To: Mark Salter Cc: "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" , "patches@linaro.org" , "linux-mm@kvack.org" , "x86@kernel.org" , "linux-arm-kernel@lists.infradead.org" , Andrew Morton , Arnd Bergmann , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Russell King , Will Deacon List-Id: linux-arch.vger.kernel.org On Tue, Jan 07, 2014 at 02:35:16AM +0000, Mark Salter wrote: > This patch creates a generic implementation of early_ioremap() support > based on the existing x86 implementation. early_ioremp() is useful for > early boot code which needs to temporarily map I/O or memory regions > before normal mapping functions such as ioremap() are available. > > There is one difference from the existing x86 implementation which > should be noted. The generic early_memremap() function does not return > an __iomem pointer and a new early_memunmap() function has been added > to act as a wrapper for early_iounmap() but with a non __iomem pointer > passed in. This is in line with the first patch of this series: > > https://lkml.org/lkml/2013/12/22/69 > > Signed-off-by: Mark Salter > CC: x86@kernel.org > CC: linux-arm-kernel@lists.infradead.org > CC: Andrew Morton > CC: Arnd Bergmann > CC: Ingo Molnar > CC: Thomas Gleixner > CC: "H. Peter Anvin" > CC: Russell King > CC: Catalin Marinas > CC: Will Deacon Acked-by: Catalin Marinas -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fw-tnat.austin.arm.com ([217.140.110.23]:11267 "EHLO collaborate-mta1.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752741AbaAGP0F (ORCPT ); Tue, 7 Jan 2014 10:26:05 -0500 Date: Tue, 7 Jan 2014 15:25:56 +0000 From: Catalin Marinas Subject: Re: [PATCH v2 1/5] mm: create generic early_ioremap() support Message-ID: <20140107152555.GB16947@localhost> References: <1389062120-31896-1-git-send-email-msalter@redhat.com> <1389062120-31896-2-git-send-email-msalter@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1389062120-31896-2-git-send-email-msalter@redhat.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Mark Salter Cc: "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" , "patches@linaro.org" , "linux-mm@kvack.org" , "x86@kernel.org" , "linux-arm-kernel@lists.infradead.org" , Andrew Morton , Arnd Bergmann , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Russell King , Will Deacon Message-ID: <20140107152556.AQoviqz3Ejx4UWmYp9LKfLaF1I8jX-EZV4XYPAx_FsA@z> On Tue, Jan 07, 2014 at 02:35:16AM +0000, Mark Salter wrote: > This patch creates a generic implementation of early_ioremap() support > based on the existing x86 implementation. early_ioremp() is useful for > early boot code which needs to temporarily map I/O or memory regions > before normal mapping functions such as ioremap() are available. > > There is one difference from the existing x86 implementation which > should be noted. The generic early_memremap() function does not return > an __iomem pointer and a new early_memunmap() function has been added > to act as a wrapper for early_iounmap() but with a non __iomem pointer > passed in. This is in line with the first patch of this series: > > https://lkml.org/lkml/2013/12/22/69 > > Signed-off-by: Mark Salter > CC: x86@kernel.org > CC: linux-arm-kernel@lists.infradead.org > CC: Andrew Morton > CC: Arnd Bergmann > CC: Ingo Molnar > CC: Thomas Gleixner > CC: "H. Peter Anvin" > CC: Russell King > CC: Catalin Marinas > CC: Will Deacon Acked-by: Catalin Marinas From mboxrd@z Thu Jan 1 00:00:00 1970 From: catalin.marinas@arm.com (Catalin Marinas) Date: Tue, 7 Jan 2014 15:25:56 +0000 Subject: [PATCH v2 1/5] mm: create generic early_ioremap() support In-Reply-To: <1389062120-31896-2-git-send-email-msalter@redhat.com> References: <1389062120-31896-1-git-send-email-msalter@redhat.com> <1389062120-31896-2-git-send-email-msalter@redhat.com> Message-ID: <20140107152555.GB16947@localhost> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Jan 07, 2014 at 02:35:16AM +0000, Mark Salter wrote: > This patch creates a generic implementation of early_ioremap() support > based on the existing x86 implementation. early_ioremp() is useful for > early boot code which needs to temporarily map I/O or memory regions > before normal mapping functions such as ioremap() are available. > > There is one difference from the existing x86 implementation which > should be noted. The generic early_memremap() function does not return > an __iomem pointer and a new early_memunmap() function has been added > to act as a wrapper for early_iounmap() but with a non __iomem pointer > passed in. This is in line with the first patch of this series: > > https://lkml.org/lkml/2013/12/22/69 > > Signed-off-by: Mark Salter > CC: x86 at kernel.org > CC: linux-arm-kernel at lists.infradead.org > CC: Andrew Morton > CC: Arnd Bergmann > CC: Ingo Molnar > CC: Thomas Gleixner > CC: "H. Peter Anvin" > CC: Russell King > CC: Catalin Marinas > CC: Will Deacon Acked-by: Catalin Marinas