linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: mlan@cpu.lu
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: Oops when inserting PCMCIA flash card (IDE)
Date: 24 Feb 2003 18:40:48 +0100	[thread overview]
Message-ID: <1046108448.12533.204.camel@zion.wanadoo.fr> (raw)
In-Reply-To: <E18nL1U-0007Ag-00@piglet.grunz.lu>


On Mon, 2003-02-24 at 17:00, Michel Lanners wrote:

> The NIP in the oops points to ide_mm_inb(); it's trying to read from the
> IDE ports. However, the port the new IDE interface got assinged seems to
> be 0x100 (see r3: 0x107, which is port_base + IDE_STATUS_OFFSET). This
> is of course outside of the range the PCMCIA controller has:
>
> pooh:/etc/ppp# cat /proc/ioports
> 00000000-007fffff : /pci@f2000000
>   00001000-00008fff : PCI CardBus #11
>   00009000-000090ff : PCI CardBus #11
> 00802000-01001fff : /pci@f0000000
>   00802400-008024ff : ATI Technologies Inc Rage Mobility M3 AGP 2x
> ff7fe000-ffffdfff : /pci@f4000000
>
> So the problem seems to be the PCMCIA code gets the wrong ports for the
> PCMCIA card?

No, the ranges above are for cardbus, not pcmcia. pcmcia usually
assign resources outside of this range, and 0x100 looks like a
correct port. I'm not sure what is wrong, I'd say ide_mm_inb is
the wrong set of iops, it should be ide_inb instead (it's IO
port access, not MMIO), now we have to figure out why ide_mm_inb
got a assigned, I suspect ide_cs actually tried to re-use an IDE
slot that was initialized for ide-pmac (which is mmio).

There are various breakage with IDE in pre4, which is why I don't
quite suggest using my bk tree for now, I'm waiting for Alan &
Marcelo to sync all of Alan recent fixes before I really look into
debugging these.

Ben.


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

  parent reply	other threads:[~2003-02-24 17:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-24 16:00 Oops when inserting PCMCIA flash card (IDE) Michel Lanners
2003-02-24 16:51 ` Jeffery von Ronne
2003-02-24 17:40 ` Benjamin Herrenschmidt [this message]
2003-02-25  5:39 ` Paul Mackerras
2003-02-25 16:44   ` Michel Lanners

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=1046108448.12533.204.camel@zion.wanadoo.fr \
    --to=benh@kernel.crashing.org \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=mlan@cpu.lu \
    /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).