From: Hans Verkuil <hverkuil@xs4all.nl>
To: Florian Echtler <floe@butterbrot.org>,
Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
linux-input <linux-input@vger.kernel.org>,
LMML <linux-media@vger.kernel.org>
Subject: Re: [PATCH v3][RFC] add raw video stream support for Samsung SUR40
Date: Mon, 09 Mar 2015 11:09:01 +0100 [thread overview]
Message-ID: <54FD713D.5050401@xs4all.nl> (raw)
In-Reply-To: <54FD6CAD.9030600@butterbrot.org>
Hi Florian,
On 03/09/2015 10:49 AM, Florian Echtler wrote:
> On 07.03.2015 21:57, Hans Verkuil wrote:
>> This will wait until start_streaming was called before it starts processing
>> video (and start_streaming is only called if at least 3 buffers have been
>> queued).
>>
>> Right now the first buffer can be returned without STREAMON actually having
>> been called. That's certainly wrong.
>>
>> Whether that is the cause of this bug I do not know, but fix this first.
> OK, I've fixed this, will be included in the next patch submission.
> Unfortunately still getting the same error from v4l2-compliance.
>
>> If this doesn't solve it, then please do another run but this time use
>>
>> echo 10 >/sys/class/video4linux/videoX/dev_debug
>>
>> so I see the (D)QBUF ioctls as well. Otherwise use the same procedure as
>> before.
> See attachments - syslog with dev_debug=10, core.debug=1 and output from
> v4l2-compliance -s.
>
> *fingers crossed even more* ;-)
OK, the cause of this failure is this message:
Mar 9 10:39:08 sur40 kernel: [ 1093.200960] sur40 2-1:1.0: error in usb_sg_wait
So you need to print the error message here (sgr.status) so that I can see what
it is.
The error almost certainly comes from usb_submit_urb(). That function does some
checks on the sgl:
} else if (urb->num_sgs && !urb->dev->bus->no_sg_constraint &&
dev->speed != USB_SPEED_WIRELESS) {
struct scatterlist *sg;
int i;
for_each_sg(urb->sg, sg, urb->num_sgs - 1, i)
if (sg->length % max)
return -EINVAL;
}
I wonder it the code gets there. Perhaps a printk just before the return -EINVAL
might help here (also print the 'max' value).
So you will have to debug a bit here, trying to figure out which test in the usb
code causes the usb_sg_wait error.
Regards,
Hans
next prev parent reply other threads:[~2015-03-09 10:09 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-04 15:30 [PATCH v3][RFC] add raw video stream support for Samsung SUR40 Florian Echtler
2015-02-11 11:52 ` Florian Echtler
2015-02-16 11:40 ` Hans Verkuil
2015-02-20 21:46 ` Florian Echtler
2015-02-21 10:22 ` Hans Verkuil
2015-03-06 11:24 ` Florian Echtler
2015-03-06 11:47 ` Hans Verkuil
2015-03-07 19:52 ` Florian Echtler
2015-03-07 20:57 ` Hans Verkuil
2015-03-09 9:49 ` Florian Echtler
2015-03-09 10:09 ` Hans Verkuil [this message]
2015-03-09 13:45 ` Florian Echtler
2015-03-09 14:02 ` Hans Verkuil
2015-03-12 19:37 ` Florian Echtler
2015-03-15 16:26 ` Hans Verkuil
2015-03-16 8:36 ` Florian Echtler
2015-03-16 8:53 ` Hans Verkuil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54FD713D.5050401@xs4all.nl \
--to=hverkuil@xs4all.nl \
--cc=floe@butterbrot.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=m.chehab@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).