Re: [PATCH] hugetlb: simplify hugetlb handling in follow_page_mask

2022-09-05 Thread David Hildenbrand
Yes I think the assumption is correct for user pages hence for GUP. By the way the discussion started with PTDUMP. For PTDUMP we need huge page directories to be taken into account. And for anything that involves kernel pages like VMAP or VMALLOC. Yes, makes perfect sense to me now that you exp

Re: [PATCH] hugetlb: simplify hugetlb handling in follow_page_mask

2022-09-05 Thread Christophe Leroy
Le 05/09/2022 à 11:46, David Hildenbrand a écrit : > On 05.09.22 11:33, Christophe Leroy wrote: >> >> >> Le 05/09/2022 à 10:37, David Hildenbrand a écrit : >>> On 03.09.22 09:07, Christophe Leroy wrote: +Resending with valid powerpc list address Le 02/09/2022 à 20:52, David Hildenb

Re: [PATCH] hugetlb: simplify hugetlb handling in follow_page_mask

2022-09-05 Thread David Hildenbrand
On 05.09.22 11:33, Christophe Leroy wrote: Le 05/09/2022 à 10:37, David Hildenbrand a écrit : On 03.09.22 09:07, Christophe Leroy wrote: +Resending with valid powerpc list address Le 02/09/2022 à 20:52, David Hildenbrand a écrit : Adding Christophe on Cc: Christophe do you know if is_hugep

Re: [PATCH] hugetlb: simplify hugetlb handling in follow_page_mask

2022-09-05 Thread Christophe Leroy
Le 05/09/2022 à 10:37, David Hildenbrand a écrit : > On 03.09.22 09:07, Christophe Leroy wrote: >> +Resending with valid powerpc list address >> >> Le 02/09/2022 à 20:52, David Hildenbrand a écrit : >> Adding Christophe on Cc: >> >> Christophe do you know if is_hugepd is true for all

Re: [PATCH] hugetlb: simplify hugetlb handling in follow_page_mask

2022-09-05 Thread David Hildenbrand
On 03.09.22 09:07, Christophe Leroy wrote: +Resending with valid powerpc list address Le 02/09/2022 à 20:52, David Hildenbrand a écrit : Adding Christophe on Cc: Christophe do you know if is_hugepd is true for all hugetlb entries, not just hugepd? is_hugepd() is true if and only if the direc

Re: [PATCH] hugetlb: simplify hugetlb handling in follow_page_mask

2022-09-04 Thread Michael Ellerman
Christophe Leroy writes: > +Resending with valid powerpc list address > > Le 02/09/2022 à 20:52, David Hildenbrand a écrit : > Adding Christophe on Cc: > > Christophe do you know if is_hugepd is true for all hugetlb entries, not > just hugepd? > > is_hugepd() is true if and only if

Re: [PATCH] hugetlb: simplify hugetlb handling in follow_page_mask

2022-09-03 Thread Christophe Leroy
+Resending with valid powerpc list address Le 02/09/2022 à 20:52, David Hildenbrand a écrit : Adding Christophe on Cc: Christophe do you know if is_hugepd is true for all hugetlb entries, not just hugepd? is_hugepd() is true if and only if the directory entry points to a huge