* [PATCH] ARM: shmobile: rcar-gen2: fix non-SMP build
@ 2017-10-05 12:09 Arnd Bergmann
2017-10-05 12:25 ` Geert Uytterhoeven
0 siblings, 1 reply; 8+ messages in thread
From: Arnd Bergmann @ 2017-10-05 12:09 UTC (permalink / raw)
To: linux-arm-kernel
A bugfix for the SMP case broke the build for the UP case:
arch/arm/mach-shmobile/headsmp-apmu.o: In function `shmobile_boot_apmu':
(.text+0x34): undefined reference to `secondary_startup'
The assembler file mixes code that is used for SMP with code
that we also need on a single-CPU build, so I'm leaving it
always enabled in the Makefile, but enclose the SMP code
in an #ifdef.
3fd45a136ff6 ("ARM: shmobile: rcar-gen2: Make sure CNTVOFF is initialized on CA7/15")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
arch/arm/mach-shmobile/headsmp-apmu.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-shmobile/headsmp-apmu.S b/arch/arm/mach-shmobile/headsmp-apmu.S
index db4743d2bf91..5672b5849401 100644
--- a/arch/arm/mach-shmobile/headsmp-apmu.S
+++ b/arch/arm/mach-shmobile/headsmp-apmu.S
@@ -31,7 +31,9 @@ ENTRY(shmobile_init_cntvoff)
ret lr
ENDPROC(shmobile_init_cntvoff)
+#ifdef CONFIG_SMP
ENTRY(shmobile_boot_apmu)
bl shmobile_init_cntvoff
b secondary_startup
ENDPROC(shmobile_boot_apmu)
+#endif
--
2.9.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] ARM: shmobile: rcar-gen2: fix non-SMP build
2017-10-05 12:09 [PATCH] ARM: shmobile: rcar-gen2: fix non-SMP build Arnd Bergmann
@ 2017-10-05 12:25 ` Geert Uytterhoeven
2017-10-05 20:29 ` Arnd Bergmann
0 siblings, 1 reply; 8+ messages in thread
From: Geert Uytterhoeven @ 2017-10-05 12:25 UTC (permalink / raw)
To: linux-arm-kernel
Hi Arnd,
On Thu, Oct 5, 2017 at 2:09 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> A bugfix for the SMP case broke the build for the UP case:
>
> arch/arm/mach-shmobile/headsmp-apmu.o: In function `shmobile_boot_apmu':
> (.text+0x34): undefined reference to `secondary_startup'
>
> The assembler file mixes code that is used for SMP with code
> that we also need on a single-CPU build, so I'm leaving it
> always enabled in the Makefile, but enclose the SMP code
> in an #ifdef.
Oops, sorry for that. Looks like 0-day doesn't do UP builds?
> 3fd45a136ff6 ("ARM: shmobile: rcar-gen2: Make sure CNTVOFF is initialized on CA7/15")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> ;-)
> ---
> arch/arm/mach-shmobile/headsmp-apmu.S | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/mach-shmobile/headsmp-apmu.S b/arch/arm/mach-shmobile/headsmp-apmu.S
> index db4743d2bf91..5672b5849401 100644
> --- a/arch/arm/mach-shmobile/headsmp-apmu.S
> +++ b/arch/arm/mach-shmobile/headsmp-apmu.S
As this hasn't been pulled into arm-soc yet (pull request sent though),
perhaps Simon should squash this fix into the original commit?
Should we rename headsmp-apmu.S to head-apmu.S?
Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] ARM: shmobile: rcar-gen2: fix non-SMP build
2017-10-05 12:25 ` Geert Uytterhoeven
@ 2017-10-05 20:29 ` Arnd Bergmann
2017-10-06 9:28 ` Simon Horman
0 siblings, 1 reply; 8+ messages in thread
From: Arnd Bergmann @ 2017-10-05 20:29 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Oct 5, 2017 at 2:25 PM, Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> On Thu, Oct 5, 2017 at 2:09 PM, Arnd Bergmann <arnd@arndb.de> wrote:
>> arch/arm/mach-shmobile/headsmp-apmu.S | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/arch/arm/mach-shmobile/headsmp-apmu.S b/arch/arm/mach-shmobile/headsmp-apmu.S
>> index db4743d2bf91..5672b5849401 100644
>> --- a/arch/arm/mach-shmobile/headsmp-apmu.S
>> +++ b/arch/arm/mach-shmobile/headsmp-apmu.S
>
> As this hasn't been pulled into arm-soc yet (pull request sent though),
> perhaps Simon should squash this fix into the original commit?
> Should we rename headsmp-apmu.S to head-apmu.S?
I'm fine with it either way, just do whatever works best for you here.
Arnd
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] ARM: shmobile: rcar-gen2: fix non-SMP build
2017-10-05 20:29 ` Arnd Bergmann
@ 2017-10-06 9:28 ` Simon Horman
2017-10-06 9:39 ` Simon Horman
0 siblings, 1 reply; 8+ messages in thread
From: Simon Horman @ 2017-10-06 9:28 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Oct 05, 2017 at 10:29:47PM +0200, Arnd Bergmann wrote:
> On Thu, Oct 5, 2017 at 2:25 PM, Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> > On Thu, Oct 5, 2017 at 2:09 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> >> arch/arm/mach-shmobile/headsmp-apmu.S | 2 ++
> >> 1 file changed, 2 insertions(+)
> >>
> >> diff --git a/arch/arm/mach-shmobile/headsmp-apmu.S b/arch/arm/mach-shmobile/headsmp-apmu.S
> >> index db4743d2bf91..5672b5849401 100644
> >> --- a/arch/arm/mach-shmobile/headsmp-apmu.S
> >> +++ b/arch/arm/mach-shmobile/headsmp-apmu.S
> >
> > As this hasn't been pulled into arm-soc yet (pull request sent though),
> > perhaps Simon should squash this fix into the original commit?
> > Should we rename headsmp-apmu.S to head-apmu.S?
>
> I'm fine with it either way, just do whatever works best for you here.
My preference is to send a second pull request with this patch on top of the
previous pull request. Arnd does that work for you?
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] ARM: shmobile: rcar-gen2: fix non-SMP build
2017-10-06 9:28 ` Simon Horman
@ 2017-10-06 9:39 ` Simon Horman
0 siblings, 0 replies; 8+ messages in thread
From: Simon Horman @ 2017-10-06 9:39 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Oct 06, 2017 at 11:28:56AM +0200, Simon Horman wrote:
> On Thu, Oct 05, 2017 at 10:29:47PM +0200, Arnd Bergmann wrote:
> > On Thu, Oct 5, 2017 at 2:25 PM, Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> > > On Thu, Oct 5, 2017 at 2:09 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> > >> arch/arm/mach-shmobile/headsmp-apmu.S | 2 ++
> > >> 1 file changed, 2 insertions(+)
> > >>
> > >> diff --git a/arch/arm/mach-shmobile/headsmp-apmu.S b/arch/arm/mach-shmobile/headsmp-apmu.S
> > >> index db4743d2bf91..5672b5849401 100644
> > >> --- a/arch/arm/mach-shmobile/headsmp-apmu.S
> > >> +++ b/arch/arm/mach-shmobile/headsmp-apmu.S
> > >
> > > As this hasn't been pulled into arm-soc yet (pull request sent though),
> > > perhaps Simon should squash this fix into the original commit?
> > > Should we rename headsmp-apmu.S to head-apmu.S?
> >
> > I'm fine with it either way, just do whatever works best for you here.
>
> My preference is to send a second pull request with this patch on top of the
> previous pull request. Arnd does that work for you?
In the mean time I pushed the patch to the next branch of the renesas
tree so it should appear in linux-next in the not to distant future.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] ARM: shmobile: rcar-gen2: fix non-SMP build
2017-10-10 8:12 [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v4.15 Simon Horman
@ 2017-10-10 8:12 ` Simon Horman
2017-10-10 9:25 ` Sergei Shtylyov
0 siblings, 1 reply; 8+ messages in thread
From: Simon Horman @ 2017-10-10 8:12 UTC (permalink / raw)
To: linux-arm-kernel
From: Arnd Bergmann <arnd@arndb.de>
A bugfix for the SMP case broke the build for the UP case:
arch/arm/mach-shmobile/headsmp-apmu.o: In function `shmobile_boot_apmu':
(.text+0x34): undefined reference to `secondary_startup'
The assembler file mixes code that is used for SMP with code
that we also need on a single-CPU build, so I'm leaving it
always enabled in the Makefile, but enclose the SMP code
in an #ifdef.
3fd45a136ff6 ("ARM: shmobile: rcar-gen2: Make sure CNTVOFF is initialized on CA7/15")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/mach-shmobile/headsmp-apmu.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-shmobile/headsmp-apmu.S b/arch/arm/mach-shmobile/headsmp-apmu.S
index db4743d2bf91..5672b5849401 100644
--- a/arch/arm/mach-shmobile/headsmp-apmu.S
+++ b/arch/arm/mach-shmobile/headsmp-apmu.S
@@ -31,7 +31,9 @@ ENTRY(shmobile_init_cntvoff)
ret lr
ENDPROC(shmobile_init_cntvoff)
+#ifdef CONFIG_SMP
ENTRY(shmobile_boot_apmu)
bl shmobile_init_cntvoff
b secondary_startup
ENDPROC(shmobile_boot_apmu)
+#endif
--
2.1.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] ARM: shmobile: rcar-gen2: fix non-SMP build
2017-10-10 8:12 ` [PATCH] ARM: shmobile: rcar-gen2: fix non-SMP build Simon Horman
@ 2017-10-10 9:25 ` Sergei Shtylyov
2017-10-11 7:42 ` Simon Horman
0 siblings, 1 reply; 8+ messages in thread
From: Sergei Shtylyov @ 2017-10-10 9:25 UTC (permalink / raw)
To: linux-arm-kernel
Hello!
On 10/10/2017 11:12 AM, Simon Horman wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> A bugfix for the SMP case broke the build for the UP case:
>
> arch/arm/mach-shmobile/headsmp-apmu.o: In function `shmobile_boot_apmu':
> (.text+0x34): undefined reference to `secondary_startup'
>
> The assembler file mixes code that is used for SMP with code
> that we also need on a single-CPU build, so I'm leaving it
> always enabled in the Makefile, but enclose the SMP code
> in an #ifdef.
>
> 3fd45a136ff6 ("ARM: shmobile: rcar-gen2: Make sure CNTVOFF is initialized on CA7/15")
"Fixes:"?
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
[...]
MBR, Sergei
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] ARM: shmobile: rcar-gen2: fix non-SMP build
2017-10-10 9:25 ` Sergei Shtylyov
@ 2017-10-11 7:42 ` Simon Horman
0 siblings, 0 replies; 8+ messages in thread
From: Simon Horman @ 2017-10-11 7:42 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Oct 10, 2017 at 12:25:42PM +0300, Sergei Shtylyov wrote:
> Hello!
>
> On 10/10/2017 11:12 AM, Simon Horman wrote:
>
> >From: Arnd Bergmann <arnd@arndb.de>
> >
> >A bugfix for the SMP case broke the build for the UP case:
> >
> >arch/arm/mach-shmobile/headsmp-apmu.o: In function `shmobile_boot_apmu':
> >(.text+0x34): undefined reference to `secondary_startup'
> >
> >The assembler file mixes code that is used for SMP with code
> >that we also need on a single-CPU build, so I'm leaving it
> >always enabled in the Makefile, but enclose the SMP code
> >in an #ifdef.
> >
> >3fd45a136ff6 ("ARM: shmobile: rcar-gen2: Make sure CNTVOFF is initialized on CA7/15")
>
> "Fixes:"?
Thanks, I will fix and repost.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-10-11 7:42 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-05 12:09 [PATCH] ARM: shmobile: rcar-gen2: fix non-SMP build Arnd Bergmann
2017-10-05 12:25 ` Geert Uytterhoeven
2017-10-05 20:29 ` Arnd Bergmann
2017-10-06 9:28 ` Simon Horman
2017-10-06 9:39 ` Simon Horman
-- strict thread matches above, loose matches on Subject: below --
2017-10-10 8:12 [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v4.15 Simon Horman
2017-10-10 8:12 ` [PATCH] ARM: shmobile: rcar-gen2: fix non-SMP build Simon Horman
2017-10-10 9:25 ` Sergei Shtylyov
2017-10-11 7:42 ` Simon Horman
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).