Re: [PATCH v3] powerpc/mm: Implemented default_hugepagesz verification for powerpc

From: Aneesh Kumar K.V
Date: Fri Aug 04 2017 - 01:58:20 EST


Victor Aoqui <victora@xxxxxxxxxxxxxxxxxx> writes:

> Implemented default hugepage size verification (default_hugepagesz=)
> in order to allow allocation of defined number of pages (hugepages=)
> only for supported hugepage sizes.
>
> Signed-off-by: Victor Aoqui <victora@xxxxxxxxxxxxxxxxxx>

I am still not sure about this. With current upstream we get

PCI: Probing PCI hardware
PCI: Probing PCI hardware done
HugeTLB: unsupported default_hugepagesz 2097152. Reverting to 16777216
HugeTLB registered 16.0 MiB page size, pre-allocated 0 pages
HugeTLB registered 16.0 GiB page size, pre-allocated 0 pages

That warning is added by

d715cf804a0318e83c75c0a7abd1a4b9ce13e8da

Which should be good enough right ?

-aneesh