public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: "David S. Miller" <davem@redhat.com>,
	<linuxppc-dev@lists.linuxppc.org>, <linux-kernel@vger.kernel.org>
Subject: Re: The IO problem on multiple PCI busses
Date: Fri, 2 Mar 2001 12:20:28 +0100	[thread overview]
Message-ID: <19350125045212.2780@mailhost.mipsys.com> (raw)
In-Reply-To: <15006.44863.375642.847562@pizda.ninka.net>
In-Reply-To: <15006.44863.375642.847562@pizda.ninka.net>

>Many platforms, sparc64 included, do not have an ISA IO space nor do
>they provide VGA accesses at all.
>
>If things such as XFree86 are coded for such platforms to not require
>VGA accesses (the 'ati' driver is already like this when certain
>build time defines are set), this could become a non-issue in this
>case.

What I call ISA IOs here doesn't necessarily mean there's an ISA bridge
on the PCI. In fact, VGA cards usually don't live behind such a bridge
while still requiring occasionally access to the "legacy" ISA IO addresses. 

On PPC, we don't have an "IO" space neither, all we have is a range of
memory addresses that will cause IO cycles to happen on the PCI bus. But
we can have one per bus, thus causing this need for several "legacy" IO
spaces (each bus can have IO addresses in the range 0-64k).

The typical problem that happens right now is a VGA card in the AGP slot
and a VGA card in a PCI slot. Both may (depending on the card) need
access to the legacy VGA IO addresses on the PCI bus on which they are
located. So in this case, we clearly have 2 legacy busses, av ailable at
2 different physical memory addresses in the CPU space. What we can do is
use mapping tricks to map the contiguously in kernel virtual space so
that only an "offset" allows to go from tone to the other with inb/outb.
Without that, we need to create new versions of inb/outb that take a bus
number.


Ben.


  parent reply	other threads:[~2001-03-02 11:21 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-01 15:33 The IO problem on multiple PCI busses Benjamin Herrenschmidt
2001-03-01 15:41 ` Benjamin Herrenschmidt
2001-03-01 18:30 ` Alan Cox
2001-03-01 19:09 ` David S. Miller
2001-03-01 19:33   ` Dan Malek
2001-03-01 19:41     ` David S. Miller
2001-03-01 19:59       ` Dan Malek
2001-03-01 20:22         ` David S. Miller
2001-03-01 20:09       ` Benjamin Herrenschmidt
2001-03-01 20:27         ` David S. Miller
2001-03-02 11:25           ` Benjamin Herrenschmidt
2001-03-03  1:08             ` David S. Miller
2001-03-01 19:49   ` Benjamin Herrenschmidt
2001-03-01 20:21     ` David S. Miller
2001-03-01 22:26       ` Alan Cox
2001-03-02 11:20       ` Benjamin Herrenschmidt [this message]
2001-03-03  1:06         ` David S. Miller
2001-03-03  2:25           ` Benjamin Herrenschmidt
2001-03-03 11:01             ` Jeff Garzik
2001-03-03 17:28               ` Benjamin Herrenschmidt
2001-03-05 16:20             ` David Woodhouse
2001-03-06 23:01           ` Oliver Xymoron
2001-03-07  2:07           ` Tony Mantler
2001-03-05 23:21   ` Chris Wedgwood
  -- strict thread matches above, loose matches on Subject: below --
2001-03-02  1:22 Grant Grundler
2001-03-02  2:19 ` David S. Miller
2001-03-02 17:46   ` Grant Grundler

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=19350125045212.2780@mailhost.mipsys.com \
    --to=benh@kernel.crashing.org \
    --cc=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.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