Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1600704
| Path | csiph.com!1.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!weretis.net!feeder4.news.weretis.net!storethat.news.telefonica.de!telefonica.de!news.panservice.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Steve Longerbeam <slongerbeam@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v5 15/39] [media] v4l2: add a frame interval error event |
| Date | Tue, 14 Mar 2017 18:00:03 +0100 |
| Message-ID | <tkXXJ-2UI-27@gated-at.bofh.it> (permalink) |
| References | <tjkOJ-708-5@gated-at.bofh.it> <tjkOL-708-59@gated-at.bofh.it> <tjrwS-3LF-43@gated-at.bofh.it> <tjxCi-7Rw-23@gated-at.bofh.it> <tjNH3-2cd-7@gated-at.bofh.it> <tjTMt-6AE-3@gated-at.bofh.it> <tkv5o-7pV-25@gated-at.bofh.it> <tkvI6-7IV-13@gated-at.bofh.it> <tkXuF-2Iv-1@gated-at.bofh.it> <tkXO2-2Py-29@gated-at.bofh.it> |
| X-Original-To | Russell King - ARM Linux <linux@armlinux.org.uk>, Nicolas Dufresne <nicolas@ndufresne.ca> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=bOp4KfjrZG0CP5PXuJPBBbMANazoi8ooRDtfBPyaOXU=; b=gkbIbqwIxGU1IHx58lw0yb4ey74LDGcsLkVBOvZWOQpfcpWPLlgdK/6GrZUFLdHMAJ EKDisi6ZdbDXjj7/YYj77v7DoiTok+Y+rr1e+SQzHYSQPpj/d/Xtu+kuBvrdjVhi3o0C Jsf4sYsFz7ZJSP6jM+YCPPNI2jRYPVR7hnAI4xcDeG4K7aR5Q9VjdgrEQ6wDV5gmHYxY lvbG783vLsuNGuDW7LQ4kPBDWH1K4I6AaHpo/b9RgGFP2pxaCCJ0uJw7tg07pB1Qw5uP efGeBRnh1i58zjmePTEfthX4w1vj8X4UzILCTIt8MQjJ3Fs39HWa8covEZrXf/Wsea5p r3DQ== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=bOp4KfjrZG0CP5PXuJPBBbMANazoi8ooRDtfBPyaOXU=; b=Dxv5KnkvvMB6eAa/+vCQXgzS/LXVG4lmCLcrnECLESeJAIaAgkuFQ0p4LoVRHxoXph VOkaEdec4f1lI9eDo2HAaCSw/LCuawqSLNRsVWKfJvj6jF1bB2Ypjy0dSwvVwhC2pO6e SyPqcs7Ssf/LnloegBtHIReglM8uSA82DwMS8v3QKroBvodzTrNsoFBfcMY17+xw+Pwt ivXVgtLCxMRsLECNoJlEYTOqy836TzAs3VpFjL7K0AASo3uL5doxkko99tEkx4ApBfqB JpatmJgB7v0lysbdWw0Aoy+g4mPEYC9/CrGRdz+yDPPr+/SAEin74Nk4cP7MQkKwVDln C89Q== |
| X-Gm-Message-State | AMke39n92svPlb5GCjZImfrb5Lo6j3CjM9QdHMr+zs+WOiOavDy19GHYjWySKRtmiWHm5w== |
| X-Received | by 10.84.172.193 with SMTP id n59mr56332910plb.63.1489510218757; Tue, 14 Mar 2017 09:50:18 -0700 (PDT) |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 34 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Hans Verkuil <hverkuil@xs4all.nl>, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, mchehab@kernel.org, nick@shmanahar.org, markus.heiser@darmarIT.de, p.zabel@pengutronix.de, laurent.pinchart+renesas@ideasonboard.com, bparrot@ti.com, geert@linux-m68k.org, arnd@arndb.de, sudipm.mukherjee@gmail.com, minghsiu.tsai@mediatek.com, tiffany.lin@mediatek.com, jean-christophe.trotin@st.com, horms+renesas@verge.net.au, niklas.soderlund+renesas@ragnatech.se, robert.jarzmik@free.fr, songjun.wu@microchip.com, andrew-ct.chen@mediatek.com, gregkh@linuxfoundation.org, shuah@kernel.org, sakari.ailus@linux.intel.com, pavel@ucw.cz, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, devel@driverdev.osuosl.org |
| X-Original-Date | Tue, 14 Mar 2017 09:50:14 -0700 |
| X-Original-Message-ID | <8461e333-6867-eecc-db7a-9bf44a2baf18@gmail.com> |
| X-Original-References | <1489121599-23206-1-git-send-email-steve_longerbeam@mentor.com> <1489121599-23206-16-git-send-email-steve_longerbeam@mentor.com> <5b0a0e76-2524-4140-5ccc-380a8f949cfa@xs4all.nl> <ec05e6e0-79f2-2db2-bde9-4aed00d76faa@gmail.com> <6b574476-77df-0e25-a4d1-32d4fe0aec12@xs4all.nl> <5d5cf4a4-a4d3-586e-cd16-54f543dfcce9@gmail.com> <aa6a5a1d-18fd-8bed-a349-2654d2d1abe0@xs4all.nl> <20170313104538.GF21222@n2100.armlinux.org.uk> <1489508491.28116.8.camel@ndufresne.ca> <20170314164728.GQ21222@n2100.armlinux.org.uk> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1600704 |
Show key headers only | View raw
On 03/14/2017 09:47 AM, Russell King - ARM Linux wrote: > On Tue, Mar 14, 2017 at 12:21:31PM -0400, Nicolas Dufresne wrote: >> My main concern here based on what I'm reading, is that this driver is >> not even able to notice immediately that a produced frame was corrupted >> (because it's out of sync). From usability perspective, this is really >> bad. Can't the driver derive a clock from some irq and calculate for >> each frame if the timing was correct ? And if not mark the buffer with >> V4L2_BUF_FLAG_ERROR ? > One of the issues of measuring timing with IRQs is the fact that the > IRQ subsystem only allows one IRQ to run at a time. If an IRQ takes > a relatively long time to process, then it throws the timing of other > IRQs out. > > If you're going to decide that a buffer should be marked in error on > the basis of an interrupt arriving late, this can trigger spuriously. > > It wasn't that long ago that USB HID was regularly eating something > like 20ms of interrupt time... that's been solved, but that doesn't > mean all cases are solved - there are still interrupt handlers in the > kernel that are on the order of milliseconds to complete. > > Given the quality I observe of some USB serial devices (eg, running at > 115200 baud, but feeling like they deliver characters to userspace at > 9600 baud) I wouldn't be surprised if some USB serial drivers eat a lot > of IRQ time... and if so, all it'll take is to plug such a device in > to disrupt capture. > > That sounds way too fragile to me. exactly, hence the imx6 timer input capture support. Steve
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH v5 15/39] [media] v4l2: add a frame interval error event Nicolas Dufresne <nicolas@ndufresne.ca> - 2017-03-14 17:30 +0100
Re: [PATCH v5 15/39] [media] v4l2: add a frame interval error event Steve Longerbeam <slongerbeam@gmail.com> - 2017-03-14 17:50 +0100
Re: [PATCH v5 15/39] [media] v4l2: add a frame interval error event Sakari Ailus <sakari.ailus@iki.fi> - 2017-03-16 23:30 +0100
Re: [PATCH v5 15/39] [media] v4l2: add a frame interval error event Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-03-14 17:50 +0100
Re: [PATCH v5 15/39] [media] v4l2: add a frame interval error event Steve Longerbeam <slongerbeam@gmail.com> - 2017-03-14 18:00 +0100
csiph-web