Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-08 Thread Alex Deucher
On Wed, Jul 8, 2020 at 10:20 AM Christian König wrote: > > Am 08.07.20 um 11:49 schrieb Daniel Vetter: > > On Wed, Jul 08, 2020 at 11:38:31AM +0200, Christian König wrote: > >> Am 07.07.20 um 23:58 schrieb Xiong, Jianxin: > -Original Message- > From: Christian König > Am

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-08 Thread Christian König
Am 08.07.20 um 11:49 schrieb Daniel Vetter: On Wed, Jul 08, 2020 at 11:38:31AM +0200, Christian König wrote: Am 07.07.20 um 23:58 schrieb Xiong, Jianxin: -Original Message- From: Christian König Am 03.07.20 um 15:14 schrieb Jason Gunthorpe: On Fri, Jul 03, 2020 at 02:52:03PM +0200,

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-08 Thread Daniel Vetter
On Wed, Jul 08, 2020 at 11:38:31AM +0200, Christian König wrote: > Am 07.07.20 um 23:58 schrieb Xiong, Jianxin: > > > -Original Message- > > > From: Christian König > > > Am 03.07.20 um 15:14 schrieb Jason Gunthorpe: > > > > On Fri, Jul 03, 2020 at 02:52:03PM +0200, Daniel Vetter wrote: >

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-08 Thread Christian König
Am 07.07.20 um 23:58 schrieb Xiong, Jianxin: -Original Message- From: Christian König Am 03.07.20 um 15:14 schrieb Jason Gunthorpe: On Fri, Jul 03, 2020 at 02:52:03PM +0200, Daniel Vetter wrote: So maybe I'm just totally confused about the rdma model. I thought: - you bind a pile of

