linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kristen Accardi <kristen.c.accardi@intel.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: "Brown, Len" <len.brown@intel.com>,
	Andreas Saur <saur@acmelabs.de>,
	linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: 2.6.17-rc4-mm3 - kernel panic
Date: Fri, 26 May 2006 11:29:35 -0700	[thread overview]
Message-ID: <1148668175.7600.11.camel@whizzy> (raw)
In-Reply-To: <20060526071518.GC1699@elf.ucw.cz>

On Fri, 2006-05-26 at 09:15 +0200, Pavel Machek wrote:
> On Čt 25-05-06 17:04:18, Kristen Accardi wrote:
> > On Fri, 2006-05-26 at 00:17 +0200, Pavel Machek wrote:
> > > On Pá 26-05-06 00:12:22, Pavel Machek wrote:
> > > > Hi!
> > > > 
> > > > > > Does the panic go away with CONFIG_ACPI_DOCK=n?
> > > > 
> > > > > Can either Pavel or Andreas please try this little debugging patch and
> > > > > send me the dmesg output?  Please enable the CONFIG_DEBUG_KERNEL option
> > > > > in your .config as well so that I can get additional info.
> > > > 
> > > > Yep, you were right... this debugging patch helps.
> > > 
> > > ...and docking +/- works, but it does not look like PCI in docking
> > > station is properly connected:
> > > 
> > 
> > No, I would not expect PCI to work properly with the debug patch -
> > basically all I did was prevent the oops and confirm that this is the
> > issue, I did not actually solve the problem.
> > 
> > I need some way to prevent acpiphp from loading before dock is completed
> > it's init.
> > 
> > I guess I will think about this some more.
> 
> Using different _init levels? Like putting dock at subsys_initcall()
> while acpiphp at late_initcall()?
> 								Pavel

Can you see if this works for you?  Revert the first debug patch I sent
and apply this one instead (against -mm).

Thanks,
Kristen


---
 drivers/acpi/dock.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- 2.6-mm.orig/drivers/acpi/dock.c
+++ 2.6-mm/drivers/acpi/dock.c
@@ -190,6 +190,9 @@ static int is_dock(acpi_handle handle)
  */
 int is_dock_device(acpi_handle handle)
 {
+	if (!dock_station)
+		return 0;
+
 	if (is_dock(handle) || find_dock_dependent_device(dock_station, handle))
 		return 1;
 
@@ -674,5 +677,5 @@ static void __exit dock_exit(void)
 	dock_remove();
 }
 
-module_init(dock_init);
+postcore_initcall(dock_init);
 module_exit(dock_exit);
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2006-05-26 18:18 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-24  5:03 2.6.17-rc4-mm3 - kernel panic Brown, Len
2006-05-25 16:52 ` Kristen Accardi
2006-05-25 19:01 ` Kristen Accardi
2006-05-25 22:12   ` Pavel Machek
2006-05-25 22:17     ` Pavel Machek
2006-05-26  0:04       ` Kristen Accardi
2006-05-26  7:15         ` Pavel Machek
2006-05-26 18:29           ` Kristen Accardi [this message]
2006-05-30 10:25             ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2006-05-26 23:14 Andreas Saur
2006-05-26  6:08 Andreas Saur
2006-05-25 22:33 Andreas Saur
2006-05-25 20:05 acme
2006-05-25 20:34 ` Kristen Accardi
2006-05-25 18:55 Brown, Len
2006-05-24 22:52 Andreas Saur
2006-05-23 20:24 Andreas Saur

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=1148668175.7600.11.camel@whizzy \
    --to=kristen.c.accardi@intel.com \
    --cc=len.brown@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=saur@acmelabs.de \
    /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).