linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: linux-pci@vger.kernel.org
Cc: Bjorn Helgaas <bhelgaas@google.com>,
	Gavin Shan <shangw@linux.vnet.ibm.com>,
	Yinghai Lu <yinghai@kernel.org>
Subject: Re: Resource assignment oddities
Date: Sun, 05 May 2013 10:15:32 +1000	[thread overview]
Message-ID: <1367712932.11982.20.camel@pasglop> (raw)
In-Reply-To: <1367712653.11982.19.camel@pasglop>

On Sun, 2013-05-05 at 10:10 +1000, Benjamin Herrenschmidt wrote:
> Once upon a time, our PCI resource assignment code use to be reasonably
> straightforward... right now I'm having a hard time making any sense
> of it.

Note that the devices so far seem to be working and here's the resulting
layout:

/ # cat /proc/iomem 
00000000-7ffffffff : System RAM
3d00080000000-3d000fffeffff : /pciex@3fffe40000000
  3d00080000000-3d000807fffff : PCI Bus 0000:01
    3d00080000000-3d0008003ffff : 0000:01:00.0
      3d00080000000-3d0008003ffff : ipr
  3d00080800000-3d00081ffffff : PCI Bus 0000:01
    3d00080800000-3d0008081ffff : 0000:01:00.0
    3d00081000000-3d00081ffffff : 0000:01:00.0
      3d00081000000-3d00081ffffff : ipr
3d01080000000-3d010fffeffff : /pciex@3fffe40100000
  3d01080000000-3d010817fffff : PCI Bus 0001:01
    3d01080000000-3d010817fffff : PCI Bus 0001:02
      3d01080000000-3d010807fffff : PCI Bus 0001:08
        3d01080000000-3d0108001ffff : 0001:08:00.0
      3d01080800000-3d01080ffffff : PCI Bus 0001:09
      3d01081000000-3d010817fffff : PCI Bus 0001:03
  3d01081800000-3d010837fffff : PCI Bus 0001:01
    3d01081800000-3d01081ffffff : PCI Bus 0001:02
      3d01081800000-3d01081ffffff : PCI Bus 0001:08
        3d01081800000-3d0108180ffff : 0001:08:00.0
          3d01081800000-3d0108180ffff : ipr
        3d01081810000-3d0108181ffff : 0001:08:00.0
          3d01081810000-3d0108181ffff : ipr
    3d01082000000-3d0108203ffff : 0001:01:00.0
3d04080000000-3d040fffeffff : /pciex@3fffe40400000
3d05080000000-3d050fffeffff : /pciex@3fffe40500000
  3d05081800000-3d050847fffff : PCI Bus 0003:01
    3d05081800000-3d05081ffffff : PCI Bus 0003:02
      3d05081800000-3d05081ffffff : PCI Bus 0003:03
        3d05081800000-3d0508180ffff : 0003:03:00.0
        3d05081810000-3d05081811fff : 0003:03:00.0
    3d05082000000-3d0508203ffff : 0003:01:00.0
  3d05084800000-3d050867fffff : PCI Bus 0003:01
    3d05084800000-3d050867fffff : PCI Bus 0003:02
      3d05084800000-3d05084ffffff : PCI Bus 0003:09
        3d05084800000-3d0508487ffff : 0003:09:00.0
        3d05084880000-3d050848fffff : 0003:09:00.1
        3d05084900000-3d0508497ffff : 0003:09:00.2
        3d05084980000-3d050849fffff : 0003:09:00.3
        3d05084a00000-3d05084a0ffff : 0003:09:00.0
          3d05084a00000-3d05084a0ffff : tg3
        3d05084a10000-3d05084a1ffff : 0003:09:00.0
          3d05084a10000-3d05084a1ffff : tg3
        3d05084a20000-3d05084a2ffff : 0003:09:00.0
          3d05084a20000-3d05084a2ffff : tg3
        3d05084a30000-3d05084a3ffff : 0003:09:00.1
          3d05084a30000-3d05084a3ffff : tg3
        3d05084a40000-3d05084a4ffff : 0003:09:00.1
          3d05084a40000-3d05084a4ffff : tg3
        3d05084a50000-3d05084a5ffff : 0003:09:00.1
          3d05084a50000-3d05084a5ffff : tg3
        3d05084a60000-3d05084a6ffff : 0003:09:00.2
          3d05084a60000-3d05084a6ffff : tg3
        3d05084a70000-3d05084a7ffff : 0003:09:00.2
          3d05084a70000-3d05084a7ffff : tg3
        3d05084a80000-3d05084a8ffff : 0003:09:00.2
          3d05084a80000-3d05084a8ffff : tg3
        3d05084a90000-3d05084a9ffff : 0003:09:00.3
          3d05084a90000-3d05084a9ffff : tg3
        3d05084aa0000-3d05084aaffff : 0003:09:00.3
          3d05084aa0000-3d05084aaffff : tg3
        3d05084ab0000-3d05084abffff : 0003:09:00.3
          3d05084ab0000-3d05084abffff : tg3
      3d05085000000-3d050857fffff : PCI Bus 0003:0f
      3d05085800000-3d05085ffffff : PCI Bus 0003:0a
      3d05086000000-3d050867fffff : PCI Bus 0003:04

