From: Ian Campbell <ian.campbell@citrix.com>
To: Julien Grall <julien.grall@citrix.com>, xen-devel@lists.xenproject.org
Cc: Zoltan Kiss <zoltan.kiss@huawei.com>, stefano.stabellini@citrix.com
Subject: Re: [PATCH 7/8] xen/arm: gic-v2: Detect automatically aliased GIC400
Date: Fri, 25 Sep 2015 17:26:56 +0100 [thread overview]
Message-ID: <1443198416.25250.200.camel@citrix.com> (raw)
In-Reply-To: <1442944062-4324-8-git-send-email-julien.grall@citrix.com>
On Tue, 2015-09-22 at 18:47 +0100, Julien Grall wrote:
Subject: "automatically detect..."
> We are currently using a per-platform quirk to know if the 2 4KB region of
> the GIC CPU interface are each aligned to 64KB. Although, it may be
> possible to have different layout on a same platform (depending on the
> firmware version).
>
> Rather than having a quirk it's possible to detect by reading the GIC
> memory. This patch is based from the Linux commit "irqchip/GIC: Add
> workaround
> for aliased GIC400" [1].
>
> Take the opportunity to clean up the GICv2 of code which was only
> required because of the quirk.
>
> Note that none of the platform using the gic-hip04 where actually using
s/where/were/
> @@ -688,7 +684,8 @@ static int __init hip04gic_init(void)
> if ( !gicv2.map_hbase )
> panic("GIC-HIP04: Failed to ioremap for GIC Virtual
> interface\n");
>
> - vgic_v2_setup_hw(dbase, cbase, vbase);
> + /* XXX: Support aliased HIP04 GIC? */
I assume it doesn't need this, so lets drop the comment and assume that's
the lack of the quirk on this platform is correct.
> + gicv2.map_cbase = ioremap_nocache(cbase, csize);
> + if ( !gicv2.map_cbase )
> panic("GICv2: Failed to ioremap for GIC CPU interface\n");
s/for/the/ or just s/for //.
>
> + if ( gicv2_is_aliased(cbase, csize) )
> + {
> + /*
> + * Move the base up by 60kB, so that we have a 8kB contiguous
> + * region, which allows us to use GICC_DIR at its
> + * normal offset.
> + * Note the variable cbase is not updated has we need the original
s/has/as/
> printk("GICv3 compatible with GICv2 cbase %#"PRIpaddr" vbase %#"PRIpaddr"\n",
> cbase, vbase);
>
> - vgic_v2_setup_hw(dbase, cbase, vbase);
> + /* XXX: Support aliased GICv2 on GICv3? */
Nah.
next prev parent reply other threads:[~2015-09-25 16:27 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-22 17:47 [PATCH 0/8] xen/arm: gic-v2: Detect automatically aliased GIC400 Julien Grall
2015-09-22 17:47 ` [PATCH 1/8] xen/arm: gic: Make clear the GIC node is passed to make_hwdom_dt_node Julien Grall
2015-09-25 15:48 ` Ian Campbell
2015-09-28 14:49 ` Julien Grall
2015-09-22 17:47 ` [PATCH 2/8] xen/arm: Retrieve the correct number of cells when building dom0 DT Julien Grall
2015-09-25 16:01 ` Ian Campbell
2015-09-28 14:59 ` Julien Grall
2015-09-28 15:19 ` Ian Campbell
2015-09-28 15:25 ` Julien Grall
2015-09-22 17:47 ` [PATCH 3/8] xen/arm: Fix comment coding style in handle_node in domain_build.c Julien Grall
2015-09-25 16:03 ` Ian Campbell
2015-09-25 16:48 ` Ian Campbell
2015-09-22 17:47 ` [PATCH 4/8] xen/arm: Warn when a device tree path will be re-used by Xen Julien Grall
2015-09-25 16:10 ` Ian Campbell
2015-09-28 15:44 ` Julien Grall
2015-09-28 15:55 ` Ian Campbell
2015-09-28 16:05 ` Julien Grall
2015-09-28 17:46 ` Julien Grall
2015-09-22 17:47 ` [PATCH 5/8] xen/arm: vgic-v2: Drop cbase from arch_domain Julien Grall
2015-09-25 16:11 ` Ian Campbell
2015-09-22 17:47 ` [PATCH 6/8] xen/arm: gic: Check the size of the CPU and vCPU interface retrieved from DT Julien Grall
2015-09-25 16:19 ` Ian Campbell
2015-09-28 16:29 ` Julien Grall
2015-09-22 17:47 ` [PATCH 7/8] xen/arm: gic-v2: Detect automatically aliased GIC400 Julien Grall
2015-09-25 16:26 ` Ian Campbell [this message]
2015-09-28 18:07 ` Julien Grall
2015-09-29 10:51 ` Ian Campbell
2015-09-22 17:47 ` [PATCH 8/8] xen/arm: platform: Drop the quirks callback Julien Grall
2015-09-25 16:27 ` 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=1443198416.25250.200.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=julien.grall@citrix.com \
--cc=stefano.stabellini@citrix.com \
--cc=xen-devel@lists.xenproject.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 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).