From: Ian Campbell Subject: Re: Correct DTB compatibility for xen /hypervisor node? Date: Thu, 31 Jan 2013 09:28:02 +0000 Message-ID: <1359624482.12252.265.camel@zakaz.uk.xensource.com> References: <1359391811.12252.25.camel@zakaz.uk.xensource.com> <1359549146.12252.224.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, 2013-01-30 at 16:42 +0000, Stefano Stabellini wrote: > On Wed, 30 Jan 2013, Ian Campbell wrote: > > On Mon, 2013-01-28 at 16:50 +0000, Ian Campbell wrote: > > > Looks like we have both 4.2 and 4.3 in use. Which should it be? > > > > > > $ rgrep xen-4 arch/arm Documentation/ > > > arch/arm/boot/dts/xenvm-4.2.dts: compatible = "xen,xen-4.2", "xen,xen"; > > > Documentation/devicetree/bindings/arm/xen.txt: compatible = "xen,xen-4.3", "xen,xen"; > > > > > > FWIW I've always used 4.2 in my own DTB files. > > > > > > Strictly speaking the API is the Xen 3.x API, but that doesn't seem > > > terribly relevant. > > > > > > I suppose arch_get_xen_caps ought to return something consistent? > > > > On a related note should /hypervisor contain #interrupt-cells = <3> ? > > We use "interrupts = <1 15 0xf08>" so it is somewhat implicit, butsince > > the parent doesn't have anything explicit this it will default to > > $somethingelse (0)? > > I think that it is implicit that the interrupts attributes follow the > rules specified by the interrupt controller node. OK. > > Should Documentation/devicetree/bindings/arm/xen.txt also reference > > gic.txt for the meaning of the fields, or are we free to define our own > > meaning? > > No, we are not. Referencing gic.txt is a good idea. Yes, especially since we assume that interrupt-controller == gic. > > We need to get a canonical copy of this binding doc into the hypervisor > > tree too. > > Right. Are you going to send a patch to both Linux and Xen? Ian.