Re: [PATCH] RISC-V: Always compile mm/init.c with cmodel=medany

2019-03-24 Thread Anup Patel
rnel@vger.kernel.org; Mike > > Rapoport ; Christoph Hellwig ; Atish > > Patra ; Paul Walmsley ; > > linux-ri...@lists.infradead.org; Christoph Hellwig > > Subject: [PATCH] RISC-V: Always compile mm/init.c with cmodel=medany > > > > diff --git a/arch

Re: [PATCH] RISC-V: Always compile mm/init.c with cmodel=medany

2019-03-24 Thread Anup Patel
On Sun, Mar 24, 2019 at 8:27 PM Christoph Hellwig wrote: > > On Sun, Mar 24, 2019 at 11:08:29AM +, Anup Patel wrote: > > Signed-off-by: Christoph Hellwig > > Signed-off-by: Mike Rapoport > > Huh? I don't think this is from Mike and me. > > > +unsigned long va_pa_offset; > >

Re: [PATCH] RISC-V: Always compile mm/init.c with cmodel=medany

2019-03-24 Thread Anup Patel
On Sun, Mar 24, 2019 at 10:13 PM Mike Rapoport wrote: > > On Sun, Mar 24, 2019 at 03:57:08PM +0100, Christoph Hellwig wrote: > > On Sun, Mar 24, 2019 at 11:08:29AM +, Anup Patel wrote: > > > Signed-off-by: Christoph Hellwig > > > Signed-off-by: Mike Rapoport > > > > Huh? I don't think this

RE: [PATCH] RISC-V: Always compile mm/init.c with cmodel=medany

2019-03-24 Thread Gary Guo
ul Walmsley ; > linux-ri...@lists.infradead.org; Christoph Hellwig > Subject: [PATCH] RISC-V: Always compile mm/init.c with cmodel=medany > > diff --git a/arch/riscv/mm/Makefile b/arch/riscv/mm/Makefile > index eb22ab49b3e0..7307609d405b 100644 > --- a/arch/riscv/mm/Makefile > +++ b/arch/riscv/m

Re: [PATCH] RISC-V: Always compile mm/init.c with cmodel=medany

2019-03-24 Thread Mike Rapoport
On Sun, Mar 24, 2019 at 03:57:08PM +0100, Christoph Hellwig wrote: > On Sun, Mar 24, 2019 at 11:08:29AM +, Anup Patel wrote: > > Signed-off-by: Christoph Hellwig > > Signed-off-by: Mike Rapoport > > Huh? I don't think this is from Mike and me. Suggested-by: would me more appropriate

Re: [PATCH] RISC-V: Always compile mm/init.c with cmodel=medany

2019-03-24 Thread Christoph Hellwig
On Sun, Mar 24, 2019 at 11:08:29AM +, Anup Patel wrote: > Signed-off-by: Christoph Hellwig > Signed-off-by: Mike Rapoport Huh? I don't think this is from Mike and me. > +unsigned long va_pa_offset; > +EXPORT_SYMBOL(va_pa_offset); > +unsigned long pfn_base; > +EXPORT_SYMBOL(pfn_base); Can

[PATCH] RISC-V: Always compile mm/init.c with cmodel=medany

2019-03-24 Thread Anup Patel
The Linux RISC-V 32bit kernel is broken after we moved setup_vm() from kernel/setup.c to mm/init.c because Linux RISC-V 32bit kernel by default uses cmodel=medlow which results in a non-position-independent setup_vm(). This patch fixes Linux RISC-V 32bit kernel booting by: 1. Forcing