Re: [PATCH v2 5/6] virtio-gpu: Support asynchronous fencing

2024-10-23 Thread Dmitry Osipenko
On 10/23/24 13:04, Akihiko Odaki wrote: ... >> +    ret = virgl_renderer_context_create_fence(cmd- >> >cmd_hdr.ctx_id, flags, >> +  cmd->cmd_hdr.ring_idx, >> +  cmd- >> >cmd_hdr.fence_id); >> +  

Re: [PATCH v2 5/6] virtio-gpu: Support asynchronous fencing

2024-10-23 Thread Akihiko Odaki
On 2024/10/15 13:32, Dmitry Osipenko wrote: Support asynchronous fencing feature of virglrenderer. It allows Qemu to handle fence as soon as it's signalled instead of periodically polling the fence status. This feature is required for enabling DRM context support in Qemu because legacy fencing mo

Re: [PATCH v2 5/6] virtio-gpu: Support asynchronous fencing

2024-10-23 Thread Akihiko Odaki
On 2024/10/22 21:44, Dmitry Osipenko wrote: On 10/22/24 15:37, Dmitry Osipenko wrote: On 10/22/24 08:11, Akihiko Odaki wrote: On 2024/10/19 6:31, Dmitry Osipenko wrote: On 10/18/24 08:28, Akihiko Odaki wrote: +static void virgl_write_context_fence(void *opaque, uint32_t ctx_id, + 

Re: [PATCH v2 5/6] virtio-gpu: Support asynchronous fencing

2024-10-22 Thread Dmitry Osipenko
On 10/22/24 15:37, Dmitry Osipenko wrote: > On 10/22/24 08:11, Akihiko Odaki wrote: >> On 2024/10/19 6:31, Dmitry Osipenko wrote: >>> On 10/18/24 08:28, Akihiko Odaki wrote: > +static void virgl_write_context_fence(void *opaque, uint32_t ctx_id, > +  uint

Re: [PATCH v2 5/6] virtio-gpu: Support asynchronous fencing

2024-10-22 Thread Dmitry Osipenko
On 10/22/24 08:11, Akihiko Odaki wrote: > On 2024/10/19 6:31, Dmitry Osipenko wrote: >> On 10/18/24 08:28, Akihiko Odaki wrote: +static void virgl_write_context_fence(void *opaque, uint32_t ctx_id, +  uint32_t ring_idx, uint64_t fence) +{

Re: [PATCH v2 5/6] virtio-gpu: Support asynchronous fencing

2024-10-21 Thread Akihiko Odaki
On 2024/10/19 6:31, Dmitry Osipenko wrote: On 10/18/24 08:28, Akihiko Odaki wrote: +static void virgl_write_context_fence(void *opaque, uint32_t ctx_id, +  uint32_t ring_idx, uint64_t fence) +{ +    VirtIOGPU *g = opaque; What about taking the BQL here inste

Re: [PATCH v2 5/6] virtio-gpu: Support asynchronous fencing

2024-10-18 Thread Dmitry Osipenko
On 10/18/24 08:28, Akihiko Odaki wrote: >> +static void virgl_write_context_fence(void *opaque, uint32_t ctx_id, >> +  uint32_t ring_idx, uint64_t fence) >> +{ >> +    VirtIOGPU *g = opaque; > > What about taking the BQL here instead of having a QEMUBH? That wi

Re: [PATCH v2 5/6] virtio-gpu: Support asynchronous fencing

2024-10-17 Thread Akihiko Odaki
On 2024/10/15 13:32, Dmitry Osipenko wrote: Support asynchronous fencing feature of virglrenderer. It allows Qemu to handle fence as soon as it's signalled instead of periodically polling the fence status. This feature is required for enabling DRM context support in Qemu because legacy fencing mo

[PATCH v2 5/6] virtio-gpu: Support asynchronous fencing

2024-10-14 Thread Dmitry Osipenko
Support asynchronous fencing feature of virglrenderer. It allows Qemu to handle fence as soon as it's signalled instead of periodically polling the fence status. This feature is required for enabling DRM context support in Qemu because legacy fencing mode isn't supported for DRM contexts in virglre