All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Porter <mporter@kernel.crashing.org>
To: Piotr Perak <peri@aqua.aspd.pwr.wroc.pl>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: 2.6.x on 405CR
Date: Tue, 28 Sep 2004 06:44:42 -0700	[thread overview]
Message-ID: <20040928064442.A31883@home.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0409281116130.12901-100000@aqua.aspd.pwr.wroc.pl>; from peri@aqua.aspd.pwr.wroc.pl on Tue, Sep 28, 2004 at 11:57:44AM +0200

On Tue, Sep 28, 2004 at 11:57:44AM +0200, Piotr Perak wrote:
> 
> On Mon, 27 Sep 2004, Matt Porter wrote:
> 
> > Since you are failing in ocp_add_one_device() and you have a
> > processor which doesn't have a chip definition in 2.6, the
> > problem is probably somewhere there.  Doublecheck your
> > arch/ppc/platforms/4xx/ibm405cr.c (you do have one, right?)
> > against a known good one in arch/ppc/platforms/4xx/ibm405gp.c
> 
> Because I use ibm405cr.c which works good with 2.4.23 I think that's not
> the problem. Remember the call stack?

Which 2.4 tree?  linux-2.4, linuxppc-2.4, and linuxppc_2_4_devel haven't
had explicit 405cr support that I've noticed. Since the ocp layer has
changed that would leave open the possibility of a problem in translating
the support to the new ocp layer. 

> setup_arch() - arch/ppc/kernel/setup.c
>   -> ocp_early_init() - arch/ppc/syslib/ocp.c
>     -> ocp_add_one_device() - arch/ppc/syslib/ocp.c
>       ->  alloc_bootmem MACRO calling __alloc_bootmem_core() -
> mm/bootmem.c
> 
> When I comment line calling ocp_early_init() I fail in:
>  
> setup_arch() - arch/ppc/kernel/setup.c
>   -> paging_init() - arch/ppc/mm/init.c
>     -> free_area_init() - arch/ppc/mm/page_alloc.c
>       -> free_area_init_node() - arch/ppc/mm/page_alloc.c
>         -> alloc_bootmem_node() MACRO calling __alloc_bootmem_node -
> mm/bootmem.c
>           -> __alloc_bootmem_core() - mm/bootmem.c
> 
> As you can see again __alloc_bootmem_core. So maybe there's some
> problem with memory?

Hrm, I see. Did your firmware change between your working 2.4 kernel
and your non-working 2.6 kernel?  If you're failing in there that would
be my first thought. I suppose that's probably not that case though.

> Forgive me if I ask stupid questions, but this the first time I have
> something to do with the kernel (not counting compiling for my home PC).

Well, the 405cr support issue is really throwing me for a loop here. If
you're crashing in _alloc_bootmem_core() and haven't hacked any MM code
then you're an interesting spot.  Can you trace it down to the exact
failure in __alloc_bootmem_core?

-Matt

  reply	other threads:[~2004-09-28 13:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-27 10:46 2.6.x on 405CR Piotr Perak
2004-09-27 13:57 ` Matt Porter
2004-09-27 14:10   ` Jon Masters
2004-09-27 15:16     ` Matt Porter
2004-09-27 16:24   ` Piotr Perak
2004-09-28  9:57   ` Piotr Perak
2004-09-28 13:44     ` Matt Porter [this message]
2004-09-28 15:47       ` Piotr Perak
2004-09-28 16:43         ` Matt Porter
2004-09-28 17:00           ` Mark Chambers
2004-09-29 11:20           ` Piotr Perak
2004-09-29 11:58             ` Jon Masters
2004-09-29 13:22               ` Mark Chambers
2004-09-29 14:22                 ` Jon Masters
2004-09-27 15:19 ` Matt Porter

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=20040928064442.A31883@home.com \
    --to=mporter@kernel.crashing.org \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=peri@aqua.aspd.pwr.wroc.pl \
    /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.