From: "Måns Rullgård" <mans@mansr.com>
To: Jonghun Han <jonghun79.han@gmail.com>
Cc: Tomi Valkeinen <tomi.valkeinen@nokia.com>,
"ext Hiremath, Vaibhav" <hvaibhav@ti.com>,
Paul Mundt <lethal@linux-sh.org>,
Ville Syrj?l? <ville.syrjala@nokia.com>,
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: Wed, 01 Dec 2010 14:58:43 +0000 [thread overview]
Message-ID: <yw1xoc95zgik.fsf@unicorn.mansr.com> (raw)
In-Reply-To: <AANLkTi=R9KO5V1i8wru6TLMq-k5skr1hfZa43MgS=9HS@mail.gmail.com> (Jonghun Han's message of "Wed, 1 Dec 2010 23:43:50 +0900")
Jonghun Han <jonghun79.han@gmail.com> writes:
> Tomi Valkeinen wrote:
>
> 2010/11/30 Tomi Valkeinen <tomi.valkeinen@nokia.com>:
>> On Tue, 2010-11-30 at 12:29 +0530, ext Hiremath, Vaibhav wrote:
>>> > -----Original Message-----
>>> > From: Paul Mundt [mailto:lethal@linux-sh.org]
>>> > Sent: Tuesday, November 30, 2010 12:10 PM
>>> > To: Ville Syrj?l?
>>> > Cc: Hiremath, Vaibhav; M?ns Rullg?rd; linux-omap@vger.kernel.org; linux-
>>> > fbdev@vger.kernel.org
>>> > Subject: Re: OMAP:DSS: possible bug in WAITFOR_VSYNC ioctl
>>> >
>>> > On Tue, Nov 30, 2010 at 03:34:40PM +0900, Paul Mundt wrote:
>
> <snip>
>
>> OMAP has user writeable shadow registers and hidden real registers for
>> display controller. The shadow registers are latched to real registers
>> on VFP, but only if GO bit has been set. The GO bit is cleared by the HW
>> when latching has been done.
>>
>> If the GO bit is set, we cannot touch the shadow registers because we
>> don't know when the VFP will happen. That's why there's additionally a
>> SW cache for the config, so that we don't need to block when the GO bit
>> is up and the user wants to change the config. The driver "flushes" the
>> SW config to real registers in VSYNC interrupt handler.
>
> Does the driver flush the config to real register directly not a
> shadow register in VSYNC ISR? Does it mean display controller use
> the config flushed to the real register from the VSYNC ?
The hardware latches the shadow registers to the active registers at
start of VFP.
> I don't know OMAP in detail. But as I know other SoCs also work like it.
>
> Can Go bit is cleared by SW?
No.
> And does each overlay(FB) have its own Go bit?
No. There is one GO bit per video output, i.e. one each for LCD and TV.
--
Måns Rullgård
mans@mansr.com
next prev parent reply other threads:[~2010-12-01 14:58 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ä
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 [this message]
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=yw1xoc95zgik.fsf@unicorn.mansr.com \
--to=mans@mansr.com \
--cc=hvaibhav@ti.com \
--cc=jonghun79.han@gmail.com \
--cc=lethal@linux-sh.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=tomi.valkeinen@nokia.com \
--cc=ville.syrjala@nokia.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