* PM branch updated to v2.6.35, SRF dropped
@ 2010-08-04 22:50 Kevin Hilman
2010-08-04 23:25 ` Nishanth Menon
2010-08-05 14:21 ` Nayak, Rajendra
0 siblings, 2 replies; 13+ messages in thread
From: Kevin Hilman @ 2010-08-04 22:50 UTC (permalink / raw)
To: linux-omap
Hello,
It's been a while since a PM branch update, thanks to a nice summer
vacation for me. :)
The PM branch has now been updated to v2.6.35 plus Tony's for-next
branch.
This is mostly a rebase, but the most important change is that I'm
finally dropping SRF as promised[1]. The new DVFS infrastructure is now
in the RFC/PATCH phase so I'm no longer going to keep dragging SRF
along. Note that this means that ***DVFS no longer works in the PM branch***.
If this bothers you, then please consider helping review and test the
new DVFS infrastructure recently posted by Thara so we can get the new,
upstream-ready DVFS code upstream ASAP.
I've only tested the new PM branch on a couple boards to avoid any
further delay getting this version out, update, so hopefully others will
help test.
I've tested RET on idle & suspend, OFF in idle & suspend on:
3430/omap3evm: works
3630/Zoom3: works
- Known problem: console hangs on UART wakeup when wakeups are enabled using
echo enabled > /sys/devices/platform/serial8250.0/tty/ttyS0/power/wakeup
but I haven't debugged this further.
Kevin
[1] http://marc.info/?l=linux-omap&m=127206504624556&w=2
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: PM branch updated to v2.6.35, SRF dropped
2010-08-04 22:50 PM branch updated to v2.6.35, SRF dropped Kevin Hilman
@ 2010-08-04 23:25 ` Nishanth Menon
2010-08-05 22:29 ` Kevin Hilman
2010-08-05 14:21 ` Nayak, Rajendra
1 sibling, 1 reply; 13+ messages in thread
From: Nishanth Menon @ 2010-08-04 23:25 UTC (permalink / raw)
To: Kevin Hilman; +Cc: linux-omap@vger.kernel.org
Kevin Hilman had written, on 08/04/2010 05:50 PM, the following:
[...]
> I've only tested the new PM branch on a couple boards to avoid any
> further delay getting this version out, update, so hopefully others will
> help test.
>
> I've tested RET on idle & suspend, OFF in idle & suspend on:
>
> 3430/omap3evm: works
>
> 3630/Zoom3: works
> - Known problem: console hangs on UART wakeup when wakeups are enabled using
> echo enabled > /sys/devices/platform/serial8250.0/tty/ttyS0/power/wakeup
> but I haven't debugged this further.
Just sharing results from SDP testing omap3_pm_defconfig + earlyprintk:
SDP3430 (with denx.com u-boot, nor boot): does not boot to shell
full Bootlog: http://pastebin.mozilla.org/761964
SDP3630 (with TI u-boot, xloader, mmc boot): ret works, uart wakeup
fails for off mode (I am guessing this is similar to Kevin's results)
full Bootlog: http://pastebin.mozilla.org/761966
OMAP4 Blaze (with TI u-boot, xloader, mmc boot): does not boot, hell lot
of crashes - note, need to explicitly enable MACH_OMAP4430_SDP in .config
full Bootlog: http://pastebin.mozilla.org/761968
[...]
--
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: PM branch updated to v2.6.35, SRF dropped
2010-08-04 22:50 PM branch updated to v2.6.35, SRF dropped Kevin Hilman
2010-08-04 23:25 ` Nishanth Menon
@ 2010-08-05 14:21 ` Nayak, Rajendra
2010-08-05 22:45 ` Kevin Hilman
1 sibling, 1 reply; 13+ messages in thread
From: Nayak, Rajendra @ 2010-08-05 14:21 UTC (permalink / raw)
To: Kevin Hilman, linux-omap@vger.kernel.org
> -----Original Message-----
> From: linux-omap-owner@vger.kernel.org
> [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Kevin Hilman
> Sent: Thursday, August 05, 2010 4:21 AM
> To: linux-omap@vger.kernel.org
> Subject: PM branch updated to v2.6.35, SRF dropped
>
> Hello,
>
Hi Kevin,
Can you pull in this patch into your branch as well?
http://marc.info/?l=linux-usb&m=127858711304301&w=2
Without this multi-omap build seems to be broken.
Also with omap_4430sdp_defconfig, I see these compile errors
arch/arm/kernel/entry-armv.S: Assembler messages:
arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ipi r0,r6,r5,lr'
arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ipi r0,r6,r5,lr'
make[1]: *** [arch/arm/kernel/entry-armv.o] Error 1
make: *** [arch/arm/kernel] Error 2
Doing a git log on entry-armv.S shows me a top commit which might
be an issue if conflicts are'nt resolved well.
commit 7b70c4275f28702b76b273c8534c38f8313812e9
Merge: ceb0885... a20df56...
Author: Russell King <rmk+kernel@arm.linux.org.uk>
Date: Sat Jul 31 14:20:16 2010 +0100
Merge branch 'devel-stable' into devel
Conflicts:
arch/arm/kernel/entry-armv.S
arch/arm/kernel/setup.c
arch/arm/mm/init.c
Maybe this is an issue in Tony's for-next as well. Haven't tested
it though.
regards,
Rajendra
> It's been a while since a PM branch update, thanks to a nice summer
> vacation for me. :)
>
> The PM branch has now been updated to v2.6.35 plus Tony's for-next
> branch.
>
> This is mostly a rebase, but the most important change is that I'm
> finally dropping SRF as promised[1]. The new DVFS
> infrastructure is now
> in the RFC/PATCH phase so I'm no longer going to keep dragging SRF
> along. Note that this means that ***DVFS no longer works in
> the PM branch***.
> If this bothers you, then please consider helping review and test the
> new DVFS infrastructure recently posted by Thara so we can
> get the new,
> upstream-ready DVFS code upstream ASAP.
>
> I've only tested the new PM branch on a couple boards to avoid any
> further delay getting this version out, update, so hopefully
> others will
> help test.
>
> I've tested RET on idle & suspend, OFF in idle & suspend on:
>
> 3430/omap3evm: works
>
> 3630/Zoom3: works
> - Known problem: console hangs on UART wakeup when wakeups
> are enabled using
> echo enabled >
> /sys/devices/platform/serial8250.0/tty/ttyS0/power/wakeup
> but I haven't debugged this further.
>
> Kevin
>
>
> [1] http://marc.info/?l=linux-omap&m=127206504624556&w=2
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: PM branch updated to v2.6.35, SRF dropped
2010-08-04 23:25 ` Nishanth Menon
@ 2010-08-05 22:29 ` Kevin Hilman
2010-08-05 23:11 ` Nishanth Menon
0 siblings, 1 reply; 13+ messages in thread
From: Kevin Hilman @ 2010-08-05 22:29 UTC (permalink / raw)
To: Nishanth Menon; +Cc: linux-omap@vger.kernel.org
Nishanth Menon <nm@ti.com> writes:
> Kevin Hilman had written, on 08/04/2010 05:50 PM, the following:
> [...]
>
>> I've only tested the new PM branch on a couple boards to avoid any
>> further delay getting this version out, update, so hopefully others will
>> help test.
>>
>> I've tested RET on idle & suspend, OFF in idle & suspend on:
>>
>> 3430/omap3evm: works
>>
>> 3630/Zoom3: works
>> - Known problem: console hangs on UART wakeup when wakeups are enabled using
>> echo enabled > /sys/devices/platform/serial8250.0/tty/ttyS0/power/wakeup
>> but I haven't debugged this further.
>
> Just sharing results from SDP testing omap3_pm_defconfig + earlyprintk:
> SDP3430 (with denx.com u-boot, nor boot): does not boot to shell
> full Bootlog: http://pastebin.mozilla.org/761964
Does the same setup boot fine on l-o for-next, or l-o master?
> SDP3630 (with TI u-boot, xloader, mmc boot): ret works, uart wakeup
> fails for off mode (I am guessing this is similar to Kevin's results)
> full Bootlog: http://pastebin.mozilla.org/761966
> OMAP4 Blaze (with TI u-boot, xloader, mmc boot): does not boot, hell
> lot of crashes - note, need to explicitly enable MACH_OMAP4430_SDP in
> .config
> full Bootlog: http://pastebin.mozilla.org/761968
yeah, I don't expect PM branch to work on OMAP4 until we get the OMAP4 hwmod
core upstream.
Kevin
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: PM branch updated to v2.6.35, SRF dropped
2010-08-05 14:21 ` Nayak, Rajendra
@ 2010-08-05 22:45 ` Kevin Hilman
2010-08-06 7:03 ` [PATCH] omap: Use CONFIG_SMP for test_for_ipi and test_for_ltirq belong (Re: PM branch updated to v2.6.35, SRF dropped) Tony Lindgren
0 siblings, 1 reply; 13+ messages in thread
From: Kevin Hilman @ 2010-08-05 22:45 UTC (permalink / raw)
To: Nayak, Rajendra; +Cc: linux-omap@vger.kernel.org
"Nayak, Rajendra" <rnayak@ti.com> writes:
>> -----Original Message-----
>> From: linux-omap-owner@vger.kernel.org
>> [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Kevin Hilman
>> Sent: Thursday, August 05, 2010 4:21 AM
>> To: linux-omap@vger.kernel.org
>> Subject: PM branch updated to v2.6.35, SRF dropped
>>
>> Hello,
>>
>
> Hi Kevin,
>
> Can you pull in this patch into your branch as well?
> http://marc.info/?l=linux-usb&m=127858711304301&w=2
> Without this multi-omap build seems to be broken.
Done.
> Also with omap_4430sdp_defconfig, I see these compile errors
> arch/arm/kernel/entry-armv.S: Assembler messages:
> arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ipi r0,r6,r5,lr'
> arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ipi r0,r6,r5,lr'
> make[1]: *** [arch/arm/kernel/entry-armv.o] Error 1
> make: *** [arch/arm/kernel] Error 2
>
> Doing a git log on entry-armv.S shows me a top commit which might
> be an issue if conflicts are'nt resolved well.
>
> commit 7b70c4275f28702b76b273c8534c38f8313812e9
> Merge: ceb0885... a20df56...
> Author: Russell King <rmk+kernel@arm.linux.org.uk>
> Date: Sat Jul 31 14:20:16 2010 +0100
>
> Merge branch 'devel-stable' into devel
>
> Conflicts:
> arch/arm/kernel/entry-armv.S
> arch/arm/kernel/setup.c
> arch/arm/mm/init.c
>
> Maybe this is an issue in Tony's for-next as well. Haven't tested
> it though.
Yeah, I'm guessing this an issue in for-next, and probably l-o master
too.
Kevin
>
>> It's been a while since a PM branch update, thanks to a nice summer
>> vacation for me. :)
>>
>> The PM branch has now been updated to v2.6.35 plus Tony's for-next
>> branch.
>>
>> This is mostly a rebase, but the most important change is that I'm
>> finally dropping SRF as promised[1]. The new DVFS
>> infrastructure is now
>> in the RFC/PATCH phase so I'm no longer going to keep dragging SRF
>> along. Note that this means that ***DVFS no longer works in
>> the PM branch***.
>> If this bothers you, then please consider helping review and test the
>> new DVFS infrastructure recently posted by Thara so we can
>> get the new,
>> upstream-ready DVFS code upstream ASAP.
>>
>> I've only tested the new PM branch on a couple boards to avoid any
>> further delay getting this version out, update, so hopefully
>> others will
>> help test.
>>
>> I've tested RET on idle & suspend, OFF in idle & suspend on:
>>
>> 3430/omap3evm: works
>>
>> 3630/Zoom3: works
>> - Known problem: console hangs on UART wakeup when wakeups
>> are enabled using
>> echo enabled >
>> /sys/devices/platform/serial8250.0/tty/ttyS0/power/wakeup
>> but I haven't debugged this further.
>>
>> Kevin
>>
>>
>> [1] http://marc.info/?l=linux-omap&m=127206504624556&w=2
>> --
>> To unsubscribe from this list: send the line "unsubscribe
>> linux-omap" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: PM branch updated to v2.6.35, SRF dropped
2010-08-05 22:29 ` Kevin Hilman
@ 2010-08-05 23:11 ` Nishanth Menon
0 siblings, 0 replies; 13+ messages in thread
From: Nishanth Menon @ 2010-08-05 23:11 UTC (permalink / raw)
To: Kevin Hilman; +Cc: linux-omap@vger.kernel.org
Kevin Hilman had written, on 08/05/2010 05:29 PM, the following:
> Nishanth Menon <nm@ti.com> writes:
>
>> Kevin Hilman had written, on 08/04/2010 05:50 PM, the following:
>> [...]
>>
>>> I've only tested the new PM branch on a couple boards to avoid any
>>> further delay getting this version out, update, so hopefully others will
>>> help test.
>>>
>>> I've tested RET on idle & suspend, OFF in idle & suspend on:
>>>
>>> 3430/omap3evm: works
>>>
>>> 3630/Zoom3: works
>>> - Known problem: console hangs on UART wakeup when wakeups are enabled using
>>> echo enabled > /sys/devices/platform/serial8250.0/tty/ttyS0/power/wakeup
>>> but I haven't debugged this further.
>> Just sharing results from SDP testing omap3_pm_defconfig + earlyprintk:
>> SDP3430 (with denx.com u-boot, nor boot): does not boot to shell
>> full Bootlog: http://pastebin.mozilla.org/761964
>
> Does the same setup boot fine on l-o for-next, or l-o master?
yep
l-o master (omap3_defconfig):
Log: http://pastebin.mozilla.org/762620
l-o for-next (omap3_defconfig):
build fails with:
drivers/usb/musb/omap2430.c: In function 'musb_platform_init':
drivers/usb/musb/omap2430.c:198: error: 'AE5_2430_USB0HS_STP' undeclared
(first use in this function)
drivers/usb/musb/omap2430.c:198: error: (Each undeclared identifier is
reported only once
drivers/usb/musb/omap2430.c:198: error: for each function it appears in.)
so disabled CONFIG_ARCH_OMAP2430 and CONFIG_MACH_OMAP_2430SDP in .config
for quick bootup.
Log: http://pastebin.mozilla.org/762637
Ref:
remotes/origin/master 8428498 Linux-omap rebuilt: arm
changes merged to mainline, final omap changes for 2.6.36
remotes/origin/for-next d21872b Merge branch
'v2.6.35-omap-mailbox-for-next' of git://gitorious.org/~doyu/lk/mainline
into omap-for-linus
>
>> SDP3630 (with TI u-boot, xloader, mmc boot): ret works, uart wakeup
>> fails for off mode (I am guessing this is similar to Kevin's results)
>> full Bootlog: http://pastebin.mozilla.org/761966
>
>> OMAP4 Blaze (with TI u-boot, xloader, mmc boot): does not boot, hell
>> lot of crashes - note, need to explicitly enable MACH_OMAP4430_SDP in
>> .config
>> full Bootlog: http://pastebin.mozilla.org/761968
>
> yeah, I don't expect PM branch to work on OMAP4 until we get the OMAP4 hwmod
> core upstream.
:(
--
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH] omap: Use CONFIG_SMP for test_for_ipi and test_for_ltirq belong (Re: PM branch updated to v2.6.35, SRF dropped)
2010-08-05 22:45 ` Kevin Hilman
@ 2010-08-06 7:03 ` Tony Lindgren
2010-08-06 7:05 ` [PATCH] omap: Fix sev instruction usage for multi-omap Tony Lindgren
0 siblings, 1 reply; 13+ messages in thread
From: Tony Lindgren @ 2010-08-06 7:03 UTC (permalink / raw)
To: Kevin Hilman; +Cc: Nayak, Rajendra, linux-omap@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 1217 bytes --]
* Kevin Hilman <khilman@deeprootsystems.com> [100806 01:48]:
>
> > Also with omap_4430sdp_defconfig, I see these compile errors
> > arch/arm/kernel/entry-armv.S: Assembler messages:
> > arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ipi r0,r6,r5,lr'
> > arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ipi r0,r6,r5,lr'
> > make[1]: *** [arch/arm/kernel/entry-armv.o] Error 1
> > make: *** [arch/arm/kernel] Error 2
> >
> > Doing a git log on entry-armv.S shows me a top commit which might
> > be an issue if conflicts are'nt resolved well.
> >
> > commit 7b70c4275f28702b76b273c8534c38f8313812e9
> > Merge: ceb0885... a20df56...
> > Author: Russell King <rmk+kernel@arm.linux.org.uk>
> > Date: Sat Jul 31 14:20:16 2010 +0100
> >
> > Merge branch 'devel-stable' into devel
> >
> > Conflicts:
> > arch/arm/kernel/entry-armv.S
> > arch/arm/kernel/setup.c
> > arch/arm/mm/init.c
> >
> > Maybe this is an issue in Tony's for-next as well. Haven't tested
> > it though.
>
> Yeah, I'm guessing this an issue in for-next, and probably l-o master
> too.
Noticed that with omap3_defconfig with CONFIG_SMP enabled. Does the
following work for you?
Tony
[-- Attachment #2: test-for-ipi.patch --]
[-- Type: text/x-diff, Size: 1468 bytes --]
From: Tony Lindgren <tony@atomide.com>
Date: Thu, 5 Aug 2010 13:18:20 +0300
Subject: [PATCH] omap: Use CONFIG_SMP for test_for_ipi and test_for_ltirq belong
Otherwise we get the following error when enabling CONFIG_SMP
for omap3_defconfig:
arch/arm/kernel/entry-armv.S: Assembler messages:
arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ipi r0,r6,r5,lr'
arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ltirq r0,r6,r5,lr'
arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ipi r0,r6,r5,lr'
arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ltirq r0,r6,r5,lr'
Signed-off-by: Tony Lindgren <tony@atomide.com>
diff --git a/arch/arm/mach-omap2/include/mach/entry-macro.S b/arch/arm/mach-omap2/include/mach/entry-macro.S
index 50fd749..06e64e1 100644
--- a/arch/arm/mach-omap2/include/mach/entry-macro.S
+++ b/arch/arm/mach-omap2/include/mach/entry-macro.S
@@ -177,7 +177,10 @@ omap_irq_base: .word 0
cmpne \irqnr, \tmp
cmpcs \irqnr, \irqnr
.endm
+#endif
+#endif /* MULTI_OMAP2 */
+#ifdef CONFIG_SMP
/* We assume that irqstat (the raw value of the IRQ acknowledge
* register) is preserved from the macro above.
* If there is an IPI, we immediately signal end of interrupt
@@ -205,8 +208,7 @@ omap_irq_base: .word 0
streq \irqstat, [\base, #GIC_CPU_EOI]
cmp \tmp, #0
.endm
-#endif
-#endif /* MULTI_OMAP2 */
+#endif /* CONFIG_SMP */
.macro irq_prio_table
.endm
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH] omap: Fix sev instruction usage for multi-omap
2010-08-06 7:03 ` [PATCH] omap: Use CONFIG_SMP for test_for_ipi and test_for_ltirq belong (Re: PM branch updated to v2.6.35, SRF dropped) Tony Lindgren
@ 2010-08-06 7:05 ` Tony Lindgren
2010-08-06 11:29 ` Nayak, Rajendra
2010-08-09 6:42 ` [PATCH] omap: Fix sev instruction usage for multi-omap Bryan Wu
0 siblings, 2 replies; 13+ messages in thread
From: Tony Lindgren @ 2010-08-06 7:05 UTC (permalink / raw)
To: Kevin Hilman; +Cc: Nayak, Rajendra, linux-omap@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 1488 bytes --]
* Tony Lindgren <tony@atomide.com> [100806 09:55]:
> * Kevin Hilman <khilman@deeprootsystems.com> [100806 01:48]:
> >
> > > Also with omap_4430sdp_defconfig, I see these compile errors
> > > arch/arm/kernel/entry-armv.S: Assembler messages:
> > > arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ipi r0,r6,r5,lr'
> > > arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ipi r0,r6,r5,lr'
> > > make[1]: *** [arch/arm/kernel/entry-armv.o] Error 1
> > > make: *** [arch/arm/kernel] Error 2
> > >
> > > Doing a git log on entry-armv.S shows me a top commit which might
> > > be an issue if conflicts are'nt resolved well.
> > >
> > > commit 7b70c4275f28702b76b273c8534c38f8313812e9
> > > Merge: ceb0885... a20df56...
> > > Author: Russell King <rmk+kernel@arm.linux.org.uk>
> > > Date: Sat Jul 31 14:20:16 2010 +0100
> > >
> > > Merge branch 'devel-stable' into devel
> > >
> > > Conflicts:
> > > arch/arm/kernel/entry-armv.S
> > > arch/arm/kernel/setup.c
> > > arch/arm/mm/init.c
> > >
> > > Maybe this is an issue in Tony's for-next as well. Haven't tested
> > > it though.
> >
> > Yeah, I'm guessing this an issue in for-next, and probably l-o master
> > too.
>
> Noticed that with omap3_defconfig with CONFIG_SMP enabled. Does the
> following work for you?
Here's a related patch that allows CONFIG_SMP to compile with
omap3_defconfig. Booting still won't work before some arm generic
code is changed.
Regards,
Tony
[-- Attachment #2: smp-fix-sev --]
[-- Type: text/plain, Size: 1864 bytes --]
>From f931fb147f2a3cf4c4b7646e5f270c241ab4aad1 Mon Sep 17 00:00:00 2001
From: Tony Lindgren <tony@atomide.com>
Date: Thu, 5 Aug 2010 13:28:42 +0300
Subject: [PATCH] omap: Fix sev instruction usage for multi-omap
Otherwise we get the following error with omap3_defconfig and CONFIG_SMP:
Error: selected processor does not support `sev'
Signed-off-by: Tony Lindgren <tony@atomide.com>
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index 63b2d88..88d3a1e 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -25,6 +25,7 @@ obj-$(CONFIG_LOCAL_TIMERS) += timer-mpu.o
obj-$(CONFIG_HOTPLUG_CPU) += omap-hotplug.o
obj-$(CONFIG_ARCH_OMAP4) += omap44xx-smc.o omap4-common.o
+AFLAGS_omap-headsmp.o :=-Wa,-march=armv7-a
AFLAGS_omap44xx-smc.o :=-Wa,-march=armv7-a
# Functions loaded to SRAM
diff --git a/arch/arm/mach-omap2/omap-smp.c b/arch/arm/mach-omap2/omap-smp.c
index af3c20c..9e9f70e 100644
--- a/arch/arm/mach-omap2/omap-smp.c
+++ b/arch/arm/mach-omap2/omap-smp.c
@@ -102,8 +102,7 @@ static void __init wakeup_secondary(void)
* Send a 'sev' to wake the secondary core from WFE.
* Drain the outstanding writes to memory
*/
- dsb();
- set_event();
+ dsb_sev();
mb();
}
diff --git a/arch/arm/plat-omap/include/plat/smp.h b/arch/arm/plat-omap/include/plat/smp.h
index 6a3ff65..5177a9c 100644
--- a/arch/arm/plat-omap/include/plat/smp.h
+++ b/arch/arm/plat-omap/include/plat/smp.h
@@ -19,13 +19,6 @@
#include <asm/hardware/gic.h>
-/*
- * set_event() is used to wake up secondary core from wfe using sev. ROM
- * code puts the second core into wfe(standby).
- *
- */
-#define set_event() __asm__ __volatile__ ("sev" : : : "memory")
-
/* Needed for secondary core boot */
extern void omap_secondary_startup(void);
extern u32 omap_modify_auxcoreboot0(u32 set_mask, u32 clear_mask);
^ permalink raw reply related [flat|nested] 13+ messages in thread
* RE: [PATCH] omap: Fix sev instruction usage for multi-omap
2010-08-06 7:05 ` [PATCH] omap: Fix sev instruction usage for multi-omap Tony Lindgren
@ 2010-08-06 11:29 ` Nayak, Rajendra
2010-08-06 11:50 ` [PATCH] omap: Fix omap_4430sdp_defconfig for make oldconfig Tony Lindgren
2010-08-09 6:42 ` [PATCH] omap: Fix sev instruction usage for multi-omap Bryan Wu
1 sibling, 1 reply; 13+ messages in thread
From: Nayak, Rajendra @ 2010-08-06 11:29 UTC (permalink / raw)
To: Tony Lindgren, Kevin Hilman; +Cc: linux-omap@vger.kernel.org
> -----Original Message-----
> From: Tony Lindgren [mailto:tony@atomide.com]
> Sent: Friday, August 06, 2010 12:35 PM
> To: Kevin Hilman
> Cc: Nayak, Rajendra; linux-omap@vger.kernel.org
> Subject: [PATCH] omap: Fix sev instruction usage for multi-omap
>
> * Tony Lindgren <tony@atomide.com> [100806 09:55]:
> > * Kevin Hilman <khilman@deeprootsystems.com> [100806 01:48]:
> > >
> > > > Also with omap_4430sdp_defconfig, I see these compile errors
> > > > arch/arm/kernel/entry-armv.S: Assembler messages:
> > > > arch/arm/kernel/entry-armv.S:48: Error: bad instruction
> `test_for_ipi r0,r6,r5,lr'
> > > > arch/arm/kernel/entry-armv.S:48: Error: bad instruction
> `test_for_ipi r0,r6,r5,lr'
> > > > make[1]: *** [arch/arm/kernel/entry-armv.o] Error 1
> > > > make: *** [arch/arm/kernel] Error 2
> > > >
> > > > Doing a git log on entry-armv.S shows me a top commit
> which might
> > > > be an issue if conflicts are'nt resolved well.
> > > >
> > > > commit 7b70c4275f28702b76b273c8534c38f8313812e9
> > > > Merge: ceb0885... a20df56...
> > > > Author: Russell King <rmk+kernel@arm.linux.org.uk>
> > > > Date: Sat Jul 31 14:20:16 2010 +0100
> > > >
> > > > Merge branch 'devel-stable' into devel
> > > >
> > > > Conflicts:
> > > > arch/arm/kernel/entry-armv.S
> > > > arch/arm/kernel/setup.c
> > > > arch/arm/mm/init.c
> > > >
> > > > Maybe this is an issue in Tony's for-next as well.
> Haven't tested
> > > > it though.
> > >
> > > Yeah, I'm guessing this an issue in for-next, and
> probably l-o master
> > > too.
> >
> > Noticed that with omap3_defconfig with CONFIG_SMP enabled. Does the
> > following work for you?
With this patch, I went past the previous break but hit this
/tmp/ccUTrImV.s: Assembler messages:
/tmp/ccUTrImV.s:140: Error: selected processor does not support `sev'
make[1]: *** [arch/arm/mach-omap2/omap-smp.o] Error 1
make: *** [arch/arm/mach-omap2] Error 2
>
> Here's a related patch that allows CONFIG_SMP to compile with
> omap3_defconfig. Booting still won't work before some arm generic
> code is changed.
Now with this, omap4 build using omap_4430sdp_defconfig seems to
go through, but like you said, boot is still an issue.
regards,
Rajendra
>
> Regards,
>
> Tony
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH] omap: Fix omap_4430sdp_defconfig for make oldconfig
2010-08-06 11:29 ` Nayak, Rajendra
@ 2010-08-06 11:50 ` Tony Lindgren
2010-08-06 13:12 ` Nayak, Rajendra
0 siblings, 1 reply; 13+ messages in thread
From: Tony Lindgren @ 2010-08-06 11:50 UTC (permalink / raw)
To: Nayak, Rajendra; +Cc: Kevin Hilman, linux-omap@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 489 bytes --]
* Nayak, Rajendra <rnayak@ti.com> [100806 14:22]:
>
> Now with this, omap4 build using omap_4430sdp_defconfig seems to
> go through, but like you said, boot is still an issue.
Hmm, I guess these issues pop up if you do yes "" | make oldconfig.
Can you try the patch below? After applying the patch, you need
to:
$ rm .config
$ cp arch/arm/configs/omap_4430sdp_defconfig .config
$ yes "" | ARCH=arm make oldconfig
Then omap2 and 3 won't get selected by make oldconfig.
Regards,
Tony
[-- Attachment #2: omap4-defconfig --]
[-- Type: text/plain, Size: 911 bytes --]
>From 96214d5365a10f370e7690a3aa2dc24dbca39e79 Mon Sep 17 00:00:00 2001
From: Tony Lindgren <tony@atomide.com>
Date: Fri, 6 Aug 2010 14:40:46 +0300
Subject: [PATCH] omap: Fix omap_4430sdp_defconfig for make oldconfig
We don't want to select select the other omaps at this
point because otherwise we would have to disable
CONFIG_SMP.
Signed-off-by: Tony Lindgren <tony@atomide.com>
diff --git a/arch/arm/configs/omap_4430sdp_defconfig b/arch/arm/configs/omap_4430sdp_defconfig
index 63e0c2d..14c1e18 100644
--- a/arch/arm/configs/omap_4430sdp_defconfig
+++ b/arch/arm/configs/omap_4430sdp_defconfig
@@ -13,6 +13,9 @@ CONFIG_MODULE_SRCVERSION_ALL=y
# CONFIG_BLK_DEV_BSG is not set
CONFIG_ARCH_OMAP=y
CONFIG_ARCH_OMAP4=y
+# CONFIG_ARCH_OMAP2PLUS_TYPICAL is not set
+# CONFIG_ARCH_OMAP2 is not set
+# CONFIG_ARCH_OMAP3 is not set
# CONFIG_OMAP_MUX is not set
CONFIG_OMAP_32K_TIMER=y
CONFIG_OMAP_DM_TIMER=y
^ permalink raw reply related [flat|nested] 13+ messages in thread
* RE: [PATCH] omap: Fix omap_4430sdp_defconfig for make oldconfig
2010-08-06 11:50 ` [PATCH] omap: Fix omap_4430sdp_defconfig for make oldconfig Tony Lindgren
@ 2010-08-06 13:12 ` Nayak, Rajendra
0 siblings, 0 replies; 13+ messages in thread
From: Nayak, Rajendra @ 2010-08-06 13:12 UTC (permalink / raw)
To: Tony Lindgren; +Cc: Kevin Hilman, linux-omap@vger.kernel.org
> -----Original Message-----
> From: Tony Lindgren [mailto:tony@atomide.com]
> Sent: Friday, August 06, 2010 5:20 PM
> To: Nayak, Rajendra
> Cc: Kevin Hilman; linux-omap@vger.kernel.org
> Subject: [PATCH] omap: Fix omap_4430sdp_defconfig for make oldconfig
>
> * Nayak, Rajendra <rnayak@ti.com> [100806 14:22]:
> >
> > Now with this, omap4 build using omap_4430sdp_defconfig seems to
> > go through, but like you said, boot is still an issue.
>
> Hmm, I guess these issues pop up if you do yes "" | make oldconfig.
>
> Can you try the patch below? After applying the patch, you need
> to:
>
> $ rm .config
> $ cp arch/arm/configs/omap_4430sdp_defconfig .config
> $ yes "" | ARCH=arm make oldconfig
>
> Then omap2 and 3 won't get selected by make oldconfig.
Yes, this seems to work.
>
> Regards,
>
> Tony
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] omap: Fix sev instruction usage for multi-omap
2010-08-06 7:05 ` [PATCH] omap: Fix sev instruction usage for multi-omap Tony Lindgren
2010-08-06 11:29 ` Nayak, Rajendra
@ 2010-08-09 6:42 ` Bryan Wu
2010-08-09 7:48 ` Tony Lindgren
1 sibling, 1 reply; 13+ messages in thread
From: Bryan Wu @ 2010-08-09 6:42 UTC (permalink / raw)
To: Tony Lindgren; +Cc: Kevin Hilman, Nayak, Rajendra, linux-omap@vger.kernel.org
On 08/06/2010 03:05 PM, Tony Lindgren wrote:
> * Tony Lindgren <tony@atomide.com> [100806 09:55]:
>> * Kevin Hilman <khilman@deeprootsystems.com> [100806 01:48]:
>>>
>>>> Also with omap_4430sdp_defconfig, I see these compile errors
>>>> arch/arm/kernel/entry-armv.S: Assembler messages:
>>>> arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ipi r0,r6,r5,lr'
>>>> arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ipi r0,r6,r5,lr'
>>>> make[1]: *** [arch/arm/kernel/entry-armv.o] Error 1
>>>> make: *** [arch/arm/kernel] Error 2
>>>>
>>>> Doing a git log on entry-armv.S shows me a top commit which might
>>>> be an issue if conflicts are'nt resolved well.
>>>>
>>>> commit 7b70c4275f28702b76b273c8534c38f8313812e9
>>>> Merge: ceb0885... a20df56...
>>>> Author: Russell King <rmk+kernel@arm.linux.org.uk>
>>>> Date: Sat Jul 31 14:20:16 2010 +0100
>>>>
>>>> Merge branch 'devel-stable' into devel
>>>>
>>>> Conflicts:
>>>> arch/arm/kernel/entry-armv.S
>>>> arch/arm/kernel/setup.c
>>>> arch/arm/mm/init.c
>>>>
>>>> Maybe this is an issue in Tony's for-next as well. Haven't tested
>>>> it though.
>>>
>>> Yeah, I'm guessing this an issue in for-next, and probably l-o master
>>> too.
>>
>> Noticed that with omap3_defconfig with CONFIG_SMP enabled. Does the
>> following work for you?
>
> Here's a related patch that allows CONFIG_SMP to compile with
> omap3_defconfig. Booting still won't work before some arm generic
> code is changed.
>
> Regards,
>
> Tony
Tony,
I also did similar thing these days. And yes, with these 2 CONFIG_SMP related
patches in omap3_defconfig, I can built a single for omap2/3/4 with CONFIG_SMP=y.
But the kernel still doesn't boot on both omap3 beagle board and omap4 panda
board on my side.
I'm very glad to help this out.
Thanks,
--
Bryan Wu <bryan.wu@canonical.com>
Kernel Developer +86.138-1617-6545 Mobile
Ubuntu Kernel Team | Hardware Enablement Team
Canonical Ltd. www.canonical.com
Ubuntu - Linux for human beings | www.ubuntu.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] omap: Fix sev instruction usage for multi-omap
2010-08-09 6:42 ` [PATCH] omap: Fix sev instruction usage for multi-omap Bryan Wu
@ 2010-08-09 7:48 ` Tony Lindgren
0 siblings, 0 replies; 13+ messages in thread
From: Tony Lindgren @ 2010-08-09 7:48 UTC (permalink / raw)
To: Bryan Wu; +Cc: Kevin Hilman, Nayak, Rajendra, linux-omap@vger.kernel.org
* Bryan Wu <bryan.wu@canonical.com> [100809 09:35]:
>
> I also did similar thing these days. And yes, with these 2 CONFIG_SMP related
> patches in omap3_defconfig, I can built a single for omap2/3/4 with CONFIG_SMP=y.
>
> But the kernel still doesn't boot on both omap3 beagle board and omap4 panda
> board on my side.
>
> I'm very glad to help this out.
Yeah let's try to figure out what needs to be done to boot it. To me it
looks like we should be able to get omap3 & 4 kernel working with CONFIG_SMP
with (hopefully) minor changes.
Then getting omap2 working will require more work as some instructions
require CONFIG_CPU_32v6K extensions, and 24xx does not support that.
Regards,
Tony
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2010-08-09 7:48 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-04 22:50 PM branch updated to v2.6.35, SRF dropped Kevin Hilman
2010-08-04 23:25 ` Nishanth Menon
2010-08-05 22:29 ` Kevin Hilman
2010-08-05 23:11 ` Nishanth Menon
2010-08-05 14:21 ` Nayak, Rajendra
2010-08-05 22:45 ` Kevin Hilman
2010-08-06 7:03 ` [PATCH] omap: Use CONFIG_SMP for test_for_ipi and test_for_ltirq belong (Re: PM branch updated to v2.6.35, SRF dropped) Tony Lindgren
2010-08-06 7:05 ` [PATCH] omap: Fix sev instruction usage for multi-omap Tony Lindgren
2010-08-06 11:29 ` Nayak, Rajendra
2010-08-06 11:50 ` [PATCH] omap: Fix omap_4430sdp_defconfig for make oldconfig Tony Lindgren
2010-08-06 13:12 ` Nayak, Rajendra
2010-08-09 6:42 ` [PATCH] omap: Fix sev instruction usage for multi-omap Bryan Wu
2010-08-09 7:48 ` Tony Lindgren
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).