Re: [PATCH v2] RISC-V: Fix Maximum Physical Memory 2GiB option for 64bit systems

2019-04-03 Thread Christoph Hellwig
> + if ((reg->base + mem_size) < end) No need for the braces. Otherwise looks fine: Reviewed-by: Christoph Hellwig

[PATCH v2] RISC-V: Fix Maximum Physical Memory 2GiB option for 64bit systems

2019-04-02 Thread Anup Patel
The Maximum Physical Memory 2GiB option for 64bit systems is currently broken because kernel hangs at boot-time when this option is enabled and the underlying system has more than 2GiB memory. This issue can be easily reproduced on SiFive Unleashed board where we have 8GiB of memory. This patch f