From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: Linux/PPC Development <linuxppc-dev@ozlabs.org>
Subject: Re: Broken PCI on Sequoia
Date: Sat, 31 Jan 2009 08:02:03 +1100 [thread overview]
Message-ID: <1233349323.18767.31.camel@pasglop> (raw)
In-Reply-To: <alpine.LRH.2.00.0901301334220.13283@vixen.sonytel.be>
> | PCI host bridge /plb/pci@1ec000000 (primary) ranges:
> | MEM 0x0000000180000000..0x00000001bfffffff -> 0x0000000080000000
> | IO 0x00000001e8000000..0x00000001e800ffff -> 0x0000000000000000
> | IO 0x00000001e8800000..0x00000001ebffffff -> 0x0000000000000000
> | \--> Skipped (too many) !
> | 4xx PCI DMA offset set to 0x00000000
> | ppc4xx_configure_pci_PMMs: i = 0, hose->pci_mem_offset = 0x100000000
> | ppc4xx_setup_one_pci_PMM: hose = 0xcf825000
> | ppc4xx_setup_one_pci_PMM: reg = 0xd1000000
> | ppc4xx_setup_one_pci_PMM: plb_addr = 0x180000000
> | ppc4xx_setup_one_pci_PMM: pci_addr = 0x80000000
> | ppc4xx_setup_one_pci_PMM: size = 0x40000000
> | ppc4xx_setup_one_pci_PMM: flags = 0x200
> | ppc4xx_setup_one_pci_PMM: index = 0
> | /plb/pci@1ec000000: Resource out of range
> ^^^^^^^^^^^^^^^^^^^^^
> because plb_addr + size lies outside 32-bit space.
Ok so the code was buggy already, the ISA hole patch just makes it
trigger...
For that sort of 4xx PHB (ie, the PCI 2.x ones, not the PCI-X nor the
PCI-E), we only know how to program 32-bit of PLB address. IE. The old
code would have cropped the plb_addr when writing to the register, the
new code complains.
I suspect some implementation support a register to put the "high" part
of the PLB address, and that it already contains 1, so the old code
would have worked by chance, the new code doesn't because it bails out.
I need to check the doco for your CPU or any other using that cell to
see who supports what regarding the location of the outbound windows in
PLB space. I think the original 440GP which I used as a basis for the
PCI 2.x host bridge only supports 32-bits here but maybe I'm just
confused.
I'll have a look next week.
Cheers,
Ben
next prev parent reply other threads:[~2009-01-30 21:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-29 17:37 Broken PCI on Sequoia Geert Uytterhoeven
2009-01-29 22:11 ` Benjamin Herrenschmidt
2009-01-30 0:18 ` Josh Boyer
2009-01-30 2:08 ` Benjamin Herrenschmidt
2009-01-30 12:35 ` Geert Uytterhoeven
2009-01-30 21:02 ` Benjamin Herrenschmidt [this message]
2009-01-30 21:30 ` Benjamin Herrenschmidt
2009-01-31 1:19 ` Feng Kan
2009-01-31 4:42 ` 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=1233349323.18767.31.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=Geert.Uytterhoeven@sonycom.com \
--cc=linuxppc-dev@ozlabs.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).