From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Kukjin Kim <kgene@kernel.org>,
Markus Reichl <m.reichl@fivetechno.de>,
Andrzej Hajda <a.hajda@samsung.com>,
Chanwoo Choi <cw00.choi@samsung.com>,
Javier Martinez Canillas <javierm@redhat.com>,
Pankaj Dubey <pankaj.dubey@samsung.com>,
linux-samsung-soc@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, b.zolnierkie@samsung.com
Subject: [PATCH 1/9] ARM: EXYNOS: remove secondary startup initialization from smp_prepare_cpus
Date: Thu, 15 Nov 2018 16:11:30 +0100 [thread overview]
Message-ID: <1542294698-17470-2-git-send-email-b.zolnierkie@samsung.com> (raw)
In-Reply-To: <1542294698-17470-1-git-send-email-b.zolnierkie@samsung.com>
From: Pankaj Dubey <pankaj.dubey@samsung.com>
We are taking care of setting secondary cpu boot address in
exynos_boot_secondary just before sending ipi to secondary CPUs,
so we can safely remove this setting from smp_prepare_cpus.
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
---
arch/arm/mach-exynos/platsmp.c | 26 --------------------------
1 file changed, 26 deletions(-)
diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c
index 6a1e682..c39ffd2 100644
--- a/arch/arm/mach-exynos/platsmp.c
+++ b/arch/arm/mach-exynos/platsmp.c
@@ -397,38 +397,12 @@ static int exynos_boot_secondary(unsigned int cpu, struct task_struct *idle)
static void __init exynos_smp_prepare_cpus(unsigned int max_cpus)
{
- int i;
-
exynos_sysram_init();
exynos_set_delayed_reset_assertion(true);
if (read_cpuid_part() == ARM_CPU_PART_CORTEX_A9)
exynos_scu_enable();
-
- /*
- * Write the address of secondary startup into the
- * system-wide flags register. The boot monitor waits
- * until it receives a soft interrupt, and then the
- * secondary CPU branches to this address.
- *
- * Try using firmware operation first and fall back to
- * boot register if it fails.
- */
- for (i = 1; i < max_cpus; ++i) {
- unsigned long boot_addr;
- u32 mpidr;
- u32 core_id;
- int ret;
-
- mpidr = cpu_logical_map(i);
- core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0);
- boot_addr = __pa_symbol(exynos4_secondary_startup);
-
- ret = exynos_set_boot_addr(core_id, boot_addr);
- if (ret)
- break;
- }
}
#ifdef CONFIG_HOTPLUG_CPU
--
1.9.1
next prev parent reply other threads:[~2018-11-15 15:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20181115151207epcas1p45adfa96d5b52e10fbb5ace76ebae5e3e@epcas1p4.samsung.com>
2018-11-15 15:11 ` [PATCH 0/9] ARM: SAMSUNG: add Exynos chipid driver Bartlomiej Zolnierkiewicz
[not found] ` <CGME20181115151211epcas2p4fdc719d354f2a732f70667ccbd8f1bae@epcas2p4.samsung.com>
2018-11-15 15:11 ` Bartlomiej Zolnierkiewicz [this message]
2018-11-18 14:13 ` [PATCH 1/9] ARM: EXYNOS: remove secondary startup initialization from smp_prepare_cpus Krzysztof Kozlowski
[not found] ` <CGME20181115151216epcas1p3413d9586bf941aa086bfc5cd620d45d9@epcas1p3.samsung.com>
2018-11-15 15:11 ` [PATCH 2/9] soc: samsung: add exynos chipid driver support Bartlomiej Zolnierkiewicz
2018-11-16 12:40 ` Krzysztof Kozlowski
[not found] ` <CGME20181115151221epcas2p17b8bbb240f70fdd7c5ecf1c0c27de35f@epcas2p1.samsung.com>
2018-11-15 15:11 ` [PATCH 3/9] ARM: EXYNOS: enable exynos_chipid for ARCH_EXYNOS Bartlomiej Zolnierkiewicz
[not found] ` <CGME20181115151225epcas2p4244fba019e0509d480f7953a05097105@epcas2p4.samsung.com>
2018-11-15 15:11 ` [PATCH 4/9] ARM64: " Bartlomiej Zolnierkiewicz
[not found] ` <CGME20181115151230epcas1p35afa7ac09774a6e6256523b3a77453c3@epcas1p3.samsung.com>
2018-11-15 15:11 ` [PATCH 5/9] ARM: EXYNOS: use chipid driver Bartlomiej Zolnierkiewicz
2018-11-16 12:24 ` Krzysztof Kozlowski
[not found] ` <CGME20181115151234epcas1p2006b64ae88567526c855869758ff8b9c@epcas1p2.samsung.com>
2018-11-15 15:11 ` [PATCH 6/9] ARM: EXYNOS: remove soc_is_exynos*() macros Bartlomiej Zolnierkiewicz
[not found] ` <CGME20181115151238epcas2p1dd0da525c3cd2a7a4d153ced264b5b8f@epcas2p1.samsung.com>
2018-11-15 15:11 ` [PATCH 7/9] ARM: SAMSUNG: remove samsung_rev() Bartlomiej Zolnierkiewicz
[not found] ` <CGME20181115151243epcas1p382a3d1704a8ee0d1b0e0b7d214d11ec4@epcas1p3.samsung.com>
2018-11-15 15:11 ` [PATCH 8/9] ARM: SAMSUNG: remove s5p_init_cpu() Bartlomiej Zolnierkiewicz
[not found] ` <CGME20181115151247epcas2p4053da2cb28b2414156d2fd0530059c0d@epcas2p4.samsung.com>
2018-11-15 15:11 ` [PATCH 9/9] ARM: EXYNOS: remove <mach/map.h> include Bartlomiej Zolnierkiewicz
2018-11-16 12:49 ` Krzysztof Kozlowski
2018-11-16 8:58 ` [PATCH 0/9] ARM: SAMSUNG: add Exynos chipid driver Markus Reichl
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=1542294698-17470-2-git-send-email-b.zolnierkie@samsung.com \
--to=b.zolnierkie@samsung.com \
--cc=a.hajda@samsung.com \
--cc=arnd@arndb.de \
--cc=cw00.choi@samsung.com \
--cc=javierm@redhat.com \
--cc=kgene@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.reichl@fivetechno.de \
--cc=m.szyprowski@samsung.com \
--cc=pankaj.dubey@samsung.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
all inboxes | Powered by JetHome®