From: Gurchetan Singh <gurchetansingh@chromium.org>
To: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Cc: josh.simonot@gmail.com, kraxel@redhat.com,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v3 2/2] drm/uapi: add explicit virtgpu context debug name
Date: Mon, 13 Nov 2023 09:04:12 -0800 [thread overview]
Message-ID: <CAAfnVBn7S+ca3RvYeR_NVb2KOhqYf5hGwxrEHW53UVcjrxRMaw@mail.gmail.com> (raw)
In-Reply-To: <9b2f45e1-ea49-97ae-e359-3f9c0996394f@collabora.com>
[-- Attachment #1: Type: text/plain, Size: 1539 bytes --]
On Sat, Nov 11, 2023 at 2:37 PM Dmitry Osipenko <
dmitry.osipenko@collabora.com> wrote:
> On 10/18/23 21:17, Gurchetan Singh wrote:
> > + case VIRTGPU_CONTEXT_PARAM_DEBUG_NAME:
> > + if (vfpriv->explicit_debug_name) {
> > + ret = -EINVAL;
> > + goto out_unlock;
> > + }
> > +
> > + ret = strncpy_from_user(vfpriv->debug_name,
> > + u64_to_user_ptr(value),
> > + DEBUG_NAME_MAX_LEN - 1);
> > +
> > + if (ret < 0) {
> > + ret = -EFAULT;
> > + goto out_unlock;
> > + }
> > +
> > + vfpriv->explicit_debug_name = true;
> > + break;
>
> Spotted a problem here. The ret needs to be set to zero on success. I'll
> send the fix shortly. Gurchetan you should've been getting the
> DRM_IOCTL_VIRTGPU_CONTEXT_INIT failure from gfxstream when you tested
> this patch, haven't you?
>
To accommodate older kernels/QEMU, gfxstream doesn't fail if CONTEXT_INIT
fails. So the guest thought it failed and didn't react, but the value was
propagated to the host.
>
> Also noticed that the patch title says "drm/uapi" instead of
> "drm/virtio". My bad for not noticing it earlier. Please be more careful
> next time too :)
>
> --
> Best regards,
> Dmitry
>
>
[-- Attachment #2: Type: text/html, Size: 2371 bytes --]
prev parent reply other threads:[~2023-11-13 17:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-18 18:17 [PATCH v3 1/2] drm/virtio: use uint64_t more in virtio_gpu_context_init_ioctl Gurchetan Singh
2023-10-18 18:17 ` [PATCH v3 2/2] drm/uapi: add explicit virtgpu context debug name Gurchetan Singh
2023-10-18 22:59 ` Dmitry Osipenko
2023-10-22 23:50 ` Dmitry Osipenko
2023-10-31 15:55 ` Gurchetan Singh
2023-11-10 17:26 ` Gurchetan Singh
2023-11-11 18:40 ` Dmitry Osipenko
2023-11-11 22:37 ` Dmitry Osipenko
2023-11-13 17:04 ` Gurchetan Singh [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAfnVBn7S+ca3RvYeR_NVb2KOhqYf5hGwxrEHW53UVcjrxRMaw@mail.gmail.com \
--to=gurchetansingh@chromium.org \
--cc=dmitry.osipenko@collabora.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=josh.simonot@gmail.com \
--cc=kraxel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).