From: Josh Boyer <jwboyer@linux.vnet.ibm.com>
To: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Cc: linuxppc-dev list <Linuxppc-dev@ozlabs.org>
Subject: Re: [PATCH 3/4] powerpc/4xx: Index interrupt stacks by physical cpu
Date: Thu, 19 Aug 2010 08:34:45 -0400 [thread overview]
Message-ID: <20100819123445.GA9695@zod.rchland.ibm.com> (raw)
In-Reply-To: <1282149866-4710-4-git-send-email-shaggy@linux.vnet.ibm.com>
On Wed, Aug 18, 2010 at 11:44:25AM -0500, Dave Kleikamp wrote:
>The interrupt stacks need to be indexed by the physical cpu since the
>critical, debug and machine check handlers use the contents of SPRN_PIR to
>index the critirq_ctx, dbgirq_ctx, and mcheckirq_ctx arrays.
>
>Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
>---
> arch/powerpc/kernel/irq.c | 15 ++++++++-------
> arch/powerpc/kernel/setup_32.c | 9 +++++----
> 2 files changed, 13 insertions(+), 11 deletions(-)
>
>diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
>index d3ce67c..52e9c95 100644
>--- a/arch/powerpc/kernel/irq.c
>+++ b/arch/powerpc/kernel/irq.c
>@@ -446,22 +446,23 @@ struct thread_info *mcheckirq_ctx[NR_CPUS] __read_mostly;
> void exc_lvl_ctx_init(void)
> {
> struct thread_info *tp;
>- int i;
>+ int i, hw_cpu;
>
> for_each_possible_cpu(i) {
>- memset((void *)critirq_ctx[i], 0, THREAD_SIZE);
>- tp = critirq_ctx[i];
>+ hw_cpu = get_hard_smp_processor_id(i);
This one throws this compile error when trying to build
ppc44x_defconfig:
CC arch/powerpc/kernel/irq.o
arch/powerpc/kernel/irq.c: In function 'exc_lvl_ctx_init':
arch/powerpc/kernel/irq.c:452: error: implicit declaration of function
'get_hard_smp_processor_id'
make[1]: *** [arch/powerpc/kernel/irq.o] Error 1
make: *** [arch/powerpc/kernel] Error 2
I'm guessing it needs a #include <asm/smp.h> added to it.
josh
next prev parent reply other threads:[~2010-08-19 12:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-18 16:44 [PATCH 0/4] *** SUBJECT HERE *** Dave Kleikamp
2010-08-18 16:44 ` [PATCH 1/4] powerpc/47x: Make sure mcsr is cleared before enabling machine check interrupts Dave Kleikamp
2010-08-18 16:44 ` [PATCH 2/4] powerpc/47x: Remove redundant line from cputable.c Dave Kleikamp
2010-08-18 16:44 ` [PATCH 3/4] powerpc/4xx: Index interrupt stacks by physical cpu Dave Kleikamp
2010-08-19 12:34 ` Josh Boyer [this message]
2010-08-18 16:44 ` [PATCH 4/4] powerpc/47x: Add an isync before the tlbivax instruction Dave Kleikamp
2010-08-18 16:45 ` [PATCH 0/4] Some 47x patches for the powerpc-4xx tree Dave Kleikamp
2010-08-19 3:19 ` Benjamin Herrenschmidt
2010-08-23 12:13 ` Josh Boyer
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=20100819123445.GA9695@zod.rchland.ibm.com \
--to=jwboyer@linux.vnet.ibm.com \
--cc=Linuxppc-dev@ozlabs.org \
--cc=shaggy@linux.vnet.ibm.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).