Subject: Re: [PATCH] powerpc/mm/hugetlb: Filter out hugepage size not supported by page table layout

From: "Aneesh Kumar K.V" <[email-masked]>
Date: Mon, 20 Feb 2017 11:06:00 +0530

Benjamin Herrenschmidt <[email-masked]> writes:

> On Mon, 2017-02-20 at 09:02 +0530, Aneesh Kumar K.V wrote:
>> To avoid crashes like the one reported in the commit message due to=C2=A0
>> buggy firmware ?=20
>
> I don't want Linux to make those assumptions. We should fix the FW.
>

I was not suggesting to not fix FW. The idea was two fold.

We cannot support different hugetlb page sizes. They need to
be supported at linux page table level. So a generic check like
is_power_of_2/4() may not be what we want. The second is to document
clearly what are the different page sizes supported by a platform.

-aneesh