Re: [Linaro-mm-sig] [PATCH] dma-buf: add attachments empty check for dma_buf_release

2021-10-26 Thread guangming.cao
From: Guangming Cao On Tue, 2021-10-19 at 23:11 +0200, Daniel Vetter wrote: > On Tue, Oct 19, 2021 at 05:37:27PM +0200, Christian K鰊ig wrote: > > > > > > Am 19.10.21 um 14:41 schrieb Daniel Vetter: > > > On Tue, Oct 19, 2021 at 08:23:45PM +0800, > > > guangming@mediatek.com wrote: > > > >

Re: [Linaro-mm-sig] [PATCH] dma-buf: add attachments empty check for dma_buf_release

2021-10-19 Thread Daniel Vetter
On Tue, Oct 19, 2021 at 05:37:27PM +0200, Christian König wrote: > > > Am 19.10.21 um 14:41 schrieb Daniel Vetter: > > On Tue, Oct 19, 2021 at 08:23:45PM +0800, guangming@mediatek.com wrote: > > > From: Guangming Cao > > > > > > Since there is no mandatory inspection for attachments in dma_

Re: [Linaro-mm-sig] [PATCH] dma-buf: add attachments empty check for dma_buf_release

2021-10-19 Thread Christian König
Am 19.10.21 um 14:41 schrieb Daniel Vetter: On Tue, Oct 19, 2021 at 08:23:45PM +0800, guangming@mediatek.com wrote: From: Guangming Cao Since there is no mandatory inspection for attachments in dma_buf_release. There will be a case that dma_buf already released but attachment is still i

Re: [PATCH] dma-buf: add attachments empty check for dma_buf_release

2021-10-19 Thread Daniel Vetter
On Tue, Oct 19, 2021 at 08:23:45PM +0800, guangming@mediatek.com wrote: > From: Guangming Cao > > Since there is no mandatory inspection for attachments in dma_buf_release. > There will be a case that dma_buf already released but attachment is still > in use, which can points to the dmabuf, a

[PATCH] dma-buf: add attachments empty check for dma_buf_release

2021-10-19 Thread guangming.cao
From: Guangming Cao Since there is no mandatory inspection for attachments in dma_buf_release. There will be a case that dma_buf already released but attachment is still in use, which can points to the dmabuf, and it maybe cause some unexpected issues. With IOMMU, when this cases occurs, there w