Re: How to handle PTE tables with non contiguous entries ?

2018-09-18 Thread Christophe LEROY
Le 18/09/2018 à 13:47, Aneesh Kumar K.V a écrit : Christophe LEROY writes: Le 17/09/2018 à 11:03, Aneesh Kumar K.V a écrit : Christophe Leroy writes: Hi, I'm having a hard time figuring out the best way to handle the following situation: On the powerpc8xx, handling 16k size pages

Re: How to handle PTE tables with non contiguous entries ?

2018-09-18 Thread Aneesh Kumar K.V
Christophe LEROY writes: > Le 17/09/2018 à 11:03, Aneesh Kumar K.V a écrit : >> Christophe Leroy writes: >> >>> Hi, >>> >>> I'm having a hard time figuring out the best way to handle the following >>> situation: >>> >>> On the powerpc8xx, handling 16k size pages requires to have page tables

Re: How to handle PTE tables with non contiguous entries ?

2018-09-17 Thread Christophe LEROY
Le 17/09/2018 à 11:03, Aneesh Kumar K.V a écrit : Christophe Leroy writes: Hi, I'm having a hard time figuring out the best way to handle the following situation: On the powerpc8xx, handling 16k size pages requires to have page tables with 4 identical entries. I assume that hugetlb

Re: How to handle PTE tables with non contiguous entries ?

2018-09-17 Thread Aneesh Kumar K.V
Christophe Leroy writes: > Hi, > > I'm having a hard time figuring out the best way to handle the following > situation: > > On the powerpc8xx, handling 16k size pages requires to have page tables > with 4 identical entries. I assume that hugetlb page size? If so isn't that similar to FSL

Re: How to handle PTE tables with non contiguous entries ?

2018-09-10 Thread Christophe LEROY
Le 10/09/2018 à 23:06, Nicholas Piggin a écrit : On Mon, 10 Sep 2018 14:34:37 + Christophe Leroy wrote: Hi, I'm having a hard time figuring out the best way to handle the following situation: On the powerpc8xx, handling 16k size pages requires to have page tables with 4 identical

Re: How to handle PTE tables with non contiguous entries ?

2018-09-10 Thread Christophe LEROY
Le 10/09/2018 à 22:05, Dan Malek a écrit : Hello Cristophe. On Sep 10, 2018, at 7:34 AM, Christophe Leroy wrote: On the powerpc8xx, handling 16k size pages requires to have page tables with 4 identical entries. Do you think a 16k page is useful? Back in the day, the goal was to keep

Re: How to handle PTE tables with non contiguous entries ?

2018-09-10 Thread Dan Malek
Hello Cristophe. > On Sep 10, 2018, at 7:34 AM, Christophe Leroy wrote: > > On the powerpc8xx, handling 16k size pages requires to have page tables with > 4 identical entries. Do you think a 16k page is useful? Back in the day, the goal was to keep the fault handling and management

Re: How to handle PTE tables with non contiguous entries ?

2018-09-10 Thread Nicholas Piggin
On Mon, 10 Sep 2018 14:34:37 + Christophe Leroy wrote: > Hi, > > I'm having a hard time figuring out the best way to handle the following > situation: > > On the powerpc8xx, handling 16k size pages requires to have page tables > with 4 identical entries. > > Initially I was thinking

How to handle PTE tables with non contiguous entries ?

2018-09-10 Thread Christophe Leroy
Hi, I'm having a hard time figuring out the best way to handle the following situation: On the powerpc8xx, handling 16k size pages requires to have page tables with 4 identical entries. Initially I was thinking about handling this by simply modifying pte_index() which changing pte_t type