From: Tony Lindgren <tony@atomide.com>
To: Nathan Monson <nmonson@gmail.com>
Cc: "Woodruff, Richard" <r-woodruff2@ti.com>,
"linux-omap@vger.kernel.org List" <linux-omap@vger.kernel.org>,
"TK, Pratheesh Gangadhar" <pratheesh@ti.com>
Subject: Re: omapfb: help from userspace
Date: Thu, 9 Oct 2008 15:43:58 +0300 [thread overview]
Message-ID: <20081009124357.GF26230@atomide.com> (raw)
In-Reply-To: <B85A65D85D7EB246BE421B3FB0FBB59301B0108CAB@dbde02.ent.ti.com>
[-- Attachment #1: Type: text/plain, Size: 1901 bytes --]
* TK, Pratheesh Gangadhar <pratheesh@ti.com> [081009 09:20]:
> >The need for this has been discussed on this list a few times in the past. >Not having it is a bug to me for OMAP3.
> >
> >There shouldn't really be any performance side effects the way it is being >used.
>
> I agree, I did not notice any performance impact - we are using this setting for couple of months now without any problem. But there are some future compatibility concerns in below thread - it should be fine for OMAP3 though
>
> http://www.mail-archive.com/linux-omap@vger.kernel.org/msg02949.html
>
> > Let's go back to having a strongly ordered memory model. Please.
>
> On pre-ARMv6, updates to CPSR are guaranteed to take place in program
> order with a strongly-ordered memory access. This is still true on
> ARMv6/v7 for backward compatibility but the feature is deprecated and it
> might not be true for future architecture versions. At some point
> barriers might be needed.
Nathan, good to hear that the SO mode helps. But since you seem to
have it easily reproducable..
Could you try the following patch based on RMK's earlier patch
without the strongly ordered patch and see if that makes any
difference?
If this patch alone does not do anything, maybe try reading back
something from the dsp interrupt registers after write also
in the dsp interrupt handler?
Also you might want to read through the thread linked in the
patch description.
And, if that still does not work, I'm suspecting that in some cases
write-read is not enough, and only write-write ensures that it gets
posted. Some ARM docs say that writes are only posted relative to
other writes, but I don't know if it can be really that way.
At least we have at least one hack like that in the
drivers/mmc/host/omap.c.
Anyways, it would be nice to solve this issue for good. The problem
has been making it easily reproducable.
Thanks,
Tony
[-- Attachment #2: irq-read.patch --]
[-- Type: text/x-diff, Size: 1056 bytes --]
>From 5732ab12201cff25f036e1e20dc23fdb779c8589 Mon Sep 17 00:00:00 2001
From: Tony Lindgren <tony@atomide.com>
Date: Thu, 9 Oct 2008 15:25:16 +0300
Subject: [PATCH] Read INTC_REVISION after write to ensure write is posted
Based on Russell's earlier patch at:
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg02904.html
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c
index 4ffb4f1..3ae3c8c 100644
--- a/arch/arm/mach-omap2/irq.c
+++ b/arch/arm/mach-omap2/irq.c
@@ -64,6 +64,7 @@ static u32 intc_bank_read_reg(struct omap_irq_bank *bank, u16 reg)
static void omap_ack_irq(unsigned int irq)
{
intc_bank_write_reg(0x1, &irq_banks[0], INTC_CONTROL);
+ intc_bank_read_reg(&irq_banks[0], INTC_REVISION);
}
static void omap_mask_irq(unsigned int irq)
@@ -73,6 +74,7 @@ static void omap_mask_irq(unsigned int irq)
irq &= (IRQ_BITS_PER_REG - 1);
intc_bank_write_reg(1 << irq, &irq_banks[0], INTC_MIR_SET0 + offset);
+ intc_bank_read_reg(&irq_banks[0], INTC_REVISION);
}
static void omap_unmask_irq(unsigned int irq)
next prev parent reply other threads:[~2008-10-09 12:44 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-08 18:36 omapfb: help from userspace Nathan Monson
2008-10-08 20:21 ` Nathan Monson
2008-10-08 20:37 ` Woodruff, Richard
2008-10-09 6:20 ` TK, Pratheesh Gangadhar
2008-10-09 12:43 ` Tony Lindgren [this message]
2008-10-09 17:55 ` Nathan Monson
2008-10-15 11:57 ` Paul Walmsley
2008-10-15 12:04 ` Lauri Leukkunen
2008-10-16 6:49 ` Nathan Monson
2008-10-16 20:57 ` Tony Lindgren
2008-10-16 22:07 ` Nathan Monson
2008-10-16 22:10 ` Tony Lindgren
2008-10-16 22:15 ` Nathan Monson
2008-10-16 22:52 ` Tony Lindgren
2008-10-16 22:59 ` Tony Lindgren
2008-10-16 23:02 ` Tony Lindgren
2008-10-16 23:20 ` Nathan Monson
2008-10-16 23:24 ` Tony Lindgren
2008-10-17 0:17 ` Tony Lindgren
-- strict thread matches above, loose matches on Subject: below --
2008-09-15 14:38 Felipe Contreras
2008-09-15 20:24 ` Felipe Contreras
2008-09-15 20:46 ` Måns Rullgård
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=20081009124357.GF26230@atomide.com \
--to=tony@atomide.com \
--cc=linux-omap@vger.kernel.org \
--cc=nmonson@gmail.com \
--cc=pratheesh@ti.com \
--cc=r-woodruff2@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox