linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Robert" <RJSmith92@live.com>
To: "Bjorn Helgaas" <bhelgaas@google.com>
Cc: <linux-pci@vger.kernel.org>
Subject: Re: PCIe root bridge and memory ranges.
Date: Sun, 14 Sep 2014 01:12:09 +0100	[thread overview]
Message-ID: <DUB130-DS112D34DA745F1B5BF78DF6DBCB0@phx.gbl> (raw)
In-Reply-To: <CAErSpo6oma4rJwJbAF55pL6x1Es+eQxgOSpnPPOro+SkMrzufw@mail.gmail.com>

Thanks for all your help with my questions Bjorn, it really has been 
appreciated :)

Kind Regards,
Robert

-----Original Message----- 
From: Bjorn Helgaas
Sent: Thursday, September 11, 2014 9:56 PM
To: Robert
Cc: linux-pci@vger.kernel.org
Subject: Re: PCIe root bridge and memory ranges.

On Wed, Sep 10, 2014 at 6:18 PM, Robert <RJSmith92@live.com> wrote:

>> We did a lot of work a few years ago to support an arbitrary number of
>> apertures, e.g.,
>>
>> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=2fe2abf896c1
>
> ... but in basic terms, does it allow for a root bridge to
> have 2 or more memory address windows e.g. 0xC0000000 - 0xCFFFFFFF and
> 0xD0000000 - 0xFFFFFFFF?

Yes, that's very common.  For example, my laptop reports these windows:

  pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7]
  pci_bus 0000:00: root bus resource [io  0x0d00-0xffff]
  pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff]
  pci_bus 0000:00: root bus resource [mem 0xbf200000-0xdfffffff]
  pci_bus 0000:00: root bus resource [mem 0xf0000000-0xfedfffff]
  pci_bus 0000:00: root bus resource [mem 0xfee01000-0xffffffff]

> 1 last question :) Regarding PCIe, I understand that it is a packet based
> protocol but where are the packets created? Online a lot of resources say
> the Root Complex generates a PCIe transaction on behalf of the processor,
> but isn't the Root Complex made up of multiple devices (host bridge/s and
> memory controller etc.) Do you know which specific device generates the 
> PCIe
> packet, is it the root bridge?

I'm not a hardware person, and I would only be guessing here.
Obviously packets leave a Root Port, so they have to be created there
or farther inside the Root Complex.  My understanding is that a Root
Port is conceptually part of a Root Complex.

Bjorn 


      reply	other threads:[~2014-09-14  0:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-04 14:57 PCIe root bridge and memory ranges Robert
2014-09-04 20:07 ` Bjorn Helgaas
2014-09-04 21:41   ` Robert
2014-09-09 15:50     ` Bjorn Helgaas
2014-09-11  0:18       ` Robert
2014-09-11 20:56         ` Bjorn Helgaas
2014-09-14  0:12           ` Robert [this message]

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=DUB130-DS112D34DA745F1B5BF78DF6DBCB0@phx.gbl \
    --to=rjsmith92@live.com \
    --cc=bhelgaas@google.com \
    --cc=linux-pci@vger.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).