From: Juergen Beisert <jbe@pengutronix.de>
To: linuxppc-dev@ozlabs.org
Subject: MPC5200 PCI interrupt routing
Date: Mon, 22 Sep 2008 15:56:33 +0200 [thread overview]
Message-ID: <200809221556.34353.jbe@pengutronix.de> (raw)
Hi,
my MPC5200 based platform has one PCI slot, with the following interrupt
routing:
PCI slot MPC5200
INT A IRQ0
INT B IRQ1
INT C IRQ2
INT D IRQ3
In my oftree I'm using these lines to describe this routing (slot's IDSEL is
0x18)
[...]
pci@f0000d00 {
#interrupt-cells =3D <1>;
#size-cells =3D <2>;
#address-cells =3D <3>;
device_type =3D "pci";
compatible =3D "fsl,mpc5200b-pci","fsl,mpc5200-pci";
reg =3D <0xf0000d00 0x100>;
interrupt-map-mask =3D <0xf800 0x0 0x0 0x7>;
interrupt-map =3D <0xc000 0x0 0x0 0x1 &mpc5200_pic 0x0 0x0 0=
x3
0xc000 0x0 0x0 0x2 &mpc5200_pic 0x1 0x1 0x3
0xc000 0x0 0x0 0x3 &mpc5200_pic 0x1 0x2 0x3
0xc000 0x0 0x0 0x4 &mpc5200_pic 0x1 0x3 0x3
>;
clock-frequency =3D <0>; // From boot loader
interrupts =3D <0x2 0x8 0x0 0x2 0x9 0x0 0x2 0xa 0x0>;
interrupt-parent =3D <&mpc5200_pic>;
bus-range =3D <0 0>;
ranges =3D <0x42000000 0x0 0x80000000 0x80000000 0x0 0x20000=
000
0x02000000 0x0 0xa0000000 0xa0000000 0x0 0x10000000
0x01000000 0x0 0x00000000 0xb0000000 0x0 0x0100000=
0>;
};
[...]
=46irst: But /proc/interrupts states "Edge" type. From the documentation "0=
x3"
(the last number per interrupt-map-line) should be "low level", not "edge".
$ cat /proc/interrupts
CPU0
16: 0 MPC52xx IRQ[0-3] Edge uhci_hcd:usb3
65: 0 MPC52xx IRQ[0-3] Edge uhci_hcd:usb4
66: 5 MPC52xx IRQ[0-3] Edge ehci_hcd:usb2
131: 58585 MPC52xx Peripherals Edge mpc52xx_psc_uart
133: 0 MPC52xx Peripherals Edge mpc52xx-fec_ctrl
134: 34 MPC52xx Peripherals Edge ohci_hcd:usb1
135: 0 MPC52xx Peripherals Edge mpc52xx_ata
143: 0 MPC52xx Peripherals Edge i2c-mpc
144: 36 MPC52xx Peripherals Edge i2c-mpc
192: 5815 MPC52xx SDMA Edge mpc52xx-fec_rx
193: 4512 MPC52xx SDMA Edge mpc52xx-fec_tx
BAD: 0
Second: When I load the drivers for the uhci/ehci PCI card I get:
[...]
usb 1-1: new high speed USB device using ehci_hcd and address 2
usb 1-1: device not accepting address 2, error -110
usb 1-1: new high speed USB device using ehci_hcd and address 3
usb 1-1: device descriptor read/64, error -110
usb 1-1: device descriptor read/64, error -110
usb 1-1: new high speed USB device using ehci_hcd and address 4
usb 1-1: device not accepting address 4, error -110
usb 1-1: new high speed USB device using ehci_hcd and address 5
usb 1-1: device not accepting address 5, error -110
hub 1-0:1.0: unable to enumerate USB device on port 1
usb 1-2: new high speed USB device using ehci_hcd and address 6
usb 1-2: device descriptor read/64, error -110
[...]
uhci_hcd 0000:00:18.0: Unlink after no-IRQ? Controller is probably using t=
he wrong IRQ.
[...]
$ lspci
00:18.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Contr=
oller (rev 61)
00:18.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Contr=
oller (rev 61)
00:18.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 63)
USB driver (endianess???) or oftee or hardware problem?
Anyone experience with VIA USB hardware on PowerPc?
Juergen
=2D-=20
Dipl.-Ing. Juergen Beisert | http://www.pengutronix.de
=A0Pengutronix - Linux Solutions for Science and Industry
=A0 Handelsregister: Amtsgericht Hildesheim, HRA 2686
=A0 =A0 =A0 Vertretung Sued/Muenchen, Germany
Phone: +49-8766-939 228 | Fax: +49-5121-206917-9
next reply other threads:[~2008-09-22 13:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-22 13:56 Juergen Beisert [this message]
2008-09-22 15:12 ` MPC5200 PCI interrupt routing Juergen Beisert
2008-09-22 21:01 ` Matt Sealey
2008-09-23 11:34 ` Juergen Beisert
2008-09-24 15:16 ` Juergen Beisert
2008-09-24 18:15 ` Grant Likely
2008-09-24 21:22 ` Benjamin Herrenschmidt
2008-09-24 21:34 ` Jon Smirl
2008-09-25 7:51 ` Juergen Beisert
2008-09-25 8:34 ` Benjamin Herrenschmidt
2008-09-25 16:57 ` Grant Likely
2008-09-25 18:02 ` Jon Smirl
2008-09-25 18:12 ` Grant Likely
2008-09-25 16:54 ` Grant Likely
2008-09-25 21:41 ` Benjamin Herrenschmidt
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=200809221556.34353.jbe@pengutronix.de \
--to=jbe@pengutronix.de \
--cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).