lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140806201256.GO3711@ld-irv-0074>
Date:	Wed, 6 Aug 2014 13:12:56 -0700
From:	Brian Norris <computersforpeace@...il.com>
To:	Rob Herring <robherring2@...il.com>
Cc:	Florian Fainelli <f.fainelli@...il.com>,
	"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
	Grant Likely <grant.likely@...aro.org>,
	Rob Herring <robh+dt@...nel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] of/irq: lookup 'interrupts-extended' property first

On Wed, Aug 06, 2014 at 01:42:08PM -0500, Rob Herring wrote:
> On Wed, Aug 6, 2014 at 11:54 AM, Brian Norris <computersforpeace@...il.com> wrote:
> > On Thu, Jul 31, 2014 at 11:00:01AM -0700, Florian Fainelli wrote:
> > I think it is important that a device tree provide some flexibility on
> > kernel versions. We only invented 'interrupts-extended' in Linux 3.13,
> > so it's easy to have device trees that could work only on 3.13+.
> >
> > Typically, we might say that new features require new kernels, but this
> > is a very basic piece of the DT infrastructure. In our case, we have
> > hardware whose basic features can be supported by a single interrupt
> > parent, and so we used the 'interrupts' property pre-3.13. But when we
> > want to add some power management features, there's an additional
> > interrupt parent. Under the current DT binding, we have to switch over
> > to using 'interrupts-extended' exclusively, and thus we must have a
> > completely new DTB for >=3.13, and this DTB no longer works with the old
> > kernels.
> 
> "Must have" to enable the new features?

Yes. The new feature requires an additional interrupt parent, and so it
requires interrupts-extended.

> I would expect a new kernel
> and old dtb still works, right? That is the most important
> compatibility issue to consider.

Yes, new kernels work with an old DTB.

The problem we are considering is that old kernels don't work with new
DTBs, unless you allow both interrupts and interrupts-extended in a new
DTB.

> > How's that for DT stability?
> >
> > On the other hand, if we support this precedence concept, then a new DTB
> > can provide both the 'interrupts-extended' and 'interrupts' properties,
> > and thus be compatible with both pre-3.13 and
> > post-<whenever-this-is-accepted> kernels.
> 
> Yes, this is what should be done. And I don't have any issue marking
> this for stable if needed.

Fine with me. We'll be porting it for our downstream kernels anyway.

> >> Any comments on this? Brian suggested that I update
> >> interrupt-controller/interrupts.txt to specify the look up ordering
> >> change as well.
> >
> > What do you think about the following DT binding doc update to accompany
> > this change?
> 
> For both changes,
> 
> Acked-by: Rob Herring <robh@...nel.org>
> 
> Can you send a proper patch for the doc change or combine them.

Florian just sent the combined version.

Brian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