linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Gabriel Paubert <paubert@iram.es>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: IDE on LongTrail
Date: Tue, 05 Nov 2002 11:03:20 +0100	[thread overview]
Message-ID: <3DC79768.107@iram.es> (raw)
In-Reply-To: Pine.GSO.4.21.0211032047160.12607-100000@vervain.sonytel.be


Geert Uytterhoeven wrote:
> 	Hi,
>
> Anyone using a LongTrail with IDE devices?
>
> I just tried adding an IDE disk to mine. The disk is identified correctly, but
> I always get `hda: lost interrupt' for any other operation. According to lspci
> the sl82c105 uses IRQ 32 (OpenPIC), but /proc/interrupt shows no interrupts
> coming in there.
>
> However, if I hardcode the IRQ to be 14 in drivers/ide/sl82c105.c, IDE works
> fine (and is even reasonably fast: when using DMA, I get ca. 17 MB from a new
> low-end 5400 RPM disk, about the same as the old expensive U2W Viking II on the
> Sym53c875).
>
> Apparently other PPC platforms with a Winbond 83C553 (e.g. PowerPlus and PReP)
> have some fixup code to disable legacy IRQ mode and route the IDE interrupt to
> IRQ 14. But wouldn't it be better to route it directly to the OpenPIC, like the
> PCI config space indicates? Guess I'll have to dive in the 83C553 docs...
>

AFAIR, the 83C553 IDE interrupts documentation is muddy at best. To be
able to route directly to OpenPIC you would have to be able to connect
interrupt outputs from the 83C553 to the OpenPIC. The only hint that it
may be possible in the 83C553 documentation is that pins IRQC/IRQD are
documented as Input/OD (open drain outputs), while IRQA/IRQB are shown
as inputs only.

However to use this it would be necessary to have a connection from the
IRQC/IRQD to some OpenPIC inputs, which I believe is very unlikely. In
practice, you will have to go through the 8259 cascade. AFAIU the
datasheet and barring typos, native mode will use IRQ14/IRQ15, while
legacy mode gives you more choices. Look strange, but hey, it's based
on PC's so called architecture, so it's baroque by definition ;-)

However, take what I say with a pinch of salt, I don't know much about
the IDE interface since is not used at all on the MVME boards, only the
ISA bridge part oh the W83C553 (or 554).

> I'm using 2.4.20-rc1 (from linuxppc_2_4).

I'm fighting with 2.5 right now, and losing :-(

	Regards,
	Gabriel.


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

  parent reply	other threads:[~2002-11-05 10:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-03 21:40 IDE on LongTrail Geert Uytterhoeven
2002-11-04 23:49 ` Tom Rini
2002-11-05 10:03 ` Gabriel Paubert [this message]
2002-11-05 10:16   ` Geert Uytterhoeven
2002-11-05 11:32     ` Gabriel Paubert
2002-11-13 21:11       ` Geert Uytterhoeven

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=3DC79768.107@iram.es \
    --to=paubert@iram.es \
    --cc=geert@linux-m68k.org \
    --cc=linuxppc-dev@lists.linuxppc.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).