From: Benjamin Herrenschmidt <bh40@calva.net>
To: <linuxppc-dev@lists.linuxppc.org>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Paul Mackerras <paulus@linuxcare.com.au>, <cort@hq.fsmlabs.com>
Subject: PCI rework & CHRP question
Date: Sun, 24 Sep 2000 00:57:30 +0200 [thread overview]
Message-ID: <19340818162914.6020@192.168.1.10> (raw)
I'm working on a rework of our arch/pci.c (to properly handle multiple
host bridges, and various other cleanups).
In the chrp_pci.c code, I found this code:
if ( !strncmp("MOT",
get_property(find_path_device("/"), "model", NULL),3) )
{
pci_dram_offset = 0;
isa_mem_base = 0xf7000000;
isa_io_base = 0xfe000000;
set_config_access_method(grackle);
}
However, I found no way in the Grackle documentation to have isa_mem_base
at 0xf7000000. AFAIK, it's at 0xfd000000
Also, the grackle access method expect a PCI bridge structure configured
with the ioremap'ed config space registers, which is not the case on
chrp. (They are defined only in pmac_pci.c).
I'm fixing those along with my changes. I suppose Grackle on CHRP uses
memory map B ?
Note (tell me if it's a problem), that I'm removing the various
xxx_setup_pci_ptrs(). Each host bridge has a pci_controler structure (the
old bridge_data) that contains also the function pointers to the access
methods. Archs now call whatever xxx_find_bridges from their
xxx_setup_arch() function and all host-bridge dependent setup is done there.
I will push those changes in the new linuxppc_2_5 bk tree as soon as I'm
happy with them.
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next reply other threads:[~2000-09-23 22:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-23 22:57 Benjamin Herrenschmidt [this message]
2000-09-25 2:00 ` PCI rework & CHRP question Cort Dougan
2000-09-25 7:16 ` 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=19340818162914.6020@192.168.1.10 \
--to=bh40@calva.net \
--cc=cort@hq.fsmlabs.com \
--cc=geert@linux-m68k.org \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=paulus@linuxcare.com.au \
/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).