All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: "Shilimkar, Santosh" <santosh.shilimkar@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"Pandita, Vikram" <vikram.pandita@ti.com>
Subject: Re: [PATCH] ARM: OMAP3: DMA: Fix for sDMA Errata 1.113
Date: Wed, 1 Oct 2008 15:12:03 +0300	[thread overview]
Message-ID: <20081001121202.GH15017@atomide.com> (raw)
In-Reply-To: <EAF47CD23C76F840A9E7FCE10091EFAB028C45E9AD@dbde02.ent.ti.com>

* Shilimkar, Santosh <santosh.shilimkar@ti.com> [081001 14:09]:
> > -----Original Message-----
> > From: Shilimkar, Santosh 
> > Sent: Thursday, September 25, 2008 3:31 PM
> > To: linux-omap@vger.kernel.org
> > Cc: Pandita, Vikram
> > Subject: [PATCH] ARM: OMAP3: DMA: Fix for sDMA Errata 1.113
> > 
> > From: Santosh Shilimkar <santosh.shilimkar@ti.com>
> > 
> > SDMA channel is not disabled after transaction error. So 
> > explicitly disable it.
> > 
> > Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
> > Acked By : Nishant kamat <nskamat@ti.com>
> > ---
> > Index: linux-omap-2.6/arch/arm/plat-omap/dma.c
> > ===================================================================
> > --- linux-omap-2.6.orig/arch/arm/plat-omap/dma.c 2008-09-23 16:41:23.000000000 +0530
> > +++ linux-omap-2.6/arch/arm/plat-omap/dma.c	2008-09-25 14:54:00.162059260 +0530
> > @@ -1849,9 +1849,22 @@ static int omap2_dma_handle_ch(int ch)
> >  		printk(KERN_INFO
> >  		       "DMA synchronization event drop occurred 
> > with device "
> >  		       "%d\n", dma_chan[ch].dev_id);
> > -	if (unlikely(status & OMAP2_DMA_TRANS_ERR_IRQ))
> > +	if (unlikely(status & OMAP2_DMA_TRANS_ERR_IRQ)) {
> >  		printk(KERN_INFO "DMA transaction error with 
> > device %d\n",
> >  		       dma_chan[ch].dev_id);
> > +		if (cpu_class_is_omap2()) {
> > +			/* Errata: sDMA Channel is not disabled
> > +			 * after a transaction error. So we explicitely
> > +			 * disable the channel
> > +			 */
> > +			u32 ccr;
> > +
> > +			ccr = dma_read(CCR(ch));
> > +			ccr &= ~OMAP_DMA_CCR_EN;
> > +			dma_write(ccr, CCR(ch));
> > +			dma_chan[ch].flags &= ~OMAP_DMA_ACTIVE;
> > +		}
> > +	}
> >  	if (unlikely(status & OMAP2_DMA_SECURE_ERR_IRQ))
> >  		printk(KERN_INFO "DMA secure error with device %d\n",
> >  		       dma_chan[ch].dev_id);
> 
> Tony,
> What about this patch ?--

Looks OK, I'll add it and queue it up for upstream too.

Tony

  reply	other threads:[~2008-10-01 12:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-01 11:09 [PATCH] ARM: OMAP3: DMA: Fix for sDMA Errata 1.113 Shilimkar, Santosh
2008-10-01 12:12 ` Tony Lindgren [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-09-25 10:01 Shilimkar, Santosh

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=20081001121202.GH15017@atomide.com \
    --to=tony@atomide.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=santosh.shilimkar@ti.com \
    --cc=vikram.pandita@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.