From: Ian Campbell Subject: Re: [Xen-staging] [xen staging] ARM: parse separate DT properties for different commandlines Date: Tue, 1 Oct 2013 10:56:48 +0100 Message-ID: <1380621408.925.52.camel@kazak.uk.xensource.com> References: <1379537250.11304.313.camel@hastur.hellion.org.uk> <523AB4C1.5080807@linaro.org> 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: Julien Grall Cc: xen-devel@lists.xensource.com, Andre Przywara List-Id: xen-devel@lists.xenproject.org On Thu, 2013-09-19 at 10:44 +0100, Julien Grall wrote: > > On 19 Sep 2013 09:29, "Andre Przywara" > wrote: > >> > >>> @@ -261,7 +261,12 @@ const char *device_tree_bootargs(const void > *fdt) > >>> if ( node < 0 ) > >>> return NULL; > >>> > >>> - prop = fdt_get_property(fdt, node, "bootargs", NULL); > >>> + prop = fdt_get_property(fdt, node, "xen,xen-bootargs", NULL); > >>> + if ( prop == NULL ) > >>> + { > >>> + if (fdt_get_property(fdt, node, "xen,dom0-bootargs", > NULL)) > >>> + prop = fdt_get_property(fdt, node, "bootargs", NULL); > >>> + } > > The logic seems wrong here, we returns bootargs only if the property > "xen,dom0-bootargs" exists. We should also check if the user give the > dom0 > command line via the multiboot module. Anyone investigating this? I've just been using the following, which is obviously bogus! commit ae37a08fa4776ba8ca3bd5554d7c042e8502fa95 Author: Ian Campbell Date: Fri Sep 20 23:45:34 2013 +0100 HACK: bootargs fixup diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c index 27ee708..d66e392 100644 --- a/xen/common/device_tree.c +++ b/xen/common/device_tree.c @@ -252,7 +252,7 @@ const char *device_tree_bootargs(const void *fdt) prop = fdt_get_property(fdt, node, "xen,xen-bootargs", NULL); if ( prop == NULL ) { - if (fdt_get_property(fdt, node, "xen,dom0-bootargs", NULL)) + //if (fdt_get_property(fdt, node, "xen,dom0-bootargs", NULL)) prop = fdt_get_property(fdt, node, "bootargs", NULL); } if ( prop == NULL )