From: Tony Lindgren <tony@atomide.com>
To: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: linux-arm-kernel@lists.arm.linux.org.uk, linux-omap@vger.kernel.org
Subject: Re: [PATCH 1/3] OMAP4: SMP: Add OMAP4430 SMP board files
Date: Thu, 7 May 2009 13:51:25 -0700 [thread overview]
Message-ID: <20090507205124.GE5593@atomide.com> (raw)
In-Reply-To: <1241681366-21094-1-git-send-email-santosh.shilimkar@ti.com>
One more comment on this patch below.
* Santosh Shilimkar <santosh.shilimkar@ti.com> [090507 00:29]:
> This patch adds SMP platform files support for OMAP4430SDP. TI's OMAP4430
> SOC is based on ARM Cortex-A9 SMP architecture. It's a dual core SOC
> with GIC used for interrupt handling and SCU for cache coherency.
>
> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
> ---
> arch/arm/mach-omap2/omap-headsmp.S | 49 +++++++
> arch/arm/mach-omap2/omap-smp.c | 238 +++++++++++++++++++++++++++++++++
> arch/arm/plat-omap/include/mach/scu.h | 28 ++++
> arch/arm/plat-omap/include/mach/smp.h | 56 ++++++++
> 4 files changed, 371 insertions(+), 0 deletions(-)
> create mode 100644 arch/arm/mach-omap2/omap-headsmp.S
> create mode 100644 arch/arm/mach-omap2/omap-smp.c
> create mode 100644 arch/arm/plat-omap/include/mach/scu.h
> create mode 100644 arch/arm/plat-omap/include/mach/smp.h
>
> diff --git a/arch/arm/mach-omap2/omap-smp.c b/arch/arm/mach-omap2/omap-smp.c
> new file mode 100644
> index 0000000..1d18acb
> --- /dev/null
> +++ b/arch/arm/mach-omap2/omap-smp.c
<snip snip>
> +int __cpuinit boot_secondary(unsigned int cpu, struct task_struct *idle)
> +{
> + unsigned long timeout;
> +
> + /*
> + * Set synchronisation state between this boot processor
> + * and the secondary one
> + */
> + spin_lock(&boot_lock);
> +
> + /*
> + * The secondary processor is waiting for an event to come out of
> + * wfe. Release it, then wait for it to flag that it has been
> + * released by resetting cpu_release.
> + *
> + * Singal the ROM code that the secondary core can be released
> + */
> + cpu_release = cpu;
> + __raw_writel(cpu, OMAP4_AUXCOREBOOT_REG1);
> + flush_cache_all();
> + /*
> + * Send a 'sev' to wake the secondary core again because
> + * ROM code will put core in WFE till the cpu_release
> + * flag is set.
> + */
> + set_event();
> + mb();
> +
> + timeout = jiffies + (1 * HZ);
> + while (time_before(jiffies, timeout)) {
> + smp_rmb();
> + if (cpu_release == -1)
> + break;
> +
> + udelay(10);
> + }
> +
> + /*
> + * Now the secondary core is starting up let it run its
> + * calibrations, then wait for it to finish
> + */
> + spin_unlock(&boot_lock);
> +
> + return cpu_release != -1 ? -ENOSYS : 0;
> +}
The "Singal" should be "Signal" above :)
Tony
next prev parent reply other threads:[~2009-05-07 20:51 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-07 7:29 [PATCH 1/3] OMAP4: SMP: Add OMAP4430 SMP board files Santosh Shilimkar
2009-05-07 7:29 ` [PATCH 2/3] OMAP4: SMP: Add mpu timer support for OMAP4430 Santosh Shilimkar
2009-05-07 7:29 ` [PATCH 3/3] OMAP4: SMP: Enable SMP " Santosh Shilimkar
2009-05-07 20:46 ` [PATCH 1/3] OMAP4: SMP: Add OMAP4430 SMP board files Tony Lindgren
2009-05-08 5:09 ` Shilimkar, Santosh
2009-05-08 15:17 ` Tony Lindgren
2009-05-08 16:44 ` Shilimkar, Santosh
2009-05-13 14:53 ` [PATCH] OMAP: Remove IRQ hardcoding from serial.c Shilimkar, Santosh
[not found] ` <d6a0f7aa0905150325u51104b24t945a7841074bb913@mail.gmail.com>
2009-05-15 10:30 ` Govindraj.R
2009-05-18 21:45 ` [PATCH] " Tony Lindgren
2009-05-19 4:22 ` Shilimkar, Santosh
2009-05-16 10:30 ` [PATCH 1/3] OMAP4: SMP: Add OMAP4430 SMP board files Russell King - ARM Linux
2009-05-07 20:51 ` Tony Lindgren [this message]
2009-05-08 5:45 ` Hemanth V
2009-05-08 5:48 ` Shilimkar, Santosh
2009-05-08 6:13 ` Hemanth V
2009-05-08 6:57 ` Shilimkar, Santosh
2009-05-16 10:31 ` Russell King - ARM Linux
2009-05-16 10:28 ` Russell King - ARM Linux
2009-05-16 21:21 ` Shilimkar, Santosh
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=20090507205124.GE5593@atomide.com \
--to=tony@atomide.com \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-omap@vger.kernel.org \
--cc=santosh.shilimkar@ti.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