Cheers,
Ben.



  reply	other threads:[~2013-05-05  0:17 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-05  0:10 Resource assignment oddities Benjamin Herrenschmidt
2013-05-05  0:15 ` Benjamin Herrenschmidt [this message]
2013-05-05  5:18   ` Yinghai Lu
2013-05-05  5:34     ` Benjamin Herrenschmidt
2013-05-05  7:09       ` Yinghai Lu
2013-05-05  7:52         ` Benjamin Herrenschmidt
     [not found]           ` <51871088.4594420a.0ccc.7300SMTPIN_ADDED_BROKEN@mx.google.com>
2013-05-06  3:04             ` Yinghai Lu
     [not found]               ` <20130506103159.GA16927@shangw.(null)>
2013-05-06 10:48                 ` Benjamin Herrenschmidt
2013-05-06 19:56                   ` Yinghai Lu
     [not found]                     ` <5188b791.a110420a.0bea.077eSMTPIN_ADDED_BROKEN@mx.google.com>
2013-05-07 22:21                       ` Yinghai Lu
     [not found]                         ` <5189c22b.45f7440a.0a88.6b75SMTPIN_ADDED_BROKEN@mx.google.com>
2013-05-08  3:42                           ` Yinghai Lu
2013-05-17  5:36                         ` Benjamin Herrenschmidt
2013-05-21 17:28                           ` Bjorn Helgaas
2013-05-21 17:39                             ` Yinghai Lu
2013-05-21 22:01                             ` Benjamin Herrenschmidt
2013-05-06 23:15                   ` [PATCH 1/2] PCI: Split pci_assign_unassigned_resources to per root bus Yinghai Lu
2013-05-06 23:15                     ` [PATCH 2/2] PCI: Skip IORESOURCE_IO size and allocation for root bus without ioport range Yinghai Lu
2013-05-07  0:50                     ` [PATCH 1/2] PCI: Split pci_assign_unassigned_resources to per root bus Benjamin Herrenschmidt
     [not found]                       ` <51885a04.c181440a.37c9.ffffa88eSMTPIN_ADDED_BROKEN@mx.google.com>
2013-05-07  7:34                         ` Yinghai Lu
2013-05-21 20:41                     ` Bjorn Helgaas
2013-05-07 22:17                   ` [PATCH v3 0/5] PCI: Skip resource allocation for root bus without conresponding type resource Yinghai Lu
2013-05-07 22:17                     ` [PATCH v3 1/5] PCI: Split pci_assign_unassigned_resources to per root bus Yinghai Lu
2013-05-07 22:17                     ` [PATCH v3 2/5] PCI: Skip IORESOURCE_IO allocation for root bus without ioport range Yinghai Lu
2013-05-07 22:17                     ` [PATCH v3 3/5] PCI: Skip IORESOURCE_MMIO allocation for root bus without MMIO range Yinghai Lu
2013-05-07 22:28                       ` Benjamin Herrenschmidt
2013-05-07 22:44                         ` Yinghai Lu
2013-05-08  1:16                           ` Benjamin Herrenschmidt
2013-05-08  3:57                             ` Yinghai Lu
2013-05-07 22:17                     ` [PATCH v3 4/5] PCI: Enable pci bridge when it is needed Yinghai Lu
2013-05-07 22:17                     ` [PATCH v3 5/5] PCI: Retry assign unassigned resources for hotadd root bus Yinghai Lu
2013-05-22  6:38                   ` [PATCH v4 0/8] PCI: Skip resource allocation for root bus without conresponding type resource Yinghai Lu
2013-05-22  6:38                     ` [PATCH v4 1/8] PCI: Don't use temp bus for pci_bus_release_bridge_resources Yinghai Lu
2013-05-22  6:38                     ` [PATCH v4 2/8] PCI: Use pci_walk_bus to detect unassigned resources Yinghai Lu
2013-05-22  6:38                     ` [PATCH v4 3/8] PCI: Introduce enable_local to prepare per root bus handling Yinghai Lu
2013-05-22  6:38                     ` [PATCH v4 4/8] PCI: Split pci_assign_unassigned_resources to per root bus Yinghai Lu
2013-05-22  6:38                     ` [PATCH v4 5/8] PCI: Skip IORESOURCE_IO allocation for root bus without ioport range Yinghai Lu
2013-05-22  6:38                     ` [PATCH v4 6/8] PCI: Skip IORESOURCE_MMIO allocation for root bus without MMIO range Yinghai Lu
2013-05-22  6:38                     ` [PATCH v4 7/8] PCI: Enable pci bridge when it is needed Yinghai Lu
2013-05-22  6:38                     ` [PATCH v4 8/8] PCI: Retry assign unassigned resources for hotadd root bus Yinghai Lu
2013-06-01  6:03                   ` [PATCH v5 0/7] PCI: Change assign unassigned resources per root bus bassis Yinghai Lu
2013-06-01  6:03                     ` [PATCH v5 2/7] PCI: Don't use temp bus for pci_bus_release_bridge_resources Yinghai Lu
2013-06-01  6:03                     ` [PATCH v5 3/7] PCI: Use pci_walk_bus to detect unassigned resources Yinghai Lu
2013-06-25 21:15                       ` Bjorn Helgaas
2013-06-25 21:38                         ` Benjamin Herrenschmidt
2013-06-25 21:46                           ` Bjorn Helgaas
2013-06-26  8:07                             ` Yinghai Lu
2013-06-26  7:38                         ` Yinghai Lu
2013-06-01  6:03                     ` [PATCH v5 4/7] PCI: Introduce enable_local to prepare per root bus handling Yinghai Lu
2013-06-01  6:03                     ` [PATCH v5 5/7] PCI: Split pci_assign_unassigned_resources to per root bus Yinghai Lu
2013-06-01  6:03                     ` [PATCH v5 6/7] PCI: Enable pci bridge when it is needed Yinghai Lu
2013-06-01  6:03                     ` [PATCH v5 7/7] PCI: Retry assign unassigned resources for hotadd root bus Yinghai Lu
2013-06-01  6:03                     ` [PATCH v5 1/7] PCI: Don't let mmio fallback to must-only, if ioport fails with must+optional Yinghai Lu
2013-06-22  3:00                     ` [PATCH v5 0/7] PCI: Change assign unassigned resources per root bus bassis Yinghai Lu
     [not found]               ` <518786a7.64bbec0a.58a0.1f6bSMTPIN_ADDED_BROKEN@mx.google.com>
2013-05-22 14:54                 ` Resource assignment oddities Bjorn Helgaas
2013-05-22 16:59                   ` Yinghai Lu
2013-05-22 17:21                     ` Bjorn Helgaas
2013-05-22 20:44                       ` Benjamin Herrenschmidt
2013-05-22 21:01                         ` Yinghai Lu
2013-05-22 20:43                     ` Benjamin Herrenschmidt
2013-05-22 21:00                       ` Yinghai Lu
2013-05-22 21:13                         ` Benjamin Herrenschmidt
2013-05-22 20:50                     ` Yinghai Lu
     [not found]                       ` <519dcfbe.89e9420a.4934.488bSMTPIN_ADDED_BROKEN@mx.google.com>
2013-05-23 17:08                         ` Yinghai Lu
2013-05-23 17:12                           ` Bjorn Helgaas
2013-05-23 17:17                             ` Yinghai Lu
2013-05-23 19:47                               ` Bjorn Helgaas
2013-05-23 21:00                                 ` Yinghai Lu
2013-05-23 21:23                                   ` Benjamin Herrenschmidt
2013-05-23 22:16                                     ` Yinghai Lu
2013-05-24 15:59                                       ` Bjorn Helgaas
2013-05-24 16:33                                         ` Benjamin Herrenschmidt
2013-05-24 16:34                                         ` Yinghai Lu
2013-05-23 17:11                         ` [PATCH] PCI: Don't let mmio fallback to must-only, if ioport fails with must+optional Yinghai Lu
2013-05-24 17:25                           ` Bjorn Helgaas
2013-05-24 23:31                             ` [PATCH v3] " Yinghai Lu
2013-05-24 23:34                             ` [PATCH] " Yinghai Lu

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=1367712932.11982.20.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=bhelgaas@google.com \
    --cc=linux-pci@vger.kernel.org \
    --cc=shangw@linux.vnet.ibm.com \
    --cc=yinghai@kernel.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).