public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: "Taneja, Archit" <archit@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH] OMAP: DSS2: DSI: Introduce sync_vc functions
Date: Thu, 24 Mar 2011 10:38:31 +0200	[thread overview]
Message-ID: <1300955911.2806.38.camel@deskari> (raw)
In-Reply-To: <4D8B02A1.9090907@ti.com>

On Thu, 2011-03-24 at 03:36 -0500, Taneja, Archit wrote:
> Hi,
> 
> On Thursday 24 March 2011 01:18 PM, Valkeinen, Tomi wrote:

> > So how to solve that...
> >
> > Two ways come to my mind:
> > - Track sent BTAs in dsi.c. Every time we send a packet, reset the
> > counter. Every time we send a BTA, increase the counter. Thus at frame
> > update we would know if we need to send an extra BTA.
> >
> > - Always reset the BTA "status" from the panel at the beginning of frame
> > transfer. This could be done by sending a null packet.
> >
> > The second one is probably simpler and more failsafe as there's no state
> > stored. The first one (as well as the current system) would go wrong if
> > something strange happens, like the panel resets. However, the second
> > one introduces some overhead, as we need to send a null packet and two
> > BTAs (versus one BTA) for every frame. It's probably negligible, though.
> 
> Okay. I agree the second one is a better option. I have a couple of 
> queries though:
> -The second BTA should be sent only after we get the Ack for the first 
> one, i.e, we need to use bta_sync() for the first BTA, right?

True.

> -We shouldn't send null packets and the 2 BTAs at all if we aren't using 
> Automatic TE mode, is this correct?

If by automatic TE mode you mean the DSI TEE trigger, then yes. There's
currently check for the dsi.te_enabled in dsi_update_screen_dispc() for
that.

> -Whose job should it be to send the null packet and the 2 BTAs, the dsi 
> driver or the panel driver?

I'd say the dsi driver. It currently sends the one BTA in
dsi_update_screen_dispc(). Adding one null packet and a BTA there should
be quite simple.

 Tomi



      reply	other threads:[~2011-03-24  8:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-23  9:59 [PATCH] OMAP: DSS2: DSI: Introduce sync_vc functions archit
2011-03-24  7:48 ` Tomi Valkeinen
2011-03-24  8:36   ` Archit Taneja
2011-03-24  8:38     ` Tomi Valkeinen [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=1300955911.2806.38.camel@deskari \
    --to=tomi.valkeinen@ti.com \
    --cc=archit@ti.com \
    --cc=linux-omap@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