All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/cma: remove to allocate shmfs backing store
@ 2014-08-27  6:26 Joonyoung Shim
  2014-08-28 12:30 ` Laurent Pinchart
  0 siblings, 1 reply; 2+ messages in thread
From: Joonyoung Shim @ 2014-08-27  6:26 UTC (permalink / raw)
  To: dri-devel; +Cc: laurent.pinchart+renesas

Initialize GEM object using drm_gem_private_object_init instead of
drm_gem_object_init. It doesn't need to have shmfs backing store because
the CMA GEM object uses CMA area.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
---
 drivers/gpu/drm/drm_gem_cma_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_gem_cma_helper.c b/drivers/gpu/drm/drm_gem_cma_helper.c
index e467e67..a65cbd0 100644
--- a/drivers/gpu/drm/drm_gem_cma_helper.c
+++ b/drivers/gpu/drm/drm_gem_cma_helper.c
@@ -52,7 +52,7 @@ __drm_gem_cma_create(struct drm_device *drm, unsigned int size)
 
 	gem_obj = &cma_obj->base;
 
-	ret = drm_gem_object_init(drm, gem_obj, size);
+	ret = drm_gem_private_object_init(drm, gem_obj, size);
 	if (ret)
 		goto error;
 
-- 
1.9.1

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

* Re: [PATCH] drm/cma: remove to allocate shmfs backing store
  2014-08-27  6:26 [PATCH] drm/cma: remove to allocate shmfs backing store Joonyoung Shim
@ 2014-08-28 12:30 ` Laurent Pinchart
  0 siblings, 0 replies; 2+ messages in thread
From: Laurent Pinchart @ 2014-08-28 12:30 UTC (permalink / raw)
  To: Joonyoung Shim; +Cc: dri-devel

Hi Joonyoung,

Thank you for the patch.

On Wednesday 27 August 2014 15:26:32 Joonyoung Shim wrote:
> Initialize GEM object using drm_gem_private_object_init instead of
> drm_gem_object_init. It doesn't need to have shmfs backing store because
> the CMA GEM object uses CMA area.
> 
> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  drivers/gpu/drm/drm_gem_cma_helper.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/drm_gem_cma_helper.c
> b/drivers/gpu/drm/drm_gem_cma_helper.c index e467e67..a65cbd0 100644
> --- a/drivers/gpu/drm/drm_gem_cma_helper.c
> +++ b/drivers/gpu/drm/drm_gem_cma_helper.c
> @@ -52,7 +52,7 @@ __drm_gem_cma_create(struct drm_device *drm, unsigned int
> size)
> 
>  	gem_obj = &cma_obj->base;
> 
> -	ret = drm_gem_object_init(drm, gem_obj, size);
> +	ret = drm_gem_private_object_init(drm, gem_obj, size);
>  	if (ret)
>  		goto error;

-- 
Regards,

Laurent Pinchart

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

end of thread, other threads:[~2014-08-28 12:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-27  6:26 [PATCH] drm/cma: remove to allocate shmfs backing store Joonyoung Shim
2014-08-28 12:30 ` Laurent Pinchart

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.