All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Julien Grall <julien.grall@linaro.org>
Cc: Chen Baozi <baozich@gmail.com>,
	List Xen Developer <xen-devel@lists.xen.org>
Subject: Re: Problems when using latest git tree to boot xen on OMAP5
Date: Wed, 9 Oct 2013 13:05:59 +0100	[thread overview]
Message-ID: <1381320359.7600.16.camel@kazak.uk.xensource.com> (raw)
In-Reply-To: <52553E35.6080408@linaro.org>

On Wed, 2013-10-09 at 12:29 +0100, Julien Grall wrote:
> On 10/09/2013 12:19 PM, Ian Campbell wrote:
> > On Wed, 2013-10-09 at 12:15 +0100, Julien Grall wrote:
> >> On 10/09/2013 09:11 AM, Ian Campbell wrote:
> >>> Rather than whitelisting and mapping disabled devices through perhaps we
> >>> should implement them as read 0xf (or 0x0) and write ignore?
> >>
> >> We can't assume that these values (0x0 or 0xf) won't affect dom0 behaviour.
> > 
> > 0xff is what you would typically get back if there was no actual
> > hardware present.
> > 
> >> What about a new quirk to map all disabled device in dom0
> >> (PLATFORM_QUIRK_DOM0_MAP_DISABLED_DEVICE)?
> > 
> > Why is this not the default behaviour?
> 
> From our discussion a months a ago (http://patches.linaro.org/19590/),
> status = "disabled" means : "not present/wired-up on this variant of
> the platform".

Actually ePAPR says:
        Indicates that the device is not presently operational, but it
        might
        become operational in the future (for example, something is not
        plugged in, or switched off).
        Refer to the device binding for details on what disabled means
        for
        a given device.

This doesn't strictly speaking say "and you must not prod any associated
MMIO".

> As Linux should cope with this status, why do we need to map these
> devices in DOM0?

Because in practice Linux doesn't actually cope like you asserted it
would.

> If we go further, with passthrough we may want remove device from the
> device tree. If Linux has hardcoded device (but also in the device tree)
> it will likely fail.

If/when we come to be passing through a device which Linux is poking
despite it being disabled then we have a kernel bug which needs fixing,
nothing more, and there is no reason for this to be a factor in deciding
what to do by default.

Ian.

  reply	other threads:[~2013-10-09 12:05 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-04 14:11 Problems when using latest git tree to boot xen on OMAP5 Chen Baozi
2013-10-06 14:21 ` Chen Baozi
2013-10-07  8:39   ` Ian Campbell
2013-10-07  9:58     ` Chen Baozi
2013-10-07 10:01       ` Ian Campbell
2013-10-07 10:59       ` Julien Grall
2013-10-07 15:28         ` Chen Baozi
2013-10-07 15:44           ` Julien Grall
2013-10-08 13:54             ` Chen Baozi
2013-10-09  7:46         ` Chen Baozi
2013-10-09  8:11           ` Ian Campbell
2013-10-09  9:09             ` Chen Baozi
2013-10-09 11:15             ` Julien Grall
2013-10-09 11:19               ` Ian Campbell
2013-10-09 11:29                 ` Stefano Stabellini
2013-10-09 12:01                   ` Ian Campbell
2013-10-09 12:11                     ` Stefano Stabellini
2013-10-09 11:29                 ` Julien Grall
2013-10-09 12:05                   ` Ian Campbell [this message]
2013-10-15  8:41               ` Chen Baozi
2013-10-10  8:05             ` Chen Baozi
2013-10-10 11:07               ` Julien Grall
2013-10-10 11:36                 ` Chen Baozi
2013-10-10 12:04                   ` Vaibhav Bedia
2013-10-07 10:19 ` Julien Grall

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=1381320359.7600.16.camel@kazak.uk.xensource.com \
    --to=ian.campbell@citrix.com \
    --cc=baozich@gmail.com \
    --cc=julien.grall@linaro.org \
    --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.