[PATCH] powerpc/mm/hugetlb: Filter out hugepage size not supported by page table layout
Aneesh Kumar K.V
aneesh.kumar at linux.vnet.ibm.com
Mon Feb 20 16:36:00 AEDT 2017
Benjamin Herrenschmidt <benh at kernel.crashing.org> 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
>> buggy firmware ?
> 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.
More information about the Linuxppc-dev