From: Julien Grall <julien.grall@linaro.org>
To: Frediano Ziglio <frediano.ziglio@huawei.com>,
Ian Campbell <ian.campbell@citrix.com>,
Stefano Stabellini <stefano.stabellini@citrix.com>,
Tim Deegan <tim@xen.org>
Cc: zoltan.kiss@huawei.com, xen-devel@lists.xen.org
Subject: Re: [PATCH v3 8/8] xen/arm: Handle translated addresses for hardware domains
Date: Wed, 05 Nov 2014 14:18:47 +0000 [thread overview]
Message-ID: <545A31C7.3070202@linaro.org> (raw)
In-Reply-To: <1415180475-8339-9-git-send-email-frediano.ziglio@huawei.com>
Hi Frediano,
On 11/05/2014 09:41 AM, Frediano Ziglio wrote:
> Translated address could have an offset applied to them.
> Replicate same value for device node to avoid improper address
> computation in the OS.
>
> Signed-off-by: Frediano Ziglio <frediano.ziglio@huawei.com>
> ---
> xen/arch/arm/gic-v2.c | 23 +++++++++++++++++++++--
> 1 file changed, 21 insertions(+), 2 deletions(-)
>
> diff --git a/xen/arch/arm/gic-v2.c b/xen/arch/arm/gic-v2.c
> index 2f6bbd5..271074d 100644
> --- a/xen/arch/arm/gic-v2.c
> +++ b/xen/arch/arm/gic-v2.c
> @@ -67,8 +67,10 @@
> /* Global state */
> static struct {
> paddr_t dbase; /* Address of distributor registers */
> + paddr_t dbase_raw; /* Untranslated address of distributor registers */
> void __iomem * map_dbase; /* IO mapped Address of distributor registers */
> paddr_t cbase; /* Address of CPU interface registers */
> + paddr_t cbase_raw; /* Untranslated address of CPU interface registers */
> void __iomem * map_cbase[2]; /* IO mapped Address of CPU interface registers */
> paddr_t hbase; /* Address of virtual interface registers */
> void __iomem * map_hbase; /* IO Address of virtual interface registers */
> @@ -671,8 +673,17 @@ static int gicv2_make_dt_node(const struct domain *d,
> return -FDT_ERR_XEN(ENOMEM);
>
> tmp = new_cells;
> - dt_set_range(&tmp, node, d->arch.vgic.dbase, PAGE_SIZE);
> - dt_set_range(&tmp, node, d->arch.vgic.cbase, PAGE_SIZE * 2);
> +
> + if ( is_hardware_domain(d) )
> + {
This check is pointless, as said on an earlier version of this series,
gicv2_make_dt_node is only used to create DOM0 (hardware domain) device
tree.
Regards,
--
Julien Grall
next prev parent reply other threads:[~2014-11-05 14:18 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-05 9:41 [PATCH v3] xen/arm: Add support for Huawei hip04-d01 platform Frediano Ziglio
2014-11-05 9:41 ` [PATCH v3 1/8] xen/device_tree: Add new helper to read arrays from a DTB Frediano Ziglio
2014-11-05 9:41 ` [PATCH v3 2/8] xen/arm: Implement hip04-d01 platform Frediano Ziglio
2014-11-05 9:41 ` [PATCH v3 3/8] xen/arm: Make gic-v2 code handle " Frediano Ziglio
2014-11-05 9:41 ` [PATCH v3 4/8] xen/arm: Add support for DTBs with strange names of Hip04 GICv2 Frediano Ziglio
2014-11-05 13:48 ` Julien Grall
2014-11-05 14:52 ` Stefano Stabellini
2014-11-06 9:46 ` Zoltan Kiss
2014-11-06 9:54 ` Julien Grall
2014-11-06 10:13 ` Frediano Ziglio
2014-11-07 13:36 ` Julien Grall
2014-11-07 14:34 ` Frediano Ziglio
2014-11-05 9:41 ` [PATCH v3 5/8] xen/arm: handle GICH register changes for hip04-d01 platform Frediano Ziglio
2014-11-05 9:41 ` [PATCH v3 6/8] xen/arm: Force dom0 to use normal GICv2 driver on Hip04 platform Frediano Ziglio
2014-11-05 9:41 ` [PATCH v3 7/8] xen/device_tree: Add dt_device_get_address_raw Frediano Ziglio
2014-11-05 14:18 ` Julien Grall
2014-11-05 9:41 ` [PATCH v3 8/8] xen/arm: Handle translated addresses for hardware domains Frediano Ziglio
2014-11-05 14:18 ` Julien Grall [this message]
2014-11-05 14:54 ` Zoltan Kiss
2014-11-05 14:58 ` Julien Grall
2014-11-05 15:13 ` Frediano Ziglio
2014-11-05 15:28 ` Julien Grall
2014-11-05 15:46 ` Frediano Ziglio
2014-11-05 15:51 ` Julien Grall
2014-11-05 15:52 ` Julien Grall
2014-11-05 16:02 ` Frediano Ziglio
2014-11-05 13:38 ` [PATCH v3] xen/arm: Add support for Huawei hip04-d01 platform 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=545A31C7.3070202@linaro.org \
--to=julien.grall@linaro.org \
--cc=frediano.ziglio@huawei.com \
--cc=ian.campbell@citrix.com \
--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.