Skip to contentSkip to conversation

drm/exynos: remove EXYNOS_BO_NONCONTIG type checking.

PATCH New [email protected] 1 participant 1 message Nov 4, 2012

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 drm/exynos: remove EXYNOS_BO_NONCONTIG type checking.

From: Inki Dae <[email protected]>

With iommu support, non-continuous buffer also is supported so this patch removes these checking from exynos_drm_gem_get/put_dma_addr funciton.

This patch is based on the below patch set, "drm/exynos: add iommu support for -next".

	http://www.spinics.net/lists/dri-devel/msg29041.html
---
 drivers/gpu/drm/exynos/exynos_drm_gem.c | 16 ----------------
 1 file changed, 16 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_gem.c +0 -16
index 8cb6824..b130e6d 100644
@@ -281,14 +281,6 @@ dma_addr_t *exynos_drm_gem_get_dma_addr(struct drm_device *dev,
 
 	exynos_gem_obj = to_exynos_gem_obj(obj);
 
-	if (exynos_gem_obj->flags & EXYNOS_BO_NONCONTIG) {
-		DRM_DEBUG_KMS("not support NONCONTIG type.\n");
-		drm_gem_object_unreference_unlocked(obj);
-
-		/* TODO */
-		return ERR_PTR(-EINVAL);
-	}
-
 	return &exynos_gem_obj->buffer->dma_addr;
 }
 
@@ -307,14 +299,6 @@ void exynos_drm_gem_put_dma_addr(struct drm_device *dev,
 
 	exynos_gem_obj = to_exynos_gem_obj(obj);
 
-	if (exynos_gem_obj->flags & EXYNOS_BO_NONCONTIG) {
-		DRM_DEBUG_KMS("not support NONCONTIG type.\n");
-		drm_gem_object_unreference_unlocked(obj);
-
-		/* TODO */
-		return;
-	}
-
 	drm_gem_object_unreference_unlocked(obj);
 
 	/*
Signature · 1 line
1.8.0.rc3.16.g8ead1bf