From: Ian Campbell <ian.campbell@citrix.com>
To: Frediano Ziglio <frediano.ziglio@huawei.com>
Cc: Tim Deegan <tim@xen.org>,
xen-devel@lists.xen.org, Julien Grall <julien.grall@linaro.org>,
Stefano Stabellini <stefano.stabellini@citrix.com>,
zoltan.kiss@huawei.com
Subject: Re: [PATCH v7 2/3] xen/arm: Make gic-v2 code handle hip04-d01 platform
Date: Mon, 2 Mar 2015 16:39:12 +0000 [thread overview]
Message-ID: <1425314352.24959.11.camel@citrix.com> (raw)
In-Reply-To: <bbadde7cf558102fe37447327dcc944d3649b80a.1425047713.git.frediano.ziglio@huawei.com>
On Fri, 2015-02-27 at 14:44 +0000, Frediano Ziglio wrote:
> The GIC in this platform is mainly compatible with the standard
> GICv2 beside:
> - ITARGET is extended to 16 bit to support 16 CPUs;
> - SGI mask is extended to support 16 CPUs;
> - maximum supported interrupt is 510;
> - GICH APR and LR register offsets.
>
> Signed-off-by: Frediano Ziglio <frediano.ziglio@huawei.com>
> Signed-off-by: Zoltan Kiss <zoltan.kiss@huawei.com>
> ---
> xen/arch/arm/Makefile | 1 +
> xen/arch/arm/domain_build.c | 2 +-
> xen/arch/arm/gic-hip04.c | 400 +++++++++++++++++++++++---------------------
Please add an entry to the MAINTAINERS file for this new driver.
> 3 files changed, 207 insertions(+), 196 deletions(-)
>
> diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile
> index 41aba2e..72499e9 100644
> --- a/xen/arch/arm/Makefile
> +++ b/xen/arch/arm/Makefile
> @@ -12,6 +12,7 @@ obj-y += domctl.o
> obj-y += sysctl.o
> obj-y += domain_build.o
> obj-y += gic.o gic-v2.o
> +obj-$(arm32) += gic-hip04.o
> obj-$(CONFIG_ARM_64) += gic-v3.o
Please follow the example immediately below the line you added.
> obj-y += io.o
> obj-y += irq.o
> diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
> index 9f1f59f..83951a3 100644
> --- a/xen/arch/arm/domain_build.c
> +++ b/xen/arch/arm/domain_build.c
> @@ -1069,7 +1069,7 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo,
>
> /* Replace these nodes with our own. Note that the original may be
> * used_by DOMID_XEN so this check comes first. */
> - if ( dt_match_node(gic_matches, node) )
> + if ( node == dt_interrupt_controller || dt_match_node(gic_matches, node) )
> return make_gic_node(d, kinfo->fdt, node);
This generic change should be its own patch, with a suitable
justification etc.
Ian.
next prev parent reply other threads:[~2015-03-02 16:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-27 14:44 [PATCH v7 0/3] xen/arm: Add support for Huawei hip04-d01 platform Frediano Ziglio
2015-02-27 14:44 ` [PATCH v7 1/3] xen/arm: Duplicate gic-v2.c file to support hip04 platform version Frediano Ziglio
2015-02-27 14:44 ` [PATCH v7 2/3] xen/arm: Make gic-v2 code handle hip04-d01 platform Frediano Ziglio
2015-03-02 16:39 ` Ian Campbell [this message]
2015-02-27 14:44 ` [PATCH v7 3/3] xen/arm: Force dom0 to use normal GICv2 driver on Hip04 platform Frediano Ziglio
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=1425314352.24959.11.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=frediano.ziglio@huawei.com \
--cc=julien.grall@linaro.org \
--cc=stefano.stabellini@citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.org \
--cc=zoltan.kiss@huawei.com \
/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.