[PATCH 9/9] drm/msm: Add a way for userspace to allocate GPU iova
Dmitry Osipenko
dmitry.osipenko at collabora.com
Tue Mar 29 23:17:27 UTC 2022
On 3/30/22 02:00, Rob Clark wrote:
> +static int msm_ioctl_gem_info_set_iova(struct drm_device *dev,
> + struct drm_file *file, struct drm_gem_object *obj,
> + uint64_t iova)
> +{
> + struct msm_drm_private *priv = dev->dev_private;
> + struct msm_file_private *ctx = file->driver_priv;
> +
> + if (!priv->gpu)
> + return -EINVAL;
> +
> + /* Only supported if per-process address space is supported: */
> + if (priv->gpu->aspace == ctx->aspace)
> + return -EINVAL;
nit: -EOPNOTSUPP ?
More information about the dri-devel
mailing list