Re: [RFC PATCH 1/3] asm-generic: io: Add exec versions of ioremap

2016-05-25 Thread Dave Gerlach
On 05/18/2016 03:57 PM, Russell King - ARM Linux wrote: On Wed, May 18, 2016 at 10:25:03PM +0200, Arnd Bergmann wrote: The ARM version of ioremap_exec() that gets added in this patch is cached (like memremap()), but then the asm-generic version is not? This is even more confusing, it should at l

Re: [RFC PATCH 1/3] asm-generic: io: Add exec versions of ioremap

2016-05-18 Thread Russell King - ARM Linux
On Wed, May 18, 2016 at 10:25:03PM +0200, Arnd Bergmann wrote: > The ARM version of ioremap_exec() that gets added in this patch is cached > (like memremap()), but then the asm-generic version is not? This is > even more confusing, it should at least do roughly the same thing across > architectures

Re: [RFC PATCH 1/3] asm-generic: io: Add exec versions of ioremap

2016-05-18 Thread Arnd Bergmann
On Wednesday 18 May 2016 18:51:02 Russell King - ARM Linux wrote: > On Wed, May 18, 2016 at 09:12:20AM -0500, Dave Gerlach wrote: > > Ok thank you for the pointer. I agree, the memremap API looks like a better > > fit for this. I think it likely makes the most sense to still add these > > ioremap_e

Re: [RFC PATCH 1/3] asm-generic: io: Add exec versions of ioremap

2016-05-18 Thread Russell King - ARM Linux
On Wed, May 18, 2016 at 09:12:20AM -0500, Dave Gerlach wrote: > Ok thank you for the pointer. I agree, the memremap API looks like a better > fit for this. I think it likely makes the most sense to still add these > ioremap_exec and ioremap_exec_nocache and then call them through the > memremap API

Re: [RFC PATCH 1/3] asm-generic: io: Add exec versions of ioremap

2016-05-18 Thread Dave Gerlach
Hi, On 05/12/2016 11:37 AM, Russell King - ARM Linux wrote: On Mon, May 09, 2016 at 04:41:49PM -0500, Dave Gerlach wrote: diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c index 66a978d05958..c6eef3c98074 100644 --- a/arch/arm/mm/ioremap.c +++ b/arch/arm/mm/ioremap.c @@ -400,6 +400,20 @

Re: [RFC PATCH 1/3] asm-generic: io: Add exec versions of ioremap

2016-05-12 Thread Russell King - ARM Linux
On Mon, May 09, 2016 at 04:41:49PM -0500, Dave Gerlach wrote: > diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c > index 66a978d05958..c6eef3c98074 100644 > --- a/arch/arm/mm/ioremap.c > +++ b/arch/arm/mm/ioremap.c > @@ -400,6 +400,20 @@ EXPORT_SYMBOL(ioremap_wc); > * clocks that would

[RFC PATCH 1/3] asm-generic: io: Add exec versions of ioremap

2016-05-09 Thread Dave Gerlach
From: Russ Dill If code is to be copied into and area (such as SRAM) and run, it needs to be marked as exec. Currently only an ARM version of this exists, but a generic version will be useful for drivers. Signed-off-by: Russ Dill Signed-off-by: Dave Gerlach --- arch/arm/include/asm/io.h |