From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: xen-devel@lists.xenproject.org, Vijaya.Kumar@caviumnetworks.com,
tim@xen.org, stefano.stabellini@citrix.com
Subject: Re: [PATCH v3 06/15] xen/arm: vgic-v3: Set stride during domain initialization
Date: Thu, 19 Feb 2015 16:06:53 +0000 [thread overview]
Message-ID: <54E60A1D.9020808@linaro.org> (raw)
In-Reply-To: <1424361502.30924.102.camel@citrix.com>
On 19/02/15 15:58, Ian Campbell wrote:
> On Mon, 2015-02-16 at 14:50 +0000, Julien Grall wrote:
>> The stride may not be set if the hardware GIC is using the default
>> layout. It happens on the Foundation model.
>>
>> On GICv3, the default stride is 2 * 64K. Therefore it's possible to avoid
>> checking at every redistributor MMIO access if the stride is not set.
>>
>> Because domU uses a static stride configuration this only happens for
>> dom0, so we can move this code in gicv_v3_init. Take the opportunity to move
>> the stride setting a bit earlier because the loop to set regions will require
>> the stride.
>>
>> Also, use 2 * 64K rather than 128K and explain the reason.
>>
>> Signed-off-by: Julien Grall <julien.grall@linaro.org>
>
> Acked-by: Ian Campbell <ian.campbell@citrix.com>
>
>> I wasn't not sure where to move this code. I find very confusion the
>> splitting between vgic and gicv. Maybe we should introduce a
>> hwdom_gicv_init and giccc_map callbacks. Then move most of the
>> initialization in the vgic one.
>
> What is giccc? I'm not familiar enough with this code to rule on what
> should go where. Perhaps Stefano has an opinion.
I think the name of giccc what bad here. What I wanted to mean is
splitting the current gicv_setup code in 2 parts:
- Mapping GICV to the guest
- Set up the hwdom information
This will bring a better partition to the code and bring GICv2 on GICv3
support more quickly.
I will talk with Stefano about this possibility.
Regards,
--
Julien Grall
next prev parent reply other threads:[~2015-02-19 16:08 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-16 14:50 [PATCH v3 00/15] xen/arm: Bug fixes for the vGIC Julien Grall
2015-02-16 14:50 ` [PATCH v3 01/15] xen/arm: vgic-v3: Correctly set GICD_TYPER.IDbits Julien Grall
2015-02-16 14:50 ` [PATCH v3 02/15] xen/arm: vgic-v3: Correctly set GICD_TYPER.CPUNumber Julien Grall
2015-02-16 14:50 ` [PATCH v3 03/15] xen/arm: vgic-v3: Correctly handle GICD_CTLR Julien Grall
2015-02-16 14:50 ` [PATCH v3 04/15] xen/arm: vgic-v3: Correctly handle RAZ/WI registers Julien Grall
2015-02-19 15:55 ` Ian Campbell
2015-02-16 14:50 ` [PATCH v3 05/15] xen/arm: vgic-v3: Correctly implement read into GICR_NSACR Julien Grall
2015-02-16 14:50 ` [PATCH v3 06/15] xen/arm: vgic-v3: Set stride during domain initialization Julien Grall
2015-02-19 15:58 ` Ian Campbell
2015-02-19 16:06 ` Julien Grall [this message]
2015-02-16 14:50 ` [PATCH v3 07/15] xen/arm: vgic-v3: Use a struct to describe contiguous rdist regions Julien Grall
2015-02-16 14:50 ` [PATCH v3 08/15] xen/arm: vgic-v3: Emulate correctly the re-distributor Julien Grall
2015-02-19 16:06 ` Ian Campbell
2015-02-16 14:50 ` [PATCH v3 09/15] xen/arm: vgic-v3: Clarify which distributor is used in the common emulation Julien Grall
2015-02-16 14:50 ` [PATCH v3 10/15] xen/arm: vgic-v2: Correctly set GICD_TYPER.CPUNumber Julien Grall
2015-02-16 14:50 ` [PATCH v3 11/15] xen/arm: vgic-v2: Correctly handle RAZ/WI registers Julien Grall
2015-02-19 16:07 ` Ian Campbell
2015-02-16 14:50 ` [PATCH v3 12/15] xen/arm: vgic-v2: Take the lock when writing into GICD_CTLR Julien Grall
2015-02-16 14:50 ` [PATCH v3 13/15] xen/arm: vgic-v2: GICD_I{S, C}PENDR* are only word-accessible Julien Grall
2015-02-16 14:50 ` [PATCH v3 14/15] xen/arm: vgic: Drop iactive, ipend, pendsgi field Julien Grall
2015-02-19 16:09 ` Ian Campbell
2015-02-19 16:15 ` Julien Grall
2015-02-16 14:50 ` [PATCH v3 15/15] xen/arm: gic-v3: Update some comments in the code Julien Grall
2015-02-19 16:09 ` Ian Campbell
2015-02-19 17:21 ` [PATCH v3 00/15] xen/arm: Bug fixes for the vGIC Ian Campbell
2015-02-19 17:34 ` Julien Grall
2015-02-19 17:48 ` Ian Campbell
2015-02-19 18:01 ` Julien Grall
2015-02-20 10:14 ` Ian Campbell
2015-02-20 10:26 ` Vijay Kilari
2015-02-20 10:44 ` Ian Campbell
2015-02-20 11:15 ` Julien Grall
2015-02-21 5:36 ` Vijay Kilari
2015-02-20 11:22 ` 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=54E60A1D.9020808@linaro.org \
--to=julien.grall@linaro.org \
--cc=Vijaya.Kumar@caviumnetworks.com \
--cc=ian.campbell@citrix.com \
--cc=stefano.stabellini@citrix.com \
--cc=tim@xen.org \
--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.