From: Scott Wood <scottwood@freescale.com>
To: Gary Thomas <gary@mlbassoc.com>
Cc: linuxppc-dev <linuxppc-dev@ozlabs.org>
Subject: Re: PCI on 834x
Date: Wed, 24 Feb 2010 14:26:20 -0600 [thread overview]
Message-ID: <4B858B6C.4020809@freescale.com> (raw)
In-Reply-To: <4B858243.8010908@mlbassoc.com>
Gary Thomas wrote:
> Yes, I'm using the exact same kernel with these two different PCI
> setups (done by the boot loader).
>
> Restricting the memory via mem=128M has no effect - the PCI layout is
> the same.
>
> I think the outbound window size is required because of how the Linux PCI
> remaps the space (note in my dumps that it put the MMIO of the boards
> starting
> at 0xD0000000 when the inbound window is 0x10000000)
I see where the amount of RAM is mattering -- Linux is assigning
outbound I/O space to the PCI controller itself (device 00:00.0) and the
amount that it asks for seems to differ based on memory size. Linux
ought to skip that device when assigning resources. Some platforms do
this (search for pci_exclude_device), but it seems to be missing on 83xx.
>> Are there any errors indicated in the device, the PCI controller, the
>> arbiter, etc?
>
> None that are obvious to me.
>
> To be clear, here are my observations:
>
> * total memory 128MB (or less), inbound window 128MB, outbound window 128MB
> ==> device is happy
> * total memory 256MB, inbound window 128MB, outbound window 128MB
> ==> device hangs, unable to access RAM (Linux handed it something
> higher than 128MB)
Linux gets its idea of how much space there is to allocate from the
ranges property of the pci node in the device tree -- this should be
made to match what u-boot configures in PIWARn.
> * total memory 256MB, inbound window 256MB, outbound window 128MB
> ==> segmentation violation when accessing device MMIO space
> * total memory 256MB, inbound window 256MB, outbound window 256MB
> ==> access to MMIO space fails (Linux can't find device). In this
> case, the SATA_SIL reports
> ata1: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
> ata2: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
> which implies that the driver get's junk when accessing the device
> MMIO space
Are there any other relevant messages earlier in boot, perhaps from the
PCI code failing to assign a resource?
-Scott
next prev parent reply other threads:[~2010-02-24 20:27 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-24 15:49 PCI on 834x Gary Thomas
2010-02-24 18:48 ` Scott Wood
2010-02-24 19:14 ` Gary Thomas
2010-02-24 19:31 ` Scott Wood
2010-02-24 19:47 ` Gary Thomas
2010-02-24 20:26 ` Scott Wood [this message]
2010-02-24 20:51 ` Anton Vorontsov
2010-02-24 22:14 ` Gary Thomas
2010-02-24 22:25 ` Kumar Gala
2010-02-24 23:08 ` Gary Thomas
2010-02-25 14:25 ` Gary Thomas
2010-02-25 20:49 ` Benjamin Herrenschmidt
2010-02-25 21:03 ` Scott Wood
2010-02-25 21:11 ` Gary Thomas
2010-02-25 21:24 ` Scott Wood
2010-02-25 23:43 ` Gary Thomas
2010-02-25 23:49 ` Scott Wood
2010-02-25 22:36 ` 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=4B858B6C.4020809@freescale.com \
--to=scottwood@freescale.com \
--cc=gary@mlbassoc.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).