From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH] Change PCI host bridge setup/resources
Date: Sun, 08 Apr 2007 21:20:31 +0400 [thread overview]
Message-ID: <4619245F.4030704@ru.mvista.com> (raw)
In-Reply-To: <20070408113457.GB7553@alpha.franken.de>
Thomas Bogendoerfer wrote:
> PCI host bridge setup for SNI RM machines with PCI is quite broken, now that
> Linux does it's resource setup own its own. It will use IO addresses,
> which are needed by the EISA config detection and assigns PCI memory
> addresses, which overlap with ISA legacy addresses (video ram). Below
> is a patch, which changes the way how the PCI memory addresses are
> used and sets the minimum IO address to give enough IO space for
> 8 EISA slots). This patch needs the other PCI resource change, I've
> posted.
> diff --git a/arch/mips/sni/pcit.c b/arch/mips/sni/pcit.c
> index 1dfc3f0..00d151f 100644
> --- a/arch/mips/sni/pcit.c
> +++ b/arch/mips/sni/pcit.c
> @@ -43,7 +43,7 @@ static struct platform_device pcit_serial8250_device = {
> };
>
> static struct plat_serial8250_port pcit_cplus_data[] = {
> - PORT(0x3f8, 4),
> + PORT(0x3f8, 0),
> PORT(0x2f8, 3),
> PORT(0x3e8, 4),
> PORT(0x2e8, 3),
Hm, what is that -- UART #1 without IRQ?
> @@ -59,9 +59,9 @@ static struct platform_device pcit_cplus_serial8250_device = {
> };
>
> static struct resource sni_io_resource = {
> - .start = 0x00001000UL,
> + .start = 0x00000000UL,
> .end = 0x03bfffffUL,
> - .name = "PCIT IO MEM",
> + .name = "PCIT IO",
> .flags = IORESOURCE_IO,
> };
Why us this necessary, only beacuse compatible peripherals are behind PCI?
EISA is behind PCI as well, yet you're setting PCIBIOS_MIN_IO to 0x9000. Does
this all really make sense? :-/
> @@ -92,6 +92,11 @@ static struct resource pcit_io_resources[] = {
> .name = "dma2",
> .flags = IORESOURCE_BUSY
> }, {
> + .start = 0xcf8,
> + .end = 0xcfb,
> + .name = "PCI config addr",
> + .flags = IORESOURCE_BUSY
> + }, {
This is certainly *not* a PCI or [E]ISA resource. It's decoded by the
*host* bridge.
> .start = 0xcfc,
> .end = 0xcff,
> .name = "PCI config data",
Well, why not just join them into one?
> void sni_pcit_init(void)
> {
> - sni_pcit_resource_init();
> rtc_mips_get_time = mc146818_get_cmos_time;
> rtc_mips_set_time = mc146818_set_rtc_mmss;
> board_time_init = sni_cpu_time_init;
> + ioport_resource.end = sni_io_resource.end;
> #ifdef CONFIG_PCI
> + PCIBIOS_MIN_IO = 0x9000;
> register_pci_controller(&sni_pcit_controller);
> #endif
> + sni_pcit_resource_init();
> }
WBR, Sergei
next prev parent reply other threads:[~2007-04-08 17:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-08 11:34 [PATCH] Change PCI host bridge setup/resources Thomas Bogendoerfer
2007-04-08 17:20 ` Sergei Shtylyov [this message]
2007-04-08 23:07 ` Thomas Bogendoerfer
2007-04-09 8:29 ` Geert Uytterhoeven
2007-04-09 14:44 ` Sergei Shtylyov
2007-04-09 14:42 ` Sergei Shtylyov
2007-04-09 15:16 ` Thomas Bogendoerfer
2007-04-10 15:50 ` Maciej W. Rozycki
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=4619245F.4030704@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=linux-mips@linux-mips.org \
--cc=tsbogend@alpha.franken.de \
/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