From: Ian Campbell Subject: Re: [PATCH v3 0/5] xen/arm: Merge early_printk function in console code Date: Wed, 12 Mar 2014 16:52:18 +0000 Message-ID: <1394643138.3457.14.camel@kazak.uk.xensource.com> References: <1394634891-27906-1-git-send-email-julien.grall@linaro.org> <5320881702000078001234D0@nat28.tlf.novell.com> <53207DE3.3070702@linaro.org> <53209D0B02000078001235D7@nat28.tlf.novell.com> 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 1WNmOY-00042U-6G for xen-devel@lists.xenproject.org; Wed, 12 Mar 2014 16:52:42 +0000 In-Reply-To: <53209D0B02000078001235D7@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel@lists.xenproject.org, Julien Grall , stefano.stabellini@citrix.com, tim@xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-03-12 at 16:44 +0000, Jan Beulich wrote: > >>> On 12.03.14 at 16:31, Julien Grall wrote: > > Hi Jan, > > > > On 03/12/2014 03:15 PM, Jan Beulich wrote: > >>>>> On 12.03.14 at 15:34, Julien Grall wrote: > >>> This patch series aims to merge early printk in the console code. This will > >>> avoid the developper to care whether the message is printed before or after > >>> the console is initialized. > >> > >> Is ARM setting up the console so much later than x86 that this is > >> indeed warranted? IOW why can't you set up the console as early > >> as x86 does, and drop all uses of early_{printk,panic}? > > > > Because to set up the console, you need: > > - to partially parse the device tree to know which serial driver Xen > > will have to use > > This part I understand (but don't know how involved the parsing > is). > > > - to relocate Xen and setup the xenheap pages > > But this I don't understand - x86 does both after having set up > the console. The former (parsing) depends on the latter (heaps setup), because it has to allocate. Ian. > > Jan >