From: Ian Campbell Subject: Re: [PATCH] xen/arm: avoid lost characters with early_printk Date: Thu, 30 May 2013 10:00:31 +0100 Message-ID: <1369904431.13087.42.camel@zakaz.uk.xensource.com> References: <1369320611-24956-1-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1369320611-24956-1-git-send-email-julien.grall@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: Stefano.Stabellini@eu.citrix.com, patches@linaro.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2013-05-23 at 15:50 +0100, Julien Grall wrote: > Introduce the function early_flush to wait until the UART has finished to > transfer the character. > When early printk is enabled, it's possible to loose the last characters if: > - the UART is initialized by the UART driver > - Xen hang > > This is result to a truncated message. To be sure that the message is fully > transfered by early_printk, add a call to early_flush. This will avoid lost > characters. > > Signed-off-by: Julien Grall Acked + applied, thanks.