public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] sh: multiple vectors per irq - sh7760
Date: Mon, 11 May 2009 10:49:04 +0000	[thread overview]
Message-ID: <20090511104904.GA12104@linux-sh.org> (raw)
In-Reply-To: <49B0AF53.9090007@renesas.com>

On Mon, May 11, 2009 at 12:51:43PM +0200, Manuel Lauss wrote:
> On Mon, May 11, 2009 at 07:32:03PM +0900, Magnus Damm wrote:
> > So with this patch all DMA channels must use a single linux interrupt.
> > Requesting interrupt 34 should be ok in this case (the first DMAC
> > vector with value 0x640) but all other interrupt sources are disabled.
> > Interrupt 34 becomes a shared interrupt. We did similar changes for a
> > bunch of other processor models earlier this year, but we somehow
> > missed sh7760 then. Or ignored may be a better word, this since
> > there's no sh7760 hardware on my desk. =)
> 
> Disabling DMAC solves this.  The TMU patch also seems to work fine.
>  
>  
> > If you have a little time to spend on this, then feel free to test by
> > #ifdefing out various INTC_VECT() to check which vector that makes the
> > boot fail. A good start may be to disable all DMA users and see if
> > that helps.
> 
> I'll try to figure it out if I can find some more free time.
> 
Try with this:

---

diff --git a/arch/sh/drivers/dma/Kconfig b/arch/sh/drivers/dma/Kconfig
index 666713a..63e9dd3 100644
--- a/arch/sh/drivers/dma/Kconfig
+++ b/arch/sh/drivers/dma/Kconfig
@@ -16,7 +16,8 @@ config SH_DMA_IRQ_MULTI
 		     CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7750R || \
 		     CPU_SUBTYPE_SH7751R || CPU_SUBTYPE_SH7091  || \
 		     CPU_SUBTYPE_SH7763  || CPU_SUBTYPE_SH7764  || \
-		     CPU_SUBTYPE_SH7780  || CPU_SUBTYPE_SH7785
+		     CPU_SUBTYPE_SH7780  || CPU_SUBTYPE_SH7785  || \
+		     CPU_SUBTYPE_SH7760
 
 config NR_ONCHIP_DMA_CHANNELS
 	int

  parent reply	other threads:[~2009-05-11 10:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-06  5:06 [PATCH] sh: multiple vectors per irq - sh7763 Nobuhiro Iwamatsu
2009-03-06  5:15 ` Paul Mundt
2009-05-11  9:01 ` [PATCH] sh: multiple vectors per irq - sh7760 Magnus Damm
2009-05-11  9:44 ` Manuel Lauss
2009-05-11  9:56 ` Paul Mundt
2009-05-11  9:59 ` Magnus Damm
2009-05-11 10:15 ` Manuel Lauss
2009-05-11 10:32 ` Magnus Damm
2009-05-11 10:34 ` Magnus Damm
2009-05-11 10:49 ` Paul Mundt [this message]
2009-05-11 10:51 ` Manuel Lauss
2009-05-11 10:55 ` Magnus Damm
2009-05-11 12:26 ` Manuel Lauss

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=20090511104904.GA12104@linux-sh.org \
    --to=lethal@linux-sh.org \
    --cc=linux-sh@vger.kernel.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