public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
To: "Patrick J. LoPresti" <patl@users.sourceforge.net>
Cc: Atul.Mukker@lsil.com, linux-scsi@vger.kernel.org
Subject: Re: Linux 2.6.8.1 + megaraid-2.20.3.0 == Oops
Date: Sat, 21 Aug 2004 11:07:53 -0700	[thread overview]
Message-ID: <20040821110753.0cbcbf74.rddunlap@osdl.org> (raw)
In-Reply-To: <s5gr7q0sa2w.fsf@patl=users.sf.net>

On 21 Aug 2004 13:00:21 -0400 Patrick J. LoPresti wrote:

| "Randy.Dunlap" <rddunlap@osdl.org> writes:
| 
| > Looks like mraid_mm_init() hasn't done the
| > 	INIT_LIST_HEAD(&adapters_list_g);
| > yet.  You might be able to verify that by using
| > "initcall_debug" on the kernel boot/command line.
| 
| Oh, I see now.  Yes, the initicall_debug trace shows that
| mraid_mm_init() is not being called.  But megaraid_init() is, which
| ultimately leads to the crash.
| 
| Is there some way to tell Linux about this dependency when the drivers
| are non-modular?

First (simplest), try reversing the order in scsi/megaraid/Makefile.
That may work.  (put megaraid_mm.o before megaraid_mbox.o)
If that isn't sufficient, it will probably have to be done with initcall
levels (in place of module_init).  See include/linux/init.h for details.
Example:  use:

device_initcall(mraid_mm_init);
and
late_initcall(megaraid_init);



and earlier I wrote:
> I expected to be able to build these drivers as modules, but that's
> not allowed by their Kconfig.  Is that because of the module
> inter-dependencies?

and Pat replied:
| I do not understand.  The first thing I did was to build these as
| modules against the Fedora Core 2 kernel, but that resulted in a
| different failure.  So I thought I would try them non-modular on a
| vanilla kernel, which is how I ended up with this Oops.

The megaraid Kconfig file does not allow these drivers to be built
as loadable modules.  I was asking why not.

--
~Randy

  reply	other threads:[~2004-08-21 18:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-20 16:22 Linux 2.6.8.1 + megaraid-2.20.3.0 == Oops Patrick J. LoPresti
2004-08-20 23:08 ` Randy.Dunlap
2004-08-21 16:54   ` Patrick J. LoPresti
2004-08-21 17:00   ` Patrick J. LoPresti
2004-08-21 18:07     ` Randy.Dunlap [this message]
2004-08-22 19:12       ` Patrick J. LoPresti
2004-08-22 21:31         ` Randy.Dunlap

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=20040821110753.0cbcbf74.rddunlap@osdl.org \
    --to=rddunlap@osdl.org \
    --cc=Atul.Mukker@lsil.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=patl@users.sourceforge.net \
    /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