From: Tom Rini <trini@ti.com>
To: Alexander Graf <agraf@suse.de>
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>,
Mark Rutland <Mark.Rutland@arm.com>,
cross-distro@lists.linaro.org, Tom Rini <tom.rini@gmail.com>,
Ian Campbell <ian.campbell@citrix.com>,
Arnd Bergmann <arnd@arndb.de>,
devicetree@vger.kernel.org, Rob Herring <rob.herring@calxeda.com>,
Pawel Moll <pawel.moll@arm.com>,
David Gibson <david@gibson.dropbear.id.au>
Subject: Re: [RFC] Best practices for hardware shipping device trees
Date: Tue, 20 Aug 2013 11:03:08 -0400 [thread overview]
Message-ID: <5213852C.60203@ti.com> (raw)
In-Reply-To: <355F36F8-3C10-4D6D-AF5A-06080BF7AD5F@suse.de>
On 08/20/2013 02:40 AM, Alexander Graf wrote:
>
> On 19.08.2013, at 19:43, Nicolas Pitre wrote:
>
>> On Mon, 19 Aug 2013, David Gibson wrote:
>>
>>> On Thu, Aug 15, 2013 at 10:51:18PM -0400, Nicolas Pitre wrote:
>>>> On Fri, 16 Aug 2013, David Gibson wrote:
>>>>
>>>>> On Wed, Aug 14, 2013 at 10:57:36PM -0400, Nicolas Pitre wrote:
>>>>>> On Wed, 14 Aug 2013, Tom Rini wrote:
>>>>>>> On 08/14/2013 08:37 PM, Nicolas Pitre wrote:
>>>>>>>> On Wed, 14 Aug 2013, Tom Rini wrote:
>>>>> [snip]
>>>>>> Well, the hard guideline should require that the DTB be updateable and
>>>>>> not linked with nor generated by the bootloader or firmware. That
>>>>>> implies some storage separate from the bootloader but this doesn't need
>>>>>> to be a filesystem.
>>>>>
>>>>> Wait, what!?
>>>>>
>>>>> Much as I think a bunch of the current problems have been caused by
>>>>> being overly keen to push the dtb into firmware, we shouldn't *ban*
>>>>> the original Open Firmware model of the device tree, where it is
>>>>> generated by the firmware and consumed by the OS.
>>>>
>>>> If the DTB generating firmware can be updated by the end user just as
>>>> easily and safely as a standalone DTB then that's probably fine. But we
>>>> do know that many people/organizations are not willing to let end users
>>>> upgrade bootloaders due to the risks associated with such an operation.
>>>> So in that case we may not suggest the DTB be tied to the
>>>> bootloader/firmware.
>>>
>>> No, even then. I really don't think trying to ban the actual,
>>> original Open Firmware model of device tree usage is sensible.
>>
>> I don't think we should *ban* anything. This is rather about
>> recommending best practice to people.
>>
>> And if your bootloader produces a bad DTB and you cannot let end users
>> upgrade the bootloader then this is certainly against best practice.
>
> But that's exactly how everyone else works. On x86 you get your ACPI
> tables from firmware, on PPC you get your device tree from firmware
> and you really don't update your firmware just because your OS thinks
> the tables are wrong.
I think others have pointed out elsewhere that it's not "OS thinks the
tables are wrong" but "ACPI tables are wrong, update your firmware" and
there are firmware updates to fix these problems required.
> Of course, this means that we get a bunch of quirks in Linux to
> support partially broken device description facilities, but it at
> least gives you a proper split between "firmware developer" as
> someone who knows the hardware and "kernel developer" as someone who
> tries to be as agnostic as possible.
>
> Long story short, with UEFI coming I'm pretty sure things on ARM will
> move to the firmware delivered description tables anyway. So what
> exactly are we discussing here?
ARMv8 is moving towards having 3 combinations available, yes.
UEFI+ACPI, UEFI+Device Tree and not-UEFI+Device Tree. And we're also
talking about ARMv7 and so on that while people are pushing UEFI in
places will probably be like x86 and UEFI, possible but not recommended
(and still end up being device trees, not ACPI).
--
Tom
prev parent reply other threads:[~2013-08-20 15:03 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-14 15:13 [RFC] Best practices for hardware shipping device trees Tom Rini
2013-08-14 16:38 ` Jason Cooper
2013-08-14 18:41 ` Tom Rini
2013-08-14 18:53 ` Jason Cooper
2013-08-14 16:44 ` Stephen Warren
2013-08-14 17:20 ` Jason Cooper
2013-08-14 18:25 ` Tom Rini
2013-08-15 0:37 ` Nicolas Pitre
2013-08-15 2:09 ` Tom Rini
2013-08-15 2:57 ` Nicolas Pitre
2013-08-15 14:53 ` Tom Rini
2013-08-15 15:30 ` Stephen Warren
2013-08-15 16:37 ` Tom Rini
2013-08-15 17:31 ` Stephen Warren
2013-08-15 18:56 ` Tom Rini
2013-08-15 22:34 ` Stephen Warren
2013-08-15 15:45 ` Nicolas Pitre
2013-08-15 17:00 ` Tom Rini
2013-08-15 23:59 ` David Gibson
2013-08-16 2:51 ` Nicolas Pitre
2013-08-19 0:15 ` David Gibson
2013-08-19 18:43 ` Nicolas Pitre
2013-08-20 6:40 ` Alexander Graf
2013-08-20 12:02 ` Nicolas Pitre
2013-08-20 17:02 ` Matt Sealey
2013-08-20 17:29 ` Nicolas Pitre
2013-08-20 15:03 ` Tom Rini [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=5213852C.60203@ti.com \
--to=trini@ti.com \
--cc=Mark.Rutland@arm.com \
--cc=agraf@suse.de \
--cc=arnd@arndb.de \
--cc=cross-distro@lists.linaro.org \
--cc=david@gibson.dropbear.id.au \
--cc=devicetree@vger.kernel.org \
--cc=ian.campbell@citrix.com \
--cc=nicolas.pitre@linaro.org \
--cc=pawel.moll@arm.com \
--cc=rob.herring@calxeda.com \
--cc=tom.rini@gmail.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).