Re: [PATCH v2 2/2] udmabuf: Add back support for mapping hugetlb pages (v2)

2023-07-19 Thread Mike Kravetz
bject memory-backend-memfd,hugetlb=on,id=mem1,size=4096M > -machine memory-backend=mem1 > > Replacing -display gtk,gl=on with -display gtk,gl=off above would > exercise the mmap handler. > > v2: Updated get_sg_table() to manually populate the scatterlist for > both huge page

Re: [PATCH v1 0/2] udmabuf: Add back support for mapping hugetlb pages

2023-06-23 Thread Mike Kravetz
es, as this test program BUG'ed if hugetlb vmemmap optimization was enabled in the old udmabuf. -- Mike Kravetz // SPDX-License-Identifier: GPL-2.0 #define _GNU_SOURCE #define __EXPORTED_HEADERS__ #include #include #include #include #include #include #include #include #include #include #inclu

[PATCH] udmabuf: revert 'Add support for mapping hugepages (v4)'

2023-06-09 Thread Mike Kravetz
te hugetlb pages. This will require different alignment and size requirements on the UDMABUF_CREATE API. [1] https://lore.kernel.org/linux-mm/20230512072036.1027784-1-junxiao.ch...@intel.com/ Fixes: 16c243e99d33 ("udmabuf: Add support for mapping hugepages (v4)") Cc: Signed-off-by: Mike K

Re: [PATCH] mm: fix hugetlb page unmap count balance issue

2023-06-08 Thread Mike Kravetz
On 06/07/23 12:03, Andrew Morton wrote: > On Tue, 16 May 2023 15:34:40 -0700 Mike Kravetz > wrote: > > > On 05/15/23 10:04, Mike Kravetz wrote: > > > On 05/12/23 16:29, Mike Kravetz wrote: > > > > On 05/12/23 14:26, James Houghton wrote: > > > >

Re: [PATCH] mm: fix hugetlb page unmap count balance issue

2023-06-08 Thread Mike Kravetz
On 06/07/23 14:00, Andrew Morton wrote: > On Wed, 7 Jun 2023 13:53:10 -0700 Mike Kravetz > wrote: > > > > > > > BUGs aren't good. Can we please find a way to push this along? > > > > > > Have we heard anything from any udmabuf people? >

Re: [PATCH] mm: fix hugetlb page unmap count balance issue

2023-05-17 Thread Mike Kravetz
On 05/15/23 10:04, Mike Kravetz wrote: > On 05/12/23 16:29, Mike Kravetz wrote: > > On 05/12/23 14:26, James Houghton wrote: > > > On Fri, May 12, 2023 at 12:20 AM Junxiao Chang > > > wrote: > > > > > > This alone doesn't fix mapcounting for

Re: [PATCH] mm: fix hugetlb page unmap count balance issue

2023-05-16 Thread Mike Kravetz
On 05/12/23 16:29, Mike Kravetz wrote: > On 05/12/23 14:26, James Houghton wrote: > > On Fri, May 12, 2023 at 12:20 AM Junxiao Chang > > wrote: > > > > This alone doesn't fix mapcounting for PTE-mapped HugeTLB pages. You > > need something like [1]. I can