linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	linux-media@vger.kernel.org,
	Antoine Reversat <a.reversat@gmail.com>
Subject: Re: [PATCH v2] omap3isp: Use monotonic timestamps for statistics buffers
Date: Mon, 01 Oct 2012 09:00:50 -0300	[thread overview]
Message-ID: <506985F2.1020604@redhat.com> (raw)
In-Reply-To: <5064ADCE.3000708@iki.fi>

Em 27-09-2012 16:49, Sakari Ailus escreveu:
> Hi Mauro,
> 
> Mauro Carvalho Chehab wrote:
>> Em Fri, 14 Sep 2012 23:57:48 +0200
>> Laurent Pinchart <laurent.pinchart@ideasonboard.com> escreveu:
...
>>>   struct omap3isp_stat_data {
>>> -    struct timeval ts;
>>> +    struct timespec ts;
>>
>> NACK. That breaks userspace API, as this structure is part of an ioctl.
>>
>> It is too late to touch here. Please keep timeval. It is ok to fill it with
>> a mononotic time, but replacing it is an API breakage.
> 
> I beg to present a differing opinion.
> 
> The timestamp that has been taken from a realtime clock has NOT been useful to begin with in this context: the OMAP3ISP driver has used monotonic time on video buffers since the very beginning of its existence in mainline kernel. As no-one has complained about this --- except Antoine very recently --- I'm pretty certain we wouldn't be breaking any application by changing this. The statistics timestamp is only useful when it's comparable to other timestamps (from video buffers and events), which this patch achieves.

Technically, the only gain here would be to improve the precision from microsseconds
to nanosseconds.

Breaking the API due to that could only be justified if you have really fast
sensors that would be able to take more than one picture at the 1 microssecond
period of time.

Regards,
Mauro




      parent reply	other threads:[~2012-10-01 12:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-14 21:57 [PATCH v2] omap3isp: Use monotonic timestamps for statistics buffers Laurent Pinchart
2012-09-15  6:32 ` Sakari Ailus
     [not found] ` <20120927135233.3acd00a5@redhat.com>
2012-09-27 19:49   ` Sakari Ailus
2012-09-27 23:26     ` Laurent Pinchart
2012-10-01 12:00     ` Mauro Carvalho Chehab [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=506985F2.1020604@redhat.com \
    --to=mchehab@redhat.com \
    --cc=a.reversat@gmail.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=sakari.ailus@iki.fi \
    /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).