From: Ian Campbell Subject: Re: [RFC 6/6] xen/arm: Replace early_printk call to printk call Date: Thu, 20 Feb 2014 09:04:34 +0000 Message-ID: <1392887074.22494.7.camel@kazak.uk.xensource.com> References: <1388957191-10337-1-git-send-email-julien.grall@linaro.org> <1388957191-10337-7-git-send-email-julien.grall@linaro.org> <1392808847.23084.138.camel@kazak.uk.xensource.com> <5304F058.6090503@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WGPYc-00044v-Tc for xen-devel@lists.xenproject.org; Thu, 20 Feb 2014 09:04:39 +0000 In-Reply-To: <5304F058.6090503@linaro.org> 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.xenproject.org, stefano.stabellini@eu.citrix.com, tim@xen.org, patches@linaro.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-02-19 at 17:56 +0000, Julien Grall wrote: > Hi Ian, > > On 02/19/2014 11:20 AM, Ian Campbell wrote: > > On Sun, 2014-01-05 at 21:26 +0000, Julien Grall wrote: > >> Now that the console supports earlyprintk, we can get a rid of > >> early_printk call. > >> > >> Signed-off-by: Julien Grall > > > > Acked-by: Ian Campbell > > Thanks, due to some conflicts I have rebased this patch on top my patch > "xen/serial: Don't leak memory mapping if the serial initialization has > failed". > > I will resend this series later. Thanks. > > Now all we need is a way to make it a runtime option :-) > > I let you write a device tree parser in assembly ;). ;-) I was actually thinking more along the lines of a .word at a defined offset which you could hex edit to a specific value to activate a particular flavour of early printk handling. That would be sufficient e.g. for osstest to activate the appropriate stuff for the specific platform. TBH I'm not sure a dumb DTB parser which just runs through looking for a single property on a particular node would be all that hard, but I'm not all that keen to find out for sure ;-) Ian.