All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] drm/cma: use prim helpers instead GEM CMA specific dma_buf functionality
@ 2013-06-12 13:16 Joonyoung Shim
  2013-06-12 13:21 ` Laurent Pinchart
  2013-06-18 23:02 ` Laurent Pinchart
  0 siblings, 2 replies; 4+ messages in thread
From: Joonyoung Shim @ 2013-06-12 13:16 UTC (permalink / raw)
  To: dri-devel; +Cc: Laurent Pinchart

Hi,

GEM CMA supports dma_buf but it needs GEM CMA specific functionality for
dma_buf. We can use prime helpers for dma_buf by commit
89177644a7b6306e6084a89eab7e290f4bfef397 "drm: add prime helpers", so
this patchset is to replace from using GEM CMA specific functions to
using prime helpers.

Thanks.

Joonyoung Shim (3):
       drm: add mmap function to prime helpers
       drm/cma: add low-level hook functions to use prime helpers
       drm/cma: remove GEM CMA specific dma_buf functionality

  drivers/gpu/drm/drm_gem_cma_helper.c | 291 
+++++------------------------------
  drivers/gpu/drm/drm_prime.c          |   5 +-
  include/drm/drmP.h                   |   2 +
  include/drm/drm_gem_cma_helper.h     |  13 +-
  4 files changed, 56 insertions(+), 255 deletions(-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/3] drm/cma: use prim helpers instead GEM CMA specific dma_buf functionality
  2013-06-12 13:16 [PATCH 0/3] drm/cma: use prim helpers instead GEM CMA specific dma_buf functionality Joonyoung Shim
@ 2013-06-12 13:21 ` Laurent Pinchart
  2013-06-18 23:02 ` Laurent Pinchart
  1 sibling, 0 replies; 4+ messages in thread
From: Laurent Pinchart @ 2013-06-12 13:21 UTC (permalink / raw)
  To: Joonyoung Shim; +Cc: dri-devel

Hi Joonyoung,

Thank you for the patches. I'll try to review and test them next week.

On Wednesday 12 June 2013 22:16:14 Joonyoung Shim wrote:
> Hi,
> 
> GEM CMA supports dma_buf but it needs GEM CMA specific functionality for
> dma_buf. We can use prime helpers for dma_buf by commit
> 89177644a7b6306e6084a89eab7e290f4bfef397 "drm: add prime helpers", so
> this patchset is to replace from using GEM CMA specific functions to
> using prime helpers.
> 
> Thanks.
> 
> Joonyoung Shim (3):
>        drm: add mmap function to prime helpers
>        drm/cma: add low-level hook functions to use prime helpers
>        drm/cma: remove GEM CMA specific dma_buf functionality
> 
>   drivers/gpu/drm/drm_gem_cma_helper.c | 291 ++++---------------------------
>   drivers/gpu/drm/drm_prime.c          |   5 +-
>   include/drm/drmP.h                   |   2 +
>   include/drm/drm_gem_cma_helper.h     |  13 +-
>   4 files changed, 56 insertions(+), 255 deletions(-)

-- 
Regards,

Laurent Pinchart

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/3] drm/cma: use prim helpers instead GEM CMA specific dma_buf functionality
  2013-06-12 13:16 [PATCH 0/3] drm/cma: use prim helpers instead GEM CMA specific dma_buf functionality Joonyoung Shim
  2013-06-12 13:21 ` Laurent Pinchart
@ 2013-06-18 23:02 ` Laurent Pinchart
  2013-06-19  1:47   ` Joonyoung Shim
  1 sibling, 1 reply; 4+ messages in thread
From: Laurent Pinchart @ 2013-06-18 23:02 UTC (permalink / raw)
  To: dri-devel

Hi Joonyoung,

On Wednesday 12 June 2013 22:16:14 Joonyoung Shim wrote:
> Hi,
> 
> GEM CMA supports dma_buf but it needs GEM CMA specific functionality for
> dma_buf. We can use prime helpers for dma_buf by commit
> 89177644a7b6306e6084a89eab7e290f4bfef397 "drm: add prime helpers", so
> this patchset is to replace from using GEM CMA specific functions to
> using prime helpers.

Overall this looks good to me, except the that prime helpers don't cache 
mappings, unlike the current implementation in the GEM CMA helpers. Could that 
be fixed in the prime helpers first ?

> Thanks.
> 
> Joonyoung Shim (3):
>        drm: add mmap function to prime helpers
>        drm/cma: add low-level hook functions to use prime helpers
>        drm/cma: remove GEM CMA specific dma_buf functionality
> 
>   drivers/gpu/drm/drm_gem_cma_helper.c | 291 ++++---------------------------
>   drivers/gpu/drm/drm_prime.c          |   5 +-
>   include/drm/drmP.h                   |   2 +
>   include/drm/drm_gem_cma_helper.h     |  13 +-
>   4 files changed, 56 insertions(+), 255 deletions(-)

-- 
Regards,

Laurent Pinchart

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/3] drm/cma: use prim helpers instead GEM CMA specific dma_buf functionality
  2013-06-18 23:02 ` Laurent Pinchart
@ 2013-06-19  1:47   ` Joonyoung Shim
  0 siblings, 0 replies; 4+ messages in thread
From: Joonyoung Shim @ 2013-06-19  1:47 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: dri-devel

On 06/19/2013 08:02 AM, Laurent Pinchart wrote:
> Hi Joonyoung,
>
> On Wednesday 12 June 2013 22:16:14 Joonyoung Shim wrote:
>> Hi,
>>
>> GEM CMA supports dma_buf but it needs GEM CMA specific functionality for
>> dma_buf. We can use prime helpers for dma_buf by commit
>> 89177644a7b6306e6084a89eab7e290f4bfef397 "drm: add prime helpers", so
>> this patchset is to replace from using GEM CMA specific functions to
>> using prime helpers.
> Overall this looks good to me, except the that prime helpers don't cache
> mappings, unlike the current implementation in the GEM CMA helpers. Could that
> be fixed in the prime helpers first ?

Right, i will update it first.

Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-19  1:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-12 13:16 [PATCH 0/3] drm/cma: use prim helpers instead GEM CMA specific dma_buf functionality Joonyoung Shim
2013-06-12 13:21 ` Laurent Pinchart
2013-06-18 23:02 ` Laurent Pinchart
2013-06-19  1:47   ` Joonyoung Shim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.