On 05/17/2017 12:29 PM, Aneesh Kumar K.V wrote:
>
>
> On Wednesday 17 May 2017 10:31 AM, Anshuman Khandual wrote:
>> On 05/16/2017 02:54 PM, Aneesh Kumar K.V wrote:
>>> +void __init reserve_hugetlb_gpages(void)
>>> +{
>>> +char buf[10];
>>> +phys_addr_t base;
>>> +unsigned long gpage_
On Wednesday 17 May 2017 10:31 AM, Anshuman Khandual wrote:
On 05/16/2017 02:54 PM, Aneesh Kumar K.V wrote:
+void __init reserve_hugetlb_gpages(void)
+{
+ char buf[10];
+ phys_addr_t base;
+ unsigned long gpage_size = 1UL << 34;
+ static __initdata char cmdline[COMMAND_
On 05/16/2017 02:54 PM, Aneesh Kumar K.V wrote:
> +void __init reserve_hugetlb_gpages(void)
> +{
> + char buf[10];
> + phys_addr_t base;
> + unsigned long gpage_size = 1UL << 34;
> + static __initdata char cmdline[COMMAND_LINE_SIZE];
> +
> + if (radix_enabled())
> +
We use the kernel command line to do reservation of hugetlb pages. The code
duplcation here is mostly to make it simpler. With 64 bit book3s, we need to
support either 16G or 1G gigantic hugepage. Whereas the FSL_BOOK3E
implementation needs to support multiple gigantic hugepage. We avoid the
gpage_