From: Zack Rusin <zackr@vmware.com>
To: "dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"psi@informatik.uni-kiel.de" <psi@informatik.uni-kiel.de>,
Linux-graphics-maintainer <Linux-graphics-maintainer@vmware.com>
Subject: Re: [PATCH] drm/vmwgfx: Propagate error on failed ioctl
Date: Fri, 25 Mar 2022 19:28:12 +0000 [thread overview]
Message-ID: <b9922ee93a6561212c956ea4acb391183f71b75b.camel@vmware.com> (raw)
In-Reply-To: <20220313050655.52199-1-psi@informatik.uni-kiel.de>
On Sun, 2022-03-13 at 06:06 +0100, Philipp Sieweck wrote:
> The cases of vmw_user_bo_synccpu_grab failing with -ERESTARTSYS or -
> EBUSY
> are handled in vmw_user_bo_synccpu_ioctl by not printing an error
> message.
> However, the error value gets discarded, indicating success. This
> leads
> to rendering glitches and a reported drm error on the next ioctl call
> to
> release the handle.
>
> This patch propagates the error value from vmw_user_synccpu_grab.
>
> Signed-off-by: Philipp Sieweck <psi@informatik.uni-kiel.de>
Hi, Philipp.
Thanks for the patch. Some questions below.
> ---
> drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
> b/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
> index 31aecc46624b..81fe4dc5e6ab 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
> @@ -621,6 +621,8 @@ int vmw_user_bo_synccpu_ioctl(struct drm_device
> *dev, void *data,
> (unsigned int) arg->handle);
> return ret;
> }
> + if (unlikely(ret != 0))
> + return ret;
> break;
I'd just break apart the condition above rather than have two if ret !=
0. What apps do you see glitches in as a result of this? Can you
reproduce it?
z
next prev parent reply other threads:[~2022-03-25 19:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-13 5:06 [PATCH] drm/vmwgfx: Propagate error on failed ioctl Philipp Sieweck
2022-03-25 15:07 ` Javier Martinez Canillas
2022-03-25 19:28 ` Zack Rusin [this message]
2022-03-28 16:36 ` Philipp Sieweck
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=b9922ee93a6561212c956ea4acb391183f71b75b.camel@vmware.com \
--to=zackr@vmware.com \
--cc=Linux-graphics-maintainer@vmware.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=psi@informatik.uni-kiel.de \
/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