Re: ARM: static kernel in vmalloc space

2020-07-30 Thread Arnd Bergmann
On Thu, Jul 30, 2020 at 11:33 AM Linus Walleij wrote: > On Fri, May 15, 2020 at 5:41 PM Arnd Bergmann wrote: > > [Russell] > > > There are some aliasing VIPT implementations on ARMv6, but I don't > > > remember how common. > > > > I thought it was only realview-pb and omap2, but it seems there >

Re: ARM: static kernel in vmalloc space

2020-07-30 Thread Linus Walleij
On Fri, May 15, 2020 at 5:41 PM Arnd Bergmann wrote: [Russell] > > There are some aliasing VIPT implementations on ARMv6, but I don't > > remember how common. > > I thought it was only realview-pb and omap2, but it seems there > are more, at least ast2500 is an important example. > > I could not

Re: ARM: static kernel in vmalloc space

2020-05-16 Thread Arnd Bergmann
On Sat, May 16, 2020 at 8:06 AM afzal mohammed wrote: > > On Thu, May 14, 2020 at 05:32:41PM +0200, Arnd Bergmann wrote: > > > Typical distros currently offer two kernels, with and without LPAE, > > and they probably don't want to add a third one for LPAE with > > either highmem or vmsplit-4g-4g.

Re: ARM: static kernel in vmalloc space

2020-05-15 Thread afzal mohammed
Hi, On Thu, May 14, 2020 at 05:32:41PM +0200, Arnd Bergmann wrote: > Typical distros currently offer two kernels, with and without LPAE, > and they probably don't want to add a third one for LPAE with > either highmem or vmsplit-4g-4g. Having extra user address > space and more lowmem is both goi

Re: ARM: static kernel in vmalloc space

2020-05-15 Thread Arnd Bergmann
On Fri, May 15, 2020 at 1:40 AM Russell King - ARM Linux admin wrote: > On Thu, May 14, 2020 at 11:12:01PM +0200, Arnd Bergmann wrote: > > On Thu, May 14, 2020 at 6:25 PM Russell King - ARM Linux admin > > wrote: > > > On Thu, May 14, 2020 at 02:41:11PM +0200, Arnd Bergmann wrote: > > > > On Thu,

Re: ARM: static kernel in vmalloc space

2020-05-14 Thread Russell King - ARM Linux admin
On Thu, May 14, 2020 at 11:12:01PM +0200, Arnd Bergmann wrote: > On Thu, May 14, 2020 at 6:25 PM Russell King - ARM Linux admin > wrote: > > On Thu, May 14, 2020 at 02:41:11PM +0200, Arnd Bergmann wrote: > > > On Thu, May 14, 2020 at 1:18 PM afzal mohammed > > > wrote: > > > > It's clearly poss

Re: ARM: static kernel in vmalloc space

2020-05-14 Thread Arnd Bergmann
On Thu, May 14, 2020 at 6:25 PM Russell King - ARM Linux admin wrote: > On Thu, May 14, 2020 at 02:41:11PM +0200, Arnd Bergmann wrote: > > On Thu, May 14, 2020 at 1:18 PM afzal mohammed > > wrote: > > It's clearly possible to do something very similar for older chips > > (v6 or v7 without LPAE,

Re: ARM: static kernel in vmalloc space

2020-05-14 Thread Russell King - ARM Linux admin
On Thu, May 14, 2020 at 02:41:11PM +0200, Arnd Bergmann wrote: > On Thu, May 14, 2020 at 1:18 PM afzal mohammed > wrote: > > On Tue, May 12, 2020 at 09:49:59PM +0200, Arnd Bergmann wrote: > > > > > Any idea which bit you want to try next? > > > > My plan has been to next post patches for the stat

Re: ARM: static kernel in vmalloc space

2020-05-14 Thread Arnd Bergmann
On Thu, May 14, 2020 at 3:35 PM afzal mohammed wrote: > On Thu, May 14, 2020 at 02:41:11PM +0200, Arnd Bergmann wrote: > > On Thu, May 14, 2020 at 1:18 PM afzal mohammed > > wrote: > > > 4. for user space to/from copy > > > a. pin user pages > > > b. kmap user page (can't corresponding lowmem

Re: ARM: static kernel in vmalloc space

2020-05-14 Thread afzal mohammed
Hi, On Thu, May 14, 2020 at 07:05:45PM +0530, afzal mohammed wrote: > So if we make VMSPLIT_4G_4G, depends on !HIGH_MEMORY (w/ mention of > caveat in Kconfig help that this is meant for platforms w/ <=4GB), then > we can do copy_{from,to}_user the same way currently do, and no need to > do the us

Re: ARM: static kernel in vmalloc space

2020-05-14 Thread afzal mohammed
Hi, On Thu, May 14, 2020 at 02:41:11PM +0200, Arnd Bergmann wrote: > On Thu, May 14, 2020 at 1:18 PM afzal mohammed > wrote: > > 1. SoC w/ LPAE > > 2. TTBR1 (top 256MB) for static kernel, modules, io mappings, vmalloc, > > kmap, fixmap & vectors > Right, these kind of go together becau

Re: ARM: static kernel in vmalloc space

2020-05-14 Thread Arnd Bergmann
On Thu, May 14, 2020 at 1:18 PM afzal mohammed wrote: > On Tue, May 12, 2020 at 09:49:59PM +0200, Arnd Bergmann wrote: > > > Any idea which bit you want to try next? > > My plan has been to next post patches for the static kernel migration > to vmalloc space (currently the code is rigid, taking ea

Re: ARM: static kernel in vmalloc space

2020-05-14 Thread afzal mohammed
Hi, On Tue, May 12, 2020 at 09:49:59PM +0200, Arnd Bergmann wrote: > Any idea which bit you want to try next? My plan has been to next post patches for the static kernel migration to vmalloc space (currently the code is rigid, taking easy route wherever possible & not of high quality) as that fe

Re: ARM: static kernel in vmalloc space

2020-05-12 Thread Arnd Bergmann
On Tue, May 12, 2020 at 12:48 PM afzal mohammed wrote: > > On Mon, May 11, 2020 at 05:29:29PM +0200, Arnd Bergmann wrote: > > > What do you currently do with the module address space? > > In the current setup, module address space was untouched, i.e. virtual > address difference b/n text & module

Re: ARM: static kernel in vmalloc space

2020-05-12 Thread afzal mohammed
Hi, On Mon, May 11, 2020 at 05:29:29PM +0200, Arnd Bergmann wrote: > What do you currently do with the module address space? In the current setup, module address space was untouched, i.e. virtual address difference b/n text & module space is far greater than 32MB, at least > (2+768+16)MB and mod

Re: ARM: static kernel in vmalloc space (was Re: [PATCH 0/3] Highmem support for 32-bit RISC-V)

2020-05-11 Thread Arnd Bergmann
On Mon, May 11, 2020 at 4:21 PM afzal mohammed wrote: > > Hi, > > Kernel now boots to prompt w/ static kernel mapping moved to vmalloc > space. > > Changes currently done have a couple of platform specific things, this > has to be modified to make it multiplatform friendly (also to be taken > care

ARM: static kernel in vmalloc space (was Re: [PATCH 0/3] Highmem support for 32-bit RISC-V)

2020-05-11 Thread afzal mohammed
Hi, Kernel now boots to prompt w/ static kernel mapping moved to vmalloc space. Changes currently done have a couple of platform specific things, this has to be modified to make it multiplatform friendly (also to be taken care is ARM_PATCH_PHYS_VIRT case). Module address space has to be taken car