linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Irq 0 problem
@ 2002-09-06 17:32 Dayton, Dean
  2002-09-07 15:29 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Dayton, Dean @ 2002-09-06 17:32 UTC (permalink / raw)
  To: linuxppc-embedded


I have been trying to port Linux 2.4.18-pre2 to the MPC8266ADS board. I
grabbed the SCC uart.c from 2.5.31.

The kernel loads and runs, the ramdisk is uncompressed and mounted. Then I
take an interrupt with SIVEC=0. SIVEC is now 0 everytime it is read, this
causes do_IRQ() to go into an endless loop.

I modified the code as follows:

 int do_IRQ()
 {
	...
	for (;;)
	{
		irq=get_irq()
-		if (irq >= 0)
+		if (irq > 0)
			ppc_irq_dispatch_handler()
		else
		...
	}
 }

This appears to solve (or at least hide) my problem. Has anyone else run
into this? I think it is occuring during the open of the console port (SCC
1). I ran into the same thing while trying to run on an EST8260 using an SMC
as the console. Am I simply covering up a problem with a misconfigured
device driver?

On another note, is anyone working on PCI support for an 8265/8266? That's
my next task.

Thanks
Dean
-------------
Dean Dayton
System Architect - Applied Innovation Inc.
(614)923-1174
deand@aiinet.com


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Irq 0 problem
  2002-09-06 17:32 Irq 0 problem Dayton, Dean
@ 2002-09-07 15:29 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2002-09-07 15:29 UTC (permalink / raw)
  To: Dayton, Dean; +Cc: linuxppc-embedded


On Fri, Sep 06, 2002 at 01:32:12PM -0400, Dayton, Dean wrote:

> I have been trying to port Linux 2.4.18-pre2 to the MPC8266ADS board. I
> grabbed the SCC uart.c from 2.5.31.

Why did you grab a file from 2.5.31?  And is there any reason you aren't
using 2.4.18 final or 2.4.19 final instead ?

> The kernel loads and runs, the ramdisk is uncompressed and mounted. Then I
> take an interrupt with SIVEC=0. SIVEC is now 0 everytime it is read, this
> causes do_IRQ() to go into an endless loop.
[snip]
> -		if (irq >= 0)
> +		if (irq > 0)
> 			ppc_irq_dispatch_handler()
[snip]
> This appears to solve (or at least hide) my problem. Has anyone else run
> into this? I think it is occuring during the open of the console port (SCC
> 1). I ran into the same thing while trying to run on an EST8260 using an SMC
> as the console. Am I simply covering up a problem with a misconfigured
> device driver?

I think the problem is you're using a kernel which doesn't have the 8260
irq function updated to return -1 when there's nothing pending..  Can
you verify that this is a problem with 2.4.19 or 2.4.18 ?

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-07 15:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-06 17:32 Irq 0 problem Dayton, Dean
2002-09-07 15:29 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).