From: Tony Lindgren <tony@atomide.com>
To: Kevin Hilman <khilman@deeprootsystems.com>
Cc: "Nayak, Rajendra" <rnayak@ti.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: [PATCH] omap: Use CONFIG_SMP for test_for_ipi and test_for_ltirq belong (Re: PM branch updated to v2.6.35, SRF dropped)
Date: Fri, 6 Aug 2010 10:03:01 +0300 [thread overview]
Message-ID: <20100806070301.GA23778@atomide.com> (raw)
In-Reply-To: <87tyn8ptkl.fsf@deeprootsystems.com>
[-- 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
next prev parent reply other threads:[~2010-08-06 7:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Tony Lindgren [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100806070301.GA23778@atomide.com \
--to=tony@atomide.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=rnayak@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).