[PATCH] IDE on CHRP LongTrail

Geert Uytterhoeven geert at linux-m68k.org
Tue Dec 24 20:09:27 EST 2002


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.

> Regarding 2.4.21-pre2, did you check the linuxppc_2_4 tree ?

Yes, I checked it during the weekend. Crash in IDE access operations.
I wrote down the addresses and the corresponding routine names. If you want
them, I can mail them (when I get back to the piece of paper).

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


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





More information about the Linuxppc-dev mailing list