RE: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-07 Thread Xiong, Jianxin
> -Original Message- > From: Christian König > Am 03.07.20 um 15:14 schrieb Jason Gunthorpe: > > On Fri, Jul 03, 2020 at 02:52:03PM +0200, Daniel Vetter wrote: > > > >> So maybe I'm just totally confused about the rdma model. I thought: > >> - you bind a pile of memory for various

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-06 Thread Jason Gunthorpe
On Thu, Jul 02, 2020 at 08:15:40PM +0200, Daniel Vetter wrote: > > > > 3. rdma driver worker gets busy to restart rx: > > > > 1. lock all dma-buf that are currently in use (dma_resv_lock). > > > > thanks to ww_mutex deadlock avoidance this is possible > > > Why all? Why not just

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-06 Thread Jason Gunthorpe
On Fri, Jul 03, 2020 at 02:52:03PM +0200, Daniel Vetter wrote: > So maybe I'm just totally confused about the rdma model. I thought: > - you bind a pile of memory for various transactions, that might > happen whenever. Kernel driver doesn't have much if any insight into > when memory isn't needed

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-03 Thread Christian König
Am 03.07.20 um 15:14 schrieb Jason Gunthorpe: On Fri, Jul 03, 2020 at 02:52:03PM +0200, Daniel Vetter wrote: So maybe I'm just totally confused about the rdma model. I thought: - you bind a pile of memory for various transactions, that might happen whenever. Kernel driver doesn't have much if

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-03 Thread Daniel Vetter
On Fri, Jul 3, 2020 at 2:03 PM Jason Gunthorpe wrote: > > On Thu, Jul 02, 2020 at 08:15:40PM +0200, Daniel Vetter wrote: > > > > > 3. rdma driver worker gets busy to restart rx: > > > > > 1. lock all dma-buf that are currently in use (dma_resv_lock). > > > > > thanks to ww_mutex

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-03 Thread Jason Gunthorpe
Daniel ; Christian > > Koenig ; dri- > > de...@lists.freedesktop.org > > Subject: Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support > > > > > > > > > > On Tue, Jun 30, 2020 at 05:21:33PM +, Xiong, Jianxin wrote: > > > > > > > Hete

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-03 Thread Jason Gunthorpe
On Thu, Jul 02, 2020 at 03:10:00PM +0200, Daniel Vetter wrote: > On Wed, Jul 01, 2020 at 02:15:24PM -0300, Jason Gunthorpe wrote: > > On Wed, Jul 01, 2020 at 05:42:21PM +0200, Daniel Vetter wrote: > > > > >> All you need is the ability to stop wait for ongoing accesses to end > > > > >> and > > >

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-02 Thread Daniel Vetter
On Thu, Jul 02, 2020 at 04:50:32PM +0200, Christian König wrote: > Am 02.07.20 um 15:29 schrieb Jason Gunthorpe: > > On Thu, Jul 02, 2020 at 03:10:00PM +0200, Daniel Vetter wrote: > > > On Wed, Jul 01, 2020 at 02:15:24PM -0300, Jason Gunthorpe wrote: > > > > On Wed, Jul 01, 2020 at 05:42:21PM

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-02 Thread Christian König
Am 02.07.20 um 15:29 schrieb Jason Gunthorpe: On Thu, Jul 02, 2020 at 03:10:00PM +0200, Daniel Vetter wrote: On Wed, Jul 01, 2020 at 02:15:24PM -0300, Jason Gunthorpe wrote: On Wed, Jul 01, 2020 at 05:42:21PM +0200, Daniel Vetter wrote: All you need is the ability to stop wait for ongoing

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-02 Thread Daniel Vetter
On Wed, Jul 01, 2020 at 02:15:24PM -0300, Jason Gunthorpe wrote: > On Wed, Jul 01, 2020 at 05:42:21PM +0200, Daniel Vetter wrote: > > > >> All you need is the ability to stop wait for ongoing accesses to end > > > >> and > > > >> make sure that new ones grab a new mapping. > > > > Swap and flush

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-02 Thread Jason Gunthorpe
ug Ledford ; Sumit > > > Semwal ; Leon Romanovsky > > > ; Vetter, Daniel ; Christian > > > Koenig > > > Subject: Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support > > > > > > On Tue, Jun 30, 2020 at 05:21:33PM +, Xiong, Jianxin wrote:

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-02 Thread Jason Gunthorpe
On Wed, Jul 01, 2020 at 05:42:21PM +0200, Daniel Vetter wrote: > > >> All you need is the ability to stop wait for ongoing accesses to end and > > >> make sure that new ones grab a new mapping. > > > Swap and flush isn't a general HW ability either.. > > > > > > I'm unclear how this could be

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-01 Thread Daniel Vetter
;>>> Sent: Tuesday, June 30, 2020 10:35 AM > >>>> To: Xiong, Jianxin > >>>> Cc: linux-r...@vger.kernel.org; Doug Ledford ; > >>>> Sumit Semwal ; Leon Romanovsky > >>>> ; Vetter, Daniel ; Christian > >>>> Koenig

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-01 Thread Christian König
Semwal ; Leon Romanovsky ; Vetter, Daniel ; Christian Koenig Subject: Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support On Tue, Jun 30, 2020 at 05:21:33PM +, Xiong, Jianxin wrote: Heterogeneous Memory Management (HMM) utilizes mmu_interval_notifier and ZONE_DEVICE to support shared virtual

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-01 Thread Daniel Vetter
Leon Romanovsky > > > > ; Vetter, Daniel ; Christian > > > > Koenig > > > > Subject: Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support > > > > > > > > On Tue, Jun 30, 2020 at 05:21:33PM +, Xiong, Jianxin wrote: > > > > >

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-01 Thread Daniel Vetter
> > > Sent: Tuesday, June 30, 2020 10:35 AM > > > To: Xiong, Jianxin > > > Cc: linux-r...@vger.kernel.org; Doug Ledford ; Sumit > > > Semwal ; Leon Romanovsky > > > ; Vetter, Daniel ; Christian > > > Koenig > > > Subject: Re: [RFC PAT

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-01 Thread Christian König
0/3] RDMA: add dma-buf support On Tue, Jun 30, 2020 at 05:21:33PM +, Xiong, Jianxin wrote: Heterogeneous Memory Management (HMM) utilizes mmu_interval_notifier and ZONE_DEVICE to support shared virtual address space and page migration between system memory and device memory. HMM doesn't

Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-07-01 Thread Jason Gunthorpe
tter, Daniel ; Christian > > Koenig > > Subject: Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support > > > > On Tue, Jun 30, 2020 at 05:21:33PM +, Xiong, Jianxin wrote: > > > > > Heterogeneous Memory Management (HMM) utilizes > > > > > mmu_interval_not

RE: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-06-30 Thread Xiong, Jianxin
top.org > Subject: Re: [RFC PATCH v2 0/3] RDMA: add dma-buf support > > > > > > > On Tue, Jun 30, 2020 at 05:21:33PM +, Xiong, Jianxin wrote: > > > > > > Heterogeneous Memory Management (HMM) utilizes > > > > > > mmu_interval_notifier

RE: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-06-30 Thread Xiong, Jianxin
Added to cc-list: Christian Koenig dri-devel@lists.freedesktop.org > -Original Message- > From: Xiong, Jianxin > Sent: Monday, June 29, 2020 10:32 AM > To: linux-r...@vger.kernel.org > Cc: Xiong, Jianxin ; Doug Ledford > ; Jason Gunthorpe ; Sumit Semwal > ; Leon Romanovsky ; Vetter,

RE: [RFC PATCH v2 0/3] RDMA: add dma-buf support

2020-06-30 Thread Xiong, Jianxin
> -Original Message- > From: Jason Gunthorpe > Sent: Tuesday, June 30, 2020 10:35 AM > To: Xiong, Jianxin > Cc: linux-r...@vger.kernel.org; Doug Ledford ; Sumit > Semwal ; Leon Romanovsky > ; Vetter, Daniel ; Christian Koenig > > Subject: Re: [RFC PATC