From: Julien Grall <julien.grall@linaro.org>
To: Andre Przywara <andre.przywara@linaro.org>,
Stefano Stabellini <sstabellini@kernel.org>
Cc: xen-devel@lists.xenproject.org
Subject: Re: [PATCH 3/7] ARM: GICv3: emit optional DT property only when necessary
Date: Wed, 24 Jan 2018 16:32:08 +0000 [thread overview]
Message-ID: <0344bf88-9c7a-d7ea-e5d6-49343ea666cd@linaro.org> (raw)
In-Reply-To: <20180124143517.18469-4-andre.przywara@linaro.org>
Hi Andre,
On 24/01/18 14:35, Andre Przywara wrote:
> The ARM GICv3 DT property "#redistributor-regions" is optional and only
> useful if it has any other values than the architected "1".
> Keep our generated DT node clean by emitting this property only if we
> actually need more than one region.
I really don't see the benefits of this patch. It is fine to have
#redistributor-regions property in the DT. You might "clean" the DT but
make the code a bit more complex.
Cheers,
>
> Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
> ---
> xen/arch/arm/gic-v3.c | 11 +++++++----
> 1 file changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/xen/arch/arm/gic-v3.c b/xen/arch/arm/gic-v3.c
> index a0d290b55c..9ad0cd19ef 100644
> --- a/xen/arch/arm/gic-v3.c
> +++ b/xen/arch/arm/gic-v3.c
> @@ -1168,10 +1168,13 @@ static int gicv3_make_hwdom_dt_node(const struct domain *d,
> if ( res )
> return res;
>
> - res = fdt_property_cell(fdt, "#redistributor-regions",
> - d->arch.vgic.nr_regions);
> - if ( res )
> - return res;
> + if ( d->arch.vgic.nr_regions > 1 )
> + {
> + res = fdt_property_cell(fdt, "#redistributor-regions",
> + d->arch.vgic.nr_regions);
> + if ( res )
> + return res;
> + }
>
> len = dt_cells_to_size(dt_n_addr_cells(gic) + dt_n_size_cells(gic));
> /*
>
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2018-01-24 16:32 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-24 14:35 [PATCH 0/7] ARM: vGICv3: clean up optional DT properties Andre Przywara
2018-01-24 14:35 ` [PATCH 1/7] tools: ARM: vGICv3: avoid inserting " Andre Przywara
2018-01-24 16:08 ` Julien Grall
2018-01-24 16:35 ` Andre Przywara
2018-01-24 16:39 ` Julien Grall
2018-01-24 14:35 ` [PATCH 2/7] ARM: vGICv3: drop GUEST_GICV3_RDIST_REGIONS symbol Andre Przywara
2018-01-24 16:13 ` Julien Grall
2018-01-24 16:58 ` Andre Przywara
2018-01-24 17:01 ` Julien Grall
2018-01-24 14:35 ` [PATCH 3/7] ARM: GICv3: emit optional DT property only when necessary Andre Przywara
2018-01-24 16:32 ` Julien Grall [this message]
2018-01-24 16:59 ` Andre Przywara
2018-01-24 14:35 ` [PATCH 4/7] ARM: GICv3: use hardware GICv3 redistributor regions for Dom0 Andre Przywara
2018-01-24 16:47 ` Julien Grall
2018-01-24 14:35 ` [PATCH 5/7] ARM: GICv3: simplify GICv3 redistributor stride handling Andre Przywara
2018-01-24 14:35 ` [PATCH 6/7] ARM: vGICv3: always use architected redist stride Andre Przywara
2018-01-24 17:24 ` Julien Grall
2018-01-24 14:35 ` [PATCH 7/7] ARM: vGICv3: remove rdist_stride from VGIC structure Andre Przywara
2018-01-24 17:24 ` 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=0344bf88-9c7a-d7ea-e5d6-49343ea666cd@linaro.org \
--to=julien.grall@linaro.org \
--cc=andre.przywara@linaro.org \
--cc=sstabellini@kernel.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.