Skip to contentSkip to conversation

drm/cma: remove to allocate shmfs backing store

PATCH In review Joonyoung Shim 2 participants 2 messages Aug 27, 2014 – Aug 28, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 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
index e467e67..a65cbd0 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw

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_init instead of drm_gem_object_init. It doesn't need to have shmfs backing store because the CMA GEM object uses CMA area.

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.c index e467e67..a65cbd0 100644

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 · 3 lines
Regards,

Laurent Pinchart