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: contrib/test/test-media: test unbind in DQBUF Author: Hans Verkuil <hverkuil-ci...@xs4all.nl> Date: Wed Sep 25 11:46:13 2024 +0200 Test that unbinding vivid while in a blocking wait for a buffer to arrive works correctly. This is a special case since while in the blocking wait, the vb2 core has released the main serialization mutex. This test was added to catch any potential regressions. Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl> contrib/test/test-media | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=8d4f0b47650b2b4ed41c7b27190e5bac7d54f8d5 diff --git a/contrib/test/test-media b/contrib/test/test-media index e448dba29999..d6ecf7719ad3 100755 --- a/contrib/test/test-media +++ b/contrib/test/test-media @@ -317,8 +317,25 @@ if [ $vivid -eq 1 -a $setup -eq 0 ]; then echo -n vivid.0 >/sys/bus/platform/drivers/vivid/bind sleep 1 echo + echo second unbind vivid | tee /dev/kmsg echo + # Test that you can unbind while in a blocking VIDIOC_DQBUF + $v4l2_ctl -z platform:vivid-000 -d vivid-000-vid-cap -c percentage_of_dropped_buffers=100 + $v4l2_ctl -z platform:vivid-000 -d vivid-000-vid-cap --stream-mmap & + sleep 1 + echo + echo -n vivid.0 >/sys/bus/platform/drivers/vivid/unbind + sleep $unbind_time + echo + echo rebind vivid | tee /dev/kmsg + echo + echo -n vivid.0 >/sys/bus/platform/drivers/vivid/bind + sleep 1 + echo + + echo third unbind vivid | tee /dev/kmsg + echo for i in `$v4l2_ctl -z platform:vivid-000 --list-devices` `cec-ctl -D vivid -a vivid-000-vid-cap0 -s --list-devices` `cec-ctl -D vivid -a vivid-000-vid-out0 -s --list-devices`; do let "t = 1 + $RANDOM / 4096" echo $i: sleep ${t}s