xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	vijay.kilari@gmail.com
Cc: Ian.Campbell@citrix.com, Prasun.Kapoor@caviumnetworks.com,
	Vijaya Kumar K <vijaya.kumar@caviumnetworks.com>,
	tim@xen.org, xen-devel@lists.xen.org,
	stefano.stabellini@citrix.com, jbeulich@suse.com,
	manish.jaggi@caviumnetworks.com
Subject: Re: [PATCH v9 4/7] xen/arm: Add virtual GICv3 support
Date: Mon, 08 Sep 2014 13:35:24 -0700	[thread overview]
Message-ID: <540E130C.4010008@linaro.org> (raw)
In-Reply-To: <alpine.DEB.2.02.1409050148390.22438@kaball.uk.xensource.com>

Hi Stefano,

On 04/09/14 17:49, Stefano Stabellini wrote:
> On Thu, 4 Sep 2014, vijay.kilari@gmail.com wrote:
>> From: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
>>
>> Add virtual GICv3 driver support.
>> Also, with this patch vgic_irq_rank structure is modified to
>> hold GICv2 GICD_TARGET and GICv3 GICD_ROUTER registers under
>> union.
>>
>> This patch adds only basic GICv3 support.
>> Does not support Interrupt Translation support (ITS)
>>
>> Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
>> ---
>> v9: - Use 128K mask to compute GICR register offset if stride
>>        is not set
>>      - Fix alignment errors in vgic-v2.c
>>      - Updated vgic_{lock,unlock}_rank
>> v8: - Fixed printk coding styles
>>      - Moved GICD_PIDRn and GICR_PIDRn macros to vgic-v3.c
>>        from header file
>>      - Check is made on return value of vgic_v3_init()
>> v7: Fixed coding style.
>> v6: Removed byte read access for IROUTERN register.
>> diff --git a/xen/arch/arm/vgic.c b/xen/arch/arm/vgic.c
>> index 129b1b5..cf3834e 100644
>> --- a/xen/arch/arm/vgic.c
>> +++ b/xen/arch/arm/vgic.c
>> @@ -69,6 +69,12 @@ int domain_vgic_init(struct domain *d)
>>
>>       switch ( gic_hw_version() )
>>       {
>> +#ifdef CONFIG_ARM_64
>> +    case GIC_V3:
>> +        if ( vgic_v3_init(d) )
>> +           return -ENODEV;
>> +        break;
>> +#endif
>
> Why the #ifdef?

AFAIK, GICv3 is only supported on ARMv8 platform. Hence it's only 
compiled for this platform.

The #ifdef looks good to me.

Regards,

-- 
Julien Grall

  reply	other threads:[~2014-09-08 20:35 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-04 13:15 [PATCH v9 0/7] xen/arm: Add GICv3 support vijay.kilari
2014-09-04 13:15 ` [PATCH v9 1/7] xen/arm: move itargets initialization to vgic-v2 vijay.kilari
2014-09-05  0:00   ` Stefano Stabellini
2014-09-09 10:37     ` Ian Campbell
2014-09-09 10:55       ` Vijay Kilari
2014-09-09 21:32       ` Stefano Stabellini
2014-09-08 20:30   ` Julien Grall
2014-09-09  4:43     ` Vijay Kilari
2014-09-04 13:15 ` [PATCH v9 2/7] xen/arm: fallback to vcpu 0 if get_target_vcpu handler not exists vijay.kilari
2014-09-05  0:02   ` Stefano Stabellini
2014-09-04 13:15 ` [PATCH v9 3/7] xen/arm: Add support for GIC v3 vijay.kilari
2014-09-05  0:27   ` Stefano Stabellini
2014-09-08  9:42     ` Ian Campbell
2014-09-09  4:34       ` Vijay Kilari
2014-09-09 18:18       ` Stefano Stabellini
2014-09-04 13:15 ` [PATCH v9 4/7] xen/arm: Add virtual GICv3 support vijay.kilari
2014-09-05  0:49   ` Stefano Stabellini
2014-09-08 20:35     ` Julien Grall [this message]
2014-09-08 22:05       ` Stefano Stabellini
2014-09-09 10:36         ` Ian Campbell
2014-09-09 18:04           ` Stefano Stabellini
2014-09-04 13:15 ` [PATCH v9 5/7] xen/arm: Update Dom0 GIC dt node with GICv3 information vijay.kilari
2014-09-04 13:15 ` [PATCH v9 6/7] xen/arm: add SGI handling for GICv3 vijay.kilari
2014-09-04 13:15 ` [PATCH v9 7/7] xen/arm: check for GICv3 platform support vijay.kilari
2014-09-08  9:45   ` 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=540E130C.4010008@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=Ian.Campbell@citrix.com \
    --cc=Prasun.Kapoor@caviumnetworks.com \
    --cc=jbeulich@suse.com \
    --cc=manish.jaggi@caviumnetworks.com \
    --cc=stefano.stabellini@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --cc=vijay.kilari@gmail.com \
    --cc=vijaya.kumar@caviumnetworks.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).