linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* ARCH=powerpc: IRQ numbers change mysteriously
@ 2006-10-23 16:41 Fredrik Roubert
  2006-10-24  7:20 ` Li Yang-r58472
  0 siblings, 1 reply; 2+ messages in thread
From: Fredrik Roubert @ 2006-10-23 16:41 UTC (permalink / raw)
  To: linuxppc-embedded

Hi!

On my MPC8439 based board, running Linux 2.6.18 with ARCH=powerpc, the
IRQ's for the I2C behave in a for me mysterious way.

In my DTS file, I have the following:


i2c@3000 {
	device_type = "i2c";
	compatible = "fsl-i2c";
	reg = <3000 100>;
	interrupts = <e 8>;
	interrupt-parent = <&/soc8349@ff400000/pic@700>;
	dfsrr;
};

i2c@3100 {
	device_type = "i2c";
	compatible = "fsl-i2c";
	reg = <3000 100>;
	interrupts = <f 8>;
	interrupt-parent = <&/soc8349@ff400000/pic@700>;
	dfsrr;
};


But when I boot the system and cat /proc/interrupts, the output says:


18:         61   IPIC   Level     i2c-mpc
19:          0   IPIC   Level     i2c-mpc


This doesn't make sense to me. Why are the IRQ numbers changed? They are
still adjacent, so it seems to be some logic to the change. Does anyone
know what this is?

Cheers // Fredrik Roubert

-- 
Barco Medical Imaging          |  +32 56 233549
http://www.barco.com/medical/  |  fredrik.roubert@barco.com

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

* RE: ARCH=powerpc: IRQ numbers change mysteriously
  2006-10-23 16:41 ARCH=powerpc: IRQ numbers change mysteriously Fredrik Roubert
@ 2006-10-24  7:20 ` Li Yang-r58472
  0 siblings, 0 replies; 2+ messages in thread
From: Li Yang-r58472 @ 2006-10-24  7:20 UTC (permalink / raw)
  To: Fredrik Roubert, linuxppc-embedded

The irq number on powerpc ARCH is now a virtual number.  This change was
introduced by Ben's irq mapping change in early 2.6.18-rc.

- Leo

> -----Original Message-----
> From: linuxppc-embedded-bounces+leoli=3Dfreescale.com@ozlabs.org
> [mailto:linuxppc-embedded-bounces+leoli=3Dfreescale.com@ozlabs.org] On
Behalf Of
> Fredrik Roubert
> Sent: Tuesday, October 24, 2006 12:41 AM
> To: linuxppc-embedded@ozlabs.org
> Subject: ARCH=3Dpowerpc: IRQ numbers change mysteriously
>=20
> Hi!
>=20
> On my MPC8439 based board, running Linux 2.6.18 with ARCH=3Dpowerpc, =
the
> IRQ's for the I2C behave in a for me mysterious way.
>=20
> In my DTS file, I have the following:
>=20
>=20
> i2c@3000 {
> 	device_type =3D "i2c";
> 	compatible =3D "fsl-i2c";
> 	reg =3D <3000 100>;
> 	interrupts =3D <e 8>;
> 	interrupt-parent =3D <&/soc8349@ff400000/pic@700>;
> 	dfsrr;
> };
>=20
> i2c@3100 {
> 	device_type =3D "i2c";
> 	compatible =3D "fsl-i2c";
> 	reg =3D <3000 100>;
> 	interrupts =3D <f 8>;
> 	interrupt-parent =3D <&/soc8349@ff400000/pic@700>;
> 	dfsrr;
> };
>=20
>=20
> But when I boot the system and cat /proc/interrupts, the output says:
>=20
>=20
> 18:         61   IPIC   Level     i2c-mpc
> 19:          0   IPIC   Level     i2c-mpc
>=20
>=20
> This doesn't make sense to me. Why are the IRQ numbers changed? They
are
> still adjacent, so it seems to be some logic to the change. Does
anyone
> know what this is?
>=20
> Cheers // Fredrik Roubert
>=20
> --
> Barco Medical Imaging          |  +32 56 233549
> http://www.barco.com/medical/  |  fredrik.roubert@barco.com
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded

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

end of thread, other threads:[~2006-10-24  7:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-23 16:41 ARCH=powerpc: IRQ numbers change mysteriously Fredrik Roubert
2006-10-24  7:20 ` Li Yang-r58472

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).