Re: [PATCH RFC 2/2] ARM: nommu: remap exception base address to RAM

2017-01-16 Thread Afzal Mohammed
Hi, On Mon, Jan 16, 2017 at 09:53:41AM +, Vladimir Murzin wrote: > On 15/01/17 11:47, Afzal Mohammed wrote: > > mpu_setup_region() in arch/arm/mm/nommu.c that takes care of > > MPU_RAM_REGION only. And that seems to be a kind of redundant as it is > > also done in asm at __setup_mpu(). Git bl

Re: [PATCH RFC 2/2] ARM: nommu: remap exception base address to RAM

2017-01-16 Thread Vladimir Murzin
Hi, On 15/01/17 11:47, Afzal Mohammed wrote: > Hi, > > On Sat, Jan 07, 2017 at 10:43:39PM +0530, Afzal Mohammed wrote: >> On Tue, Dec 13, 2016 at 10:02:26AM +, Russell King - ARM Linux wrote: > >>> Also, if the region setup for the vectors was moved as well, it would >>> then be possible to

Re: [PATCH RFC 2/2] ARM: nommu: remap exception base address to RAM

2017-01-15 Thread Afzal Mohammed
Hi, On Sat, Jan 07, 2017 at 10:43:39PM +0530, Afzal Mohammed wrote: > On Tue, Dec 13, 2016 at 10:02:26AM +, Russell King - ARM Linux wrote: > > Also, if the region setup for the vectors was moved as well, it would > > then be possible to check the ID registers to determine whether this > > is

Re: [PATCH RFC 2/2] ARM: nommu: remap exception base address to RAM

2017-01-07 Thread Afzal Mohammed
Hi, On Tue, Dec 13, 2016 at 10:02:26AM +, Russell King - ARM Linux wrote: > Is there really any need to do this in head.S ? I believe it's > entirely possible to do it later - arch/arm/mm/nommu.c:paging_init(). As memblock_reserve() for exception address was done before paging_init(), seems

Re: [PATCH RFC 2/2] ARM: nommu: remap exception base address to RAM

2016-12-13 Thread Afzal Mohammed
Hi, On Tue, Dec 13, 2016 at 09:38:21AM +, Vladimir Murzin wrote: > On 11/12/16 13:12, Afzal Mohammed wrote: > > this probably would have to be made robust so as to not cause issue on > > other v7-A's upon trying to do !MMU (this won't affect normal MMU boot), > > or specifically where securit

Re: [PATCH RFC 2/2] ARM: nommu: remap exception base address to RAM

2016-12-13 Thread Afzal Mohammed
Hi, On Tue, Dec 13, 2016 at 10:02:26AM +, Russell King - ARM Linux wrote: > On Sun, Dec 11, 2016 at 06:42:55PM +0530, Afzal Mohammed wrote: > > bic r0, r0, #CR_V > > #endif > > mcr p15, 0, r0, c1, c0, 0 @ write control reg > > + > > +#ifdef CONFIG_REMAP_VECTORS_TO_R

Re: [PATCH RFC 2/2] ARM: nommu: remap exception base address to RAM

2016-12-13 Thread Russell King - ARM Linux
On Sun, Dec 11, 2016 at 06:42:55PM +0530, Afzal Mohammed wrote: > Remap exception base address to start of RAM in Kernel in !MMU mode. > > Based on existing Kconfig help, Kernel was expecting it to be > configured by external support. Also earlier it was not possible to > copy the exception table

Re: [PATCH RFC 2/2] ARM: nommu: remap exception base address to RAM

2016-12-13 Thread Vladimir Murzin
On 11/12/16 13:12, Afzal Mohammed wrote: > Remap exception base address to start of RAM in Kernel in !MMU mode. > > Based on existing Kconfig help, Kernel was expecting it to be > configured by external support. Also earlier it was not possible to > copy the exception table to start of RAM due to

Re: [PATCH RFC 2/2] ARM: nommu: remap exception base address to RAM

2016-12-11 Thread Afzal Mohammed
Hi, On Sun, Dec 11, 2016 at 06:42:55PM +0530, Afzal Mohammed wrote: > Kernel text start at an offset of at least 32K to account for page > tables in MMU case. Proper way to put it might have been "32K (to account for 16K initial page tables & the old atags)", unless i missed something. Regards

[PATCH RFC 2/2] ARM: nommu: remap exception base address to RAM

2016-12-11 Thread Afzal Mohammed
Remap exception base address to start of RAM in Kernel in !MMU mode. Based on existing Kconfig help, Kernel was expecting it to be configured by external support. Also earlier it was not possible to copy the exception table to start of RAM due to Kconfig dependency, which has been fixed by a chang