public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@nokia.com>
To: rick@efn.org
Cc: imre.deak@nokia.com, linux-omap@vger.kernel.org
Subject: Re: Fix for dispc's error "omapfb omapfb: irq error status 4020"
Date: Thu, 13 Nov 2008 16:06:32 +0200	[thread overview]
Message-ID: <1226585192.32348.3.camel@tubuntu> (raw)
In-Reply-To: <E1KyYMw-0003Ob-5e@amazonia.comcast.net>

Hi,

On Fri, 2008-11-07 at 12:55 -0800, ext Rick Bronson wrote:
> Folks,
> 
>   Please take a look at this change to drivers/video/omap/dispc.c.  It
> addresses a problem seen on some boots of OMAP's.  On about 1 in 30
> boots one gets an endless stream of interrupts from the
> DISPC_IRQ_SYNC_LOST bit in the DISPC_IRQSTATUS register.  The
> following messages are printed.
> 
>  omapfb omapfb: irq error status 4020

Can you try the patch below if it fixes this problem for you? On my new
display subsystem adding a sleep between enabling clocks and doing the
soft reset removed the problem.

I tried a bit with different sleep times. With 1ms sleep I still got
sync losts. With 10ms I didn't, but I went safe and put 40ms.

 Tomi



diff --git a/drivers/video/omap/dispc.c b/drivers/video/omap/dispc.c
index c140c21..bdfda0c 100644
--- a/drivers/video/omap/dispc.c
+++ b/drivers/video/omap/dispc.c
@@ -24,6 +24,7 @@
 #include <linux/vmalloc.h>
 #include <linux/clk.h>
 #include <linux/io.h>
+#include <linux/delay.h>
 
 #include <mach/sram.h>
 #include <mach/omapfb.h>
@@ -1402,6 +1403,10 @@ static int omap_dispc_init(struct omapfb_device *fbdev, int ext_mode,
                /* Reset monitoring works only w/ the 54M clk */
                enable_digit_clocks(1);
 
+               /* We need to wait here a bit, otherwise we sometimes start to get
+                * synclost errors. */
+               msleep(40);
+
                /* Soft reset */
                MOD_REG_FLD(DISPC_SYSCONFIG, 1 << 1, 1 << 1);



  parent reply	other threads:[~2008-11-13 14:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-07 20:55 Fix for dispc's error "omapfb omapfb: irq error status 4020" Rick Bronson
2008-11-07 21:37 ` Koen Kooi
2008-11-10  8:30 ` Tomi Valkeinen
2008-11-10  8:39   ` Hiremath, Vaibhav
2008-11-13 14:06 ` Tomi Valkeinen [this message]
2008-11-26 17:32   ` Tony Lindgren
2009-01-09 21:57   ` Grazvydas Ignotas
  -- strict thread matches above, loose matches on Subject: below --
2008-11-11 17:25 Rick Bronson

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=1226585192.32348.3.camel@tubuntu \
    --to=tomi.valkeinen@nokia.com \
    --cc=imre.deak@nokia.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=rick@efn.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