From: Milos Ivanovic <bugs@milos.nz>
To: linux-media@vger.kernel.org
Subject: Re: (bisected) Logitech C920 (uvcvideo) stutters since 3.9
Date: Mon, 30 Mar 2015 09:59:33 +1300 [thread overview]
Message-ID: <mf9p3n$hqs$1@ger.gmane.org> (raw)
In-Reply-To: <CANOLnONtDgBChFERg8y1HGFnOtU8WO+VSpVK=uktDL5PAb5nxA@mail.gmail.com>
On 8/12/2014 10:23 am, Grazvydas Ignotas wrote:
> Hi,
>
> On Sun, Dec 7, 2014 at 9:23 PM, Laurent Pinchart
> <laurent.pinchart@ideasonboard.com> wrote:
>> Hi Grazvydas,
>>
>> (CC'ing Paulo Assis)
>>
>> On Saturday 06 December 2014 02:25:25 Grazvydas Ignotas wrote:
>>> On Fri, Dec 5, 2014 at 1:46 PM, Laurent Pinchart wrote:
>>>> On Thursday 06 November 2014 00:29:53 Grazvydas Ignotas wrote:
>>>>> On Wed, Nov 5, 2014 at 4:05 PM, Laurent Pinchart wrote:
>>>>>> Would you be able to capture images from the C920 using yavta, with the
>>>>>> uvcvideo trace parameter set to 4096, and send me both the yavta log
>>>>>> and the kernel log ? Let's start with a capture sequence of 50 to 100
>>>>>> images.
>>>>>
>>>>> I've done 2 captures, if that helps:
>>>>> http://notaz.gp2x.de/tmp/c920_yavta/
>>>>>
>>>>> The second one was done using low exposure setting, which allows
>>>>> camera to achieve higher frame rate.
>>>>
>>>> Thank you for the log, they were very helpful. They revealed that the USB
>>>> SOF (Start Of Frame) counter values on the device and host side are not
>>>> in sync. The counters get incremented are very different rates. What USB
>>>> controller are you using ?
>>>
>>> 00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI
>>> Controller (rev 01) (prog-if 20 [EHCI])
>>> Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7592
>>> Flags: bus master, medium devsel, latency 0, IRQ 23
>>> Memory at fe9fbc00 (32-bit, non-prefetchable) [size=1K]
>>> Capabilities: [50] Power Management version 2
>>> Capabilities: [58] Debug port: BAR=1 offset=00a0
>>> Kernel driver in use: ehci-pci
>>>
>>> If it helps, I could try on an ARM board, currently don't have any
>>> other x86 hardware around.
>>
>> Actually the frequencies I've computed from the log are correct on the host
>> side but quite off on the device side. I'm puzzled.
>>
>> The following patch allows accessing the contents of the clock data buffer
>> through debugfs. Would you be able to apply it and execute the following
>> steps ?
>>
>> 1. Load the uvcvideo module with the clock trace flag (0x1000) set.
>>
>> 2. Start capturing clock data.
>>
>> while true; do
>> cat /sys/kernel/debug/usb/uvcvideo/2-6/clocks ;
>> done > ~/samples.log
>>
>> 3. Capture 100 frames.
>>
>> yavta -c100 > yavta.log
>>
>> 4. Stop the "while true" with ctrl-C.
>>
>> 5. Capture the uvcvideo stats.
>>
>> cat /sys/kernel/debug/usb/uvcvideo/2-6/stats > stats.log
>>
>> 6. Capture the kernel log.
>>
>> dmesg > dmesg.log
>>
>> 7. Send me all the log files.
>
> Done:
> http://notaz.gp2x.de/tmp/c920_yavta/3/
>
> --
> Gražvydas
>
Hello,
I've reproduced this issue on a Logitech C920 in the following environments:
1. x86_64 Linux 3.19.3 (Gentoo, custom kernel)
2. x86_64 Linux 3.13.0-46-generic (Ubuntu)
3. armv7a Linux 3.19.3 (Arch Linux, custom kernel)
I can confirm that the issue is not present in Linux 3.8.y.
I'm not sure if there have been any developments in regards to this in
recent months, but I'm happy to help out in any way possible. If someone
is in need of new debug logs, I can follow the steps above and provide them.
--
Milos
prev parent reply other threads:[~2015-03-29 21:05 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-02 2:03 (bisected) Logitech C920 (uvcvideo) stutters since 3.9 Grazvydas Ignotas
2014-11-02 22:57 ` Sakari Ailus
2014-11-03 23:16 ` Grazvydas Ignotas
2014-11-04 11:58 ` Sakari Ailus
2014-11-04 12:42 ` Rémi Denis-Courmont
2014-11-04 15:02 ` Paulo Assis
2014-11-04 15:36 ` Sakari Ailus
2014-11-04 23:32 ` Sakari Ailus
2014-11-05 10:13 ` Paulo Assis
2014-11-05 14:05 ` Laurent Pinchart
2014-11-05 22:29 ` Paulo Assis
2014-11-05 16:11 ` Sakari Ailus
2014-11-05 16:12 ` [RFC 1/2] uvc: Add a quirk flag for cameras that do not produce correct timestamps Sakari Ailus
2014-11-05 16:12 ` [RFC 2/2] uvc: Use UVC_QUIRK_BAD_TIMESTAMP quirk flag for Logitech C920 Sakari Ailus
2015-11-09 16:18 ` [RFC 1/2] uvc: Add a quirk flag for cameras that do not produce correct timestamps Laurent Pinchart
2014-12-05 14:58 ` (bisected) Logitech C920 (uvcvideo) stutters since 3.9 Laurent Pinchart
2014-11-04 20:41 ` Rémi Denis-Courmont
2014-11-05 14:05 ` Laurent Pinchart
2014-11-05 22:29 ` Grazvydas Ignotas
2014-11-17 15:36 ` Grazvydas Ignotas
2014-11-18 8:39 ` Hans Verkuil
2014-12-05 11:46 ` Laurent Pinchart
2014-12-06 0:25 ` Grazvydas Ignotas
2014-12-07 19:23 ` Laurent Pinchart
2014-12-07 21:23 ` Grazvydas Ignotas
2015-03-29 20:59 ` Milos Ivanovic [this message]
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='mf9p3n$hqs$1@ger.gmane.org' \
--to=bugs@milos.nz \
--cc=linux-media@vger.kernel.org \
/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).