Re: [RFC] Implementing HUGEPAGE on MPC 8xx

2016-06-08 Thread Scott Wood
On Wed, 2016-06-08 at 09:03 +0200, Christophe Leroy wrote: > In see in the current ppc kernel that for PPC32, SYS_SUPPORTS_HUGETLBFS > is selected only if we have PHYS_64BIT. > What is the reason for only implementing HUGETLBFS with 64 bits phys > addresses ? That's not for PPC32 in general --

Re: [RFC] Implementing HUGEPAGE on MPC 8xx

2016-06-08 Thread Dan Malek
Hello Christophe. I’m surprised there is still any interest in this processor family :) On Jun 8, 2016, at 12:03 AM, Christophe Leroy wrote: > MPC 8xx has several page sizes: 4k, 16k, 512k and 8M. > Today, 4k and 16k sizes are implemented as normal page sizes and 8M

[RFC] Implementing HUGEPAGE on MPC 8xx

2016-06-08 Thread Christophe Leroy
Hello, MPC 8xx has several page sizes: 4k, 16k, 512k and 8M. Today, 4k and 16k sizes are implemented as normal page sizes and 8M is used for mapping linear memory space in kernel. I'd like to implement HUGE PAGE to reduce TLB misses from user apps. In 4k mode, PAGE offset is 12 bits, PTE