From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: Dom0 kernel for Xen4.6 on R-Car H2 (LAGER) Date: Wed, 21 Oct 2015 17:23:00 +0100 Message-ID: <5627BBE4.9010508@citrix.com> References: <5a0aab3289b446c1877348268f2afc39@DEBEMAIL001.kostal.int> <1444919269.1607.95.camel@citrix.com> <0234f7a69dc647fa80b6d16a8f5a7fc8@DEBEMAIL001.kostal.int> <5624E5A0.4030906@citrix.com> <5626B5AA.6060304@citrix.com> 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: "Ferger, Max" , Ian Campbell , "xen-devel@lists.xen.org" Cc: Oleksandr Tyshchenko , Iurii Konovalenko List-Id: xen-devel@lists.xenproject.org On 21/10/15 17:05, Ferger, Max wrote: > Hi! Hello, > Thanks for both DT fixes, the "add ranges;", and the "complete memory map". > > Here are some findings: > > * Linus' most recent version of the kernel [1] (configured with a mix of Xen/OMAP description [2] and lager_defconfig [3]) needs the 'add "ranges;"'-fixes, but does not access the otherwise unmapped address regions. > * Renesas' Yocto/Poky > > Unfortunately, neither gives any message on the console, so I don't know their status. > > [1] git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > [2] http://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/OMAP5432_uEVM > [3] git clone https://github.com/renesas-devel/lager-config > > As I see it, Xen issues no further warnings, but still Dom0 remains silent. The console parameter in "xen,dom0-bootargs" seems to be wrong. It should be console=hvc0 If it still doesn't work, you can apply the patch [1] to Linux (it's based on the latest version). It will print everything on Xen console even if the HVC console is not ready. > I'm somewhat at a loss. :-( > > Greetings from Germany! Regards, [1] diff --git a/drivers/tty/hvc/hvc_xen.c b/drivers/tty/hvc/hvc_xen.c index fa816b7..b57ace0 100644 --- a/drivers/tty/hvc/hvc_xen.c +++ b/drivers/tty/hvc/hvc_xen.c @@ -638,7 +638,7 @@ void xen_raw_console_write(const char *str) ssize_t len = strlen(str); int rc = 0; - if (xen_domain()) { + if (1 || xen_domain()) { rc = dom0_write_console(0, str, len); #ifdef CONFIG_X86 if (rc == -ENOSYS && xen_hvm_domain()) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 8f0324e..29a19af 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -1652,6 +1652,8 @@ static size_t cont_print_text(char *text, size_t size) return textlen; } +#include + asmlinkage int vprintk_emit(int facility, int level, const char *dict, size_t dictlen, const char *fmt, va_list args) @@ -1719,6 +1721,7 @@ asmlinkage int vprintk_emit(int facility, int level, * prefix which might be passed-in as a parameter. */ text_len = vscnprintf(text, sizeof(textbuf), fmt, args); + xen_raw_console_write(text); /* mark and strip a trailing newline */ if (text_len && text[text_len-1] == '\n') { -- Julien Grall