devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Lior Amsalem <alior@marvell.com>, Andrew Lunn <andrew@lunn.ch>,
	Jason Cooper <jason@lakedaemon.net>,
	devicetree-discuss@lists.ozlabs.org,
	Grant Likely <grant.likely@secretlab.ca>,
	Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
	Maen Suleiman <maen@marvell.com>,
	Ezequiel Garcia <ezequiel.garcia@free-electrons.com>,
	Gregory Clement <gregory.clement@free-electrons.com>,
	linux-arm-kernel@lists.infradead.org,
	Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Subject: Re: [PATCH v3 11/12] ARM: mvebu: Relocate Armada 370 PCIe device tree nodes
Date: Tue, 18 Jun 2013 20:22:08 +0200	[thread overview]
Message-ID: <201306182022.08927.arnd@arndb.de> (raw)
In-Reply-To: <20130618192154.4c1530cc@skate>

On Tuesday 18 June 2013, Thomas Petazzoni wrote:
> On Tue, 18 Jun 2013 19:18:58 +0200, Arnd Bergmann wrote:
> 
> > > >                        ranges =
> > > >                               <0x82000000 0 0x40000    0xffff0001 0x40000 0 0x00002000
> > > >                                0x82000000 0 0x80000    0xffff0001 0x80000 0 0x00002000
> > > >                                0x82000000 1 0 MBUS_ID(0x12, 0x34) 0  1 0
> > > >                                0x82000000 2 0 MBUS_ID(0x13, 0x34) 0  1 0
> > > >                                0x81000000 1 0 MBUS_ID(0x12, 0x35) 0 0 0x10000;
> > > >                                0x81000000 2 0 MBUS_ID(0x13, 0x35) 0 0 0x10000>;
> > > > 
> > > > The MBUS_ID numbers above are made up since I don't know them, but this way you can
> > > > describe how the entire 4GB MMIO address space of the PCI bus is mapped into the
> > > > MBUS address space.
> > > 
> > > This is NOT possible because we don't know in advance how much memory
> > > space and I/O space each PCIe device will require.
> > > 
> > > Arnd, we've discussed this at length with you while getting the PCIe
> > > driver merged, and we've explained this to you numerous times. Could
> > > you please understand that any of your proposal that suggests writing
> > > down static windows for PCIe devices will not work?
> > 
> > Where did I suggest static windows for PCIe devices?
> 
> Where does your new proposal buys us anything useful compared to the
> existing PCIe DT binding that has been discussed at length with you?

I'm pretty sure I explained the idea above originally and was ignored.
Jason Gunthorpe might remember better, but I think he liked it when I
originally proposed doing it this way.

The main differences are:

* It unifies the binding for the PCIe case and all other registers. There is no
  need to treat PCIe special in the binding this way, which is more future-proof
  and more consistent.

* Since the host physical address for the PCIe memory space window is set up
  dynamically anyway, there is no reason to hardcode it in DT. We want it to
  be as large as possible, and this way the mbus driver can just pick the largest
  free area itself after setting up all the other mappings from the ranges
  property.

* The binding actually allows the PCIe translation to be discontiguous, so if
  we want to improve the code in the future, we can fill all the holes in the
  mbus space with PCIe windows without changing the binding.

