Re: [PATCH] dma-buf: refcount the attachment for cache_sgt_mapping

2019-06-12 Thread Nicolin Chen
On Wed, Jun 12, 2019 at 08:20:41AM +, Koenig, Christian wrote: > Am 12.06.19 um 10:15 schrieb Nicolin Chen: > > Hi Christian, > > > > On Wed, Jun 12, 2019 at 08:05:53AM +, Koenig, Christian wrote: > >> Am 12.06.19 um 10:02 schrieb Nicolin Chen: > >> [SNIP] > >>> We haven't used DRM/GRM_PRIM

Re: [PATCH] dma-buf: refcount the attachment for cache_sgt_mapping

2019-06-12 Thread Koenig, Christian
Am 12.06.19 um 10:15 schrieb Nicolin Chen: > Hi Christian, > > On Wed, Jun 12, 2019 at 08:05:53AM +, Koenig, Christian wrote: >> Am 12.06.19 um 10:02 schrieb Nicolin Chen: >> [SNIP] >>> We haven't used DRM/GRM_PRIME yet but I am also curious would it >>> benefit DRM also if we reduce this overh

Re: [PATCH] dma-buf: refcount the attachment for cache_sgt_mapping

2019-06-12 Thread Nicolin Chen
Hi Christian, On Wed, Jun 12, 2019 at 08:05:53AM +, Koenig, Christian wrote: > Am 12.06.19 um 10:02 schrieb Nicolin Chen: > > Hi Christian, > > > > Thanks for the quick reply. > > > > On Wed, Jun 12, 2019 at 07:45:38AM +, Koenig, Christian wrote: > >> Am 12.06.19 um 03:22 schrieb Nicolin C

Re: [PATCH] dma-buf: refcount the attachment for cache_sgt_mapping

2019-06-12 Thread Koenig, Christian
Am 12.06.19 um 10:02 schrieb Nicolin Chen: > Hi Christian, > > Thanks for the quick reply. > > On Wed, Jun 12, 2019 at 07:45:38AM +, Koenig, Christian wrote: >> Am 12.06.19 um 03:22 schrieb Nicolin Chen: >>> Commit f13e143e7444 ("dma-buf: start caching of sg_table objects v2") >>> added a suppo

Re: [PATCH] dma-buf: refcount the attachment for cache_sgt_mapping

2019-06-12 Thread Nicolin Chen
Hi Christian, Thanks for the quick reply. On Wed, Jun 12, 2019 at 07:45:38AM +, Koenig, Christian wrote: > Am 12.06.19 um 03:22 schrieb Nicolin Chen: > > Commit f13e143e7444 ("dma-buf: start caching of sg_table objects v2") > > added a support of caching the sgt pointer into an attach pointer

Re: [PATCH] dma-buf: refcount the attachment for cache_sgt_mapping

2019-06-12 Thread Koenig, Christian
Am 12.06.19 um 03:22 schrieb Nicolin Chen: > Commit f13e143e7444 ("dma-buf: start caching of sg_table objects v2") > added a support of caching the sgt pointer into an attach pointer to > let users reuse the sgt pointer without another mapping. However, it > might not totally work as most of dma-bu

[PATCH] dma-buf: refcount the attachment for cache_sgt_mapping

2019-06-11 Thread Nicolin Chen
Commit f13e143e7444 ("dma-buf: start caching of sg_table objects v2") added a support of caching the sgt pointer into an attach pointer to let users reuse the sgt pointer without another mapping. However, it might not totally work as most of dma-buf callers are doing attach() and map_attachment() b