Skip to contentSkip to conversation

V4L2_BUF_FLAG_NO_CACHE_*

DISCUSSION Krzysztof Hałasa 2 participants 2 messages Oct 7, 2013 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi,

found them looking for my V4L2 + mmap + MIPS solution... Is the following intentional? Some out-of-tree code maybe?

$ grep V4L2_BUF_FLAG_NO_CACHE_ * -r

Documentation/DocBook/media/v4l/io.xml: <entry><constant>V4L2_BUF_FLAG_NO_CACHE_INVALIDATE</constant></entry>
Documentation/DocBook/media/v4l/io.xml: <entry><constant>V4L2_BUF_FLAG_NO_CACHE_CLEAN</constant></entry>
Documentation/DocBook/media/v4l/vidioc-prepare-buf.xml:<constant>V4L2_BUF_FLAG_NO_CACHE_INVALIDATE</constant> and Documentation/DocBook/media/v4l/vidioc-prepare-buf.xml:<constant>V4L2_BUF_FLAG_NO_CACHE_CLEAN</constant> flags to skip the respective
include/uapi/linux/videodev2.h:#define V4L2_BUF_FLAG_NO_CACHE_INVALIDATE 0x0800
include/uapi/linux/videodev2.h:#define V4L2_BUF_FLAG_NO_CACHE_CLEAN 0x1000

Signature · 4 lines
Krzysztof Halasa

Research Institute for Automation and Measurements PIAP
Al. Jerozolimskie 202, 02-486 Warsaw, Poland
#1 lore raw
Quoted 4 lines · Krzysztof Hałasa

Hi,

found them looking for my V4L2 + mmap + MIPS solution... Is the following intentional? Some out-of-tree code maybe?

No, this is intentional. Too bad this was never actually implemented in any driver. Marek, Pawel, wouldn't it be possible to add support for these flags in vb2? That seems the right place for this.

Regards,

Hans

Quoted 10 lines
$ grep V4L2_BUF_FLAG_NO_CACHE_ * -r

Documentation/DocBook/media/v4l/io.xml: <entry><constant>V4L2_BUF_FLAG_NO_CACHE_INVALIDATE</constant></entry>
Documentation/DocBook/media/v4l/io.xml: <entry><constant>V4L2_BUF_FLAG_NO_CACHE_CLEAN</constant></entry>
Documentation/DocBook/media/v4l/vidioc-prepare-buf.xml:<constant>V4L2_BUF_FLAG_NO_CACHE_INVALIDATE</constant> and Documentation/DocBook/media/v4l/vidioc-prepare-buf.xml:<constant>V4L2_BUF_FLAG_NO_CACHE_CLEAN</constant> flags to skip the respective
include/uapi/linux/videodev2.h:#define V4L2_BUF_FLAG_NO_CACHE_INVALIDATE 0x0800
include/uapi/linux/videodev2.h:#define V4L2_BUF_FLAG_NO_CACHE_CLEAN 0x1000