* It separates hardware description (in the PCIe node) from policy (in the mbus
  node), just like we do for all the other mbus children.

	Arnd

  reply	other threads:[~2013-06-18 18:22 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-18 11:25 [PATCH v3 00/12] MBus device tree binding Ezequiel Garcia
     [not found] ` <1371554737-25319-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2013-06-18 11:25   ` [PATCH v3 01/12] bus: mvebu-mbus: Factor out initialization details Ezequiel Garcia
2013-06-18 11:25   ` [PATCH v3 02/12] bus: mvebu-mbus: Introduce device tree binding Ezequiel Garcia
2013-06-18 11:25   ` [PATCH v3 03/12] bus: mvebu-mbus: Add static window allocation to the DT binding Ezequiel Garcia
     [not found]     ` <1371554737-25319-4-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2013-06-18 16:14       ` Arnd Bergmann
     [not found]         ` <201306181814.33941.arnd-r2nGTMty4D4@public.gmane.org>
2013-06-18 17:12           ` Thomas Petazzoni
2013-06-18 17:16             ` Arnd Bergmann
2013-06-18 21:34           ` Ezequiel Garcia
2013-06-18 21:45             ` Arnd Bergmann
     [not found]               ` <201306182345.26281.arnd-r2nGTMty4D4@public.gmane.org>
2013-06-19 18:52                 ` Ezequiel Garcia
2013-06-19 19:08                   ` Arnd Bergmann
     [not found]                     ` <201306192108.30998.arnd-r2nGTMty4D4@public.gmane.org>
2013-06-19 19:29                       ` Ezequiel Garcia
2013-06-19 19:37                         ` Jason Cooper
2013-06-18 17:46       ` Jason Gunthorpe
     [not found]         ` <20130618174622.GD2204-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-06-18 18:24           ` Sebastian Hesselbarth
     [not found]             ` <51C0A5F8.8030300-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-06-18 18:39               ` Arnd Bergmann
     [not found]                 ` <201306182039.50736.arnd-r2nGTMty4D4@public.gmane.org>
2013-06-18 18:44                   ` Sebastian Hesselbarth
     [not found]                     ` <51C0AA8E.9080807-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-06-18 18:47                       ` Jason Gunthorpe
     [not found]                         ` <20130618184753.GA6090-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-06-18 18:59                           ` Sebastian Hesselbarth
     [not found]                             ` <51C0ADF7.5050609-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-06-18 19:10                               ` Jason Gunthorpe
     [not found]                                 ` <20130618191018.GB6578-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-06-18 19:27                                   ` Sebastian Hesselbarth
     [not found]                                     ` <51C0B4A0.90204-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-06-18 20:49                                       ` Ezequiel Garcia
2013-06-18 20:55                                         ` Jason Gunthorpe
     [not found]                                           ` <20130618205522.GA13691-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-06-18 21:10                                             ` Ezequiel Garcia
2013-06-18 11:25   ` [PATCH v3 04/12] ARM: mvebu: Initialize MBus using " Ezequiel Garcia
2013-06-18 11:25   ` [PATCH v3 05/12] ARM: mvebu: Remove the harcoded BootROM window allocation Ezequiel Garcia
     [not found]     ` <1371554737-25319-6-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2013-06-18 17:39       ` Jason Gunthorpe
     [not found]         ` <20130618173906.GC2204-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-06-18 19:43           ` Ezequiel Garcia
2013-06-18 19:51             ` Jason Gunthorpe
     [not found]               ` <20130618195111.GC6578-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-06-18 20:02                 ` Ezequiel Garcia
2013-06-18 20:10                   ` Jason Gunthorpe
     [not found]                     ` <20130618201021.GA11688-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-06-18 20:39                       ` Ezequiel Garcia
2013-06-19 10:02           ` Ezequiel Garcia
2013-06-19 16:58             ` Jason Gunthorpe
     [not found]               ` <20130619165834.GB32155-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-06-19 17:58                 ` Ezequiel Garcia
2013-06-19 18:03                   ` Jason Gunthorpe
     [not found]                     ` <20130619180320.GA25000-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-06-19 18:17                       ` Ezequiel Garcia
2013-06-18 11:25   ` [PATCH v3 06/12] memory: mvebu-devbus: Remove address decoding window workaround Ezequiel Garcia
     [not found]     ` <1371554737-25319-7-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2013-06-18 11:39       ` Jason Cooper
     [not found]         ` <20130618113920.GW31667-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-06-18 12:17           ` Thomas Petazzoni
2013-06-18 12:33             ` Jason Cooper
     [not found]               ` <20130618123354.GX31667-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-06-18 12:48                 ` Ezequiel Garcia
2013-06-18 11:25   ` [PATCH v3 07/12] ARM: mvebu: Use the preprocessor on Armada 370/XP device tree files Ezequiel Garcia
2013-06-18 11:25   ` [PATCH v3 08/12] ARM: mvebu: Add MBus to Armada 370/XP device tree Ezequiel Garcia
2013-06-18 11:25   ` [PATCH v3 09/12] ARM: mvebu: Add BootROM " Ezequiel Garcia
2013-06-18 11:25   ` [PATCH v3 10/12] ARM: mvebu: Relocate Armada 370/XP DeviceBus device tree nodes Ezequiel Garcia
     [not found]     ` <1371554737-25319-11-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2013-06-18 16:16       ` Arnd Bergmann
     [not found]         ` <201306181816.26530.arnd-r2nGTMty4D4@public.gmane.org>
2013-06-18 22:09           ` Ezequiel Garcia
2013-06-18 22:14             ` Ezequiel Garcia
2013-06-19 12:03             ` Arnd Bergmann
2013-06-18 11:25   ` [PATCH v3 11/12] ARM: mvebu: Relocate Armada 370 PCIe " Ezequiel Garcia
2013-06-18 16:29     ` Arnd Bergmann
     [not found]       ` <201306181829.35514.arnd-r2nGTMty4D4@public.gmane.org>
2013-06-18 17:15         ` Thomas Petazzoni
2013-06-18 17:18           ` Arnd Bergmann
     [not found]             ` <201306181918.59046.arnd-r2nGTMty4D4@public.gmane.org>
2013-06-18 17:21               ` Thomas Petazzoni
2013-06-18 18:22                 ` Arnd Bergmann [this message]
     [not found]                   ` <201306182022.08927.arnd-r2nGTMty4D4@public.gmane.org>
2013-06-18 19:02                     ` Jason Gunthorpe
     [not found]                       ` <20130618190223.GA6578-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-06-18 21:20                         ` Arnd Bergmann
     [not found]                           ` <201306182320.07351.arnd-r2nGTMty4D4@public.gmane.org>
2013-06-18 21:40                             ` Ezequiel Garcia
2013-06-19 12:06                               ` Arnd Bergmann
     [not found]     ` <1371554737-25319-12-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2013-06-18 21:35       ` Arnd Bergmann
     [not found]         ` <201306182335.50722.arnd-r2nGTMty4D4@public.gmane.org>
2013-06-19 11:12           ` Ezequiel Garcia
2013-06-19 12:11             ` Arnd Bergmann
     [not found]               ` <201306191411.59010.arnd-r2nGTMty4D4@public.gmane.org>
2013-06-19 16:53                 ` Jason Gunthorpe
     [not found]                   ` <20130619165348.GA32155-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-06-19 18:55                     ` Arnd Bergmann
2013-06-18 11:25   ` [PATCH v3 12/12] ARM: mvebu: Relocate Armada XP " Ezequiel Garcia
2013-06-18 11:33   ` [PATCH v3 00/12] MBus device tree binding Sebastian Hesselbarth
     [not found]     ` <51C04591.3010206-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-06-18 13:07       ` Ezequiel Garcia

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=201306182022.08927.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=alior@marvell.com \
    --cc=andrew@lunn.ch \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=ezequiel.garcia@free-electrons.com \
    --cc=grant.likely@secretlab.ca \
    --cc=gregory.clement@free-electrons.com \
    --cc=jason@lakedaemon.net \
    --cc=jgunthorpe@obsidianresearch.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=maen@marvell.com \
    --cc=sebastian.hesselbarth@gmail.com \
    --cc=thomas.petazzoni@free-electrons.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).