[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <74a98688-67ad-6f8d-da1e-8fa0b32cff71@collabora.com>
Date: Wed, 30 Mar 2022 02:17:27 +0300
From: Dmitry Osipenko <dmitry.osipenko@...labora.com>
To: Rob Clark <robdclark@...il.com>, dri-devel@...ts.freedesktop.org
Cc: Rob Clark <robdclark@...omium.org>,
open list <linux-kernel@...r.kernel.org>,
Emma Anholt <emma@...olt.net>,
Jonathan Marek <jonathan@...ek.ca>,
Akhil P Oommen <quic_akhilpo@...cinc.com>,
David Airlie <airlied@...ux.ie>, linux-arm-msm@...r.kernel.org,
Abhinav Kumar <quic_abhinavk@...cinc.com>,
Jordan Crouse <jordan@...micpenguin.net>,
Sean Paul <sean@...rly.run>, freedreno@...ts.freedesktop.org,
Dan Carpenter <dan.carpenter@...cle.com>
Subject: Re: [PATCH 9/9] drm/msm: Add a way for userspace to allocate GPU iova
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 ?
Powered by blists - more mailing lists