Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <bh40@calva.net>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Linux/PPC Development <linuxppc-dev@lists.linuxppc.org>,
	Linux/MIPS Development <linux@cthulhu.engr.sgi.com>,
	Linux kernel <linux-kernel@vger.rutgers.edu>
Subject: Re: Proposal: non-PC ISA bus support
Date: Tue, 20 Jun 2000 15:02:38 +0200	[thread overview]
Message-ID: <20000620130238.15357@mailhost.mipsys.com> (raw)
In-Reply-To: <Pine.GSO.4.10.10006201438290.8592-100000@dandelion.sonytel.be>

On Tue, Jun 20, 2000, Geert Uytterhoeven <geert@linux-m68k.org> wrote:

>Concatenating the I/O spaces seems like the best solution to me as well.

Would work if the ranges you are passing via /proc/bus/isa/xxxx are
kernel virtual addresses and not physical addresses (I didn't check if
this is the case).

>Hmmm... If you can live with only one video card with legacy support, what
>about a kernel option to specify which of the 3 busses will be the first?

I've been thinking about it. That would be a solution. Also, the fbdev's
we use for cards in the AGP slot (ATI Rage 128 for now) can handle this
fine, and XFree has already been more or less hacked when to handle it
too when running on top of fbdev.

>Else, we'll have to work around this in XFree86.

Well, we'll have to find a workaround one way or another. The only
solution I can see for this problem is a way for each individual card
driver to "ask" the kernel for an iobase which is specific to this card,
given in parameter as much infos as the driver can regarding the device
(like the pci_dev for a pci device). The kernel would then be able to
locate the device in the OF tree, walk the tree up to the nearest brige
and figure out the correct IO range. (It already does something similar
for config space accesses since we have the same problem of 3 different
config space access registers). For in-kernel drivers, this can be done
at the PCI fixup level provided that the driver uses the io resources
given to it "as is", but exposing this to userland may require more than
a /proc entry.

Ben.

  reply	other threads:[~2000-06-20 13:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-20 11:21 Proposal: non-PC ISA bus support Geert Uytterhoeven
2000-06-20 12:23 ` Benjamin Herrenschmidt
2000-06-20 12:41   ` Geert Uytterhoeven
2000-06-20 13:02     ` Benjamin Herrenschmidt [this message]
2000-06-20 13:09       ` Geert Uytterhoeven
2000-06-20 13:25   ` De Schrijver Peter
2000-06-20 13:30     ` Benjamin Herrenschmidt
2000-06-21 21:47   ` Michel Lanners
2000-06-20 17:11 ` Frank Rowand
2000-06-20 17:29   ` Geert Uytterhoeven
2000-06-20 20:10 ` Russell King
2000-06-20 20:10   ` Russell King
2000-06-21 23:57 ` Richard Henderson
2000-06-22  6:45   ` Geert Uytterhoeven
2000-06-22  7:19     ` Richard Henderson
2000-06-22  7:41       ` Geert Uytterhoeven
2000-06-22  8:59         ` Richard Henderson
2000-06-22  9:15           ` 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=20000620130238.15357@mailhost.mipsys.com \
    --to=bh40@calva.net \
    --cc=geert@linux-m68k.org \
    --cc=linux-kernel@vger.rutgers.edu \
    --cc=linux@cthulhu.engr.sgi.com \
    --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