From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: ACPI vs DT at runtime
Date: Thu, 21 Nov 2013 19:26:02 +0100 [thread overview]
Message-ID: <201311211926.03228.arnd@arndb.de> (raw)
In-Reply-To: <20131121161037.C528CC406A3@trevor.secretlab.ca>
On Thursday 21 November 2013, Grant Likely wrote:
> This too should look transparent to device drivers. DT and ACPI have
> different mechanism for doing cross tree references, but the concept is
> the same. A driver calling something like "platform_get_my_gpio_resource()"
> should do the right thing with either an ACPI or DT backend. None of
> that should appear as custom device driver or architecture code. It
> should be generic code supporting the driver core.
I definitely agree with the approach, and I've already made some suggestions
for how to implement parts of this. The problem is that this will touch
dozens of subsystems and hundreds of device drivers. We have the experience
of having done it all before when introducing the DT interfaces and some of
the new subsystems, which is a big advantage for doing it again, but on the
other hand there are now more drivers than we had before, and we have to
be more careful so we don't break the existing code base.
> Regardless of the ACPI on ARM question, we need to do this anyway. There
> are Intel platforms that need it.
There is certainly some overhead, but my guess is that it's actually
less than half of the total work because they are trying to do something
completely different:
- Intel are doing this only for embedded systems, so they don't have to
worry about subsystems that are only relevant to servers (e.g. fault
isolation)
- Significant parts of the x86 architecture are completely standardized
and don't need to be described in a complex matter (e.g. IOMMU)
+ A number of subsystems that Intel needs to handle on embedded systems
should really not be described in detail on servers on any architecture
but instead be handled in AML or SMBIOS (e.g. pinctrl or phy).
+ Some subsystems won't even be used on servers and don't need to be
handled at all but are very relevant to embedded systems (e.g. v4l or
dmaengine)
For the parts that do overlap (e.g. irqdomain or reset), we should
certainly work together across architectures.
Arnd
WARNING: multiple messages have this Message-ID (diff)
From: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
To: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
Cc: Russell King - ARM Linux
<linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>,
Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>
Subject: Re: ACPI vs DT at runtime
Date: Thu, 21 Nov 2013 19:26:02 +0100 [thread overview]
Message-ID: <201311211926.03228.arnd@arndb.de> (raw)
In-Reply-To: <20131121161037.C528CC406A3-WNowdnHR2B42iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
On Thursday 21 November 2013, Grant Likely wrote:
> This too should look transparent to device drivers. DT and ACPI have
> different mechanism for doing cross tree references, but the concept is
> the same. A driver calling something like "platform_get_my_gpio_resource()"
> should do the right thing with either an ACPI or DT backend. None of
> that should appear as custom device driver or architecture code. It
> should be generic code supporting the driver core.
I definitely agree with the approach, and I've already made some suggestions
for how to implement parts of this. The problem is that this will touch
dozens of subsystems and hundreds of device drivers. We have the experience
of having done it all before when introducing the DT interfaces and some of
the new subsystems, which is a big advantage for doing it again, but on the
other hand there are now more drivers than we had before, and we have to
be more careful so we don't break the existing code base.
> Regardless of the ACPI on ARM question, we need to do this anyway. There
> are Intel platforms that need it.
There is certainly some overhead, but my guess is that it's actually
less than half of the total work because they are trying to do something
completely different:
- Intel are doing this only for embedded systems, so they don't have to
worry about subsystems that are only relevant to servers (e.g. fault
isolation)
- Significant parts of the x86 architecture are completely standardized
and don't need to be described in a complex matter (e.g. IOMMU)
+ A number of subsystems that Intel needs to handle on embedded systems
should really not be described in detail on servers on any architecture
but instead be handled in AML or SMBIOS (e.g. pinctrl or phy).
+ Some subsystems won't even be used on servers and don't need to be
handled at all but are very relevant to embedded systems (e.g. v4l or
dmaengine)
For the parts that do overlap (e.g. irqdomain or reset), we should
certainly work together across architectures.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-11-21 18:26 UTC|newest]
Thread overview: 186+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-15 1:44 ACPI vs DT at runtime Olof Johansson
2013-11-15 1:44 ` Olof Johansson
2013-11-15 9:57 ` Mark Rutland
2013-11-15 9:57 ` Mark Rutland
[not found] ` <20131115175241. GB27174@quad.lixom.net>
2013-11-15 17:52 ` Olof Johansson
2013-11-15 17:52 ` Olof Johansson
2013-11-15 18:08 ` Russell King - ARM Linux
2013-11-15 18:08 ` Russell King - ARM Linux
2013-11-15 18:42 ` Olof Johansson
2013-11-15 18:42 ` Olof Johansson
2013-11-15 19:56 ` Arnd Bergmann
2013-11-15 19:56 ` Arnd Bergmann
2013-11-15 23:21 ` Russell King - ARM Linux
2013-11-15 23:21 ` Russell King - ARM Linux
2013-11-18 15:05 ` Arnd Bergmann
2013-11-18 15:05 ` Arnd Bergmann
2013-11-18 15:19 ` Russell King - ARM Linux
2013-11-18 15:19 ` Russell King - ARM Linux
2013-11-18 15:46 ` Arnd Bergmann
2013-11-18 15:46 ` Arnd Bergmann
2013-11-21 16:11 ` Grant Likely
2013-11-21 16:11 ` Grant Likely
2013-11-21 16:10 ` Grant Likely
2013-11-21 16:10 ` Grant Likely
2013-11-21 18:26 ` Arnd Bergmann [this message]
2013-11-21 18:26 ` Arnd Bergmann
2013-11-21 19:40 ` Mark Brown
2013-11-21 19:40 ` Mark Brown
2013-11-21 16:00 ` Grant Likely
2013-11-21 16:00 ` Grant Likely
2013-11-15 18:13 ` David Goodenough
2013-11-21 16:15 ` Grant Likely
2013-11-18 17:47 ` Jon Masters
2013-11-18 17:47 ` Jon Masters
2013-11-19 11:30 ` Mark Rutland
2013-11-19 11:30 ` Mark Rutland
2013-11-19 11:35 ` Mark Rutland
2013-11-19 11:35 ` Mark Rutland
2013-11-19 11:51 ` Leif Lindholm
2013-11-19 11:51 ` Leif Lindholm
2013-11-19 11:57 ` Russell King - ARM Linux
2013-11-19 11:57 ` Russell King - ARM Linux
2013-11-19 13:56 ` Stefano Stabellini
2013-11-19 13:56 ` Stefano Stabellini
2013-11-19 14:38 ` Mark Rutland
2013-11-19 14:38 ` Mark Rutland
2013-11-19 14:59 ` Leif Lindholm
2013-11-19 14:59 ` Leif Lindholm
2013-11-19 18:23 ` Olof Johansson
2013-11-19 18:23 ` Olof Johansson
2013-11-19 14:05 ` Arnd Bergmann
2013-11-19 14:05 ` Arnd Bergmann
2013-11-19 15:21 ` Mark Rutland
2013-11-19 15:21 ` Mark Rutland
2013-11-19 16:19 ` Arnd Bergmann
2013-11-19 16:19 ` Arnd Bergmann
2013-11-19 18:34 ` Olof Johansson
2013-11-19 18:34 ` Olof Johansson
2013-11-19 19:06 ` Tom Rini
2013-11-19 19:06 ` Tom Rini
2013-11-19 18:19 ` Olof Johansson
2013-11-19 18:19 ` Olof Johansson
2013-11-21 16:37 ` Grant Likely
2013-11-21 16:37 ` Grant Likely
2013-11-21 16:29 ` Grant Likely
2013-11-21 16:29 ` Grant Likely
2013-11-21 17:01 ` Matthew Garrett
2013-11-21 17:01 ` Matthew Garrett
2013-11-21 18:38 ` Grant Likely
2013-11-21 18:38 ` Grant Likely
2013-11-21 17:58 ` Olof Johansson
2013-11-21 17:58 ` Olof Johansson
2013-11-21 18:19 ` Matthew Garrett
2013-11-21 18:19 ` Matthew Garrett
2013-11-21 18:33 ` Arnd Bergmann
2013-11-21 18:33 ` Arnd Bergmann
2013-11-21 18:54 ` Russell King - ARM Linux
2013-11-21 18:54 ` Russell King - ARM Linux
[not found] ` < CAOesGMgzUSMDy99XojipfRd5OM88UhfbCYO0aoc5m-Q8Fwnddg@mail.gmail.com>
[not found] ` < 20131121190126.GZ16735@n2100.arm.linux.org.uk>
2013-11-21 18:59 ` Olof Johansson
2013-11-21 18:59 ` Olof Johansson
2013-11-21 19:01 ` Russell King - ARM Linux
2013-11-21 19:01 ` Russell King - ARM Linux
2013-11-21 19:31 ` Olof Johansson
2013-11-21 19:31 ` Olof Johansson
2013-11-21 20:44 ` Grant Likely
2013-11-21 20:44 ` Grant Likely
2013-11-21 18:53 ` Mark Brown
2013-11-21 18:53 ` Mark Brown
2013-11-15 18:28 ` Jason Gunthorpe
2013-11-15 18:28 ` Jason Gunthorpe
2013-11-15 18:57 ` Arnd Bergmann
2013-11-15 18:57 ` Arnd Bergmann
2013-11-18 5:19 ` Jon Masters
2013-11-18 5:26 ` Jon Masters
2013-11-18 19:25 ` Olof Johansson
2013-11-18 19:25 ` Olof Johansson
2013-11-18 20:43 ` Jon Masters
2013-11-18 20:43 ` Jon Masters
2013-11-18 21:25 ` Olof Johansson
2013-11-18 21:25 ` Olof Johansson
2013-11-18 7:22 ` Richard Cochran
2013-11-18 13:55 ` Stefano Stabellini
2013-11-18 15:00 ` Mark Brown
2013-11-18 19:13 ` Olof Johansson
2013-11-18 19:13 ` Olof Johansson
2013-11-19 9:12 ` Richard Cochran
2013-11-19 9:12 ` Richard Cochran
2013-11-19 18:48 ` Olof Johansson
2013-11-19 18:48 ` Olof Johansson
2013-11-20 6:40 ` Richard Cochran
2013-11-20 6:40 ` Richard Cochran
2013-11-21 18:16 ` Grant Likely
2013-11-21 18:16 ` Grant Likely
2013-11-21 19:21 ` Russell King - ARM Linux
2013-11-21 19:21 ` Russell King - ARM Linux
2013-11-21 20:47 ` Grant Likely
2013-11-21 20:47 ` Grant Likely
2013-11-22 11:43 ` Catalin Marinas
2013-11-22 11:43 ` Catalin Marinas
2013-11-22 12:00 ` Pantelis Antoniou
2013-11-22 12:00 ` Pantelis Antoniou
2014-05-05 7:06 ` Alexander Holler
2014-05-05 7:06 ` Alexander Holler
2014-05-05 14:41 ` Arnd Bergmann
2014-05-05 14:41 ` Arnd Bergmann
2014-05-05 15:29 ` Alexander Holler
2014-05-05 15:29 ` Alexander Holler
2014-05-05 17:29 ` Arnd Bergmann
2014-05-05 17:29 ` Arnd Bergmann
2014-05-06 15:37 ` Grant Likely
2014-05-06 15:37 ` Grant Likely
2014-05-06 15:27 ` Grant Likely
2014-05-06 15:27 ` Grant Likely
2014-05-06 16:32 ` Olof Johansson
2014-05-06 16:32 ` Olof Johansson
2013-11-18 15:28 ` Rob Herring
2013-11-18 19:09 ` Olof Johansson
2013-11-18 19:09 ` Olof Johansson
2013-11-18 20:54 ` Jon Masters
2013-11-18 20:54 ` Jon Masters
2013-11-18 21:50 ` Olof Johansson
2013-11-18 21:50 ` Olof Johansson
2013-11-18 21:32 ` Grant Likely
2013-11-18 21:32 ` Grant Likely
2013-11-18 22:47 ` David Goodenough
2013-11-19 12:48 ` Arnd Bergmann
2013-11-19 12:48 ` Arnd Bergmann
2013-11-19 13:34 ` David Goodenough
2013-11-19 16:52 ` Arnd Bergmann
2013-11-21 18:23 ` Grant Likely
2013-11-19 14:33 ` Grant Likely
2013-11-20 13:49 ` Grant Likely
2013-11-20 13:49 ` Grant Likely
2013-11-20 17:43 ` Stefano Stabellini
2013-11-20 17:43 ` Stefano Stabellini
2013-11-20 17:47 ` Olof Johansson
2013-11-20 17:47 ` Olof Johansson
2013-11-15 20:58 ` Arnd Bergmann
2013-11-15 20:58 ` Arnd Bergmann
2013-11-15 21:44 ` Olof Johansson
2013-11-15 21:44 ` Olof Johansson
2013-11-17 17:18 ` Stefano Stabellini
2013-11-17 17:18 ` Stefano Stabellini
2013-11-17 18:10 ` Arnd Bergmann
2013-11-17 18:10 ` Arnd Bergmann
[not found] ` < CAOesGMiYyOcvr3Aqs-p8zc=XDwJM9NZtNxtxrTZssc6F=siZCw@mail.gmail.com>
2013-11-17 22:20 ` Olof Johansson
2013-11-17 22:20 ` Olof Johansson
2013-11-18 8:45 ` Arnd Bergmann
2013-11-18 8:45 ` Arnd Bergmann
2013-11-18 17:33 ` Jon Masters
2013-11-18 17:38 ` Russell King - ARM Linux
2013-11-18 19:21 ` Olof Johansson
2013-11-18 19:21 ` Olof Johansson
2013-11-21 18:26 ` Grant Likely
2013-11-18 15:04 ` Mark Brown
2013-11-18 15:04 ` Mark Brown
2013-11-18 15:10 ` Arnd Bergmann
2013-11-18 15:10 ` Arnd Bergmann
2013-11-18 21:38 ` Grant Likely
2013-11-18 21:38 ` Grant Likely
2013-11-18 23:25 ` Leif Lindholm
2013-11-18 23:25 ` Leif Lindholm
2013-11-18 23:29 ` Olof Johansson
2013-11-18 23:29 ` Olof Johansson
2013-11-18 23:34 ` Leif Lindholm
2013-11-18 23:34 ` Leif Lindholm
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=201311211926.03228.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.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.