Received: from eggs.gnu.org ([2001:4830:134:3::10]:43056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1uMS-0004qU-63 for qemu-devel@nongnu.org; Thu, 26 Nov 2015 06:05:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1uMM-0001DK-U2 for qemu-devel@nongnu.org; Thu, 26 Nov 2015 06:05:12 -0500 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:39245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1uMM-0001A2-Ki for qemu-devel@nongnu.org; Thu, 26 Nov 2015 06:05:06 -0500 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 26 Nov 2015 11:05:03 -0000 Date: Thu, 26 Nov 2015 12:04:33 +0100 From: Greg Kurz Message-ID: <20151126120433.20ff2d9c@bahia.local> In-Reply-To: <56568A93.6090307@ozlabs.ru> References: <1447051637-45246-1-git-send-email-aik@ozlabs.ru> <20151109084731.GH18558@voom.redhat.com> <564C2CA3.8000307@ozlabs.ru> <20151118104927.GA3298@voom.fritz.box> <5655D075.9020609@suse.de> <20151126004911.GA25500@voom.redhat.com> <56568A93.6090307@ozlabs.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH qemu] spapr: Add /system-id List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, Alexander Graf , David Gibson On Thu, 26 Nov 2015 15:29:07 +1100 Alexey Kardashevskiy wrote: > On 11/26/2015 11:49 AM, David Gibson wrote: > > On Wed, Nov 25, 2015 at 04:15:01PM +0100, Alexander Graf wrote: > >> > >> > >> On 18.11.15 11:49, David Gibson wrote: > >>> On Wed, Nov 18, 2015 at 06:45:39PM +1100, Alexey Kardashevskiy wrote: > >>>> On 11/09/2015 07:47 PM, David Gibson wrote: > >>>>> On Mon, Nov 09, 2015 at 05:47:17PM +1100, Alexey Kardashevskiy wrote: > >>>>>> Section B.6.2.1 Root Node Properties of PAPR specification defines > >>>>>> a set of properties which shall be present in the device tree root, > >>>>>> one of these properties is "system-id" which "should be unique across > >>>>>> all systems and all manufacturers". Since UUID is meant to be unique, > >>>>>> it makes sense to use it as "system-id". > >>>>>> > >>>>>> This adds "system-id" property to the device tree root when not empty. > >>>>>> > >>>>>> Signed-off-by: Alexey Kardashevskiy > >>>>>> --- > >>>>>> > >>>>>> This might be expected by AIX so here is the patch. > >>>>>> I am really not sure if it makes sense to initialize property when > >>>>>> UUID is all zeroes as the requirement is "unique" and zero-uuid is > >>>>>> not. > >>>>> > >>>>> Yeah, I think it would be better to omit system-id entirely when a > >>>>> UUID hasn't been supplied. > >>>> > >>>> > >>>> so this did not go anywhere yet, did it? > >>> > >>> No. > >> > >> So where is it stuck? > > > > I was waiting for a respin which didn't set the property when a UUID > > hadn't been given. > > > > This is the original patch: > > > + if (qemu_uuid_set) { > + _FDT((fdt_property_string(fdt, "system-id", buf))); > + } > > I does not set property if qemu_uuid_set==false already. What did I miss? > It looks like the confusion lies in David's answer to your question about nil UUID... BTW does it make sense to assign nil UUID to a system ? -- Greg