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

From: Benjamin Herrenschmidt <[email-masked]>
Date: Mon, 20 Feb 2017 14:35:46 +1100

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 
> buggy firmware ? 

I don't want Linux to make those assumptions. We should fix the FW.

Think of backward compat for example.

> Also
> It can serve as an easy way to understand what hugepage sizes are 
> supported by different platforms.
> I am yet to figure out what the FSL_BOOK3E and PPC_8xx #ifdef above
> that 
> hunk is all about. Having
> the supported hugepage size clearly verified against makes it easy ?
> 
> -aneesh