* Build error in torvalds kernel 3.11 for omap2plus
@ 2013-09-08 6:04 Anil Kumar
2013-09-08 9:02 ` Russell King - ARM Linux
0 siblings, 1 reply; 22+ messages in thread
From: Anil Kumar @ 2013-09-08 6:04 UTC (permalink / raw)
To: linux-arm-kernel
Hi All,
I am getting below build error in torvalds kernel 3.11 for omap2plus.
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
AS arch/arm/mm/cache-v7.o
arch/arm/mm/cache-v7.S: Assembler messages:
arch/arm/mm/cache-v7.S:285: Error: garbage following instruction -- `dsb ishst'
arch/arm/mm/cache-v7.S:297: Error: garbage following instruction -- `dsb ishst'
make[1]: *** [arch/arm/mm/cache-v7.o] Error 1
make: *** [arch/arm/mm] Error 2
Thanks
Anil
^ permalink raw reply [flat|nested] 22+ messages in thread
* Build error in torvalds kernel 3.11 for omap2plus
2013-09-08 6:04 Build error in torvalds kernel 3.11 for omap2plus Anil Kumar
@ 2013-09-08 9:02 ` Russell King - ARM Linux
2013-09-08 17:16 ` Guenter Roeck
0 siblings, 1 reply; 22+ messages in thread
From: Russell King - ARM Linux @ 2013-09-08 9:02 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, Sep 08, 2013 at 11:34:10AM +0530, Anil Kumar wrote:
> scripts/kconfig/conf --silentoldconfig Kconfig
> CHK include/generated/uapi/linux/version.h
> CHK include/generated/utsrelease.h
> make[1]: `include/generated/mach-types.h' is up to date.
> CALL scripts/checksyscalls.sh
> CHK include/generated/compile.h
> AS arch/arm/mm/cache-v7.o
> arch/arm/mm/cache-v7.S: Assembler messages:
> arch/arm/mm/cache-v7.S:285: Error: garbage following instruction -- `dsb ishst'
> arch/arm/mm/cache-v7.S:297: Error: garbage following instruction -- `dsb ishst'
> make[1]: *** [arch/arm/mm/cache-v7.o] Error 1
> make: *** [arch/arm/mm] Error 2
You need a later binutils for these instructions - 2.22 works just fine,
even with gcc 4.5.x.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Build error in torvalds kernel 3.11 for omap2plus
2013-09-08 9:02 ` Russell King - ARM Linux
@ 2013-09-08 17:16 ` Guenter Roeck
2013-09-09 10:51 ` Russell King - ARM Linux
2013-09-09 10:55 ` Build error in torvalds kernel 3.11 for omap2plus Anil Kumar
0 siblings, 2 replies; 22+ messages in thread
From: Guenter Roeck @ 2013-09-08 17:16 UTC (permalink / raw)
To: linux-arm-kernel
On 09/08/2013 02:02 AM, Russell King - ARM Linux wrote:
> On Sun, Sep 08, 2013 at 11:34:10AM +0530, Anil Kumar wrote:
>> scripts/kconfig/conf --silentoldconfig Kconfig
>> CHK include/generated/uapi/linux/version.h
>> CHK include/generated/utsrelease.h
>> make[1]: `include/generated/mach-types.h' is up to date.
>> CALL scripts/checksyscalls.sh
>> CHK include/generated/compile.h
>> AS arch/arm/mm/cache-v7.o
>> arch/arm/mm/cache-v7.S: Assembler messages:
>> arch/arm/mm/cache-v7.S:285: Error: garbage following instruction -- `dsb ishst'
>> arch/arm/mm/cache-v7.S:297: Error: garbage following instruction -- `dsb ishst'
>> make[1]: *** [arch/arm/mm/cache-v7.o] Error 1
>> make: *** [arch/arm/mm] Error 2
>
> You need a later binutils for these instructions - 2.22 works just fine,
> even with gcc 4.5.x.
Since we are at it:
Build reference: v3.11-7887-gb409624
Building arm:defconfig ... passed
Building arm:allmodconfig ... failed
--------------
Error log:
arch/arm/mach-cns3xxx/pcie.c: In function 'cns3xxx_pcie_hw_init':
arch/arm/mach-cns3xxx/pcie.c:350:1: warning: the frame size of 1064 bytes is larger than 1024 bytes [-Wframe-larger-than=]
arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp]
arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp]
/tmp/cce439dZ.s: Assembler messages:
/tmp/cce439dZ.s:506: Error: selected processor does not support ARM mode `isb '
/tmp/cce439dZ.s:512: Error: selected processor does not support ARM mode `isb '
/tmp/cce439dZ.s:513: Error: selected processor does not support ARM mode `dsb '
/tmp/cce439dZ.s:583: Error: selected processor does not support ARM mode `isb '
/tmp/cce439dZ.s:589: Error: selected processor does not support ARM mode `isb '
/tmp/cce439dZ.s:590: Error: selected processor does not support ARM mode `dsb '
make[1]: *** [arch/arm/mach-vexpress/dcscb.o] Error 1
make: *** [arch/arm/mach-vexpress] Error 2
make: *** Waiting for unfinished jobs....
--------------
Any solution for this one ? omap2plus passes for me.
gcc version used is "arm-poky-linux-gnueabi-gcc (GCC) 4.7.2" from poky 1.3.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 22+ messages in thread
* Build error in torvalds kernel 3.11 for omap2plus
2013-09-08 17:16 ` Guenter Roeck
@ 2013-09-09 10:51 ` Russell King - ARM Linux
2013-09-09 12:00 ` Guenter Roeck
2013-09-09 10:55 ` Build error in torvalds kernel 3.11 for omap2plus Anil Kumar
1 sibling, 1 reply; 22+ messages in thread
From: Russell King - ARM Linux @ 2013-09-09 10:51 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, Sep 08, 2013 at 10:16:14AM -0700, Guenter Roeck wrote:
> Since we are at it:
>
> Build reference: v3.11-7887-gb409624
>
> Building arm:defconfig ... passed
> Building arm:allmodconfig ... failed
> --------------
> Error log:
> arch/arm/mach-cns3xxx/pcie.c: In function 'cns3xxx_pcie_hw_init':
> arch/arm/mach-cns3xxx/pcie.c:350:1: warning: the frame size of 1064 bytes is larger than 1024 bytes [-Wframe-larger-than=]
> arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp]
> arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp]
> /tmp/cce439dZ.s: Assembler messages:
> /tmp/cce439dZ.s:506: Error: selected processor does not support ARM mode `isb '
> /tmp/cce439dZ.s:512: Error: selected processor does not support ARM mode `isb '
> /tmp/cce439dZ.s:513: Error: selected processor does not support ARM mode `dsb '
> /tmp/cce439dZ.s:583: Error: selected processor does not support ARM mode `isb '
> /tmp/cce439dZ.s:589: Error: selected processor does not support ARM mode `isb '
> /tmp/cce439dZ.s:590: Error: selected processor does not support ARM mode `dsb '
> make[1]: *** [arch/arm/mach-vexpress/dcscb.o] Error 1
> make: *** [arch/arm/mach-vexpress] Error 2
> make: *** Waiting for unfinished jobs....
> --------------
>
> Any solution for this one ? omap2plus passes for me.
>
> gcc version used is "arm-poky-linux-gnueabi-gcc (GCC) 4.7.2" from poky 1.3.
That's due to:
commit e8f9bb1bd6bb93fff773345cc54c42585e0e3ece
Author: Nicolas Pitre <nicolas.pitre@linaro.org>
Date: Tue Jul 16 20:59:53 2013 -0400
ARM: vexpress/dcscb: fix cache disabling sequences
Unlike real A15/A7's, the RTSM simulation doesn't appear to hit the
cache when the CTRL.C bit is cleared. Let's ensure there is no memory
access within the disable and flush cache sequence, including to the
stack.
Signed-off-by: Nicolas Pitre <nico@linaro.org>
which introduces some 'isb' and 'dsb' instructions which are not
available on ARMv6 CPUs - however, their 'mcr' equivalents are.
Either dcscb needs to be built with an -march=armv7 override, or
they need to use the mcr equivalent instructions.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Build error in torvalds kernel 3.11 for omap2plus
2013-09-08 17:16 ` Guenter Roeck
2013-09-09 10:51 ` Russell King - ARM Linux
@ 2013-09-09 10:55 ` Anil Kumar
2013-09-09 11:30 ` Guenter Roeck
1 sibling, 1 reply; 22+ messages in thread
From: Anil Kumar @ 2013-09-09 10:55 UTC (permalink / raw)
To: linux-arm-kernel
Hi Guenter,
On Sun, Sep 8, 2013 at 10:46 PM, Guenter Roeck <linux@roeck-us.net> wrote:
> On 09/08/2013 02:02 AM, Russell King - ARM Linux wrote:
>>
>> On Sun, Sep 08, 2013 at 11:34:10AM +0530, Anil Kumar wrote:
>>>
>>> scripts/kconfig/conf --silentoldconfig Kconfig
>>> CHK include/generated/uapi/linux/version.h
>>> CHK include/generated/utsrelease.h
>>> make[1]: `include/generated/mach-types.h' is up to date.
>>> CALL scripts/checksyscalls.sh
>>> CHK include/generated/compile.h
>>> AS arch/arm/mm/cache-v7.o
>>> arch/arm/mm/cache-v7.S: Assembler messages:
>>> arch/arm/mm/cache-v7.S:285: Error: garbage following instruction -- `dsb
>>> ishst'
>>> arch/arm/mm/cache-v7.S:297: Error: garbage following instruction -- `dsb
>>> ishst'
>>> make[1]: *** [arch/arm/mm/cache-v7.o] Error 1
>>> make: *** [arch/arm/mm] Error 2
>>
>>
>> You need a later binutils for these instructions - 2.22 works just fine,
>> even with gcc 4.5.x.
>
>
> Since we are at it:
>
> Build reference: v3.11-7887-gb409624
>
> Building arm:defconfig ... passed
> Building arm:allmodconfig ... failed
> --------------
> Error log:
> arch/arm/mach-cns3xxx/pcie.c: In function 'cns3xxx_pcie_hw_init':
> arch/arm/mach-cns3xxx/pcie.c:350:1: warning: the frame size of 1064 bytes is
> larger than 1024 bytes [-Wframe-larger-than=]
> arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO:
> return_address should use unwind tables" [-Wcpp]
> arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO:
> return_address should use unwind tables" [-Wcpp]
> /tmp/cce439dZ.s: Assembler messages:
> /tmp/cce439dZ.s:506: Error: selected processor does not support ARM mode
> `isb '
> /tmp/cce439dZ.s:512: Error: selected processor does not support ARM mode
> `isb '
> /tmp/cce439dZ.s:513: Error: selected processor does not support ARM mode
> `dsb '
> /tmp/cce439dZ.s:583: Error: selected processor does not support ARM mode
> `isb '
> /tmp/cce439dZ.s:589: Error: selected processor does not support ARM mode
> `isb '
> /tmp/cce439dZ.s:590: Error: selected processor does not support ARM mode
> `dsb '
> make[1]: *** [arch/arm/mach-vexpress/dcscb.o] Error 1
> make: *** [arch/arm/mach-vexpress] Error 2
> make: *** Waiting for unfinished jobs....
> --------------
>
> Any solution for this one ? omap2plus passes for me.
I have updated my toolchain Assembler (used binutils 2.22 ) with
latest one and issue has fixed.
Thanks,
Anil
^ permalink raw reply [flat|nested] 22+ messages in thread
* Build error in torvalds kernel 3.11 for omap2plus
2013-09-09 10:55 ` Build error in torvalds kernel 3.11 for omap2plus Anil Kumar
@ 2013-09-09 11:30 ` Guenter Roeck
0 siblings, 0 replies; 22+ messages in thread
From: Guenter Roeck @ 2013-09-09 11:30 UTC (permalink / raw)
To: linux-arm-kernel
On 09/09/2013 03:55 AM, Anil Kumar wrote:
> Hi Guenter,
>
> On Sun, Sep 8, 2013 at 10:46 PM, Guenter Roeck <linux@roeck-us.net> wrote:
>> On 09/08/2013 02:02 AM, Russell King - ARM Linux wrote:
>>>
>>> On Sun, Sep 08, 2013 at 11:34:10AM +0530, Anil Kumar wrote:
>>>>
>>>> scripts/kconfig/conf --silentoldconfig Kconfig
>>>> CHK include/generated/uapi/linux/version.h
>>>> CHK include/generated/utsrelease.h
>>>> make[1]: `include/generated/mach-types.h' is up to date.
>>>> CALL scripts/checksyscalls.sh
>>>> CHK include/generated/compile.h
>>>> AS arch/arm/mm/cache-v7.o
>>>> arch/arm/mm/cache-v7.S: Assembler messages:
>>>> arch/arm/mm/cache-v7.S:285: Error: garbage following instruction -- `dsb
>>>> ishst'
>>>> arch/arm/mm/cache-v7.S:297: Error: garbage following instruction -- `dsb
>>>> ishst'
>>>> make[1]: *** [arch/arm/mm/cache-v7.o] Error 1
>>>> make: *** [arch/arm/mm] Error 2
>>>
>>>
>>> You need a later binutils for these instructions - 2.22 works just fine,
>>> even with gcc 4.5.x.
>>
>>
>> Since we are at it:
>>
>> Build reference: v3.11-7887-gb409624
>>
>> Building arm:defconfig ... passed
>> Building arm:allmodconfig ... failed
>> --------------
>> Error log:
>> arch/arm/mach-cns3xxx/pcie.c: In function 'cns3xxx_pcie_hw_init':
>> arch/arm/mach-cns3xxx/pcie.c:350:1: warning: the frame size of 1064 bytes is
>> larger than 1024 bytes [-Wframe-larger-than=]
>> arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO:
>> return_address should use unwind tables" [-Wcpp]
>> arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO:
>> return_address should use unwind tables" [-Wcpp]
>> /tmp/cce439dZ.s: Assembler messages:
>> /tmp/cce439dZ.s:506: Error: selected processor does not support ARM mode
>> `isb '
>> /tmp/cce439dZ.s:512: Error: selected processor does not support ARM mode
>> `isb '
>> /tmp/cce439dZ.s:513: Error: selected processor does not support ARM mode
>> `dsb '
>> /tmp/cce439dZ.s:583: Error: selected processor does not support ARM mode
>> `isb '
>> /tmp/cce439dZ.s:589: Error: selected processor does not support ARM mode
>> `isb '
>> /tmp/cce439dZ.s:590: Error: selected processor does not support ARM mode
>> `dsb '
>> make[1]: *** [arch/arm/mach-vexpress/dcscb.o] Error 1
>> make: *** [arch/arm/mach-vexpress] Error 2
>> make: *** Waiting for unfinished jobs....
>> --------------
>>
>> Any solution for this one ? omap2plus passes for me.
>
> I have updated my toolchain Assembler (used binutils 2.22 ) with
> latest one and issue has fixed.
>
Not for this build. As I said, the omap2plus build passes for me.
My binutils version is "2.23.1.20121113".
Did you try to build the file after "make allmodconfig" ?
Guenter
^ permalink raw reply [flat|nested] 22+ messages in thread
* Build error in torvalds kernel 3.11 for omap2plus
2013-09-09 10:51 ` Russell King - ARM Linux
@ 2013-09-09 12:00 ` Guenter Roeck
2013-09-09 14:24 ` Nicolas Pitre
0 siblings, 1 reply; 22+ messages in thread
From: Guenter Roeck @ 2013-09-09 12:00 UTC (permalink / raw)
To: linux-arm-kernel
On 09/09/2013 03:51 AM, Russell King - ARM Linux wrote:
> On Sun, Sep 08, 2013 at 10:16:14AM -0700, Guenter Roeck wrote:
>> Since we are at it:
>>
>> Build reference: v3.11-7887-gb409624
>>
>> Building arm:defconfig ... passed
>> Building arm:allmodconfig ... failed
>> --------------
>> Error log:
>> arch/arm/mach-cns3xxx/pcie.c: In function 'cns3xxx_pcie_hw_init':
>> arch/arm/mach-cns3xxx/pcie.c:350:1: warning: the frame size of 1064 bytes is larger than 1024 bytes [-Wframe-larger-than=]
>> arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp]
>> arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp]
>> /tmp/cce439dZ.s: Assembler messages:
>> /tmp/cce439dZ.s:506: Error: selected processor does not support ARM mode `isb '
>> /tmp/cce439dZ.s:512: Error: selected processor does not support ARM mode `isb '
>> /tmp/cce439dZ.s:513: Error: selected processor does not support ARM mode `dsb '
>> /tmp/cce439dZ.s:583: Error: selected processor does not support ARM mode `isb '
>> /tmp/cce439dZ.s:589: Error: selected processor does not support ARM mode `isb '
>> /tmp/cce439dZ.s:590: Error: selected processor does not support ARM mode `dsb '
>> make[1]: *** [arch/arm/mach-vexpress/dcscb.o] Error 1
>> make: *** [arch/arm/mach-vexpress] Error 2
>> make: *** Waiting for unfinished jobs....
>> --------------
>>
>> Any solution for this one ? omap2plus passes for me.
>>
>> gcc version used is "arm-poky-linux-gnueabi-gcc (GCC) 4.7.2" from poky 1.3.
>
> That's due to:
>
> commit e8f9bb1bd6bb93fff773345cc54c42585e0e3ece
> Author: Nicolas Pitre <nicolas.pitre@linaro.org>
> Date: Tue Jul 16 20:59:53 2013 -0400
>
> ARM: vexpress/dcscb: fix cache disabling sequences
>
> Unlike real A15/A7's, the RTSM simulation doesn't appear to hit the
> cache when the CTRL.C bit is cleared. Let's ensure there is no memory
> access within the disable and flush cache sequence, including to the
> stack.
>
> Signed-off-by: Nicolas Pitre <nico@linaro.org>
>
> which introduces some 'isb' and 'dsb' instructions which are not
> available on ARMv6 CPUs - however, their 'mcr' equivalents are.
>
> Either dcscb needs to be built with an -march=armv7 override, or
> they need to use the mcr equivalent instructions.
>
Well, I hope it will get fixed one way or another.
I don't know enough about arm to fix it myself.
Guenter
^ permalink raw reply [flat|nested] 22+ messages in thread
* Build error in torvalds kernel 3.11 for omap2plus
2013-09-09 12:00 ` Guenter Roeck
@ 2013-09-09 14:24 ` Nicolas Pitre
2013-09-09 16:03 ` Guenter Roeck
0 siblings, 1 reply; 22+ messages in thread
From: Nicolas Pitre @ 2013-09-09 14:24 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, 9 Sep 2013, Guenter Roeck wrote:
> On 09/09/2013 03:51 AM, Russell King - ARM Linux wrote:
> > On Sun, Sep 08, 2013 at 10:16:14AM -0700, Guenter Roeck wrote:
> > > Since we are at it:
> > >
> > > Build reference: v3.11-7887-gb409624
> > >
> > > Building arm:defconfig ... passed
> > > Building arm:allmodconfig ... failed
> > > --------------
> > > Error log:
> > > arch/arm/mach-cns3xxx/pcie.c: In function 'cns3xxx_pcie_hw_init':
> > > arch/arm/mach-cns3xxx/pcie.c:350:1: warning: the frame size of 1064 bytes
> > > is larger than 1024 bytes [-Wframe-larger-than=]
> > > arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO:
> > > return_address should use unwind tables" [-Wcpp]
> > > arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO:
> > > return_address should use unwind tables" [-Wcpp]
> > > /tmp/cce439dZ.s: Assembler messages:
> > > /tmp/cce439dZ.s:506: Error: selected processor does not support ARM mode
> > > `isb '
> > > /tmp/cce439dZ.s:512: Error: selected processor does not support ARM mode
> > > `isb '
> > > /tmp/cce439dZ.s:513: Error: selected processor does not support ARM mode
> > > `dsb '
> > > /tmp/cce439dZ.s:583: Error: selected processor does not support ARM mode
> > > `isb '
> > > /tmp/cce439dZ.s:589: Error: selected processor does not support ARM mode
> > > `isb '
> > > /tmp/cce439dZ.s:590: Error: selected processor does not support ARM mode
> > > `dsb '
> > > make[1]: *** [arch/arm/mach-vexpress/dcscb.o] Error 1
> > > make: *** [arch/arm/mach-vexpress] Error 2
> > > make: *** Waiting for unfinished jobs....
> > > --------------
> > >
> > > Any solution for this one ? omap2plus passes for me.
> > >
> > > gcc version used is "arm-poky-linux-gnueabi-gcc (GCC) 4.7.2" from poky
> > > 1.3.
> >
> > That's due to:
> >
> > commit e8f9bb1bd6bb93fff773345cc54c42585e0e3ece
> > Author: Nicolas Pitre <nicolas.pitre@linaro.org>
> > Date: Tue Jul 16 20:59:53 2013 -0400
> >
> > ARM: vexpress/dcscb: fix cache disabling sequences
> >
> > Unlike real A15/A7's, the RTSM simulation doesn't appear to hit the
> > cache when the CTRL.C bit is cleared. Let's ensure there is no memory
> > access within the disable and flush cache sequence, including to the
> > stack.
> >
> > Signed-off-by: Nicolas Pitre <nico@linaro.org>
> >
> > which introduces some 'isb' and 'dsb' instructions which are not
> > available on ARMv6 CPUs - however, their 'mcr' equivalents are.
> >
> > Either dcscb needs to be built with an -march=armv7 override, or
> > they need to use the mcr equivalent instructions.
> >
>
> Well, I hope it will get fixed one way or another.
> I don't know enough about arm to fix it myself.
Would you try this patch please:
diff --git a/arch/arm/mach-vexpress/Makefile b/arch/arm/mach-vexpress/Makefile
index 36ea824712..505e64ab3e 100644
--- a/arch/arm/mach-vexpress/Makefile
+++ b/arch/arm/mach-vexpress/Makefile
@@ -7,6 +7,8 @@ ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \
obj-y := v2m.o
obj-$(CONFIG_ARCH_VEXPRESS_CA9X4) += ct-ca9x4.o
obj-$(CONFIG_ARCH_VEXPRESS_DCSCB) += dcscb.o dcscb_setup.o
+CFLAGS_dcscb.o += -march=armv7-a
obj-$(CONFIG_ARCH_VEXPRESS_TC2_PM) += tc2_pm.o spc.o
+CFLAGS_tc2_pm.o += -march=armv7-a
obj-$(CONFIG_SMP) += platsmp.o
obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
^ permalink raw reply related [flat|nested] 22+ messages in thread
* Build error in torvalds kernel 3.11 for omap2plus
2013-09-09 14:24 ` Nicolas Pitre
@ 2013-09-09 16:03 ` Guenter Roeck
2013-09-09 20:31 ` Russell King - ARM Linux
0 siblings, 1 reply; 22+ messages in thread
From: Guenter Roeck @ 2013-09-09 16:03 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Sep 09, 2013 at 10:24:42AM -0400, Nicolas Pitre wrote:
> On Mon, 9 Sep 2013, Guenter Roeck wrote:
>
> > On 09/09/2013 03:51 AM, Russell King - ARM Linux wrote:
> > > On Sun, Sep 08, 2013 at 10:16:14AM -0700, Guenter Roeck wrote:
> > > > Since we are at it:
> > > >
> > > > Build reference: v3.11-7887-gb409624
> > > >
> > > > Building arm:defconfig ... passed
> > > > Building arm:allmodconfig ... failed
> > > > --------------
> > > > Error log:
> > > > arch/arm/mach-cns3xxx/pcie.c: In function 'cns3xxx_pcie_hw_init':
> > > > arch/arm/mach-cns3xxx/pcie.c:350:1: warning: the frame size of 1064 bytes
> > > > is larger than 1024 bytes [-Wframe-larger-than=]
> > > > arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO:
> > > > return_address should use unwind tables" [-Wcpp]
> > > > arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO:
> > > > return_address should use unwind tables" [-Wcpp]
> > > > /tmp/cce439dZ.s: Assembler messages:
> > > > /tmp/cce439dZ.s:506: Error: selected processor does not support ARM mode
> > > > `isb '
> > > > /tmp/cce439dZ.s:512: Error: selected processor does not support ARM mode
> > > > `isb '
> > > > /tmp/cce439dZ.s:513: Error: selected processor does not support ARM mode
> > > > `dsb '
> > > > /tmp/cce439dZ.s:583: Error: selected processor does not support ARM mode
> > > > `isb '
> > > > /tmp/cce439dZ.s:589: Error: selected processor does not support ARM mode
> > > > `isb '
> > > > /tmp/cce439dZ.s:590: Error: selected processor does not support ARM mode
> > > > `dsb '
> > > > make[1]: *** [arch/arm/mach-vexpress/dcscb.o] Error 1
> > > > make: *** [arch/arm/mach-vexpress] Error 2
> > > > make: *** Waiting for unfinished jobs....
> > > > --------------
> > > >
> > > > Any solution for this one ? omap2plus passes for me.
> > > >
> > > > gcc version used is "arm-poky-linux-gnueabi-gcc (GCC) 4.7.2" from poky
> > > > 1.3.
> > >
> > > That's due to:
> > >
> > > commit e8f9bb1bd6bb93fff773345cc54c42585e0e3ece
> > > Author: Nicolas Pitre <nicolas.pitre@linaro.org>
> > > Date: Tue Jul 16 20:59:53 2013 -0400
> > >
> > > ARM: vexpress/dcscb: fix cache disabling sequences
> > >
> > > Unlike real A15/A7's, the RTSM simulation doesn't appear to hit the
> > > cache when the CTRL.C bit is cleared. Let's ensure there is no memory
> > > access within the disable and flush cache sequence, including to the
> > > stack.
> > >
> > > Signed-off-by: Nicolas Pitre <nico@linaro.org>
> > >
> > > which introduces some 'isb' and 'dsb' instructions which are not
> > > available on ARMv6 CPUs - however, their 'mcr' equivalents are.
> > >
> > > Either dcscb needs to be built with an -march=armv7 override, or
> > > they need to use the mcr equivalent instructions.
> > >
> >
> > Well, I hope it will get fixed one way or another.
> > I don't know enough about arm to fix it myself.
>
> Would you try this patch please:
>
> diff --git a/arch/arm/mach-vexpress/Makefile b/arch/arm/mach-vexpress/Makefile
> index 36ea824712..505e64ab3e 100644
> --- a/arch/arm/mach-vexpress/Makefile
> +++ b/arch/arm/mach-vexpress/Makefile
> @@ -7,6 +7,8 @@ ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \
> obj-y := v2m.o
> obj-$(CONFIG_ARCH_VEXPRESS_CA9X4) += ct-ca9x4.o
> obj-$(CONFIG_ARCH_VEXPRESS_DCSCB) += dcscb.o dcscb_setup.o
> obj-$(CONFIG_ARCH_VEXPRESS_DCSCB) += dcscb.o dcscb_setup.o
> +CFLAGS_dcscb.o += -march=armv7-a
> obj-$(CONFIG_ARCH_VEXPRESS_TC2_PM) += tc2_pm.o spc.o
> +CFLAGS_tc2_pm.o += -march=armv7-a
> obj-$(CONFIG_SMP) += platsmp.o
> obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
>
That fixes this problem. I'll leave it up to you and Russell to decide if it is
the proper fix.
Unfortunately, there are more problems.
arch/arm/kernel/built-in.o: In function `ret_fast_syscall':
/home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:42: undefined reference to `user_enter'
arch/arm/kernel/built-in.o: In function `no_work_pending':
/home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:77: undefined reference to `user_enter'
arch/arm/kernel/built-in.o: In function `vector_swi':
/home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:376: undefined reference to `user_exit'
arch/arm/kernel/built-in.o: In function `__dabt_usr':
/home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:365: undefined reference to `user_exit'
arch/arm/kernel/built-in.o: In function `__irq_usr':
/home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:375: undefined reference to `user_exit'
arch/arm/kernel/built-in.o: In function `__und_usr':
/home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:388: undefined reference to `user_exit'
arch/arm/kernel/built-in.o: In function `__pabt_usr':
/home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:662: undefined reference to `user_exit'
arch/arm/mach-omap2/built-in.o: In function `omap3_evm_init':
/home/groeck/src/linux-stable/arch/arm/mach-omap2/board-omap3evm.c:703:
undefined reference to `usb_nop_xceiv_register'
The undefined reference to usb_nop_xceiv_register is because CONFIG_NOP_USB_XCEIV
is built as module but obviously called from code built into the kernel.
Not sure what the correct fix is - build CONFIG_NOP_USB_XCEIV into the kernel,
make usb_nop_xceiv_register a dummy function if CONFIG_NOP_USB_XCEIV is built
as module but called from built-in code, or don't call usb_nop_xceiv_register
from code built into the kernel.
No idea where the undefined user_enter and user_exit comes from.
Guenter
^ permalink raw reply [flat|nested] 22+ messages in thread
* Build error in torvalds kernel 3.11 for omap2plus
2013-09-09 16:03 ` Guenter Roeck
@ 2013-09-09 20:31 ` Russell King - ARM Linux
2013-09-09 21:02 ` Guenter Roeck
0 siblings, 1 reply; 22+ messages in thread
From: Russell King - ARM Linux @ 2013-09-09 20:31 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Sep 09, 2013 at 09:03:48AM -0700, Guenter Roeck wrote:
> Unfortunately, there are more problems.
>
> arch/arm/kernel/built-in.o: In function `ret_fast_syscall':
> /home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:42: undefined reference to `user_enter'
> arch/arm/kernel/built-in.o: In function `no_work_pending':
> /home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:77: undefined reference to `user_enter'
> arch/arm/kernel/built-in.o: In function `vector_swi':
> /home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:376: undefined reference to `user_exit'
> arch/arm/kernel/built-in.o: In function `__dabt_usr':
> /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:365: undefined reference to `user_exit'
> arch/arm/kernel/built-in.o: In function `__irq_usr':
> /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:375: undefined reference to `user_exit'
> arch/arm/kernel/built-in.o: In function `__und_usr':
> /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:388: undefined reference to `user_exit'
> arch/arm/kernel/built-in.o: In function `__pabt_usr':
> /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:662: undefined reference to `user_exit'
These are due to ad65782fba50 (context_tracking: Optimize main APIs off case
with static key) converting these functions to be inline.
No idea what the fix for this is other than reverting the change. Any
ideas Frederic?
^ permalink raw reply [flat|nested] 22+ messages in thread
* Build error in torvalds kernel 3.11 for omap2plus
2013-09-09 20:31 ` Russell King - ARM Linux
@ 2013-09-09 21:02 ` Guenter Roeck
2013-09-09 21:16 ` Nicolas Pitre
0 siblings, 1 reply; 22+ messages in thread
From: Guenter Roeck @ 2013-09-09 21:02 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Sep 09, 2013 at 09:31:41PM +0100, Russell King - ARM Linux wrote:
> On Mon, Sep 09, 2013 at 09:03:48AM -0700, Guenter Roeck wrote:
> > Unfortunately, there are more problems.
> >
> > arch/arm/kernel/built-in.o: In function `ret_fast_syscall':
> > /home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:42: undefined reference to `user_enter'
> > arch/arm/kernel/built-in.o: In function `no_work_pending':
> > /home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:77: undefined reference to `user_enter'
> > arch/arm/kernel/built-in.o: In function `vector_swi':
> > /home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:376: undefined reference to `user_exit'
> > arch/arm/kernel/built-in.o: In function `__dabt_usr':
> > /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:365: undefined reference to `user_exit'
> > arch/arm/kernel/built-in.o: In function `__irq_usr':
> > /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:375: undefined reference to `user_exit'
> > arch/arm/kernel/built-in.o: In function `__und_usr':
> > /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:388: undefined reference to `user_exit'
> > arch/arm/kernel/built-in.o: In function `__pabt_usr':
> > /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:662: undefined reference to `user_exit'
>
> These are due to ad65782fba50 (context_tracking: Optimize main APIs off case
> with static key) converting these functions to be inline.
>
> No idea what the fix for this is other than reverting the change. Any
> ideas Frederic?
>
I am all for reverting unless this can be fixed quickly.
AFAICS this breaks all arm builds if CONFIG_CONTEXT_TRACKING is enabled.
Guenter
^ permalink raw reply [flat|nested] 22+ messages in thread
* Build error in torvalds kernel 3.11 for omap2plus
2013-09-09 21:02 ` Guenter Roeck
@ 2013-09-09 21:16 ` Nicolas Pitre
2013-09-10 15:07 ` Kevin Hilman
0 siblings, 1 reply; 22+ messages in thread
From: Nicolas Pitre @ 2013-09-09 21:16 UTC (permalink / raw)
To: linux-arm-kernel
Adding Kevin Hilman to the CC as he might be interested as well.
On Mon, 9 Sep 2013, Guenter Roeck wrote:
> On Mon, Sep 09, 2013 at 09:31:41PM +0100, Russell King - ARM Linux wrote:
> > On Mon, Sep 09, 2013 at 09:03:48AM -0700, Guenter Roeck wrote:
> > > Unfortunately, there are more problems.
> > >
> > > arch/arm/kernel/built-in.o: In function `ret_fast_syscall':
> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:42: undefined reference to `user_enter'
> > > arch/arm/kernel/built-in.o: In function `no_work_pending':
> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:77: undefined reference to `user_enter'
> > > arch/arm/kernel/built-in.o: In function `vector_swi':
> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:376: undefined reference to `user_exit'
> > > arch/arm/kernel/built-in.o: In function `__dabt_usr':
> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:365: undefined reference to `user_exit'
> > > arch/arm/kernel/built-in.o: In function `__irq_usr':
> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:375: undefined reference to `user_exit'
> > > arch/arm/kernel/built-in.o: In function `__und_usr':
> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:388: undefined reference to `user_exit'
> > > arch/arm/kernel/built-in.o: In function `__pabt_usr':
> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:662: undefined reference to `user_exit'
> >
> > These are due to ad65782fba50 (context_tracking: Optimize main APIs off case
> > with static key) converting these functions to be inline.
> >
> > No idea what the fix for this is other than reverting the change. Any
> > ideas Frederic?
> >
> I am all for reverting unless this can be fixed quickly.
> AFAICS this breaks all arm builds if CONFIG_CONTEXT_TRACKING is enabled.
>
> Guenter
>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Build error in torvalds kernel 3.11 for omap2plus
2013-09-09 21:16 ` Nicolas Pitre
@ 2013-09-10 15:07 ` Kevin Hilman
2013-09-10 15:09 ` Frederic Weisbecker
2013-09-13 17:03 ` [PATCH] arm: Fix build error with context tracking calls Frederic Weisbecker
0 siblings, 2 replies; 22+ messages in thread
From: Kevin Hilman @ 2013-09-10 15:07 UTC (permalink / raw)
To: linux-arm-kernel
Nicolas Pitre <nicolas.pitre@linaro.org> writes:
> Adding Kevin Hilman to the CC as he might be interested as well.
Thanks, I'd already noticed this but was distracted getting arm-soc
changes ready for the merge window. Looking into it now.
Kevin
> On Mon, 9 Sep 2013, Guenter Roeck wrote:
>
>> On Mon, Sep 09, 2013 at 09:31:41PM +0100, Russell King - ARM Linux wrote:
>> > On Mon, Sep 09, 2013 at 09:03:48AM -0700, Guenter Roeck wrote:
>> > > Unfortunately, there are more problems.
>> > >
>> > > arch/arm/kernel/built-in.o: In function `ret_fast_syscall':
>> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:42:
>> > > undefined reference to `user_enter'
>> > > arch/arm/kernel/built-in.o: In function `no_work_pending':
>> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:77:
>> > > undefined reference to `user_enter'
>> > > arch/arm/kernel/built-in.o: In function `vector_swi':
>> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:376:
>> > > undefined reference to `user_exit'
>> > > arch/arm/kernel/built-in.o: In function `__dabt_usr':
>> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:365: undefined reference to `user_exit'
>> > > arch/arm/kernel/built-in.o: In function `__irq_usr':
>> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:375: undefined reference to `user_exit'
>> > > arch/arm/kernel/built-in.o: In function `__und_usr':
>> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:388: undefined reference to `user_exit'
>> > > arch/arm/kernel/built-in.o: In function `__pabt_usr':
>> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:662: undefined reference to `user_exit'
>> >
>> > These are due to ad65782fba50 (context_tracking: Optimize main APIs off case
>> > with static key) converting these functions to be inline.
>> >
>> > No idea what the fix for this is other than reverting the change. Any
>> > ideas Frederic?
>> >
>> I am all for reverting unless this can be fixed quickly.
>> AFAICS this breaks all arm builds if CONFIG_CONTEXT_TRACKING is enabled.
>>
>> Guenter
>>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Build error in torvalds kernel 3.11 for omap2plus
2013-09-10 15:07 ` Kevin Hilman
@ 2013-09-10 15:09 ` Frederic Weisbecker
2013-09-13 17:03 ` [PATCH] arm: Fix build error with context tracking calls Frederic Weisbecker
1 sibling, 0 replies; 22+ messages in thread
From: Frederic Weisbecker @ 2013-09-10 15:09 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Sep 10, 2013 at 08:07:45AM -0700, Kevin Hilman wrote:
> Nicolas Pitre <nicolas.pitre@linaro.org> writes:
>
> > Adding Kevin Hilman to the CC as he might be interested as well.
>
> Thanks, I'd already noticed this but was distracted getting arm-soc
> changes ready for the merge window. Looking into it now.
I have the fix pending. It passed the cross build so I'll send it soon.
Thanks.
>
> Kevin
>
> > On Mon, 9 Sep 2013, Guenter Roeck wrote:
> >
> >> On Mon, Sep 09, 2013 at 09:31:41PM +0100, Russell King - ARM Linux wrote:
> >> > On Mon, Sep 09, 2013 at 09:03:48AM -0700, Guenter Roeck wrote:
> >> > > Unfortunately, there are more problems.
> >> > >
> >> > > arch/arm/kernel/built-in.o: In function `ret_fast_syscall':
> >> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:42:
> >> > > undefined reference to `user_enter'
> >> > > arch/arm/kernel/built-in.o: In function `no_work_pending':
> >> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:77:
> >> > > undefined reference to `user_enter'
> >> > > arch/arm/kernel/built-in.o: In function `vector_swi':
> >> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-common.S:376:
> >> > > undefined reference to `user_exit'
> >> > > arch/arm/kernel/built-in.o: In function `__dabt_usr':
> >> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:365: undefined reference to `user_exit'
> >> > > arch/arm/kernel/built-in.o: In function `__irq_usr':
> >> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:375: undefined reference to `user_exit'
> >> > > arch/arm/kernel/built-in.o: In function `__und_usr':
> >> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:388: undefined reference to `user_exit'
> >> > > arch/arm/kernel/built-in.o: In function `__pabt_usr':
> >> > > /home/groeck/src/linux-stable/arch/arm/kernel/entry-armv.S:662: undefined reference to `user_exit'
> >> >
> >> > These are due to ad65782fba50 (context_tracking: Optimize main APIs off case
> >> > with static key) converting these functions to be inline.
> >> >
> >> > No idea what the fix for this is other than reverting the change. Any
> >> > ideas Frederic?
> >> >
> >> I am all for reverting unless this can be fixed quickly.
> >> AFAICS this breaks all arm builds if CONFIG_CONTEXT_TRACKING is enabled.
> >>
> >> Guenter
> >>
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PATCH] arm: Fix build error with context tracking calls
2013-09-10 15:07 ` Kevin Hilman
2013-09-10 15:09 ` Frederic Weisbecker
@ 2013-09-13 17:03 ` Frederic Weisbecker
2013-09-13 22:50 ` Kevin Hilman
2013-09-14 14:32 ` Russell King - ARM Linux
1 sibling, 2 replies; 22+ messages in thread
From: Frederic Weisbecker @ 2013-09-13 17:03 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Sep 10, 2013 at 08:07:45AM -0700, Kevin Hilman wrote:
> Nicolas Pitre <nicolas.pitre@linaro.org> writes:
>
> > Adding Kevin Hilman to the CC as he might be interested as well.
>
> Thanks, I'd already noticed this but was distracted getting arm-soc
> changes ready for the merge window. Looking into it now.
Kevin, can you please try this patch? It built tested fine on ARM
and live tested correctly on x86. There should be no problem but
just in case.
Thanks!
---
>From 9bb601401baea0a2b2eead3909a9f186d894d617 Mon Sep 17 00:00:00 2001
From: Frederic Weisbecker <fweisbec@gmail.com>
Date: Tue, 10 Sep 2013 00:54:17 +0200
Subject: [PATCH] arm: Fix build error with context tracking calls
ad65782fba50 (context_tracking: Optimize main APIs off case
with static key) converted context tracking main APIs to inline
functions and left ARM asm callers behind.
This can be easily fixed by making ARM calling the post static
keys context tracking functions. We just need to replicate the
static key checks there. We'll remove these later when ARM will
support the context tracking static keys.
Reported-by: Guenter Roeck <linux@roeck-us.net>
Reported-by: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Kevin Hilman <khilman@linaro.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
Cc: Anil Kumar <anilk4.v@gmail.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Benoit Cousson <b-cousson@ti.com>
---
| 8 ++++----
kernel/context_tracking.c | 12 ++++++++++++
2 files changed, 16 insertions(+), 4 deletions(-)
--git a/arch/arm/kernel/entry-header.S b/arch/arm/kernel/entry-header.S
index de23a9b..39f89fb 100644
--- a/arch/arm/kernel/entry-header.S
+++ b/arch/arm/kernel/entry-header.S
@@ -329,10 +329,10 @@
#ifdef CONFIG_CONTEXT_TRACKING
.if \save
stmdb sp!, {r0-r3, ip, lr}
- bl user_exit
+ bl context_tracking_user_exit
ldmia sp!, {r0-r3, ip, lr}
.else
- bl user_exit
+ bl context_tracking_user_exit
.endif
#endif
.endm
@@ -341,10 +341,10 @@
#ifdef CONFIG_CONTEXT_TRACKING
.if \save
stmdb sp!, {r0-r3, ip, lr}
- bl user_enter
+ bl context_tracking_user_enter
ldmia sp!, {r0-r3, ip, lr}
.else
- bl user_enter
+ bl context_tracking_user_enter
.endif
#endif
.endm
diff --git a/kernel/context_tracking.c b/kernel/context_tracking.c
index 247091b..859c8df 100644
--- a/kernel/context_tracking.c
+++ b/kernel/context_tracking.c
@@ -51,6 +51,15 @@ void context_tracking_user_enter(void)
unsigned long flags;
/*
+ * Repeat the user_enter() check here because some archs may be calling
+ * this from asm and if no CPU needs context tracking, they shouldn't
+ * go further. We can remove that check here once these archs support the static key
+ * check.
+ */
+ if (!static_key_false(&context_tracking_enabled))
+ return;
+
+ /*
* Some contexts may involve an exception occuring in an irq,
* leading to that nesting:
* rcu_irq_enter() rcu_user_exit() rcu_user_exit() rcu_irq_exit()
@@ -151,6 +160,9 @@ void context_tracking_user_exit(void)
{
unsigned long flags;
+ if (!static_key_false(&context_tracking_enabled))
+ return;
+
if (in_interrupt())
return;
--
1.7.5.4
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PATCH] arm: Fix build error with context tracking calls
2013-09-13 17:03 ` [PATCH] arm: Fix build error with context tracking calls Frederic Weisbecker
@ 2013-09-13 22:50 ` Kevin Hilman
2013-09-14 14:19 ` Frederic Weisbecker
2013-09-14 14:32 ` Russell King - ARM Linux
1 sibling, 1 reply; 22+ messages in thread
From: Kevin Hilman @ 2013-09-13 22:50 UTC (permalink / raw)
To: linux-arm-kernel
Frederic Weisbecker <fweisbec@gmail.com> writes:
> On Tue, Sep 10, 2013 at 08:07:45AM -0700, Kevin Hilman wrote:
>> Nicolas Pitre <nicolas.pitre@linaro.org> writes:
>>
>> > Adding Kevin Hilman to the CC as he might be interested as well.
>>
>> Thanks, I'd already noticed this but was distracted getting arm-soc
>> changes ready for the merge window. Looking into it now.
>
> Kevin, can you please try this patch? It built tested fine on ARM
> and live tested correctly on x86. There should be no problem but
> just in case.
Tested-by: Kevin Hilman <khilman@linaro.org>
Things are back to working again on ARM. Thanks for the fix, and for
build testing on ARM.
As you noticed to test on ARM, we still have to carry that patch to
drop that 'depends on 64BIT' in order to build/test this... any more
thoughts on what the remaining obstacles there are?
Kevin
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PATCH] arm: Fix build error with context tracking calls
2013-09-13 22:50 ` Kevin Hilman
@ 2013-09-14 14:19 ` Frederic Weisbecker
2013-09-16 17:11 ` Kevin Hilman
0 siblings, 1 reply; 22+ messages in thread
From: Frederic Weisbecker @ 2013-09-14 14:19 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Sep 13, 2013 at 03:50:07PM -0700, Kevin Hilman wrote:
> Frederic Weisbecker <fweisbec@gmail.com> writes:
>
> > On Tue, Sep 10, 2013 at 08:07:45AM -0700, Kevin Hilman wrote:
> >> Nicolas Pitre <nicolas.pitre@linaro.org> writes:
> >>
> >> > Adding Kevin Hilman to the CC as he might be interested as well.
> >>
> >> Thanks, I'd already noticed this but was distracted getting arm-soc
> >> changes ready for the merge window. Looking into it now.
> >
> > Kevin, can you please try this patch? It built tested fine on ARM
> > and live tested correctly on x86. There should be no problem but
> > just in case.
>
> Tested-by: Kevin Hilman <khilman@linaro.org>
>
> Things are back to working again on ARM. Thanks for the fix, and for
> build testing on ARM.
>
> As you noticed to test on ARM, we still have to carry that patch to
> drop that 'depends on 64BIT' in order to build/test this... any more
> thoughts on what the remaining obstacles there are?
I was mostly fine with your last patchset that enabled that +
a few stuff to make it working on ARM. There were just a few details
to polish. But I remember I sent detailed reviews, may be you missed them
somewhow?
Thanks.
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PATCH] arm: Fix build error with context tracking calls
2013-09-13 17:03 ` [PATCH] arm: Fix build error with context tracking calls Frederic Weisbecker
2013-09-13 22:50 ` Kevin Hilman
@ 2013-09-14 14:32 ` Russell King - ARM Linux
2013-09-22 16:59 ` Frederic Weisbecker
1 sibling, 1 reply; 22+ messages in thread
From: Russell King - ARM Linux @ 2013-09-14 14:32 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Sep 13, 2013 at 07:03:34PM +0200, Frederic Weisbecker wrote:
> diff --git a/kernel/context_tracking.c b/kernel/context_tracking.c
> index 247091b..859c8df 100644
> --- a/kernel/context_tracking.c
> +++ b/kernel/context_tracking.c
> @@ -51,6 +51,15 @@ void context_tracking_user_enter(void)
> unsigned long flags;
>
> /*
> + * Repeat the user_enter() check here because some archs may be calling
> + * this from asm and if no CPU needs context tracking, they shouldn't
> + * go further. We can remove that check here once these archs support the static key
> + * check.
The only (minor) comment on this is that the above would fail checkpatch,
but that's not a good enough reason to respin it if you've already applied
it IMHO.
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PATCH] arm: Fix build error with context tracking calls
2013-09-14 14:19 ` Frederic Weisbecker
@ 2013-09-16 17:11 ` Kevin Hilman
0 siblings, 0 replies; 22+ messages in thread
From: Kevin Hilman @ 2013-09-16 17:11 UTC (permalink / raw)
To: linux-arm-kernel
On Sat, Sep 14, 2013 at 7:19 AM, Frederic Weisbecker <fweisbec@gmail.com> wrote:
> On Fri, Sep 13, 2013 at 03:50:07PM -0700, Kevin Hilman wrote:
>> Frederic Weisbecker <fweisbec@gmail.com> writes:
>>
>> > On Tue, Sep 10, 2013 at 08:07:45AM -0700, Kevin Hilman wrote:
>> >> Nicolas Pitre <nicolas.pitre@linaro.org> writes:
>> >>
>> >> > Adding Kevin Hilman to the CC as he might be interested as well.
>> >>
>> >> Thanks, I'd already noticed this but was distracted getting arm-soc
>> >> changes ready for the merge window. Looking into it now.
>> >
>> > Kevin, can you please try this patch? It built tested fine on ARM
>> > and live tested correctly on x86. There should be no problem but
>> > just in case.
>>
>> Tested-by: Kevin Hilman <khilman@linaro.org>
>>
>> Things are back to working again on ARM. Thanks for the fix, and for
>> build testing on ARM.
>>
>> As you noticed to test on ARM, we still have to carry that patch to
>> drop that 'depends on 64BIT' in order to build/test this... any more
>> thoughts on what the remaining obstacles there are?
>
> I was mostly fine with your last patchset that enabled that +
> a few stuff to make it working on ARM. There were just a few details
> to polish. But I remember I sent detailed reviews, may be you missed them
> somewhow?
Hmm, looks like I missed those, but see them now. I'll go back
through those and respin/resend.
Thanks,
Kevin
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PATCH] arm: Fix build error with context tracking calls
2013-09-14 14:32 ` Russell King - ARM Linux
@ 2013-09-22 16:59 ` Frederic Weisbecker
2013-09-25 17:38 ` Kevin Hilman
0 siblings, 1 reply; 22+ messages in thread
From: Frederic Weisbecker @ 2013-09-22 16:59 UTC (permalink / raw)
To: linux-arm-kernel
2013/9/14, Russell King - ARM Linux <linux@arm.linux.org.uk>:
> On Fri, Sep 13, 2013 at 07:03:34PM +0200, Frederic Weisbecker wrote:
>> diff --git a/kernel/context_tracking.c b/kernel/context_tracking.c
>> index 247091b..859c8df 100644
>> --- a/kernel/context_tracking.c
>> +++ b/kernel/context_tracking.c
>> @@ -51,6 +51,15 @@ void context_tracking_user_enter(void)
>> unsigned long flags;
>>
>> /*
>> + * Repeat the user_enter() check here because some archs may be calling
>> + * this from asm and if no CPU needs context tracking, they shouldn't
>> + * go further. We can remove that check here once these archs support
>> the static key
>> + * check.
>
> The only (minor) comment on this is that the above would fail checkpatch,
> but that's not a good enough reason to respin it if you've already applied
> it IMHO.
>
Ah I haven't yet pushed that patch anywhere so I can definetly fix
that. Thanks for the review. BTW, I initially first thought this fix
could go through your tree but if you prefer I can push it through
Ingo to the context tracking bits.
Just tell me either way.
Thanks!
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PATCH] arm: Fix build error with context tracking calls
2013-09-22 16:59 ` Frederic Weisbecker
@ 2013-09-25 17:38 ` Kevin Hilman
2013-09-27 13:30 ` Frederic Weisbecker
0 siblings, 1 reply; 22+ messages in thread
From: Kevin Hilman @ 2013-09-25 17:38 UTC (permalink / raw)
To: linux-arm-kernel
Frederic Weisbecker <fweisbec@gmail.com> writes:
> 2013/9/14, Russell King - ARM Linux <linux@arm.linux.org.uk>:
>> On Fri, Sep 13, 2013 at 07:03:34PM +0200, Frederic Weisbecker wrote:
>>> diff --git a/kernel/context_tracking.c b/kernel/context_tracking.c
>>> index 247091b..859c8df 100644
>>> --- a/kernel/context_tracking.c
>>> +++ b/kernel/context_tracking.c
>>> @@ -51,6 +51,15 @@ void context_tracking_user_enter(void)
>>> unsigned long flags;
>>>
>>> /*
>>> + * Repeat the user_enter() check here because some archs may be calling
>>> + * this from asm and if no CPU needs context tracking, they shouldn't
>>> + * go further. We can remove that check here once these archs support
>>> the static key
>>> + * check.
>>
>> The only (minor) comment on this is that the above would fail checkpatch,
>> but that's not a good enough reason to respin it if you've already applied
>> it IMHO.
>>
>
> Ah I haven't yet pushed that patch anywhere so I can definetly fix
> that. Thanks for the review. BTW, I initially first thought this fix
> could go through your tree but if you prefer I can push it through
> Ingo to the context tracking bits.
>
> Just tell me either way.
Frederic, I suggest you queue it directly for v3.12-rc. Thanks,
Kevin
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PATCH] arm: Fix build error with context tracking calls
2013-09-25 17:38 ` Kevin Hilman
@ 2013-09-27 13:30 ` Frederic Weisbecker
0 siblings, 0 replies; 22+ messages in thread
From: Frederic Weisbecker @ 2013-09-27 13:30 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Sep 25, 2013 at 10:38:58AM -0700, Kevin Hilman wrote:
> Frederic Weisbecker <fweisbec@gmail.com> writes:
>
> > 2013/9/14, Russell King - ARM Linux <linux@arm.linux.org.uk>:
> >> On Fri, Sep 13, 2013 at 07:03:34PM +0200, Frederic Weisbecker wrote:
> >>> diff --git a/kernel/context_tracking.c b/kernel/context_tracking.c
> >>> index 247091b..859c8df 100644
> >>> --- a/kernel/context_tracking.c
> >>> +++ b/kernel/context_tracking.c
> >>> @@ -51,6 +51,15 @@ void context_tracking_user_enter(void)
> >>> unsigned long flags;
> >>>
> >>> /*
> >>> + * Repeat the user_enter() check here because some archs may be calling
> >>> + * this from asm and if no CPU needs context tracking, they shouldn't
> >>> + * go further. We can remove that check here once these archs support
> >>> the static key
> >>> + * check.
> >>
> >> The only (minor) comment on this is that the above would fail checkpatch,
> >> but that's not a good enough reason to respin it if you've already applied
> >> it IMHO.
> >>
> >
> > Ah I haven't yet pushed that patch anywhere so I can definetly fix
> > that. Thanks for the review. BTW, I initially first thought this fix
> > could go through your tree but if you prefer I can push it through
> > Ingo to the context tracking bits.
> >
> > Just tell me either way.
>
> Frederic, I suggest you queue it directly for v3.12-rc. Thanks,
Ok, I'm doing that then, thanks you!
^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2013-09-27 13:30 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-08 6:04 Build error in torvalds kernel 3.11 for omap2plus Anil Kumar
2013-09-08 9:02 ` Russell King - ARM Linux
2013-09-08 17:16 ` Guenter Roeck
2013-09-09 10:51 ` Russell King - ARM Linux
2013-09-09 12:00 ` Guenter Roeck
2013-09-09 14:24 ` Nicolas Pitre
2013-09-09 16:03 ` Guenter Roeck
2013-09-09 20:31 ` Russell King - ARM Linux
2013-09-09 21:02 ` Guenter Roeck
2013-09-09 21:16 ` Nicolas Pitre
2013-09-10 15:07 ` Kevin Hilman
2013-09-10 15:09 ` Frederic Weisbecker
2013-09-13 17:03 ` [PATCH] arm: Fix build error with context tracking calls Frederic Weisbecker
2013-09-13 22:50 ` Kevin Hilman
2013-09-14 14:19 ` Frederic Weisbecker
2013-09-16 17:11 ` Kevin Hilman
2013-09-14 14:32 ` Russell King - ARM Linux
2013-09-22 16:59 ` Frederic Weisbecker
2013-09-25 17:38 ` Kevin Hilman
2013-09-27 13:30 ` Frederic Weisbecker
2013-09-09 10:55 ` Build error in torvalds kernel 3.11 for omap2plus Anil Kumar
2013-09-09 11:30 ` Guenter Roeck
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).