Re: [PATCH] riscv: kbuild: add virtual memory system selection

2019-08-07 Thread Paul Walmsley
On Wed, 7 Aug 2019, Alexandre Ghiti wrote: > And FYI my series and your patch are already in linux-next. Yes, I agree with Christoph that it would be preferable not to break randconfig/allyesconfig. So if you don't mind, could you respin the RISC-V patch to drop the Sv48 portion, and simply

Re: [PATCH] riscv: kbuild: add virtual memory system selection

2019-08-07 Thread Palmer Dabbelt
On Wed, 07 Aug 2019 08:12:30 PDT (-0700), Christoph Hellwig wrote: On Wed, Aug 07, 2019 at 09:04:40AM +0200, Alexandre Ghiti wrote: I took a look at how x86 deals with 5-level page table: it allows to handle 5-level and 4-level at runtime by folding the last page table level (cf

Re: [PATCH] riscv: kbuild: add virtual memory system selection

2019-08-07 Thread Christoph Hellwig
On Wed, Aug 07, 2019 at 09:04:40AM +0200, Alexandre Ghiti wrote: > I took a look at how x86 deals with 5-level page table: it allows to handle > 5-level and 4-level at runtime by folding the last page table level (cf > Documentation/x86/x86_64/5level-paging.rst). So we might want to be able to >

Re: [PATCH] riscv: kbuild: add virtual memory system selection

2019-08-07 Thread Alexandre Ghiti
On 8/7/19 7:42 AM, Christoph Hellwig wrote: On Tue, Aug 06, 2019 at 05:02:03PM -0700, Paul Walmsley wrote: The rationale is to encourage others to start laying the groundwork for future Sv48 support. The immediate trigger for it was Alex's mmap randomization support patch series, which needs

Re: [PATCH] riscv: kbuild: add virtual memory system selection

2019-08-06 Thread Christoph Hellwig
On Tue, Aug 06, 2019 at 05:02:03PM -0700, Paul Walmsley wrote: > The rationale is to encourage others to start laying the groundwork for > future Sv48 support. The immediate trigger for it was Alex's mmap > randomization support patch series, which needs to set some Kconfig > options

Re: [PATCH] riscv: kbuild: add virtual memory system selection

2019-08-06 Thread Paul Walmsley
On Fri, 2 Aug 2019, Christoph Hellwig wrote: > On Fri, Jul 26, 2019 at 01:00:49PM -0700, Paul Walmsley wrote: > > > > The RISC-V specifications currently define three virtual memory > > translation systems: Sv32, Sv39, and Sv48. Sv32 is currently specific > > to 32-bit systems; Sv39 and Sv48

Re: [PATCH] riscv: kbuild: add virtual memory system selection

2019-08-02 Thread Christoph Hellwig
On Fri, Jul 26, 2019 at 01:00:49PM -0700, Paul Walmsley wrote: > > The RISC-V specifications currently define three virtual memory > translation systems: Sv32, Sv39, and Sv48. Sv32 is currently specific > to 32-bit systems; Sv39 and Sv48 are currently specific to 64-bit > systems. The current

Re: [PATCH] riscv: kbuild: add virtual memory system selection

2019-08-01 Thread Bin Meng
On Thu, Aug 1, 2019 at 3:37 AM Paul Walmsley wrote: > > On Sun, 28 Jul 2019, Bin Meng wrote: > > > The spec does not mention 40-bit physical addresses, but 56-bit. > > Thanks, agreed. Updated patch below > > > - Paul > > From: Paul Walmsley > Date: Fri, 26 Jul 2019 10:21:11 -0700 > Subject:

Re: [PATCH] riscv: kbuild: add virtual memory system selection

2019-07-31 Thread Paul Walmsley
On Sun, 28 Jul 2019, Bin Meng wrote: > The spec does not mention 40-bit physical addresses, but 56-bit. Thanks, agreed. Updated patch below - Paul From: Paul Walmsley Date: Fri, 26 Jul 2019 10:21:11 -0700 Subject: [PATCH v2] riscv: kbuild: add virtual memory system selection The RISC-V

Re: [PATCH] riscv: kbuild: add virtual memory system selection

2019-07-28 Thread Bin Meng
On Sat, Jul 27, 2019 at 4:00 AM Paul Walmsley wrote: > > > The RISC-V specifications currently define three virtual memory > translation systems: Sv32, Sv39, and Sv48. Sv32 is currently specific > to 32-bit systems; Sv39 and Sv48 are currently specific to 64-bit > systems. The current kernel

[PATCH] riscv: kbuild: add virtual memory system selection

2019-07-26 Thread Paul Walmsley
The RISC-V specifications currently define three virtual memory translation systems: Sv32, Sv39, and Sv48. Sv32 is currently specific to 32-bit systems; Sv39 and Sv48 are currently specific to 64-bit systems. The current kernel only supports Sv32 and Sv39, but we'd like to start preparing for