You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The latest version of 5.10 kernel does not allow loading the EDID into the TC358743 capture device. Apparently, some ednpoints have changed in the kernel judging by dmesg:
[root@pikvm ~]# dmesg | grep tc3
[ 9.845115] tc358743 10-000f: Consider updating driver tc358743 to match on endpoints
[ 10.064257] tc358743 10-000f: tc358743 found @ 0x1e (i2c-22-mux (chan_id 1))
At the same time, video capture works if the source resolution corresponds to 640x480.
Perhaps the problem may be related to #4669 but I'm not sure because they look quite different.
To reproduce
Take a fresh kernel build and try to load the EDID using v4l2-ctl. The utility will output absolutely nothing - the EDID will not be loaded, like:
@6by9 sorry to bother you, I've brought you a new nasty problem with tc358743. In addition, it is possible that it is indirectly related to kernel oops in another issue.
Consider updating driver tc358743 to match on endpoints is an upstream thing that has changed from 5.9 onwards torvalds/linux@e80cdf0. Seeing as tc358743 is an upstream driver, it would have been nice if they'd fixed it at the same time.
More likely #4641 and #4645.
As long as the flag for enabling Media Controller is not set in either module parameter or DT, then there should have been no change. I'll run up a board when I get a chance and see if there is anything obvious going on.
Just checked with an Auvidea B102 on a CM4 - no issue setting the EDID on 5.10.76, v4l2-ctl --set-dv-bt-timing queryand it's then reporting the format of 1280x720, and is then fine streaming video (used GStreamer gst-launch-1.0 -vvv -e v4l2src ! v4l2convert ! kmssink)
Get them to check with v4l2-ctl -D that they haven't enabled the Media Controller side of bcm2835-unicam.
Unfortunately it doesn't decode the flag, but Capabilities : 0x85a00001
is without Media Controller, and Capabilities : 0xa5a00001
is with Media Controller. (In this case I get VIDIOC_S_EDID: failed: Inappropriate ioctl for device on trying to set the EDID. You need to direct it to -d /dev/v4l-subdev0 with Media Controller - see https://forums.raspberrypi.com/viewtopic.php?t=322076 for more details).
Activity
mdevaev commentedon Nov 5, 2021
@6by9 sorry to bother you, I've brought you a new nasty problem with tc358743. In addition, it is possible that it is indirectly related to kernel oops in another issue.
6by9 commentedon Nov 5, 2021
Consider updating driver tc358743 to match on endpointsis an upstream thing that has changed from 5.9 onwards torvalds/linux@e80cdf0. Seeing as tc358743 is an upstream driver, it would have been nice if they'd fixed it at the same time.More likely #4641 and #4645.
As long as the flag for enabling Media Controller is not set in either module parameter or DT, then there should have been no change. I'll run up a board when I get a chance and see if there is anything obvious going on.
6by9 commentedon Nov 5, 2021
Just checked with an Auvidea B102 on a CM4 - no issue setting the EDID on 5.10.76,
v4l2-ctl --set-dv-bt-timing queryand it's then reporting the format of 1280x720, and is then fine streaming video (used GStreamergst-launch-1.0 -vvv -e v4l2src ! v4l2convert ! kmssink)mdevaev commentedon Nov 5, 2021
It's strange, my user reproduces it. Maybe it's something floating... I'll try to figure out details.
Could you something else please? Use
ustreamerand OMX encoding with B102. This causes an immediate kernel crash on 720p like on #4669Add
cma=128Mto cmdline.txt andgpu_mem=256to config.txt and try this command:6by9 commentedon Nov 5, 2021
Get them to check with
v4l2-ctl -Dthat they haven't enabled the Media Controller side of bcm2835-unicam.Unfortunately it doesn't decode the flag, but
Capabilities : 0x85a00001is without Media Controller, and
Capabilities : 0xa5a00001is with Media Controller. (In this case I get
VIDIOC_S_EDID: failed: Inappropriate ioctl for deviceon trying to set the EDID. You need to direct it to-d /dev/v4l-subdev0with Media Controller - see https://forums.raspberrypi.com/viewtopic.php?t=322076 for more details).mdevaev commentedon Nov 5, 2021
Thak you, I will. I also edited #4669. This is definitely related to OMX and TC358743.
6by9 commentedon Nov 5, 2021
I've used rpi-update to grab the latest released kernel build
ustreamer starts fine on that. It does appear to take a LARGE amount of CPU time though - htop is reporting 3 cores at 70% usage on a CM4.
mdevaev commentedon Nov 5, 2021
What commit is your kernel built from? Maybe we have something else that might be different?
mdevaev commentedon Nov 5, 2021
OMG I made a typo with options. Please try OMX JPEG:
ustreamer --encoder=omx --dv-timings --persistent -m uyvymdevaev commentedon Mar 15, 2022
I haven't seen this problem again, probably some underground knocks related to memory corruption. Irrelevant due to M2M.