From: "Alexandros Kostopoulos" <akostop@inaccessnetworks.com>
To: "Kumar Gala" <galak@kernel.crashing.org>,
"Scott Wood" <scottwood@freescale.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: pci in arch/powerpc vs arch/ppc
Date: Tue, 07 Aug 2007 12:06:46 +0300 [thread overview]
Message-ID: <op.twol4cixnhx3hy@phoenix> (raw)
In-Reply-To: <F081E320-CFF9-497C-87D5-50E2E5C15A24@kernel.crashing.org>
Except from some macros arch/powerpc/include/asm/io.h / mpc8260_pci9.h, I
can seem to find anywhere the code regarding PCI Erratum 9. The defined
macros(in io.h) for read/write are sufficient as a workaround for PCI9?
Who does DMA and register initialization for this (it used to be done in
arch/ppc/syslib/m8260_pci_erratum9.c in arc/ppc). Maybe u-boot or the
bootwrapper?
Another question regarding resource allocation: when
alloc_resource(pci_32.c), called from pcibios_allocate_resources(), during
pcibios init, attempts to allocate resources using request_resource(), the
request fails. This seems to happen because the previously scanned PCI
devices request resources in the form, e.g. 00000- 0000f (i.e. starting
from zero), and this should be mapped somewhere else in cpu mem space. My
question (in order to find my bug) is, who performs this mapping, from PCI
space to CPU space, the kernel (and if yes, where?) or the host bridge (in
which case, I've probably failed to configure it properly).
Thank you
On Sat, 04 Aug 2007 19:39:58 +0300, Kumar Gala <galak@kernel.crashing.org>
wrote:
>
> On Aug 3, 2007, at 3:10 PM, Scott Wood wrote:
>
>> On Fri, Aug 03, 2007 at 05:58:56PM +0300, Alexandros Kostopoulos wrote:
>>> Hi all,
>>> in the old arch/ppc tree, there was a function called
>>> pq2ads_setup_pci()
>>> that set up PCI regs for 8272xx, in m82xx_pci.c. I was wandering, where
>>> are these registers configured now in arch/powerpc? I can't seem to
>>> find
>>> these code now.
>>
>> It's done by the firmware or the bootwrapper.
>
>>> Also, I can see that now bus 0, dev 0 (which I think represents the
>>> host
>>> bridge, right?) is now excluded using pq2_pci_exclude_device, but it
>>> wasn't in older code. Why is that?
>>
>> The older code probably either excluded all host bridges by class, or
>> just lived with the error message that gets printed on boot.
>
> This will change in 2.6.24. I've fixed the reason we excluded the host
> bridges on Freescale host bridges.
>
> - k
next prev parent reply other threads:[~2007-08-07 9:07 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-03 14:58 pci in arch/powerpc vs arch/ppc Alexandros Kostopoulos
2007-08-03 20:10 ` Scott Wood
2007-08-04 16:39 ` Kumar Gala
2007-08-07 9:06 ` Alexandros Kostopoulos [this message]
2007-08-07 15:20 ` Scott Wood
2007-08-08 11:42 ` Alexandros Kostopoulos
2007-08-08 13:03 ` Alexandros Kostopoulos
2007-08-08 16:24 ` Scott Wood
2007-08-08 14:21 ` Alexandros Kostopoulos
2007-08-08 19:11 ` Scott Wood
2007-08-08 19:46 ` Alexandros Kostopoulos
2007-08-08 19:56 ` Scott Wood
2007-08-08 22:20 ` Alexandros Kostopoulos
2007-08-09 15:04 ` Scott Wood
2007-08-09 15:56 ` Segher Boessenkool
2007-08-11 23:28 ` Benjamin Herrenschmidt
2007-08-10 4:32 ` Paul Mackerras
2007-08-08 22:55 ` Benjamin Herrenschmidt
2007-08-08 16:29 ` MPC8260 PCI9 erratum Scott Wood
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=op.twol4cixnhx3hy@phoenix \
--to=akostop@inaccessnetworks.com \
--cc=galak@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=scottwood@freescale.com \
/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).