All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Cc: rick@efn.org, imre.deak@nokia.com, linux-omap@vger.kernel.org
Subject: Re: Fix for dispc's error "omapfb omapfb: irq error status 4020"
Date: Wed, 26 Nov 2008 09:32:04 -0800	[thread overview]
Message-ID: <20081126173203.GP11997@atomide.com> (raw)
In-Reply-To: <1226585192.32348.3.camel@tubuntu>

* Tomi Valkeinen <tomi.valkeinen@nokia.com> [081113 06:06]:
> 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.

Here's my canned fbdev reply for this tread too:

Guys, please take this discussion to fbdev mailing list and cc
linux-omap list. I'm not going to push any more omap fbdev patches,
so please send the patches against mainline kernel to fbdev list.

Regards,

Tony

> 
>  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);
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2008-11-26 17:32 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
2008-11-26 17:32   ` Tony Lindgren [this message]
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=20081126173203.GP11997@atomide.com \
    --to=tony@atomide.com \
    --cc=imre.deak@nokia.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=rick@efn.org \
    --cc=tomi.valkeinen@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 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.