* virtio-video device IDs
@ 2024-12-20 16:47 Alexander Gordeev
2024-12-22 14:14 ` Parav Pandit
2024-12-23 10:57 ` Michael S. Tsirkin
0 siblings, 2 replies; 5+ messages in thread
From: Alexander Gordeev @ 2024-12-20 16:47 UTC (permalink / raw)
To: virtio-comment; +Cc: Trilok Soni, Srivatsa Vaddagiri
Hi,
Currently there are two device IDs assigned for the future virtio video device:
* 30 for the encoder
* 31 for the decoder
I received feedback from our internal reviewers that in some cases it would be better to use as few virtqueues as possible. So if a single piece of HW supports both encoder and decoder functions, then it is better to have a single virtual device, that provides both functions as well. The specific function can be selected per stream then.
Is it OK to make changes to the reserved IDs?
Are there any other concerns?
Thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: virtio-video device IDs
2024-12-20 16:47 virtio-video device IDs Alexander Gordeev
@ 2024-12-22 14:14 ` Parav Pandit
2024-12-27 11:15 ` Alexander Gordeev
2024-12-23 10:57 ` Michael S. Tsirkin
1 sibling, 1 reply; 5+ messages in thread
From: Parav Pandit @ 2024-12-22 14:14 UTC (permalink / raw)
To: Alexander Gordeev, virtio-comment@lists.linux.dev
Cc: Trilok Soni, Srivatsa Vaddagiri
> From: Alexander Gordeev <quic_agordeev@quicinc.com>
> Sent: Friday, December 20, 2024 10:17 PM
>
> Hi,
>
> Currently there are two device IDs assigned for the future virtio video device:
> * 30 for the encoder
> * 31 for the decoder
> I received feedback from our internal reviewers that in some cases it would
> be better to use as few virtqueues as possible. So if a single piece of HW
> supports both encoder and decoder functions, then it is better to have a
> single virtual device, that provides both functions as well. The specific
> function can be selected per stream then.
> Is it OK to make changes to the reserved IDs?
> Are there any other concerns?
>
> Thanks
For the new device usually, there is a new device id.
May be you can explore how to merge the functionality using capabilities or feature bits to
a. either extend encoder to have additional decoder
or
b. extend decoded to have the encoder
and than the description can be changed.
Or
c. if the new device has major functionality and performance, may be its own.
I believe the details would be useful to find the suitable option from the 3 choices.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: virtio-video device IDs
2024-12-20 16:47 virtio-video device IDs Alexander Gordeev
2024-12-22 14:14 ` Parav Pandit
@ 2024-12-23 10:57 ` Michael S. Tsirkin
2024-12-27 11:14 ` Alexander Gordeev
1 sibling, 1 reply; 5+ messages in thread
From: Michael S. Tsirkin @ 2024-12-23 10:57 UTC (permalink / raw)
To: Alexander Gordeev; +Cc: virtio-comment, Trilok Soni, Srivatsa Vaddagiri
On Fri, Dec 20, 2024 at 05:47:11PM +0100, Alexander Gordeev wrote:
> Hi,
>
> Currently there are two device IDs assigned for the future virtio video device:
> * 30 for the encoder
> * 31 for the decoder
> I received feedback from our internal reviewers that in some cases it would be better to use as few virtqueues as possible. So if a single piece of HW supports both encoder and decoder functions, then it is better to have a single virtual device, that provides both functions as well. The specific function can be selected per stream then.
> Is it OK to make changes to the reserved IDs?
> Are there any other concerns?
>
> Thanks
Basically, we need to make sure there are no conflicts.
The IDs were reserved by google and chromium guys.
If you want to make changes, get in touch with them
and get their ACK please.
But generally, it's easier to just reserve another ID
for an encoder/decoder device.
We are not short on these.
--
MST
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: virtio-video device IDs
2024-12-23 10:57 ` Michael S. Tsirkin
@ 2024-12-27 11:14 ` Alexander Gordeev
0 siblings, 0 replies; 5+ messages in thread
From: Alexander Gordeev @ 2024-12-27 11:14 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: virtio-comment, Trilok Soni, Srivatsa Vaddagiri
On 23/12/2024 11:57, Michael S. Tsirkin wrote:
> On Fri, Dec 20, 2024 at 05:47:11PM +0100, Alexander Gordeev wrote:
>> Hi,
>>
>> Currently there are two device IDs assigned for the future virtio video device:
>> * 30 for the encoder
>> * 31 for the decoder
>> I received feedback from our internal reviewers that in some cases it would be better to use as few virtqueues as possible. So if a single piece of HW supports both encoder and decoder functions, then it is better to have a single virtual device, that provides both functions as well. The specific function can be selected per stream then.
>> Is it OK to make changes to the reserved IDs?
>> Are there any other concerns?
>>
>> Thanks
>
> Basically, we need to make sure there are no conflicts.
> The IDs were reserved by google and chromium guys.
> If you want to make changes, get in touch with them
> and get their ACK please.
>
> But generally, it's easier to just reserve another ID
> for an encoder/decoder device.
> We are not short on these.
>
Thanks! Yes, I think we'll just reserve another ID indeed.
Maybe the old ones would become useful again later.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: virtio-video device IDs
2024-12-22 14:14 ` Parav Pandit
@ 2024-12-27 11:15 ` Alexander Gordeev
0 siblings, 0 replies; 5+ messages in thread
From: Alexander Gordeev @ 2024-12-27 11:15 UTC (permalink / raw)
To: Parav Pandit, virtio-comment@lists.linux.dev
Cc: Trilok Soni, Srivatsa Vaddagiri
On 22/12/2024 15:14, Parav Pandit wrote:
>> From: Alexander Gordeev <quic_agordeev@quicinc.com>
>> Sent: Friday, December 20, 2024 10:17 PM
>>
>> Hi,
>>
>> Currently there are two device IDs assigned for the future virtio video device:
>> * 30 for the encoder
>> * 31 for the decoder
>> I received feedback from our internal reviewers that in some cases it would
>> be better to use as few virtqueues as possible. So if a single piece of HW
>> supports both encoder and decoder functions, then it is better to have a
>> single virtual device, that provides both functions as well. The specific
>> function can be selected per stream then.
>> Is it OK to make changes to the reserved IDs?
>> Are there any other concerns?
>>
>> Thanks
>
> For the new device usually, there is a new device id.
> May be you can explore how to merge the functionality using capabilities or feature bits to
> a. either extend encoder to have additional decoder
> or
> b. extend decoded to have the encoder
>
> and than the description can be changed.
>
> Or
> c. if the new device has major functionality and performance, may be its own.
>
> I believe the details would be useful to find the suitable option from the 3 choices.
I don't understand option 3. Perhaps there are typos.
At the moment I think we'll choose option 1. Thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-12-27 11:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-20 16:47 virtio-video device IDs Alexander Gordeev
2024-12-22 14:14 ` Parav Pandit
2024-12-27 11:15 ` Alexander Gordeev
2024-12-23 10:57 ` Michael S. Tsirkin
2024-12-27 11:14 ` Alexander Gordeev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox