Re: [PATCH] vfio: do not coalesce DMA mappings

2023-07-04 Thread Gupta, Nipun
Subject: Re: [PATCH] vfio: do not coalesce DMA mappings Hi Xuan, On 7/4/2023 1:36 PM, Ding, Xuan wrote: Hi Nipun, -Original Message- From: Gupta, Nipun Sent: Tuesday, July 4, 2023 2:54 PM To: Ding, Xuan ; dev@dpdk.org; tho...@monjalon.net; Burakov, Anatoly ; Yigit, Ferruh ; David Marchand

Re: [PATCH] vfio: do not coalesce DMA mappings

2023-07-04 Thread Gupta, Nipun
On 7/4/2023 7:39 PM, Thomas Monjalon wrote: 04/07/2023 11:23, Gupta, Nipun: On 7/4/2023 1:36 PM, Ding, Xuan wrote: From: Gupta, Nipun From: Ding, Xuan From: Ding, Xuan From: Nipun Gupta Hi Xuan, Thanks for pointing out the issue and figuring out the patch which introduced this. If yo

RE: [PATCH] vfio: do not coalesce DMA mappings

2023-07-04 Thread Ding, Xuan
g, Xuan ; dev@dpdk.org; > >> tho...@monjalon.net; Burakov, Anatoly ; > >> Yigit, Ferruh ; David Marchand > >> > >> Cc: Agarwal, Nikhil ; He, Xingguang > >> ; Ling, WeiX > >> Subject: RE: [PATCH] vfio: do not coalesce DMA mappings > >&g

Re: [PATCH] vfio: do not coalesce DMA mappings

2023-07-04 Thread Thomas Monjalon
04/07/2023 11:23, Gupta, Nipun: > On 7/4/2023 1:36 PM, Ding, Xuan wrote: >> From: Gupta, Nipun >>> From: Ding, Xuan From: Ding, Xuan > From: Nipun Gupta > > Hi Xuan, > > > > Thanks for pointing out the issue and figuring out the patch which > > introduced this. If you ha

Re: [PATCH] vfio: do not coalesce DMA mappings

2023-07-04 Thread Gupta, Nipun
Subject: RE: [PATCH] vfio: do not coalesce DMA mappings Hi Xuan, Please see inline. -Original Message- From: Ding, Xuan Sent: Tuesday, July 4, 2023 10:43 AM To: Gupta, Nipun ; dev@dpdk.org; tho...@monjalon.net; Burakov, Anatoly ; Yigit, Ferruh Cc: Agarwal, Nikhil ; He, Xingguang

RE: [PATCH] vfio: do not coalesce DMA mappings

2023-07-04 Thread Ding, Xuan
ov, Anatoly ; > > Yigit, Ferruh > > Cc: Agarwal, Nikhil ; He, Xingguang > > ; Ling, WeiX > > Subject: RE: [PATCH] vfio: do not coalesce DMA mappings > > > > Hi Nipun, > > > > > -Original Message- > > > From: Ding, Xuan > >

RE: [PATCH] vfio: do not coalesce DMA mappings

2023-07-03 Thread Gupta, Nipun
erruh.yi...@amd.com > > Cc: nikhil.agar...@amd.com; He, Xingguang ; Ling, > > WeiX > > Subject: RE: [PATCH] vfio: do not coalesce DMA mappings > > > > Hi Nipun, > > > > Replies are inline. > > > > > -Original Message- > > > Fro

RE: [PATCH] vfio: do not coalesce DMA mappings

2023-07-03 Thread Ding, Xuan
v, Anatoly ; > > ferruh.yi...@amd.com > > Cc: nikhil.agar...@amd.com; He, Xingguang ; > > Ling, WeiX > > Subject: Re: [PATCH] vfio: do not coalesce DMA mappings > > > > Hi Xuan, > > > > Thanks for pointing out the issue and figuring out the patch which &g

RE: [PATCH] vfio: do not coalesce DMA mappings

2023-06-29 Thread Ding, Xuan
> WeiX > Subject: Re: [PATCH] vfio: do not coalesce DMA mappings > > Hi Xuan, > > Thanks for pointing out the issue and figuring out the patch which introduced > this. If you have answers to below queries, please let me know: > > Is there any other test cases which tests &q

Re: [PATCH] vfio: do not coalesce DMA mappings

2023-06-29 Thread Nipun Gupta
@monjalon.net; Burakov, Anatoly ; ferruh.yi...@amd.com Cc: nikhil.agar...@amd.com; Nipun Gupta Subject: [PATCH] vfio: do not coalesce DMA mappings At the cleanup time when dma unmap is done, linux kernel does not allow unmap of individual segments which were coalesced together while creating the DM

RE: [PATCH] vfio: do not coalesce DMA mappings

2023-06-29 Thread Ding, Xuan
@dpdk.org; tho...@monjalon.net; Burakov, Anatoly > ; ferruh.yi...@amd.com > Cc: nikhil.agar...@amd.com; Nipun Gupta > Subject: [PATCH] vfio: do not coalesce DMA mappings > > At the cleanup time when dma unmap is done, linux kernel does not allow > unmap of individual segments whi

[PATCH] vfio: do not coalesce DMA mappings

2022-12-30 Thread Nipun Gupta
At the cleanup time when dma unmap is done, linux kernel does not allow unmap of individual segments which were coalesced together while creating the DMA map for type1 IOMMU mappings. So, this change updates the mapping of the memory segments(hugepages) on a per-page basis. Signed-off-by: Nipun Gu