All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martyn Welch <martyn.welch@gefanuc.com>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] powerpc/86xx: clean up smp init code
Date: Thu, 23 Apr 2009 13:54:03 +0100	[thread overview]
Message-ID: <49F064EB.5030109@gefanuc.com> (raw)
In-Reply-To: <1240421691-10193-1-git-send-email-galak@kernel.crashing.org>

Kumar Gala wrote:
> Removed the need for asm/mpc86xx.h as it was only used in mpc86xx_smp.c
> and just moved the defines it cared about into there.  Also fixed up
> the ioremap to only map the one 4k page we need access to and to iounmap
> when we are done.
>
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
> ---
>  arch/powerpc/include/asm/mpc86xx.h         |   33 ----------------------------
>  arch/powerpc/platforms/86xx/gef_ppc9a.c    |    1 -
>  arch/powerpc/platforms/86xx/gef_sbc310.c   |    1 -
>  arch/powerpc/platforms/86xx/gef_sbc610.c   |    1 -
>  arch/powerpc/platforms/86xx/mpc8610_hpcd.c |    1 -
>  arch/powerpc/platforms/86xx/mpc86xx_hpcn.c |    1 -
>  arch/powerpc/platforms/86xx/mpc86xx_smp.c  |    8 ++++++-
>  arch/powerpc/platforms/86xx/sbc8641d.c     |    1 -
>  8 files changed, 7 insertions(+), 40 deletions(-)
>  delete mode 100644 arch/powerpc/include/asm/mpc86xx.h
>
>   
I assume this patch relies on one of the other patches posted?

Just applying this patch to my development tree (based on your main 
branch) resulted in the following on a PPC9A:

mpic: requesting IPIs ...
__ioremap(): phys addr 0x0 is RAM lr c041e5c8
Unable to handle kernel paging request for data at address 0x00000010
Faulting instruction address: 0xc041e5cc
Oops: Kernel access of bad area, sig: 11 [#1]
PREEMPT SMP NR_CPUS=2 GE Fanuc PPC9A
Modules linked in:
NIP: c041e5cc LR: c041e5c8 CTR: c0013d90
REGS: ef841ea0 TRAP: 0300   Not tainted  (2.6.30-rc3-00016-gabae74f)
MSR: 00001032 <ME,IR,DR>  CR: 24000022  XER: 00000000
DAR: 00000010, DSISR: 40000000
TASK = ef83f980[1] 'swapper' THREAD: ef840000 CPU: 0
GPR00: c041e5c8 ef841f50 ef83f980 00000000 00001032 ffffffff c0480000 
00004000
GPR08: c0441a4c 00000000 ef840000 c0440000 22000042 ffffdfff 0ff50d00 
00000001
GPR16: ffffffff 00000000 c0440000 c0480000 c0480000 c0468000 c0440000 
c0442838
GPR24: 00000002 c0480000 c0480000 7d5043a6 00009032 00000004 00000001 
0000c350
NIP [c041e5cc] smp_86xx_kick_cpu+0x70/0x11c
LR [c041e5c8] smp_86xx_kick_cpu+0x6c/0x11c
Call Trace:
[ef841f50] [c041e5c8] smp_86xx_kick_cpu+0x6c/0x11c (unreliable)

[ef841f70] [c0435010] __cpu_up+0xa4/0x1b0
[ef841f90] [c04355ec] cpu_up+0x104/0x1cc
[ef841fd0] [c0412368] kernel_init+0x1d8/0x1f0
[ef841ff0] [c0012cb8] kernel_thread+0x4c/0x68
Instruction dump:
3c80c000 61290100 38a00001 7d234b78 38843464 83690000 4bbfa7f9 4bbfcb21
38801000 38631000 4bbf91ad 7c0004ac <81230010> 0c090000 4c00012c 38000001
---[ end trace 31fd0ba7d8756001 ]---
Kernel panic - not syncing: Attempted to kill init!
Rebooting in 180 seconds..


Martyn

  reply	other threads:[~2009-04-23 12:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-22 17:34 [PATCH] powerpc/86xx: clean up smp init code Kumar Gala
2009-04-23 12:54 ` Martyn Welch [this message]
2009-04-23 18:42   ` Kumar Gala
2009-04-27 13:59   ` Kumar Gala
2009-04-27 15:06     ` Martyn Welch
2009-04-27 15:51       ` Kumar Gala

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=49F064EB.5030109@gefanuc.com \
    --to=martyn.welch@gefanuc.com \
    --cc=galak@kernel.crashing.org \
    --cc=linuxppc-dev@ozlabs.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.