devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
To: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
Cc: Andrew Lunn <andrew-g2DYL2Zd6BY@public.gmane.org>,
	Jason Cooper <jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org>,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	Jason Gunthorpe
	<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>,
	Maen Suleiman <maen-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>,
	Lior Amsalem <alior-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	Sebastian Hesselbarth
	<sebastian.hesselbarth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Re: [PATCH v3 03/12] bus: mvebu-mbus: Add static window allocation to the DT binding
Date: Wed, 19 Jun 2013 16:29:16 -0300	[thread overview]
Message-ID: <20130619192915.GA8769@localhost> (raw)
In-Reply-To: <201306192108.30998.arnd-r2nGTMty4D4@public.gmane.org>

On Wed, Jun 19, 2013 at 09:08:30PM +0200, Arnd Bergmann wrote:
> On Wednesday 19 June 2013, Ezequiel Garcia wrote:
> > > > What happens is that any decoding window that was setup by the bootloader,
> > > > is wiped and completely new windows are allocated using the translations
> > > > in the DT, as described by this binding.
> > > > 
> > > > This was the case from the start with the old MBus driver. FWIW, I think
> > > > it's actually the best choice that can be made: it makes the kernel
> > > > independent of the previous setting.
> > > > 
> > > > I know you've suggested differently in the past, but I'm not sure I
> > > > understand what's the benefit in keeping the bootloaders configuration.
> > > 
> > > The device tree normally describes things that are either wired up
> > > in hardware or set up by the boot loader. Describing things that the
> > > boot loader may or may not have set up and that the kernel should
> > > set up but may ignore if it wants to is a bit fishy, but it seems
> > > that you have decided to do it that way. You should definitely
> > > document the fact that all ranges except the "internal-regs" are just
> > > suggestions and cannot be relied on to be present at boot time.
> > > 
> > 
> > Hold on! I've just noticed this, and I want to clarify something, just
> > to avoid mis-interpretations. The binding is not saying "the windows
> > described through this ranges are present at boot time".
> > 
> > Rather, it is "this binding will guarantee that the windows described 
> > in it will be present after the mbus allocates them".
> > 
> > Does it sound too fishy?
> 
> I don't think it's a guarantee that the binding can make. The binding
> describes the interface between the hardware/firmware and the kernel,
> not an interface between one kernel driver and another.
> 
> You could instead write:
> 
> "The ranges property defines a set of mbus windows that are expected
> to be set by the operating system and that are guaranteed to be free
> of overlaps with one another or with the system memory ranges.
> Each entry in the property refers to exactly one window. If an
> operating system choses to use a different set of mbus windows,
> it must ensure that any address translations performed from downstream
> devices are adapted accordingly. The operating system may insert
> additional mbus windows that do not conflict with the ones listed
> in the ranges, e.g. for mapping PCIe devices. As a special case,
> the internal register window must be set up by the boot loader
> at the address listed in the ranges property, since the operating
> uses it to set up the other windows."
> 

Nice!

Shamelessly copy-pasted into the binding documentation.

Thanks,
-- 
Ezequiel García, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
_______________________________________________
devicetree-discuss mailing list
devicetree-discuss@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/devicetree-discuss

  parent reply	other threads:[~2013-06-19 19:29 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 [this message]
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
     [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=20130619192915.GA8769@localhost \
    --to=ezequiel.garcia-wi1+55scjutkeb57/3fjtnbpr1lh4cv8@public.gmane.org \
    --cc=alior-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org \
    --cc=andrew-g2DYL2Zd6BY@public.gmane.org \
    --cc=arnd-r2nGTMty4D4@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org \
    --cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=maen-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org \
    --cc=sebastian.hesselbarth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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).