* [PATCH] drivers/bus: arm-cci: fix combined ARMv6+v7 build
@ 2013-06-03 13:18 Arnd Bergmann
2013-06-03 13:23 ` Nicolas Pitre
0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2013-06-03 13:18 UTC (permalink / raw)
To: linux-arm-kernel
When we build a kernel with support for both ARMv6 and ARMv7,
gas is trying to be helpful by pointing out that the arm-cci
driver would not work on ARMv6:
/tmp/ccu1LDeU.s: Assembler messages:
/tmp/ccu1LDeU.s:450: Error: selected processor does not support ARM mode `wfi '
/tmp/ccu1LDeU.s:451: Error: selected processor does not support ARM mode `wfe '
make[4]: *** [drivers/bus/arm-cci.o] Error 1
We know that the driver will only be used on ARMv7, hence we
can annotate the inline assembly listing to allow those instructions.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Nicolas Pitre <nico@linaro.org>
Cc: Dave Martin <dave.martin@linaro.org>
diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c
index 380319e..7332889 100644
--- a/drivers/bus/arm-cci.c
+++ b/drivers/bus/arm-cci.c
@@ -253,7 +253,7 @@ EXPORT_SYMBOL_GPL(cci_disable_port_by_cpu);
asmlinkage void __naked cci_enable_port_for_self(void)
{
asm volatile ("\n"
-
+" .arch armv7-a\n"
" mrc p15, 0, r0, c0, c0, 5 @ get MPIDR value \n"
" and r0, r0, #"__stringify(MPIDR_HWID_BITMASK)" \n"
" adr r1, 5f \n"
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] drivers/bus: arm-cci: fix combined ARMv6+v7 build
2013-06-03 13:18 [PATCH] drivers/bus: arm-cci: fix combined ARMv6+v7 build Arnd Bergmann
@ 2013-06-03 13:23 ` Nicolas Pitre
2013-06-03 13:28 ` Arnd Bergmann
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Pitre @ 2013-06-03 13:23 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, 3 Jun 2013, Arnd Bergmann wrote:
> When we build a kernel with support for both ARMv6 and ARMv7,
> gas is trying to be helpful by pointing out that the arm-cci
> driver would not work on ARMv6:
>
> /tmp/ccu1LDeU.s: Assembler messages:
> /tmp/ccu1LDeU.s:450: Error: selected processor does not support ARM mode `wfi '
> /tmp/ccu1LDeU.s:451: Error: selected processor does not support ARM mode `wfe '
> make[4]: *** [drivers/bus/arm-cci.o] Error 1
>
> We know that the driver will only be used on ARMv7, hence we
> can annotate the inline assembly listing to allow those instructions.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Cc: Nicolas Pitre <nico@linaro.org>
> Cc: Dave Martin <dave.martin@linaro.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Since this code is merged into ARM-SOC, I assume you'll take care of
this patch?
>
> diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c
> index 380319e..7332889 100644
> --- a/drivers/bus/arm-cci.c
> +++ b/drivers/bus/arm-cci.c
> @@ -253,7 +253,7 @@ EXPORT_SYMBOL_GPL(cci_disable_port_by_cpu);
> asmlinkage void __naked cci_enable_port_for_self(void)
> {
> asm volatile ("\n"
> -
> +" .arch armv7-a\n"
> " mrc p15, 0, r0, c0, c0, 5 @ get MPIDR value \n"
> " and r0, r0, #"__stringify(MPIDR_HWID_BITMASK)" \n"
> " adr r1, 5f \n"
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] drivers/bus: arm-cci: fix combined ARMv6+v7 build
2013-06-03 13:23 ` Nicolas Pitre
@ 2013-06-03 13:28 ` Arnd Bergmann
0 siblings, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2013-06-03 13:28 UTC (permalink / raw)
To: linux-arm-kernel
On Monday 03 June 2013 09:23:58 Nicolas Pitre wrote:
> On Mon, 3 Jun 2013, Arnd Bergmann wrote:
>
> > When we build a kernel with support for both ARMv6 and ARMv7,
> > gas is trying to be helpful by pointing out that the arm-cci
> > driver would not work on ARMv6:
> >
> > /tmp/ccu1LDeU.s: Assembler messages:
> > /tmp/ccu1LDeU.s:450: Error: selected processor does not support ARM mode `wfi '
> > /tmp/ccu1LDeU.s:451: Error: selected processor does not support ARM mode `wfe '
> > make[4]: *** [drivers/bus/arm-cci.o] Error 1
> >
> > We know that the driver will only be used on ARMv7, hence we
> > can annotate the inline assembly listing to allow those instructions.
> >
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> > Cc: Nicolas Pitre <nico@linaro.org>
> > Cc: Dave Martin <dave.martin@linaro.org>
>
> Acked-by: Nicolas Pitre <nico@linaro.org>
Thanks
> Since this code is merged into ARM-SOC, I assume you'll take care of
> this patch?
Yes, I applied it on top of the next/soc branch now.
Arnd
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-03 13:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-03 13:18 [PATCH] drivers/bus: arm-cci: fix combined ARMv6+v7 build Arnd Bergmann
2013-06-03 13:23 ` Nicolas Pitre
2013-06-03 13:28 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox