All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@citrix.com>
To: Shameerali Kolothum Thodi <shameerali.kolothum.thodi@huawei.com>,
	Julien Grall <julien.grall@citrix.com>,
	Zoltan Kiss <zoltan.kiss@linaro.org>,
	Ian Campbell <ian.campbell@citrix.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	"tim@xen.org" <tim@xen.org>,
	"stefano.stabellini@citrix.com" <stefano.stabellini@citrix.com>,
	Zoltan Kiss <zoltan.kiss@huawei.com>
Subject: Re: [PATCH] xen/arm: gic-hip04: Resync the driver with the GICv2
Date: Wed, 10 Jun 2015 14:23:09 -0400	[thread overview]
Message-ID: <5578808D.1080502@citrix.com> (raw)
In-Reply-To: <5FC3163CFD30C246ABAA99954A238FA82C7AA3@lhreml504-mbs>

On 09/06/2015 09:03, Shameerali Kolothum Thodi wrote:
> Hi Julien/Zoli,

Hi Shameer,

>> http://xenbits.xen.org/gitweb/?p=people/julieng/xen-unstable.git;a=shortlog;h=refs/heads/for-huawei/gicv2-on-gicv3
> I had a run of this staging on our D01 board.

Thank you for testing.

> Xen fails to boot with below error:
> (XEN) domain 0: vGIC requested is not supported
> (XEN) CPU0: Unexpected Trap: Data Abort
>
> After going through the code, it looks to me that hip04 gicv2_info is missing the vgic_versions initialisation. Made the following changes and xen booted and started dom0.
>
> --- ../xen-org/arch/arm/gic-hip04.c   2015-06-01 16:33:40.000000000 +0100
> +++ ./xen/arch/arm/gic-hip04.c  2015-06-09 13:21:44.355012016 +0100
> @@ -735,6 +735,7 @@ static int __init hip04gic_preinit(struc
>                                      const void *data)
>   {
>       gicv2_info.hw_version = GIC_V2;
> +    gicv2_info.vgic_versions = GIC_V2;
>       gicv2_info.node = node;
>       register_gic_ops(&hip04gic_ops);
>       dt_irq_xlate = gic_irq_xlate;
>
> (Sorry, this is a diff not a proper git patch)
> Please correct me, if this is not the correct way to init the vgic_versions.

This is correct. Although, I'm planning to rework the way that the GIC 
tells the supported vGIC in the next version of this GICv2 on GICv3 series.

Regards,

-- 
Julien Grall

  reply	other threads:[~2015-06-10 18:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-06 18:52 [PATCH] xen/arm: gic-hip04: Resync the driver with the GICv2 Julien Grall
2015-05-07  8:52 ` Zoltan Kiss
2015-05-07  9:32   ` Ian Campbell
2015-05-07 12:37     ` Zoltan Kiss
2015-05-15 21:08       ` Julien Grall
2015-05-18 13:36         ` Zoltan Kiss
2015-06-01 11:13           ` Julien Grall
2015-06-01 11:18             ` Ian Campbell
2015-06-01 11:25             ` Zoltan Kiss
2015-06-01 12:11               ` Julien Grall
2015-06-01 13:18                 ` Zoltan Kiss
2015-06-01 15:34                   ` Julien Grall
2015-06-09 13:03                     ` Shameerali Kolothum Thodi
2015-06-10 18:23                       ` Julien Grall [this message]
2015-06-03 10:35               ` 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=5578808D.1080502@citrix.com \
    --to=julien.grall@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=shameerali.kolothum.thodi@huawei.com \
    --cc=stefano.stabellini@citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    --cc=zoltan.kiss@huawei.com \
    --cc=zoltan.kiss@linaro.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.