From: olof@lixom.net (Olof Johansson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/2] dt-bindings: arm,gic: Fix binding example for a virt-capable GIC
Date: Sun, 29 Jan 2017 14:51:29 -0800 [thread overview]
Message-ID: <20170129225129.GK3133@localhost> (raw)
In-Reply-To: <20170127203001.qvlgzzrh5hx2pykf@rob-hp-laptop>
On Fri, Jan 27, 2017 at 02:30:01PM -0600, Rob Herring wrote:
> On Mon, Jan 23, 2017 at 03:56:13PM +0000, Marc Zyngier wrote:
> > The joys of copy/paste: the example of a virtualization capable GIC
> > in the DT binding was wrong, and propagated to dozens of platforms.
> > By having a GICC region that is only 4kB (instead of 8kB), we
> > end-up not being able to access the GICC_DIR register which is on
> > the second page.
> >
> > Oh well. Let's fix the source of the crap before tackling individual
> > offenders. While we're at it, also fix the compatibility string to
> > mention "arm,gic-400", which is the name of the actual implementation
> > of the GICv2 spec.
>
> "While we're at it", code for should be in a separate patch. :) I
> wouldn't really care here, but you are not fixing anything...
>
> >
> > Acked-by: Tony Lindgren <tony@atomide.com>
> > Acked-by: Mark Rutland <mark.rutland@arm.com>
> > Acked-by: Arnd Bergmann <arnd@arndb.de>
> > Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
> > ---
> > Documentation/devicetree/bindings/interrupt-controller/arm,gic.txt | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/interrupt-controller/arm,gic.txt b/Documentation/devicetree/bindings/interrupt-controller/arm,gic.txt
> > index 5393e2a..a3d51ed 100644
> > --- a/Documentation/devicetree/bindings/interrupt-controller/arm,gic.txt
> > +++ b/Documentation/devicetree/bindings/interrupt-controller/arm,gic.txt
> > @@ -107,11 +107,11 @@ Required properties:
> > Example:
> >
> > interrupt-controller at 2c001000 {
> > - compatible = "arm,cortex-a15-gic";
> > + compatible = "arm,gic-400";
>
> Which one is correct really depends on the platform. The A15 can have an
> internal or external (gic-400) GIC. The former string is correct for an
> A15 with an internal GIC. One such platform is Calxeda midway.
>
> Arguably, we should not have arm,gic-400 by itself, but have an SoC
> specific compatible in case it was integrated in interesting ways.
Good point (and thanks for bringing it up).
Marc, based on this; want to back the above out so we can apply the rest for
now, while you battle on the compatible details? :)
-Olof
next prev parent reply other threads:[~2017-01-29 22:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-23 15:56 [PATCH v2 0/2] ARM: DTS: Fix broken GICv2 register maps Marc Zyngier
2017-01-23 15:56 ` [PATCH v2 1/2] dt-bindings: arm, gic: Fix binding example for a virt-capable GIC Marc Zyngier
2017-01-27 20:30 ` [PATCH v2 1/2] dt-bindings: arm,gic: " Rob Herring
2017-01-29 22:51 ` Olof Johansson [this message]
2017-01-30 8:41 ` Marc Zyngier
2017-01-23 15:56 ` [PATCH v2 2/2] ARM: DTS: Fix register map for " 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=20170129225129.GK3133@localhost \
--to=olof@lixom.net \
--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 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).