From: Michel Lanners <mlan@cpu.lu>
To: bh40@calva.net
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: PCI fixups (was: re: xf 4.0.1 with rage II/rage...)
Date: Wed, 27 Sep 2000 07:32:44 +0200 (CEST) [thread overview]
Message-ID: <200009270532.HAA00726@piglet.grunz.lu> (raw)
In-Reply-To: <19340821143437.3943@mailhost.mipsys.com>
Hi Ben,
On 26 Sep, this message from Benjamin Herrenschmidt echoed through cyberspace:
> Allocating a region is nasty. You must find a free physical region (2.2.x
> has no support for that) and you must find one that is decoded by the
> north bridge (we currently have no code for either reading or writing the
> address space decode enable bits of Bandit and UniNorth).
>
> That's step 2 of my PCI patches. I will a set of regions per hose (pci
> controller, Apple ones can decode several non-contiguous regions).
>
> With this done, we will be able to really allocate PCI space from the
> kernel. I still have to check if the common PCI code provides enough
> hooks so I can even add new decoded regions to Bandit/Uninorth, but
> that's not terribly important.
UniNorth, I don't know; but that should not be a problem. If you look at
my latest published PCI patches for 2.3/2.4 kernels, I've attempted to
do exactly that. It crashed in that code but that's a different issue...
Just allocate memory for up to 4 resources per bus, and fill those with
the regions that the hose decodes, flags included, in any order. The PCI
code will try it's best than to allocate resource demands for that bus
out of the provided bus resources, looking for the closest fit.
FWIW, I am reading the resource regions decoded by the hose from the OF
device tree. The encoding is documented somewhere in the OF to PCI
binding doc. I've also added a struct ranges_property in
include/asm-ppc/prom.h.
Cheers
Michel
-------------------------------------------------------------------------
Michel Lanners | " Read Philosophy. Study Art.
23, Rue Paul Henkes | Ask Questions. Make Mistakes.
L-1710 Luxembourg |
email mlan@cpu.lu |
http://www.cpu.lu/~mlan | Learn Always. "
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2000-09-27 5:32 UTC|newest]
Thread overview: 119+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-23 12:52 xf 4.0.0/1 with rage II/rage pro -- should the ati driver work? R Shapiro
2000-09-23 15:00 ` Michel Dänzer
2000-09-23 15:32 ` R Shapiro
2000-09-23 16:09 ` Michael Schmitz
2000-09-23 22:19 ` R Shapiro
2000-09-23 22:25 ` Michael Schmitz
2000-09-24 13:42 ` Geert Uytterhoeven
2000-09-25 17:37 ` Michael Schmitz
2000-09-26 10:13 ` Geert Uytterhoeven
2000-09-25 17:39 ` Kostas Gewrgiou
2000-09-25 18:38 ` Michael Schmitz
2000-09-23 23:20 ` Michel Dänzer
2000-09-23 17:08 ` Michel Lanners
2000-09-24 13:30 ` Michel Dänzer
2000-09-24 16:02 ` Martin Costabel
2000-09-24 16:14 ` Michel Dänzer
2000-09-29 10:35 ` Michel Dänzer
2000-09-29 15:24 ` Kohkichi Hosoda
2000-09-29 15:32 ` Michel Dänzer
2000-09-30 6:21 ` Kohkichi Hosoda
2000-09-24 13:43 ` Geert Uytterhoeven
2000-09-25 8:56 ` Michael Schmitz
2000-09-23 17:37 ` William Blew
2000-09-24 19:51 ` xf 4.0.1 with rage II/rage pro -- multi-headed display! R Shapiro
2000-09-24 23:17 ` Michel Dänzer
2000-09-25 1:24 ` R Shapiro
2000-09-25 6:43 ` Martin Costabel
2000-09-25 9:52 ` Kostas Gewrgiou
2000-09-25 10:38 ` xf 4.0.1 fbdev screenblanking R Shapiro
2000-09-25 12:52 ` xf 4.0.1 with rage II/rage pro -- multi-headed display, xinerama R Shapiro
2000-09-25 17:43 ` Michel Dänzer
2000-09-25 18:57 ` R Shapiro
2000-09-25 18:59 ` Michel Dänzer
2000-09-25 9:03 ` xf 4.0.1 with rage II/rage pro -- multi-headed display! Michael Schmitz
2000-09-25 11:39 ` R Shapiro
2000-09-25 12:42 ` Michael Schmitz
2000-09-26 16:26 ` Geert Uytterhoeven
2000-09-26 18:35 ` Michael Schmitz
2000-09-26 18:46 ` Olaf Hering
2000-09-26 19:27 ` Michael Schmitz
2000-09-26 19:32 ` Olaf Hering
2000-09-26 19:51 ` Michael Schmitz
2000-09-26 21:02 ` Benjamin Herrenschmidt
2000-09-27 5:32 ` Michel Lanners [this message]
2000-09-27 10:33 ` PCI fixups (was: re: xf 4.0.1 with rage II/rage...) Benjamin Herrenschmidt
2000-09-28 6:00 ` Michel Lanners
2000-09-27 10:08 ` xf 4.0.1 with rage II/rage pro -- multi-headed display! Olaf Hering
2000-09-27 11:43 ` Geert Uytterhoeven
2000-09-27 17:22 ` Benjamin Herrenschmidt
2000-09-27 17:49 ` Kostas Gewrgiou
2000-09-28 10:00 ` Geert Uytterhoeven
2000-09-29 14:57 ` Kostas Gewrgiou
2000-09-27 11:20 ` Geert Uytterhoeven
2000-09-27 18:21 ` Michael Schmitz
2000-09-27 20:32 ` Benjamin Herrenschmidt
2000-09-28 17:55 ` Michael Schmitz
2000-09-26 19:04 ` xf 4.0.1 + ati driver with rage II/rage pro R Shapiro
2000-09-26 19:24 ` Michel Dänzer
2000-09-26 19:33 ` Michael Schmitz
2000-09-26 20:55 ` R Shapiro
2000-09-26 21:19 ` R Shapiro
2000-09-27 18:36 ` Michael Schmitz
2000-09-27 18:45 ` R Shapiro
2000-09-27 19:07 ` Michael Schmitz
2000-09-27 19:16 ` R Shapiro
2000-09-27 19:18 ` Michael Schmitz
2000-09-28 0:05 ` Michel Dänzer
2000-09-28 17:14 ` Kostas Gewrgiou
2000-09-29 9:03 ` Michel Dänzer
2000-09-29 16:55 ` Kostas Gewrgiou
2000-09-28 11:18 ` Geert Uytterhoeven
2000-09-29 12:02 ` Michel Dänzer
2000-09-29 14:17 ` R Shapiro
2000-09-29 14:34 ` Michael Schmitz
2000-09-29 15:33 ` R Shapiro
2000-09-29 19:33 ` Michael Schmitz
2000-09-29 20:54 ` R Shapiro
2000-09-29 21:04 ` Michael Schmitz
2000-09-30 1:40 ` R Shapiro
2000-09-29 21:14 ` lsprop Hollis R Blanchard
2000-09-29 16:25 ` xf 4.0.1 + ati driver with rage II/rage pro Kostas Gewrgiou
2000-09-29 16:39 ` Michel Dänzer
2000-09-29 19:40 ` Michael Schmitz
2000-09-30 14:10 ` Kostas Gewrgiou
2000-10-01 17:02 ` Michael Schmitz
2000-10-02 9:52 ` Michel Dänzer
2000-10-02 15:00 ` Geert Uytterhoeven
2000-10-02 19:50 ` Michael Schmitz
2000-10-01 17:59 ` Patch: PCI resource fixup for atyfb (was: Re: xf 4.0.1 + ati driver with rage II/rage pro) Michael Schmitz
2000-10-01 20:44 ` Olaf Hering
2000-10-02 14:59 ` Geert Uytterhoeven
2000-10-02 20:11 ` Michael Schmitz
2000-10-02 20:48 ` Benjamin Herrenschmidt
2000-10-02 20:52 ` Michael Schmitz
2000-10-03 11:10 ` Geert Uytterhoeven
2000-10-03 15:15 ` Michael Schmitz
2000-10-03 17:20 ` Geert Uytterhoeven
2000-10-02 20:47 ` Olaf Hering
2000-10-02 20:56 ` Patch: PCI resource fixup for atyfb (was: Re: xf 4.0.1 + atidriver " Michel Dänzer
2000-10-02 21:04 ` Olaf Hering
2000-10-02 21:11 ` Patch: PCI resource fixup for atyfb (was: Re: xf 4.0.1 + atidriverwith " Michel Dänzer
2000-10-02 21:33 ` Olaf Hering
2000-10-03 11:14 ` Patch: PCI resource fixup for atyfb (was: Re: xf 4.0.1 + atidriver with " Geert Uytterhoeven
2000-10-03 16:19 ` Michael Schmitz
2000-10-03 17:12 ` Patch: PCI resource fixup for atyfb (was: Re: xf 4.0.1 + atidriverwith " Michel Dänzer
2000-10-03 17:23 ` Michael Schmitz
2000-10-03 11:01 ` Patch: PCI resource fixup for atyfb (was: Re: xf 4.0.1 + ati driver with " Geert Uytterhoeven
2000-10-03 15:42 ` Olaf Hering
2000-10-03 16:33 ` Michael Schmitz
2000-10-04 18:09 ` Geert Uytterhoeven
2000-10-02 20:57 ` Olaf Hering
2000-10-01 21:52 ` William Blew
2000-10-02 20:21 ` R Shapiro
2000-10-02 20:27 ` Michael Schmitz
2000-09-29 17:23 ` xf 4.0.1 + ati driver with rage II/rage pro R Shapiro
2000-09-29 19:45 ` Michael Schmitz
2000-09-29 14:55 ` Michel Dänzer
2000-09-29 17:27 ` R Shapiro
2000-09-30 15:05 ` Michel Dänzer
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=200009270532.HAA00726@piglet.grunz.lu \
--to=mlan@cpu.lu \
--cc=bh40@calva.net \
--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).