uvcvideo: Marking buffer as bad (error bit set).

There are a lot of error logs on uvcvideo.

[17999.817207,0] uvcvideo: Marking buffer as bad (error bit set).
[17999.817390,0] uvcvideo: Frame complete (EOF found).
[17999.817946,0] uvcvideo: Dropping payload (out of sync).
[17999.818336,0] uvcvideo: frame 1 stats: 0/0/2 packets, 0/0/0 pts (!early !initial), 0/0 scr, last pts/stc/sof 0/0/0
[17999.818702,0] uvcvideo: frame 2 stats: 0/0/1 packets, 0/0/0 pts (!early !initial), 0/0 scr, last pts/stc/sof 0/0/0
[17999.818723,0] uvcvideo: Frame complete (FID bit toggled).
[17999.818790,0] uvcvideo: frame 3 stats: 0/0/1 packets, 0/0/0 pts (!early !initial), 0/1 scr, last pts/stc/sof 0/2769645217/39351
[17999.818819,2] uvcvideo: uvc_v4l2_poll
[17999.818960,0] uvcvideo: Frame complete (EOF found).
[17999.819181,0] uvcvideo: frame 4 stats: 0/0/1 packets, 0/0/0 pts (!early !initial), 0/1 scr, last pts/stc/sof 0/2769645217/39351
[17999.819200,0] uvcvideo: Marking buffer as bad (error bit set).
[17999.819452,0] uvcvideo: frame 5 stats: 0/0/1 packets, 0/0/0 pts (!early !initial), 0/1 scr, last pts/stc/sof 0/2384006215/2022
[17999.819466,0] uvcvideo: Marking buffer as bad (error bit set).
[17999.819477,0] uvcvideo: Frame complete (FID bit toggled).
[17999.819497,0] uvcvideo: frame 6 stats: 0/0/1 packets, 0/0/0 pts (!early !initial), 0/0 scr, last pts/stc/sof 0/0/0
[17999.819510,0] uvcvideo: Marking buffer as bad (error bit set).

This error message log print in below source code.

This is a UVC decode error, so i go deep to research about USB package.

Compare between OK/NG frame of usb package. There is indeed have some wrong with the usb frame data.

And when this issue happened, there also some different on the control data as below picture.

 

Then we continue to find out why the command "CLEAR_FEATURE_Request" will send out. The below picture showed command send function.

So if the quirks & UVC_QUIRK_NO_CLEAR_HALT is false, that will call usb_clear_halt to send command "CLEAR_FEATURE_Request".

Then that's go to find the root cause why quirks & UVC_QUIRK_NO_CLEAR_HALT is false.

As above picture showed, the permission of quirks is different between left and right. That's the root cause.

And also you can get some information throught main log.

failed to open /sys/module/uvcvideo/parameters/quirks when reset, errno 13

 

We fix the permission we fix the UVC error.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值