public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Eugene Surovegin <ebs@ebshome•net>
To: Chris Dumoulin <cdumoulin@ics-ltd•com>
Cc: linuxppc-embedded@ozlabs•org
Subject: Re: Interrupt occurs but UIC0 MSR is still 0
Date: Thu, 15 Jun 2006 19:02:21 -0700	[thread overview]
Message-ID: <20060616020221.GA3366@gate.ebshome.net> (raw)
In-Reply-To: <4491D34B.4060201@ics-ltd.com>

On Thu, Jun 15, 2006 at 05:38:19PM -0400, Chris Dumoulin wrote:
> Hi All,
> I'm working with a 2.6 linux kernel in a board with a PPC405 in a Virtex 
> II Pro FPGA. I'm trying to generate interrupts and handle them in a 
> device driver that I've written.
> Here is the sequence of events that happen currently:
> 1. I generate an interrupt by setting registers in an interrupt 
> controller we've got in the FPGA (it's a Xilinx LogicCORE OPB Interrupt 
> Controller).
> 2. The function do_IRQ, in arch/powerpc/kernel/irq.c, is called.
> 3. ppc_md.get_irq is called from do_IRQ.
> 4. ppc_md.get_irq points to ppc4xx_pic_get_irq in 
> arch/ppc/syslib/ppc4xx_pic.c.
> 5. ppc4xx_pic_get_irq reads the MSR from UIC0 to determine the IRQ. In 
> my case, the MSR is all zero, so ppc4xx_pic_get_irq returns -1.
> 6. After this, we return from the interrupt, and do_IRQ is called again 
> and again, going through the same steps indefinitely.

I don't think ppc4xx_pic.c is correct file for Xilinx Virtex II Pro. 
You should be using xilinx_pic.c probably.

-- 
Eugene

  reply	other threads:[~2006-06-16  2:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-15 21:38 Interrupt occurs but UIC0 MSR is still 0 Chris Dumoulin
2006-06-16  2:02 ` Eugene Surovegin [this message]
2006-06-16 14:38   ` Chris Dumoulin

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=20060616020221.GA3366@gate.ebshome.net \
    --to=ebs@ebshome$(echo .)net \
    --cc=cdumoulin@ics-ltd$(echo .)com \
    --cc=linuxppc-embedded@ozlabs$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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