All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@citrix.com>
To: "Ferger, Max" <M.Ferger@KOSTAL.COM>,
	Ian Campbell <ian.campbell@citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Cc: Oleksandr Tyshchenko <oleksandr.tyshchenko@globallogic.com>,
	Iurii Konovalenko <iurii.konovalenko@globallogic.com>
Subject: Re: Dom0 kernel for Xen4.6 on R-Car H2 (LAGER)
Date: Tue, 20 Oct 2015 11:05:05 +0100	[thread overview]
Message-ID: <562611D1.5050501@citrix.com> (raw)
In-Reply-To: <5599c29cfd794dee98c5beebb18cee28@DEBEMAIL001.kostal.int>

Hi,

On 20/10/2015 09:48, Ferger, Max wrote:
> Many thanks for the attention, and the help so far!
>
> * There are still warnings about the console not being properly configured. This issue seems not urgent to me, also I would appreciate a fix.
>
> * Something goes wrong while booting Dom0.  Please help me in understanding why?
>
> * I still don't know too much about how to modify Dom0.  I just try to run a Poky I created with Renesas' help, which has been successfully running on the board without Xen.

> (XEN) Checking for initrd in /chosen
> (XEN) RAM: 0000000040000000 - 000000007fffffff
> (XEN) RAM: 0000000140000000 - 00000001ffffffff
> (XEN)
> (XEN) MODULE[0]: 00000000407f2000 - 00000000407fd000 Device Tree
> (XEN) MODULE[1]: 0000000072000000 - 00000000722fd158 Kernel
> (XEN) MODULE[2]: 0000000074000000 - 0000000074002559 XSM
> (XEN)  RESVD[0]: 0000000070f00000 - 0000000070f0b000
> (XEN)  RESVD[1]: 000000007ff9a000 - 000000007ff9a120
> (XEN)  RESVD[2]: 00000000407f2000 - 00000000407fd000
> (XEN)
> (XEN) Command line: console=dtuart dom0_mem=1G
> (XEN) Placing Xen at 0x000000007fc00000-0x000000007fe00000
> (XEN) Update BOOTMOD_XEN from 0000000090000000-000000009011b701 => 000000007fc00000-000000007fd1b701
> (XEN) Xen heap: 00000001f8000000-0000000200000000 (32768 pages)
> (XEN) Dom heap: 1015808 pages
> (XEN) Domain heap initialised
> (XEN) Platform: Renesas R-Car Gen2
> (XEN) Taking dtuart configuration from /chosen/stdout-path
> (XEN) Looking for dtuart at "/serial@e6c40000", options ""
> (XEN) Unable to initialize dtuart: -9

It looks like your platform is using an UART compatible with 
"renesas,scifa".

Although, for the moment, the driver in Xen is only supporting 
"renesas,scif".

Looking to the Linux drivers (drivers/tty/serial/sh-sci.c), there is few 
differences between the two UART, mostly about the register offsets.

Meanwhile, you can stay on the earlyprintk until you get DOM0 to boot. 
It only means that Xen won't be able to receive character and interact 
with you.

> (XEN) Bad console= option 'dtuart'
>   __  __            _  _    __    ___
>   \ \/ /___ _ __   | || |  / /_  / _ \
>    \  // _ \ '_ \  | || |_| '_ \| | | |
>    /  \  __/ | | | |__   _| (_) | |_| |
>   /_/\_\___|_| |_|    |_|(_)___(_)___/

[..]

> (XEN) handle /pci@ee090000/usb@0,1
> (XEN) /pci@ee090000/usb@0,1 passthrough = 1 nirq = 0 naddr = 0
> (XEN) Mapping children of /pci@ee090000/usb@0,1 to guest
> (XEN) DT: no ranges; cannot enumerate

Thank you for the log. The offending node is /pci@ee090000/usb@0,1 which 
is (r8a7790.dtsi):

1407                 usb@0,1 {
1408                         reg = <0x800 0 0 0 0>;
1409                         device_type = "pci";
1410                         phys = <&usb0 0>;
1411                         phy-names = "usb";
1412                 };
1413

We assume that every node containing device_type = "pci" is a PCI bus. 
So Xen is looking for a property "ranges" which is not present.

Although, here it's describing a PCI device. I wasn't able to find a 
spec telling that device_type = "pci"; should only be used by the PCI 
bus. Ian, do you remember why you implement with this assumption?

For now, I would advice you to drop this node, the next one (usb@0,2) 
and doing the same in "pci@ee0d0000". We can figure out later how to fix 
it when you get a DOM0 booting.

> (XEN) Device tree generation failed (-22).
> (XEN)
> (XEN) ****************************************
> (XEN) Panic on CPU 0:
> (XEN) Could not set up DOM0 guest OS
> (XEN) ****************************************
> (XEN)
> (XEN) Reboot in five seconds...

Regards,

-- 
Julien Grall

  reply	other threads:[~2015-10-20 10:05 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-15 14:17 Dom0 kernel for Xen4.6 on R-Car H2 (LAGER) Ferger, Max
2015-10-15 14:27 ` Ian Campbell
2015-10-19 12:09   ` Ferger, Max
2015-10-19 12:44     ` Julien Grall
2015-10-20  8:48       ` Ferger, Max
2015-10-20 10:05         ` Julien Grall [this message]
2015-10-20 10:47           ` Julien Grall
2015-10-20 11:41             ` Ferger, Max
2015-10-20 11:23       ` Ferger, Max
2015-10-20 21:44         ` Julien Grall
2015-10-21 16:05           ` Ferger, Max
2015-10-21 16:23             ` Julien Grall
2015-10-21 17:20               ` Ferger, Max
2015-10-21 18:01                 ` Julien Grall
2015-10-22 15:07                   ` Ferger, Max
2015-10-22 15:29                     ` Julien Grall
2015-10-22  8:48                 ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=562611D1.5050501@citrix.com \
    --to=julien.grall@citrix.com \
    --cc=M.Ferger@KOSTAL.COM \
    --cc=ian.campbell@citrix.com \
    --cc=iurii.konovalenko@globallogic.com \
    --cc=oleksandr.tyshchenko@globallogic.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.