All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shameerali Kolothum Thodi <shameerali.kolothum.thodi@huawei.com>
To: 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>,
	"stefano.stabellini@citrix.com" <stefano.stabellini@citrix.com>,
	Zoltan Kiss <zoltan.kiss@huawei.com>, "tim@xen.org" <tim@xen.org>
Subject: Re: [PATCH] xen/arm: gic-hip04: Resync the driver with the GICv2
Date: Tue, 9 Jun 2015 13:03:14 +0000	[thread overview]
Message-ID: <5FC3163CFD30C246ABAA99954A238FA82C7AA3@lhreml504-mbs> (raw)
In-Reply-To: <556C7BA1.4030406@citrix.com>

Hi Julien/Zoli,

>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.

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.

Regards,
Shameer

-----Original Message-----
From: Julien Grall [mailto:julien.grall@citrix.com] 
Sent: 01 June 2015 16:35
To: Zoltan Kiss; Julien Grall; Ian Campbell
Cc: xen-devel@lists.xenproject.org; stefano.stabellini@citrix.com; tim@xen.org; Shameerali Kolothum Thodi; Zoltan Kiss
Subject: Re: [Xen-devel] [PATCH] xen/arm: gic-hip04: Resync the driver with the GICv2

On 01/06/15 14:18, Zoltan Kiss wrote:
> Sure. Btw. do you have them in a public repo somewhere? It would make 
> it a little bit easier to apply and test.

It's based on the latest staging:

http://xenbits.xen.org/gitweb/?p=people/julieng/xen-unstable.git;a=shortlog;h=refs/heads/for-huawei/gicv2-on-gicv3

Regards,

--
Julien Grall

  reply	other threads:[~2015-06-09 13:03 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 [this message]
2015-06-10 18:23                       ` Julien Grall
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=5FC3163CFD30C246ABAA99954A238FA82C7AA3@lhreml504-mbs \
    --to=shameerali.kolothum.thodi@huawei.com \
    --cc=ian.campbell@citrix.com \
    --cc=julien.grall@citrix.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.