drm/cma: remove to allocate shmfs backing store
Subsystems (2)
PATCH 1/1 drm/cma: remove to allocate shmfs backing store
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 <[email protected]>
--- drivers/gpu/drm/drm_gem_cma_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_gem_cma_helper.c +1 -1
@@ -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;
Signature · 1 line
1.9.1
Hi Joonyoung,
Thank you for the patch.
Quoted 5 lines · On Wednesday 27 August 2014 15:26:32 Joonyoung Shim wrote:
Initialize GEM object using
drm_gem_private_object_initinstead ofdrm_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 <[email protected]>
Acked-by Laurent Pinchart <[email protected]>
Quoted 17 lines
--- drivers/gpu/drm/drm_gem_cma_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0
b/drivers/gpu/drm/drm_gem_cma_helper.cindex e467e67..a65cbd0 100644drivers/gpu/drm/drm_gem_cma_helper.c +1
-1@@ -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;
Signature · 3 lines
Regards, Laurent Pinchart