[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4 30/33] tools/libxl: arm: Use an higher value for the GIC phandle
On Thu, 2015-03-19 at 19:29 +0000, Julien Grall wrote: > The partial device tree may contains phandle. The Device Tree Compiler > tends to allocate the phandle from 1. > > Reserve the ID 65000 for the GIC phandle. I think we can safely assume > that the partial device tree will never contain a such ID. > > Signed-off-by: Julien Grall <julien.grall@xxxxxxxxxx> > Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> > Cc: Wei Liu <wei.liu2@xxxxxxxxxx> > > --- > It's not easily possible to track the maximum phandle in the partial > device tree. > > We would need to parse it twice: one for looking the maximum > phandle, and one for copying the nodes. This is because we have to > know the phandle of the GIC when we create the properties of the > root. Or you could fill it in post-hoc like we do with e.g. the initramfs location? Anyway, this'll do for now: Acked-by: Ian Campbell <ian.ampbell@xxxxxxxxxx> > > As the phandle is encoded an unsigned 32 bits, I could use an higher > value. Though, having 65000 phandle is already a lot... > > TODO: If it's necessary, I can check if the value has been used by > another phandle in the device tree. If that's easy enough to add then yes please, but if it is complex then don't bother. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |