Linux Framebuffer Layer development
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@nokia.com>
To: "ext Hiremath, Vaibhav" <hvaibhav@ti.com>
Cc: "Måns Rullgård" <mans@mansr.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"linux-fbdev@vger.kernel.org" <linux-fbdev@vger.kernel.org>
Subject: Re: OMAP:DSS: possible bug in WAITFOR_VSYNC ioctl
Date: Fri, 26 Nov 2010 12:55:39 +0000	[thread overview]
Message-ID: <20101126125539.GG8094@nokia.com> (raw)
In-Reply-To: <19F8576C6E063C45BE387C64729E739404BCCA401F@dbde02.ent.ti.com>

On Fri, Nov 26, 2010 at 05:38:11PM +0530, ext Hiremath, Vaibhav wrote:
> 
> > -----Original Message-----
> > From: Hiremath, Vaibhav
> > Sent: Friday, November 26, 2010 5:34 PM
> > To: 'Måns Rullgård'; linux-omap@vger.kernel.org
> > Subject: RE: OMAP:DSS: possible bug in WAITFOR_VSYNC ioctl
> > 
> > > -----Original Message-----
> > > From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-
> > > owner@vger.kernel.org] On Behalf Of Måns Rullgård
> > > Sent: Friday, November 26, 2010 2:09 PM
> > > To: linux-omap@vger.kernel.org
> > > Subject: Re: OMAP:DSS: possible bug in WAITFOR_VSYNC ioctl
> > >
> > > "Hiremath, Vaibhav" <hvaibhav@ti.com> writes:
> > >
> > > >> -----Original Message-----
> > > >> From: Ville Syrjälä [mailto:ville.syrjala@nokia.com]
> > > >> Sent: Wednesday, November 24, 2010 10:01 PM
> > > >> To: Hiremath, Vaibhav
> > > >> Cc: Tomi Valkeinen; linux-omap@vger.kernel.org
> > > >> Subject: Re: OMAP:DSS: possible bug in WAITFOR_VSYNC ioctl
> > > >>
> > > >> On Wed, Nov 24, 2010 at 03:39:44PM +0530, ext Hiremath, Vaibhav
> > wrote:
> > > >> >
> > > >> > > -----Original Message-----
> > > >> > > From: Tomi Valkeinen [mailto:tomi.valkeinen@nokia.com]
> > > >> > > Sent: Wednesday, November 24, 2010 2:28 PM
> > > >> > > To: Hiremath, Vaibhav
> > > >> > > Cc: linux-omap@vger.kernel.org
> > > >> > > Subject: Re: OMAP:DSS: possible bug in WAITFOR_VSYNC ioctl
> > > >> > >
> > > >> > > On Tue, 2010-11-23 at 23:46 +0530, ext Hiremath, Vaibhav wrote:
> > > >> > > > Hi,
> > > > <snip>
> > > >> >
> <snip..>
> > 
> > > > As far as WAITFORGO is concerned, I think GO bit concept is
> > > > something OMAP notion/term and doesn't make sense to standardize
> > > > it. Atleast I am not aware of any other architecture having GO bit.
> > >
> > > Naming is minor detail.  Feel free to suggest a better one.
> > >
> > [Hiremath, Vaibhav] If I fail to convince on this, then I think the only
> > left option is to make WAITFORGO ioctl generic. And put a disclaimer on
> > WAITFORVSYNC, it must not be used in panning use-case.
> > 
> > 
> [Hiremath, Vaibhav] Also let me bring another point here,
> 
> If I understand correctly most of the application libraries (DirectFB, X, etc..) does use FBIO_WAITFORVSYNC to synchronize with HW, and manage ping pong mechanism.

DirectFB uses it also for waiting for vsync.

> With this finding, in case of OMAP3 we have to use OMAPFB_WAITFORGO (breaking standard applications).

Applications using the standard fbdev API won't work with manual update
displays anyway. You need omapfb specific code to handle it so having
another small difference is not a big deal.

In DirectFB the that's trivial since there's already a simple omap
gfxdriver where you could override the default flip functionality with
WAITFORGO based stuff.

Or, as I said, you could add another standard ioctl and fix up userspace
to use it where appropriate and if the kernel driver supports it.

-- 
Ville Syrjälä

  reply	other threads:[~2010-11-26 12:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <19F8576C6E063C45BE387C64729E739404BC762E9A@dbde02.ent.ti.com>
     [not found] ` <1290589057.13243.22.camel@tubuntu>
     [not found]   ` <19F8576C6E063C45BE387C64729E739404BCCA3A55@dbde02.ent.ti.com>
     [not found]     ` <20101124163100.GB5681@nokia.com>
2010-11-25  6:53       ` OMAP:DSS: possible bug in WAITFOR_VSYNC ioctl Hiremath, Vaibhav
     [not found]         ` <yw1xeia81nts.fsf@unicorn.mansr.com>
2010-11-26 12:20           ` Hiremath, Vaibhav
2010-11-26 12:55             ` Ville Syrjälä [this message]
2010-11-26 13:11               ` Felipe Contreras
2010-11-26 13:12               ` Hiremath, Vaibhav
2010-11-30  6:34               ` Paul Mundt
2010-11-30  6:39                 ` Paul Mundt
2010-11-30  6:59                   ` Hiremath, Vaibhav
2010-11-30 13:32                     ` Tomi Valkeinen
2010-12-01 14:43                       ` Jonghun Han
2010-12-01 14:58                         ` Måns Rullgård
2010-12-17  9:11                       ` Hiremath, Vaibhav
2010-11-30  6:58                 ` Hiremath, Vaibhav

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=20101126125539.GG8094@nokia.com \
    --to=ville.syrjala@nokia.com \
    --cc=hvaibhav@ti.com \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=mans@mansr.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