public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] virtio video driver
@ 2019-12-05 16:11 Dmitry Sepp
  2019-12-05 16:33 ` Dmitry Sepp
  0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Sepp @ 2019-12-05 16:11 UTC (permalink / raw)
  To: linux-media
  Cc: virtio-dev, kraxel, tfiga, keiichiw, acourbot, hverkuil, posciak,
	marcheu, stevensd, dgreid, daniel, egranata

Hello,

My apologies for the long delay. The driver code is now available and provided 
as a follow-up to the discussion from this thread [1].

The reference Linux kernel 5.4 driver implementation is located here:
https://github.com/OpenSynergy/linux/tree/virtio-video-draft-v1

The driver is implemented using the V4L2 API. It allocates a v4l2 device for 
each probed virtio device and then creates a video device for each function 
within the respective virtio device. The driver implements the stateful 
decoder interface [2] and the stateful encoder interface (WIP) [3].

The DMA SG memory allocator tries to map buffers right away. As it is not 
always suitable, and some implementations might need just a physical address, 
we had to introduce a set of simple dma ops directly in the driver.

The driver is in the RFC state and currently a bit ahead of the spec that was 
proposed in the discussion mentioned above. On the other hand, the driver 
unfortunately does not yet include changes proposed in the recent comments 
[4]. The driver currently supports encoder and decoder functions. Also, it 
does not fully pass the v4l2-compliance yet, it has been a bit out of the 
focus so far.

Any feedback and contribution would be greatly appreciated.

[1] https://markmail.org/message/gc6h25acct22niut
[2] https://www.kernel.org/doc/html/v5.4/media/uapi/v4l/dev-decoder.html
[3] https://hverkuil.home.xs4all.nl/codec-api/uapi/v4l/dev-encoder.html
[4] https://markmail.org/message/yy67elx2adbivdsp

Best regards,
Dmitry.




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-01-09 15:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-05 16:11 [RFC] virtio video driver Dmitry Sepp
2019-12-05 16:33 ` Dmitry Sepp
2019-12-20  7:15   ` Tomasz Figa
2019-12-25 11:38   ` Keiichi Watanabe
2019-12-27 14:05     ` Dmitry Sepp
2020-01-06  6:44       ` Keiichi Watanabe
2020-01-09 15:23         ` Dmitry Sepp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox