From: Dmitry Osipenko <dmitry.osipenko@collabora.com>
To: "Kasireddy, Vivek" <vivek.kasireddy@intel.com>,
David Airlie <airlied@redhat.com>,
Gerd Hoffmann <kraxel@redhat.com>,
Gurchetan Singh <gurchetansingh@chromium.org>,
Chia-I Wu <olvaffe@gmail.com>, Rob Clark <robdclark@gmail.com>,
Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>,
"Kim, Dongwon" <dongwon.kim@intel.com>
Cc: "dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"virtualization@lists.linux-foundation.org"
<virtualization@lists.linux-foundation.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"kernel@collabora.com" <kernel@collabora.com>
Subject: Re: [PATCH v3 2/2] drm/virtio: New fence for every plane update
Date: Fri, 25 Oct 2024 20:59:27 +0300 [thread overview]
Message-ID: <18415279-39d3-4ce3-bef2-58566276799b@collabora.com> (raw)
In-Reply-To: <IA0PR11MB7185FA36BD2988FD75239C5EF84C2@IA0PR11MB7185.namprd11.prod.outlook.com>
On 10/22/24 07:44, Kasireddy, Vivek wrote:
>> virtio_gpu_cmd_resource_flush(vgdev, bo->hw_res_handle,
>> x, y,
>> - width, height, objs, vgfb->fence);
>> + width, height, objs,
>> + vgplane_st->fence);
>> virtio_gpu_notify(vgdev);
>> -
>> - dma_fence_wait_timeout(&vgfb->fence->f, true,
>> + dma_fence_wait_timeout(&vgplane_st->fence->f, true,
>> msecs_to_jiffies(50));
>> - dma_fence_put(&vgfb->fence->f);
>> - vgfb->fence = NULL;
> Not sure if it makes any difference but would there be a problem if you unref
> the fence here (existing behavior) instead of deferring it until cleanup?
Previously fence was a part of virtio-gpu framebuffer, which was kind of
a hack. Maybe there was no better option back then, when this code was
written initially.
Now fence is a part of plane's atomic state, like it should be. We
shouldn't change atomic state at the commit time.
...
>> @@ -326,11 +348,9 @@ static void virtio_gpu_cursor_plane_update(struct
>> drm_plane *plane,
>> (vgdev, 0,
>> plane->state->crtc_w,
>> plane->state->crtc_h,
>> - 0, 0, objs, vgfb->fence);
>> + 0, 0, objs, vgplane_st->fence);
>> virtio_gpu_notify(vgdev);
>> - dma_fence_wait(&vgfb->fence->f, true);
>> - dma_fence_put(&vgfb->fence->f);
>> - vgfb->fence = NULL;
> Same comment as above.
> Regardless, the patch LGTM.
>
> Acked-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
Thanks for the review :)
--
Best regards,
Dmitry
next prev parent reply other threads:[~2024-10-25 17:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-20 23:08 [PATCH v3 1/2] drm/virtio: Use drm_gem_plane_helper_prepare_fb() Dmitry Osipenko
2024-10-20 23:08 ` [PATCH v3 2/2] drm/virtio: New fence for every plane update Dmitry Osipenko
2024-10-22 4:44 ` Kasireddy, Vivek
2024-10-25 17:59 ` Dmitry Osipenko [this message]
2024-10-22 4:41 ` [PATCH v3 1/2] drm/virtio: Use drm_gem_plane_helper_prepare_fb() Kasireddy, Vivek
2024-11-06 1:27 ` Rob Clark
2024-11-17 10:12 ` Dmitry Osipenko
2024-11-19 10:10 ` Dmitry Osipenko
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=18415279-39d3-4ce3-bef2-58566276799b@collabora.com \
--to=dmitry.osipenko@collabora.com \
--cc=airlied@redhat.com \
--cc=dongwon.kim@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=gurchetansingh@chromium.org \
--cc=kernel@collabora.com \
--cc=kraxel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=olvaffe@gmail.com \
--cc=pierre-eric.pelloux-prayer@amd.com \
--cc=robdclark@gmail.com \
--cc=virtualization@lists.linux-foundation.org \
--cc=vivek.kasireddy@intel.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