From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3E0B2B7D.4000908@iram.es> Date: Thu, 26 Dec 2002 17:17:01 +0100 From: Gabriel Paubert MIME-Version: 1.0 To: Geert Uytterhoeven Cc: Benjamin Herrenschmidt , Linux/PPC Development Subject: Re: [PATCH] IDE on CHRP LongTrail References: Content-Type: text/plain; charset=us-ascii; format=flowed Sender: owner-linuxppc-dev@lists.linuxppc.org List-Id: Geert Uytterhoeven wrote: > On Tue, 24 Dec 2002, Geert Uytterhoeven wrote: > >>On 24 Dec 2002, Benjamin Herrenschmidt wrote: >> >>>On Mon, 2002-12-23 at 23:13, Geert Uytterhoeven wrote: >>> >>>>This patch enables the SL82C105 IDE interface in the W83C553 PCI/ISA bridge on >>>>my CHRP LongTrail. >>>> >>>>There are 2 ways to configure the IDE interface: >>>> - Legacy mode, using IRQ 14 for the primary channel, and IRQ 15 for the >>>> secondary channel >>>> - Native mode, using IRQ 32 (OpenPIC IRQ 16) for both channels >>>> >>>>Apparently Open Firmware left the IDE interface in legacy mode, while the >>>>interrupt property of the device pointed to the OpenPIC interrupt. Of course >>>>this mix of legacy and native mode didn't work well and no interrupts came >>>>through. >>>> >>>>With the patch below, the SL82C105 is configured for native mode and both IDE >>>>channels work. The patch applies to 2.4.21-pre2 as well, but there IDE seems to >>>>be broken on PPC in general. >>> >>>I'd rather use a pci quirk here... also, why not make this generic to >>>all PPCs with a W83c553 ? I know the briQ at least will need something >>>similar. >> >>I did not want to touch non-LongTrail code. >> >>How is the interrupt routing done on the BriQ? On the LongTrail both legacy >>mode (ISA IRQ 14/15) and PCI native mode (PCI IRQ connected to OpenPIC) are >>possible for IDE. > > > Anyone with a BriQ (and preferably working IDE) who can tell us the output of > `lspci -v' and of `cat /proc/interrupts'? > > There are other boards with a W83C553 out there. Gabriel? There are no IDE connectors on the MVME boards I have, so the W83C553/554 is there but the IDE part is not accessible, unless you are courageous enough to solder wires directly on the pins of the chip ;-) Gabriel. ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/