From: benh@kernel.crashing.org
To: <mlan@cpu.lu>
Cc: <dan_bethe@yahoo.com>, <nicoya@apia.dhs.org>,
<linuxppc-dev@lists.linuxppc.org>
Subject: Re: 9600 maturity?
Date: Tue, 16 Apr 2002 01:54:25 +0100 [thread overview]
Message-ID: <20020416005425.14127@mailhost.mipsys.com> (raw)
In-Reply-To: <E16xLzp-00008q-00@piglet.grunz.lu>
>
>But is there something in place now in the PCI code to handle the IO
>space of multiple host bridges now? When I was working on the chaos PCI
>code, you had plans to implement that part...
>
>IIRC, you wanted to move both IO spaces into a continous segment and
>provide some way to find the ber-bus base of IO space...
it is implemented in 2.4, but a bit differently. Each host has it's own
IO space ioremapped separately. One is picked up as the "primary" IO space
and gets all 0-based IOs (basically it's where _IO_BASE points to).
Then, IO resources of PCI devies on other busses are fixed up by the
kernel to be offseted by (io_bus_virt - _IO_BASE) (that is the virtual
address of the IO space of this bus minus the virtual address of IO space
of the primary bus), thus allowing inx/outx functions to work.
That means though that there isn't a convenient way to access fixed
(ie. legacy) IO locations on other busses, except by using platform
specific routines to find out the real bus virtual IO base. But at
least, IO resources provided by BARs will work on other busses provided
that the driver uses the pci_dev->resource fields properly.
However, I haven't yet verified if it works properly for busses like
bandit that don's issue a 0-based (bus view) IO range, but an "offseted"
one like it is, I think, the case for second bandit. On UniNorth, each
host has a 0 based 0...16Mb IO space.
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2002-04-16 0:54 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-15 7:43 9600 maturity? Dan Bethe
2002-04-15 8:26 ` Tony 'Nicoya' Mantler
2002-04-15 10:41 ` Dan Bethe
2002-04-15 17:32 ` Tony 'Nicoya' Mantler
2002-04-15 19:03 ` ATI 7000 and dual-monitor X? (was Re: 9600 maturity?) Stefan Jeglinski
2002-04-15 19:27 ` Ani Joshi
2002-04-15 22:25 ` Tony 'Nicoya' Mantler
2002-04-16 8:01 ` Olaf Hering
2002-04-16 22:03 ` Michel Lanners
2002-04-17 6:37 ` Geert Uytterhoeven
2002-04-17 7:04 ` Ani Joshi
2002-04-17 18:53 ` Michel Lanners
2002-04-17 5:35 ` Ani Joshi
2002-04-17 1:57 ` benh
2002-04-22 15:22 ` Olaf Hering
2002-04-15 19:14 ` 9600 maturity? Michel Lanners
2002-04-15 9:19 ` Benjamin Herrenschmidt
2002-04-16 5:59 ` Michel Lanners
2002-04-16 0:54 ` benh [this message]
2002-04-15 21:30 ` Jeff Walther
2002-04-15 13:38 ` Jeff Walther
2002-04-15 5:01 ` benh
2002-04-15 16:48 ` PPB Bug in PowerSurge: was: 9600 maturity Jeff Walther
2002-04-15 7:57 ` benh
2002-04-15 19:01 ` Jeff Walther
2002-04-15 9:29 ` Benjamin Herrenschmidt
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=20020416005425.14127@mailhost.mipsys.com \
--to=benh@kernel.crashing.org \
--cc=dan_bethe@yahoo.com \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=mlan@cpu.lu \
--cc=nicoya@apia.dhs.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).