Re: [PATCH v4] sparc64: Multi-page size support

2017-01-03 Thread Nitin Gupta
On 12/27/2016 09:34 AM, David Miller wrote: > From: Nitin Gupta > Date: Tue, 13 Dec 2016 10:03:18 -0800 > >> +static unsigned int sun4u_huge_tte_to_shift(pte_t entry) >> +{ >> +unsigned long tte_szbits = pte_val(entry) & _PAGE_SZALL_4V; >> +unsigned int shift; >> + >> +switch (tte_s

Re: [PATCH v4] sparc64: Multi-page size support

2016-12-27 Thread David Miller
From: Nitin Gupta Date: Tue, 13 Dec 2016 10:03:18 -0800 > +static unsigned int sun4u_huge_tte_to_shift(pte_t entry) > +{ > + unsigned long tte_szbits = pte_val(entry) & _PAGE_SZALL_4V; Actually this should be _PAGE_SZALL_4U.

Re: [PATCH v4] sparc64: Multi-page size support

2016-12-27 Thread David Miller
From: Nitin Gupta Date: Tue, 13 Dec 2016 10:03:18 -0800 > +static unsigned int sun4u_huge_tte_to_shift(pte_t entry) > +{ > + unsigned long tte_szbits = pte_val(entry) & _PAGE_SZALL_4V; > + unsigned int shift; > + > + switch (tte_szbits) { > + case _PAGE_SZ256MB_4U: > +