From: Julien Grall <julien.grall@linaro.org>
To: Chen Baozi <baozich@gmail.com>,
Xen Developer List <xen-devel@lists.xen.org>
Cc: Ian Campbell <ian.campbell@citrix.com>
Subject: Re: [PATCH 3/3] xen/arm: implement smp initialization callbacks for omap5
Date: Wed, 23 Oct 2013 14:59:21 +0100 [thread overview]
Message-ID: <5267D639.9050705@linaro.org> (raw)
In-Reply-To: <1381826731-7044-4-git-send-email-baozich@gmail.com>
On 10/15/2013 09:45 AM, Chen Baozi wrote:
>
> Signed-off-by: Chen Baozi <baozich@gmail.com>
If you don't modify the patch in the next version:
Acked-by: Julien Grall <julien.grall@linaro.org>
> ---
> xen/arch/arm/platforms/omap5.c | 34 ++++++++++++++++++++++++++++++++++
> xen/include/asm-arm/platforms/omap5.h | 3 +++
> 2 files changed, 37 insertions(+)
>
> diff --git a/xen/arch/arm/platforms/omap5.c b/xen/arch/arm/platforms/omap5.c
> index a583e2b..b90e570 100644
> --- a/xen/arch/arm/platforms/omap5.c
> +++ b/xen/arch/arm/platforms/omap5.c
> @@ -121,6 +121,38 @@ static int omap5_specific_mapping(struct domain *d)
> return 0;
> }
>
> +static int __init omap5_smp_init(void)
> +{
> + void __iomem *wugen_base;
> +
> + wugen_base = ioremap_nocache(OMAP5_WKUPGEN_BASE, PAGE_SIZE);
> + if ( !wugen_base )
> + {
> + dprintk(XENLOG_ERR, "Unable to map omap5 MMIO\n");
> + return -EFAULT;
> + }
> +
> + printk("Set AuxCoreBoot1 to %"PRIpaddr" (%p)\n",
> + __pa(init_secondary), init_secondary);
> + writel(__pa(init_secondary), wugen_base + OMAP_AUX_CORE_BOOT_1_OFFSET);
> +
> + printk("Set AuxCoreBoot0 to 0x20\n");
> + writel(0x20, wugen_base + OMAP_AUX_CORE_BOOT_0_OFFSET);
> +
> + iounmap(wugen_base);
> +
> + return 0;
> +}
> +
> +static int __init omap5_cpu_up(int cpu)
> +{
> + /* Nothing to do here, the generic sev() will suffice to kick CPUs
> + * out of either the firmware or our own smp_up_cpu gate,
> + * depending on where they have ended up. */
> +
> + return 0;
> +}
> +
> static uint32_t omap5_quirks(void)
> {
> return PLATFORM_QUIRK_DOM0_MAPPING_11 |
> @@ -137,6 +169,8 @@ PLATFORM_START(omap5, "TI OMAP5")
> .compatible = omap5_dt_compat,
> .init_time = omap5_init_time,
> .specific_mapping = omap5_specific_mapping,
> + .smp_init = omap5_smp_init,
> + .cpu_up = omap5_cpu_up,
> .quirks = omap5_quirks,
> PLATFORM_END
>
> diff --git a/xen/include/asm-arm/platforms/omap5.h b/xen/include/asm-arm/platforms/omap5.h
> index dd8c6ca..c559c84 100644
> --- a/xen/include/asm-arm/platforms/omap5.h
> +++ b/xen/include/asm-arm/platforms/omap5.h
> @@ -17,6 +17,9 @@
> #define OMAP5_WKUPGEN_BASE 0x48281000
> #define OMAP5_SRAM_PA 0x40300000
>
> +#define OMAP_AUX_CORE_BOOT_0_OFFSET 0x800
> +#define OMAP_AUX_CORE_BOOT_1_OFFSET 0x804
> +
> #endif /* __ASM_ARM_PLATFORMS_OMAP5_H */
>
> /*
>
--
Julien Grall
next prev parent reply other threads:[~2013-10-23 13:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-15 8:45 [PATCH 0/3] A new PLATFORM_QUIRK_DOM0_MAP_DISABLED_DEVICE quirk and smp initialization callbacks for omap5 Chen Baozi
2013-10-15 8:45 ` [PATCH 1/3] xen/arm: fix a typo in comment of PLATFORM_QUIRK_DOM0_MAPPING_11 Chen Baozi
2013-10-21 16:42 ` Julien Grall
2013-10-22 1:06 ` Chen Baozi
2013-10-24 14:03 ` Ian Campbell
2013-10-15 8:45 ` [PATCH 2/3] xen/arm: Add PLATFORM_QUIRK_DOM0_MAP_DISABLED_DEVICE Chen Baozi
2013-10-24 14:04 ` Ian Campbell
2013-11-05 17:19 ` Chen Baozi
2013-10-15 8:45 ` [PATCH 3/3] xen/arm: implement smp initialization callbacks for omap5 Chen Baozi
2013-10-23 13:59 ` Julien Grall [this message]
2013-10-24 14:03 ` 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=5267D639.9050705@linaro.org \
--to=julien.grall@linaro.org \
--cc=baozich@gmail.com \
--cc=ian.campbell@citrix.com \
--cc=xen-devel@lists.xen.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.