Re: [PATCH] riscv: fixup max_low_pfn with PFN_DOWN.

From: Guo Ren
Date: Wed Jan 23 2019 - 21:32:29 EST


On Wed, Jan 23, 2019 at 06:00:35PM -0800, Palmer Dabbelt wrote:
> On Tue, 15 Jan 2019 17:07:38 PST (-0800), guoren@xxxxxxxxxx wrote:
> >Hi Christoph,
> >
> >I use PFN_DOWN() every where as possible and seems it's a habit
> >problem. So let risc-v maintainer to choose "PFN_DOW()" or
> >">> PAGE_SHIFT".
> >
> >Also the same with "end_of_DRAM & max_low_pfn".
>
> PFN_DOWN makes sense to me, as that's what we're trying to do here (round a
> physical address down to page frame number). Am a I misunderstanding
> something?
>
No, you got it :)

Best Regards
Guo Ren