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

Zhang, Tina tina.zhang at intel.com
Wed Dec 13 03:24:07 UTC 2017


I find more needs to be taken care and will cook another patch to include this logic.
Please abandon this patch.
Thanks.

> -----Original Message-----
> From: Zhang, Tina
> Sent: Tuesday, December 12, 2017 4:19 PM
> To: zhenyuw at linux.intel.com
> Cc: Zhang, Tina <tina.zhang at intel.com>; intel-gvt-dev at lists.freedesktop.org
> Subject: [PATCH] drm/i915/gvt: Remove the redundant range checking
> 
> 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