All of lore.kernel.org
 help / color / mirror / Atom feed
From: "glikely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org" <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
To: Mitch Bradley <wmb-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
Cc: Russell King - ARM Linux
	<linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: "Early" devices and the DT
Date: Sun, 26 Jun 2011 15:24:43 -0600	[thread overview]
Message-ID: <4f20d688-0cbb-48e7-830c-69cf57d902ba@email.android.com> (raw)
In-Reply-To: <4E0786FF.9010002-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>



Mitch Bradley <wmb-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org> wrote:

>Some solutions to the early device problem
>
>a) Most complex:  Use new properties to create a dependency graph. 
>This 
>is probably the most general solution, but also probably the hardest
>for 
>people to think about and maintain.
>
>b) Define a set of init phases 0,1,2,...  and mark each early device 
>node with a phase number property.  Scan the tree for each phase and 
>handle only the devices with that phase number.  Unmarked nodes are 
>handled last.
>
>c) Similar to b, but instead of properties in nodes, have properties 
>like "linux-phase0", "linux-phase1", etc in /chosen, whose values are 
>lists of phandles.

d) don't try to encode init order at all in the DT, and let device drivers request probe to be deferred.  If this works out, it will be by far the least complex and won't require anybody to sit and work out the init order for each machine.  I've even already posted a draft patch to do this.

e) work out probe order dynamically by looking at known phandle types at device registration time. This is potentially more 'efficient' than option d, but it requires a lot of knowledge to be built into the registration code which will get really complex in a hurry.

Right now I'm strongly leaning in the direction of option d.

g.

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

WARNING: multiple messages have this Message-ID (diff)
From: grant.likely@secretlab.ca (glikely@secretlab.ca)
To: linux-arm-kernel@lists.infradead.org
Subject: "Early" devices and the DT
Date: Sun, 26 Jun 2011 15:24:43 -0600	[thread overview]
Message-ID: <4f20d688-0cbb-48e7-830c-69cf57d902ba@email.android.com> (raw)
In-Reply-To: <4E0786FF.9010002@firmworks.com>



Mitch Bradley <wmb@firmworks.com> wrote:

>Some solutions to the early device problem
>
>a) Most complex:  Use new properties to create a dependency graph. 
>This 
>is probably the most general solution, but also probably the hardest
>for 
>people to think about and maintain.
>
>b) Define a set of init phases 0,1,2,...  and mark each early device 
>node with a phase number property.  Scan the tree for each phase and 
>handle only the devices with that phase number.  Unmarked nodes are 
>handled last.
>
>c) Similar to b, but instead of properties in nodes, have properties 
>like "linux-phase0", "linux-phase1", etc in /chosen, whose values are 
>lists of phandles.

d) don't try to encode init order at all in the DT, and let device drivers request probe to be deferred.  If this works out, it will be by far the least complex and won't require anybody to sit and work out the init order for each machine.  I've even already posted a draft patch to do this.

e) work out probe order dynamically by looking at known phandle types at device registration time. This is potentially more 'efficient' than option d, but it requires a lot of knowledge to be built into the registration code which will get really complex in a hurry.

Right now I'm strongly leaning in the direction of option d.

g.

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

  parent reply	other threads:[~2011-06-26 21:24 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-24 14:10 [RFC PATCH 0/4] DT support for ARM GIC and TWD Marc Zyngier
2011-06-24 14:10 ` Marc Zyngier
     [not found] ` <1308924659-31894-1-git-send-email-marc.zyngier-5wv7dgnIgG8@public.gmane.org>
2011-06-24 14:10   ` [RFC PATCH 1/4] dt: early platform devices support Marc Zyngier
2011-06-24 14:10     ` Marc Zyngier
2011-06-25  4:49     ` Grant Likely
2011-06-25  4:49       ` Grant Likely
2011-06-25  4:49       ` Grant Likely
2011-06-25 11:11       ` Marc Zyngier
2011-06-25 11:11         ` Marc Zyngier
2011-06-25 11:11         ` Marc Zyngier
2011-06-25 20:44         ` Grant Likely
2011-06-25 20:44           ` Grant Likely
2011-06-25 20:44           ` Grant Likely
2011-06-27  9:54           ` Marc Zyngier
2011-06-27  9:54             ` Marc Zyngier
2011-06-27  9:54             ` Marc Zyngier
2011-06-24 14:10   ` [RFC PATCH 2/4] ARM: dt: register local timers as early platform devices Marc Zyngier
2011-06-24 14:10     ` Marc Zyngier
2011-06-25 20:47     ` Grant Likely
2011-06-25 20:47       ` Grant Likely
     [not found]       ` <20110625204742.GB15026-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2011-06-25 21:20         ` Rob Herring
2011-06-25 21:20           ` Rob Herring
     [not found]           ` <4E06513B.4030706-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-06-26  7:00             ` Grant Likely
2011-06-26  7:00               ` Grant Likely
     [not found]               ` <BANLkTimy6iyQyyvNUK3Kc6skSKyVxBwWPA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-06-26 19:22                 ` "Early" devices and the DT Mitch Bradley
     [not found]                   ` <4E0786FF.9010002-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
2011-06-26 21:24                     ` glikely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org [this message]
2011-06-26 21:24                       ` glikely@secretlab.ca
2011-06-24 14:10   ` [RFC PATCH 3/4] ARM: dt: add GIC bindings and driver support Marc Zyngier
2011-06-24 14:10     ` Marc Zyngier
     [not found]     ` <1308924659-31894-4-git-send-email-marc.zyngier-5wv7dgnIgG8@public.gmane.org>
2011-06-26  8:01       ` Grant Likely
2011-06-26  8:01         ` Grant Likely
     [not found]         ` <20110626080135.GC15026-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2011-06-27 10:27           ` Marc Zyngier
2011-06-27 10:27             ` Marc Zyngier
     [not found]             ` <4E085B2E.5030605-5wv7dgnIgG8@public.gmane.org>
2011-06-27 15:02               ` Grant Likely
2011-06-27 15:02                 ` Grant Likely
2011-06-24 14:10   ` [RFC PATCH 4/4] ARM: dt: Add TWD " Marc Zyngier
2011-06-24 14:10     ` Marc Zyngier
     [not found]     ` <1308924659-31894-5-git-send-email-marc.zyngier-5wv7dgnIgG8@public.gmane.org>
2011-06-26  8:09       ` Grant Likely
2011-06-26  8:09         ` Grant Likely
     [not found]         ` <20110626080902.GA24241-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2011-06-27 10:39           ` Marc Zyngier
2011-06-27 10:39             ` Marc Zyngier

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=4f20d688-0cbb-48e7-830c-69cf57d902ba@email.android.com \
    --to=grant.likely-s3s/wqlpoipyb63q8fvjnq@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org \
    --cc=wmb-D5eQfiDGL7eakBO8gow8eQ@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.