[PATCH] drm/i915/gvt: Remove the redundant range checking

Tina Zhang tina.zhang at intel.com
Tue Dec 12 08:19:29 UTC 2017


GGTT range checking is executed in plane decoders. Remove the redundant
range checking logic outside of fb_decoder.

Signed-off-by: Tina Zhang <tina.zhang at intel.com>
---
 drivers/gpu/drm/i915/gvt/dmabuf.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/gpu/drm/i915/gvt/dmabuf.c b/drivers/gpu/drm/i915/gvt/dmabuf.c
index 2ab584f..38827ce 100644
--- a/drivers/gpu/drm/i915/gvt/dmabuf.c
+++ b/drivers/gpu/drm/i915/gvt/dmabuf.c
@@ -257,11 +257,6 @@ static int vgpu_get_plane_info(struct drm_device *dev,
 		return -EFAULT;
 	}
 
-	if (!intel_gvt_ggtt_validate_range(vgpu, info->start, info->size)) {
-		gvt_vgpu_err("invalid gma addr\n");
-		return -EFAULT;
-	}
-
 	return 0;
 }
 
-- 
2.7.4



More information about the intel-gvt-dev mailing list