All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@arm.com>
To: Suriyan Ramasami <suriyan.r@gmail.com>,
	Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	"Ivan Pavić2" <Ivan.Pavic2@fer.hr>
Subject: Re: Odroid XU3 support
Date: Thu, 5 May 2016 12:39:21 +0100	[thread overview]
Message-ID: <572B30E9.5060401@arm.com> (raw)
In-Reply-To: <CANoR_OCvPq_pjgXx6GM9R2mDqXqVQ2RWWvz9_CmXsrTg_Kr9qQ@mail.gmail.com>



On 28/04/16 14:26, Suriyan Ramasami wrote:
> Hello Julien,

Hello Suriyan,

>      Thank you for the advice. I do have a follow up question.
>
> On Thu, Apr 28, 2016 at 2:50 AM, Julien Grall <julien.grall@arm.com
> <mailto:julien.grall@arm.com>> wrote:
>
>     Hello,
>
>     On 27/04/16 23:53, Suriyan Ramasami wrote:
>
>                  How can I check which core is currently active?
>                  Judging by this link on big.LITTLE architecture:
>         http://forum.odroid.com/viewtopic.php?f=65&t=2580
>
>                  result of: cat /proc/cpuinfo | grep "CPU part" is
>                  CPU part    : 0xc07
>
>                  which stands for A7.
>
>         If you do this in dom0, it will show all of them to be 0xc07.
>         They are
>         vCPUs after all.
>
>
>     Which is not a good idea. This means that Linux is not able to
>     detect potential errata for the underlying cores (in this case the
>     cortex-A15). Also some userspace may do some runtime optimization
>     based on the kind of CPUs available in the guest.
>
>     Xen is not ready for big.LITTLE, so I would highly recommend you to
>     disable either all the Cortex-A15 or Cortex-A7.
>
> Ian did recommend that if they were in their own cpu pools it would
> avoid mixing them in a guest. I was researching that angle. What is your
> take on that?

I have the same idea in mind. The pools are created at boot time by Xen, 
physical CPUs will be assigned to a pool depending on the CPU ID.

However this is not enough to get support of big.LITTLE. You will at 
least need to modify the domain creation code to set the vMIDR based on 
the based where the vCPU will run.
Furthermore Xen is expecting all the CPUs to have the same set of 
features, hence the boot CPU data is often used to know what could be 
run. This would need some work to get a system wide safe value (see 
arch/arm64/kernel/cpufeature.c in Linux).

>
> If Linux is not recognizing it, that is a dom0/domU issue, is it not?

This is a Xen issue. Xen is exposing the wrong CPU ID to the domain and 
therefore the kernel may not apply properly errata or apply wrong 
optimization.

Regards,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2016-05-05 11:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-25 10:01 Odroid XU3 support Ivan Pavić2
2016-04-26 10:31 ` Julien Grall
2016-04-27 22:53   ` Suriyan Ramasami
2016-04-28  9:50     ` Julien Grall
2016-04-28 13:19       ` Ivan Pavić2
2016-04-28 13:26       ` Suriyan Ramasami
2016-05-05 11:39         ` Julien Grall [this message]
2016-05-05 11:39           ` Julien Grall
2016-05-08 11:59       ` Peng Fan
2016-05-09  9:49         ` Julien Grall
2016-05-10  7:53           ` Peng Fan
2016-05-10  9:33             ` 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=572B30E9.5060401@arm.com \
    --to=julien.grall@arm.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ivan.Pavic2@fer.hr \
    --cc=suriyan.r@gmail.com \
    --cc=xen-devel@lists.xenproject.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.