This is an automatic generated email to let you know that the following patch were queued at the
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: v4l2-compliance: Don't check bytesused or timestamp for error buffers
Author: Laurent Pinchart <laurent.pinchart(a)ideasonboard.com>
Date: Fri Oct 30 12:37:17 2026 +0200
When DQBUF returns a buffer marked with the ERROR flag, the bytesused
and timestamp fields can be zero. Relax the checks to accept those
values.
Signed-off-by: Laurent Pinchart <laurent.pinchart(a)ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco(a)kernel.org>
utils/v4l2-compliance/v4l2-test-buffers.cpp | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=d2e89246cefcb63714…
diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp b/utils/v4l2-compliance/v4l2-test-buffers.cpp
index dba471e5b488..7d0fb9e58fc0 100644
--- a/utils/v4l2-compliance/v4l2-test-buffers.cpp
+++ b/utils/v4l2-compliance/v4l2-test-buffers.cpp
@@ -394,7 +394,7 @@ int buffer::check(unsigned type, unsigned memory, unsigned index,
if (mode == Dequeued) {
for (unsigned p = 0; p < g_num_planes(); p++) {
- if (!(g_flags() & V4L2_BUF_FLAG_LAST))
+ if (!(g_flags() & (V4L2_BUF_FLAG_LAST | V4L2_BUF_FLAG_ERROR)))
fail_on_test(!g_bytesused(p));
if (!g_bytesused(p))
fail_on_test(g_data_offset(p));
@@ -402,7 +402,10 @@ int buffer::check(unsigned type, unsigned memory, unsigned index,
fail_on_test(g_data_offset(p) >= g_bytesused(p));
fail_on_test(g_bytesused(p) > g_length(p));
}
- fail_on_test(!g_timestamp().tv_sec && !g_timestamp().tv_usec);
+
+ if (!(g_flags() & V4L2_BUF_FLAG_ERROR))
+ fail_on_test(!g_timestamp().tv_sec && !g_timestamp().tv_usec);
+
fail_on_test(g_flags() & V4L2_BUF_FLAG_DONE);
// The vivid driver has unreliable timings causing wrong
This is an automatic generated email to let you know that the following patch were queued at the
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: v4l2-compliance: Add an option to override the driver name.
Author: Brian Daniels <briandaniels(a)google.com>
Date: Thu Oct 29 11:20:20 2026 -0400
When using the virtio-media driver, the host and a guest VM are used,
with the guest VM proxying requests to a host device. The driver name in
the guest VM is reported as "virtio-media", when really its proxying
requests to a driver with a different name (for example, "uvcvideo").
For the test to pass, v4l2-compliance needs to know the driver name of
the device on the host because it changes its behavior depending on the
driver under test.
With the new --is-uvc and --is-vivid options, the name of the host driver can
be overriden so the test running in the guest can adapt accordingly.
Assisted-by: LLM
Signed-off-by: Brian Daniels <briandaniels(a)google.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco(a)kernel.org>
utils/v4l2-compliance/v4l2-compliance.1.in | 6 ++++++
utils/v4l2-compliance/v4l2-compliance.cpp | 28 +++++++++++++++++++++++-----
2 files changed, 29 insertions(+), 5 deletions(-)
---
http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=5a3cf6997011fe04f2…
diff --git a/utils/v4l2-compliance/v4l2-compliance.1.in b/utils/v4l2-compliance/v4l2-compliance.1.in
index c23e5323451e..2e89b049f95f 100644
--- a/utils/v4l2-compliance/v4l2-compliance.1.in
+++ b/utils/v4l2-compliance/v4l2-compliance.1.in
@@ -178,6 +178,12 @@ Highlight OK/warn/fail/FAIL strings with colors. OK is marked green, warn is
marked bold, and fail/FAIL are marked bright red if enabled. \fI<when>\fR can
be \fIalways\fR, \fInever\fR, or \fIauto\fR (the default).
.TP
+\fB\-\-is\-uvc\fR
+Run the tests as if the detected driver name was "uvcvideo".
+.TP
+\fB\-\-is\-vivid\fR
+Run the tests as if the detected driver name was "vivid".
+.TP
\fB\-n\fR, \fB\-\-no\-warnings\fR
Turn off warning messages. They are still counted in the summary, but you won't see them.
.TP
diff --git a/utils/v4l2-compliance/v4l2-compliance.cpp b/utils/v4l2-compliance/v4l2-compliance.cpp
index d6c2f61d61ff..e9e84363d482 100644
--- a/utils/v4l2-compliance/v4l2-compliance.cpp
+++ b/utils/v4l2-compliance/v4l2-compliance.cpp
@@ -66,7 +66,9 @@ enum Option {
OptExitOnWarn = 'W',
OptMediaBusInfo = 'z',
OptExpBufMediaBusInfo = 'Z',
- OptStreamFrom = 128,
+ OptIsUvc = 128,
+ OptIsVivid,
+ OptStreamFrom,
OptStreamFromHdr,
OptVersion,
OptLast = 256
@@ -85,8 +87,8 @@ bool show_warnings = true;
bool show_colors;
bool exit_on_fail;
bool exit_on_warn;
-bool is_vivid;
-bool is_uvcvideo;
+bool is_vivid = false;
+bool is_uvcvideo = false;
int media_fd = -1;
unsigned warnings;
bool has_mmu = true;
@@ -132,6 +134,8 @@ static struct option long_options[] = {
{"help", no_argument, nullptr, OptHelp},
{"verbose", no_argument, nullptr, OptVerbose},
{"color", required_argument, nullptr, OptColor},
+ {"is-uvc", no_argument, nullptr, OptIsUvc},
+ {"is-vivid", no_argument, nullptr, OptIsVivid},
{"no-warnings", no_argument, nullptr, OptNoWarnings},
{"no-progress", no_argument, nullptr, OptNoProgress},
{"exit-on-fail", no_argument, nullptr, OptExitOnFail},
@@ -265,6 +269,8 @@ static void usage()
printf(" -h, --help Display this help message.\n");
printf(" -C, --color <when> Highlight OK/warn/fail/FAIL strings with colors\n");
printf(" <when> can be set to always, never, or auto (the default)\n");
+ printf(" --is-uvc Run the tests as if the detected driver name was \"uvcvideo\".\n");
+ printf(" --is-vivid Run the tests as if the detected driver name was \"vivid\".\n");
printf(" -n, --no-warnings Turn off warning messages.\n");
printf(" -P, --no-progress Turn off progress messages.\n");
printf(" -T, --trace Trace all called ioctls.\n");
@@ -998,8 +1004,10 @@ void testNode(struct node &node, struct node &node_m2m_cap, struct node &expbuf_
if (node.is_v4l2()) {
doioctl(&node, VIDIOC_QUERYCAP, &vcap);
driver = reinterpret_cast<const char *>(vcap.driver);
- is_uvcvideo = driver == "uvcvideo";
- is_vivid = driver == "vivid";
+ if (!options[OptIsUvc] && !options[OptIsVivid]) {
+ is_uvcvideo = driver == "uvcvideo";
+ is_vivid = driver == "vivid";
+ }
node.bus_info = reinterpret_cast<const char *>(vcap.bus_info);
determine_codec_mask(node);
} else if (node.is_subdev()) {
@@ -1830,6 +1838,12 @@ int main(int argc, char **argv)
std::exit(EXIT_FAILURE);
}
break;
+ case OptIsUvc:
+ is_uvcvideo = true;
+ break;
+ case OptIsVivid:
+ is_vivid = true;
+ break;
case OptNoWarnings:
show_warnings = false;
break;
@@ -1869,6 +1883,10 @@ int main(int argc, char **argv)
usage();
std::exit(EXIT_FAILURE);
}
+ if (options[OptIsUvc] && options[OptIsVivid]) {
+ fprintf(stderr, "Options --is-uvc and --is-vivid are mutually exclusive.\n");
+ std::exit(EXIT_FAILURE);
+ }
print_sha();
printf("\n");
This is an automatic generated email to let you know that the following patch were queued at the
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: edid-decode: 4:2:0 bit of Type 8 DisplayID timing was not reported
Author: Hans Verkuil <hverkuil+cisco(a)kernel.org>
Date: Wed Oct 28 09:31:20 2026 +0100
For the Type 8 DisplayID timing, the 'YCC 420 Support' bit in byte
1 was not reported. Add this.
Reported by yassha <50112520+yassha(a)users.noreply.github.com>.
Signed-off-by: Hans Verkuil <hverkuil+cisco(a)kernel.org>
utils/edid-decode/parse-displayid-block.cpp | 4 ++++
1 file changed, 4 insertions(+)
---
http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=4f7a03a9b1ead858a3…
diff --git a/utils/edid-decode/parse-displayid-block.cpp b/utils/edid-decode/parse-displayid-block.cpp
index 1013af92fe81..0f2d7660a007 100644
--- a/utils/edid-decode/parse-displayid-block.cpp
+++ b/utils/edid-decode/parse-displayid-block.cpp
@@ -2657,6 +2657,10 @@ unsigned edid_state::displayid_block(const unsigned version, const unsigned char
check_displayid_datablock_revision(x[1], 0xe8, 1);
else
check_displayid_datablock_revision(x[1], 0xc8);
+ if (block_rev >= 1 && (x[1] & 0x20)) {
+ printf(" Also supports YCbCr 4:2:0\n");
+ dispid.has_ycbcr_420 = true;
+ }
if (x[1] & 0x08) {
for (i = 0; i < len / 2; i++)
parse_displayid_type_4_8_timing((x[1] & 0xc0) >> 6,