linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: robherring2@gmail.com (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 03/15] ARM: tegra: use fixed PCI i/o mapping
Date: Fri, 06 Jul 2012 15:11:53 -0500	[thread overview]
Message-ID: <4FF74689.8070103@gmail.com> (raw)
In-Reply-To: <4FF74028.6090300@wwwdotorg.org>

On 07/06/2012 02:44 PM, Stephen Warren wrote:
> On 07/06/2012 12:40 PM, Rob Herring wrote:
>> From: Rob Herring <rob.herring@calxeda.com>
>>
>> Move tegra PCI to fixed i/o mapping and remove io.h.
> 
> Thierry, since you're the Tegra PCIe expert right now, could you please
> test and/or comment on this.
> 
> I did try testing this on next-20120705 on TrimSlice (i.e. the
> PCIe-based Ethernet controller), but found that PCIe has stopped working
> there due to "resource collisions". I know this used to work fairly
> recently, since I tested it when I added the PCIe initialization call to
> board-dt-tegra20.c. The PCIe messages are:

This is with my change and it works currently without?

The i/o mapping of the 2nd ctrlr looked a bit screwy to me. It's not
clear to me how an i/o address of 0x11000+ gets steered to the 2nd
controller.

Rob
> 
>> PCIE: port 1: link down, retrying
>> PCIE: port 1: link down, retrying
>> PCIE: port 1: link down, ignoring
>> PCI host bridge to bus 0000:00
>> pci_bus 0000:00: root bus resource [io  0x1000-0x8fff]
>> pci_bus 0000:00: root bus resource [mem 0x90000000-0x97ffffff]
>> pci_bus 0000:00: root bus resource [mem 0xa0000000-0xa7ffffff pref]
>> pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
>> pci_bus 0000:00: busn_res: [bus 00-ff] is inserted under domain [bus 00-ff]
>> pci 0000:00:00.0: [10de:0bf0] type 01 class 0x060000
>> pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
>> PCI: bus0: Fast back to back transfers disabled
>> pci_bus 0000:01: busn_res: [bus 01-ff] is inserted under [bus 00-ff]
>> pci 0000:01:00.0: [10ec:8168] type 00 class 0x020000
>> pci 0000:01:00.0: reg 10: [io  0x0000-0x00ff]
>> pci 0000:01:00.0: reg 18: [mem 0x00000000-0x00000fff 64bit pref]
>> pci 0000:01:00.0: reg 20: [mem 0x00000000-0x00003fff 64bit pref]
>> pci 0000:01:00.0: reg 30: [mem 0x00000000-0x0001ffff pref]
>> pci 0000:01:00.0: supports D1 D2
>> pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
>> PCI: bus1: Fast back to back transfers disabled
>> pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
>> pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
>> r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
>> PCI: Device 0000:01:00.0 not available because of resource collisions
>> r8169 0000:01:00.0: (unregistered net_device): enable failure
>> r8169: probe of 0000:01:00.0 failed with error -22
>> pci 0000:00:00.0: BAR 9: assigned [mem 0xa0000000-0xa00fffff pref]
>> pci 0000:00:00.0: BAR 7: assigned [io  0x1000-0x1fff]
>> pci 0000:01:00.0: BAR 6: assigned [mem 0xa0000000-0xa001ffff pref]
>> pci 0000:01:00.0: BAR 4: assigned [mem 0xa0020000-0xa0023fff 64bit pref]
>> pci 0000:01:00.0: BAR 2: assigned [mem 0xa0024000-0xa0024fff 64bit pref]
>> pci 0000:01:00.0: BAR 0: assigned [io  0x1000-0x10ff]
>> pci 0000:00:00.0: PCI bridge to [bus 01]
>> pci 0000:00:00.0:   bridge window [io  0x1000-0x1fff]
>> pci 0000:00:00.0:   bridge window [mem 0xa0000000-0xa00fffff pref]
>> PCI: enabling device 0000:00:00.0 (0140 -> 0143)

  reply	other threads:[~2012-07-06 20:11 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-06 18:40 [PATCH 00/15] PCI io.h cleanups Rob Herring
2012-07-06 18:40 ` [PATCH 01/15] ARM: Add fixed PCI i/o mapping Rob Herring
2012-07-09 16:21   ` Arnd Bergmann
2012-07-06 18:40 ` [PATCH 02/15] ARM: versatile: use " Rob Herring
2012-07-06 18:40 ` [PATCH 03/15] ARM: tegra: " Rob Herring
2012-07-06 19:44   ` Stephen Warren
2012-07-06 20:11     ` Rob Herring [this message]
2012-07-06 20:16       ` Stephen Warren
2012-07-06 20:36         ` Stephen Warren
2012-07-06 21:01           ` Stephen Warren
2012-07-08  6:09   ` Thierry Reding
2012-07-08 14:17     ` Rob Herring
2012-07-08 16:35       ` Arnd Bergmann
2012-07-08 20:33         ` Rob Herring
2012-07-09  2:53           ` Nicolas Pitre
2012-07-06 18:40 ` [PATCH 04/15] ARM: integrator: " Rob Herring
2012-07-06 18:40 ` [PATCH 05/15] ARM: shark: " Rob Herring
2012-07-06 18:40 ` [PATCH 06/15] ARM: footbridge: " Rob Herring
2012-07-06 18:40 ` [PATCH 07/15] ARM: dove: " Rob Herring
2012-07-09 15:50   ` Arnd Bergmann
2012-07-09 18:29     ` Rob Herring
2012-07-09 20:37       ` Arnd Bergmann
2012-07-09 20:47       ` Nicolas Pitre
2012-07-10  7:50         ` Arnd Bergmann
2012-07-06 18:40 ` [PATCH 08/15] ARM: kirkwood: " Rob Herring
2012-07-06 18:40 ` [PATCH 09/15] ARM: orion5x: " Rob Herring
2012-07-06 18:40 ` [PATCH 10/15] iop13xx: use more regular PCI I/O space handling Rob Herring
2012-07-06 18:40 ` [PATCH 11/15] ARM: iop13xx: use fixed PCI i/o mapping Rob Herring
2012-07-06 18:40 ` [PATCH 12/15] ARM: mv78xx0: use fixed pci " Rob Herring
2012-07-06 18:40 ` [PATCH 13/15] i2c: iop3xx: clean-up trailing whitespace Rob Herring
2012-07-06 18:40 ` [PATCH 14/15] i2c: iop3xx: use standard gpiolib functions Rob Herring
2012-07-08 11:29   ` Wolfram Sang
2012-07-08 14:29     ` Rob Herring
2012-07-06 18:40 ` [PATCH 15/15] ARM: iop3xx: use fixed PCI i/o mapping Rob Herring
2012-07-09 16:28 ` [PATCH 00/15] PCI io.h cleanups Arnd Bergmann
2012-07-09 18:42   ` Rob Herring
2012-07-09 20:24     ` Nicolas Pitre

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=4FF74689.8070103@gmail.com \
    --to=robherring2@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.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).