Skip to contentSkip to conversation

cron job: media_tree daily build: ERRORS

DISCUSSION Hans Verkuil 1 participant 2 messages Oct 12, 2022 – Oct 21, 2022 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below.

Results of the daily build of media_tree:

date: Wed Oct 12 03:00:10 CEST 2022
media-tree git hash: d67614f276c1499ad939fa5c1aadd35498cc6b34
media_build git hash: 0fe857b86addf382f6fd383948bd7736a3201403
v4l-utils git hash: fd544473800d02e90bc289434cc44e5aa8fadd0f
edid-decode git hash: f1ff7ad7bcb2fbb85017bbb2baa6bed37c412895
gcc version: i686-linux-gcc (GCC) 12.2.0
sparse repo: git://git.kernel.org/pub/scm/devel/sparse/sparse.git
sparse version: v0.6.4-39-gce1a6720-dirty
smatch repo: git://repo.or.cz/smatch.git
smatch version: v0.5.0-8146-g91e779fd-dirty

build-scripts repo:     https://git.linuxtv.org/hverkuil/build-scripts.git
build-scripts git hash: ee91e2d56dfee1cb2ebeea1455e5e6934b8fec6d

host hardware: x86_64
host os: 5.19.0-2-amd64

linux-git-sh: OK
linux-git-arm-at91: OK
linux-git-arm-davinci: OK
linux-git-arm-pxa: OK
linux-git-powerpc64: OK
linux-git-arm-stm32: OK
linux-git-mips: OK
linux-git-arm-multi: WARNINGS
linux-git-arm64: WARNINGS
linux-git-i686: WARNINGS
linux-git-x86_64: WARNINGS
Check COMPILE_TEST: OK
Check for strcpy/strncpy/strlcpy: OK
apps: OK
spec-git: OK
virtme: ERRORS: Final Summary: 3080, Succeeded: 3069, Failed: 11, Warnings: 0
virtme-32: ERRORS: Final Summary: 3193, Succeeded: 3170, Failed: 23, Warnings: 0
sparse: WARNINGS
smatch: WARNINGS
kerneldoc: OK

Detailed results are available here:

https://hverkuil.home.xs4all.nl/logs/Wednesday.log

Detailed regression test results are available here:

https://hverkuil.home.xs4all.nl/logs/Wednesday-test-media.log
https://hverkuil.home.xs4all.nl/logs/Wednesday-test-media-32.log
https://hverkuil.home.xs4all.nl/logs/Wednesday-test-media-dmesg.log

Full logs are available here:

https://hverkuil.home.xs4all.nl/logs/Wednesday.tar.bz2

The Media Infrastructure API from this daily build is here:

https://hverkuil.home.xs4all.nl/spec/index.html

#1 lore raw

Hi all,

Quoted 2 lines · Hans Verkuil

This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below.

<snip>

Quoted 2 lines

virtme: ERRORS: Final Summary: 3080, Succeeded: 3069, Failed: 11, Warnings: 0
virtme-32: ERRORS: Final Summary: 3193, Succeeded: 3170, Failed: 23, Warnings: 0

For quite a long time now the regression tests kept failing in mysterious ways, and I hope I have finally found the cause.

The test-media script that runs the regression has to load vivid and initialize it in a few places:

	modprobe vivid n_devs=3 multiplanar=1,2,2 cache_hints=1,0,0
	sleep 3
	v4l2_ctl -z platform:vivid-002 -d vivid-002-vid-cap -i3 -v width=3840,height=2160,pixelformat=NV24
	v4l2_ctl -z platform:vivid-002 -d vivid-002-vid-out -o1 -x width=3840,height=2160,pixelformat=NM16

The two v4l2-ctl commands configure the third vivid instance so that it can be used to export dmabufs that are large enough for use as import buffers elsewhere in the scripts.

v4l2-ctl finds the media device and reads the topology to find the major/minor numbers of the video device to use. Then it opens /dev/char/major:minor.

However, that can fail if CONFIG_DEBUG_KOBJECT_RELEASE=y. That makes everything a lot slower, so after the 'sleep 3' above the /dev/char/major:minor symlink hasn't been created yet by udev.

So even though the module was loaded, the udev rules weren't finished yet and the v4l2-ctl commands failed. Therefor the tests that tried to export/import dmabufs would fail because the buffers were too small. All this is of course dependent on the speed of the CPU, phase of the moon, etc.

Increasing the sleep should fix this issue. Fingers crossed.

Regards,

Hans