From: archit taneja <archit@ti.com>
To: "Valkeinen, Tomi" <tomi.valkeinen@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"Cousson, Benoit" <b-cousson@ti.com>
Subject: Re: [PATCH] OMAP: DSS2: Have separate irq handlers for DISPC and DSI
Date: Fri, 18 Feb 2011 16:35:25 +0530 [thread overview]
Message-ID: <4D5E5275.4020002@ti.com> (raw)
In-Reply-To: <1298023223.24062.24.camel@deskari>
Hi,
On Friday 18 February 2011 03:30 PM, Valkeinen, Tomi wrote:
<snip>
> Well, if DSS_IRQSTATUS doesn't work as I described above, in the worst
> case we will just run a few more lines of code in the irq handler, as we
> check for registered interrupts. But that would only happen if either
> DISPC or DSI has no interrupts enabled, which is... never?
>
> So I think it should work fine anyway.
>
> Tomi
I tried to read IRQSTATUS registers in 2 the cases:
With DSS_IRQSTATUS:
[ 51.166503] DSS_IRQSTATUS 2 -> DSI
[ 51.170135] DSS_IRQSTATUS 2 -> DSI
[ 51.173095] DSI_IRQSTATUS 20001 -> TE_TRIGGER | VC0_IRQ
[ 51.208282] DSS_IRQSTATUS 1 -> DISPC
[ 51.211242] DISPC_IRQSTATUS 81
[ 51.214508] DSS_IRQSTATUS 2 -> FRAMEDONE | GFX_END_WINDOW
[ 51.217437] DSI_IRQSTATUS 20001 -> TE_TRIGGER | VC0_IRQ
The cat /proc/interrupts increments by 2 for every manual update call.
Without DSS_IRQSTATUS:
Doing a ./upd (from omapfb-tests) on 3430sdp with Taal:
[ 77.060668] DISPC irqstatus 0
[ 77.064270] DSI irqstatus 20001-> TE_TRIGGER | VC0_IRQ
[ 77.104888] DISPC irqstatus 81 -> FRAMEDONE | GFX_END_WINDOW
[ 77.108154] DSI irqstatus 20001 -> TE_TRIGGER | VC0_IRQ
VC0_IRQSTATUS came as 0x24 -> BTA_ACK | PACKET_SENT
The cat /proc/interrupts increments by 2 for every manual update call as
before.
One strange thing I see though is the increment with and without printks
in the irq handler in both the cases. I always see increments of 2 when
I put prints. I see 3 when I don't. That's a bit peculiar.
Behavior looks as expected. I guess we can go without DSS_IRQSTATUS
then. Should I send out a patch? Also, should we remove DSS_IRQSTATUS in
totality from the code now?
Archit
next prev parent reply other threads:[~2011-02-18 11:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-17 14:25 [PATCH] OMAP: DSS2: Have separate irq handlers for DISPC and DSI Archit Taneja
2011-02-18 9:10 ` Valkeinen, Tomi
2011-02-18 9:34 ` archit taneja
2011-02-18 9:45 ` Turquette, Mike
2011-02-18 9:50 ` Tomi Valkeinen
2011-02-18 10:25 ` archit taneja
2011-02-18 10:00 ` Tomi Valkeinen
2011-02-18 11:05 ` archit taneja [this message]
2011-02-18 11:11 ` Tomi Valkeinen
-- strict thread matches above, loose matches on Subject: below --
2011-02-21 6:00 Archit Taneja
2011-02-21 6:03 ` archit taneja
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=4D5E5275.4020002@ti.com \
--to=archit@ti.com \
--cc=b-cousson@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=tomi.valkeinen@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.