Re: [PATCH 6/6] drm/i915/userptr: Enable read-only support on gen8+

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Chris Wilson (2018-07-12 19:53:15)
> @@ -789,10 +789,12 @@ i915_gem_userptr_ioctl(struct drm_device *dev,
>                 return -EFAULT;
>  
>         if (args->flags & I915_USERPTR_READ_ONLY) {
> -               /* On almost all of the current hw, we cannot tell the GPU that a
> -                * page is readonly, so this is just a placeholder in the uAPI.
> +               /*
> +                * On almost all of the older hw, we cannot tell the GPU that
> +                * a page is readonly.
>                  */
> -               return -ENODEV;
> +               if (INTEL_GEN(dev_priv) < 8 || !USES_PPGTT(dev_priv))
> +                       return -ENODEV;

Hmm, I need to be more careful here considering gvt.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux