Skip to contentSkip to conversation

drm/sun4i: virtual CMA addresses are not needed

PATCH Applied Jernej Skrabec 2 participants 2 messages Oct 19, 2021 – Oct 21, 2021

Subsystems (4)
lore
Share & tools
lore

Jernej Skrabec

author maintainer
#0 lore raw

PATCH 1/1 drm/sun4i: virtual CMA addresses are not needed

Driver never uses virtual address of DRM CMA buffers. Switch to CMA helpers which don't deal with virtual mapping.

This was actually already the case before commit ad408c766cef ("drm/sun4i: Use DRM_GEM_CMA_VMAP_DRIVER_OPS for GEM operations"), but only convenient macro at the time used helpers with virtual mapping.

---
 drivers/gpu/drm/sun4i/sun4i_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/sun4i/sun4i_drv.c +1 -1
index 54dd562e294c..b630614b3d72 100644
@@ -53,7 +53,7 @@ static const struct drm_driver sun4i_drv_driver = {
 	.minor			= 0,
 
 	/* GEM Operations */
-	DRM_GEM_CMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE(drm_sun4i_gem_dumb_create),
+	DRM_GEM_CMA_DRIVER_OPS_WITH_DUMB_CREATE(drm_sun4i_gem_dumb_create),
 };
 
 static int sun4i_drv_bind(struct device *dev)
Signature · 1 line
2.33.1
#1 lore raw

Re: (subset) [PATCH] drm/sun4i: virtual CMA addresses are not needed

Quoted 9 lines · Jernej Skrabec

Driver never uses virtual address of DRM CMA buffers. Switch to CMA helpers which don't deal with virtual mapping.

This was actually already the case before commit ad408c766cef ("drm/sun4i: Use DRM_GEM_CMA_VMAP_DRIVER_OPS for GEM operations"), but only convenient macro at the time used helpers with virtual mapping.

[...]

Applied to drm/drm-misc (drm-misc-next).

Thanks!
Maxime