mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pascal Dormeau <pdormeau@free.fr>
To: linux-kernel@vger.kernel.org
Subject: Re: [Bug #31872] boot panic unless acpi=off, Thread overran stack, or stack corrupted - Toshiba Satellite/mobile P4
Date: Sun, 17 Apr 2011 18:35:30 +0200	[thread overview]
Message-ID: <20110417183530.b36689c9.pdormeau@free.fr> (raw)
In-Reply-To: <IqJL5EkbqD.A.z9E.W4uqNB@chimera>

On Sun, 17 Apr 2011 15:52:13 +0200 (CEST)
"Rafael J. Wysocki" <rjw@sisk.pl> wrote:

> This message has been generated automatically as a part of a report
> of regressions introduced between 2.6.37 and 2.6.38.
> 
> The following bug entry is on the current list of known regressions
> introduced between 2.6.37 and 2.6.38.  Please verify if it still
> should be listed and let the tracking team know (either way).

As I indicated in the bugzilla, the problem arose after:
commit bf325f9538d8c89312be305b9779edbcb436af00
Author: Rafael J. Wysocki <rjw@sisk.pl>
Date:   Thu Nov 25 00:10:44 2010 +0100

    ACPI / PM: Register power resource devices as soon as they are
    needed

    Depending on the organization of the ACPI namespace, power resource
    device objects may generally be scanned after the "regular" device
    objects that they are referred from through _PRn.  This, in turn,
    may cause acpi_bus_get_power_flags() to attempt to access them
    through acpi_bus_init_power() before they are registered (and
    initialized by acpi_power_driver).  [This is not a theoretical
    issue, it actually happens for one PnP device on my testbed HP
     nx6325.]

    To fix this problem, make acpi_bus_get_power_flags() attempt to
    register power resource devices as soon as they have been found in
    the _PRn output for any other devices.

    Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
    Signed-off-by: Len Brown <len.brown@intel.com>

diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 2951a27..cb7956c 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -847,6 +847,8 @@ end:
    return 0;
 }
 
+static void acpi_bus_add_power_resource(acpi_handle handle);
+
 static int acpi_bus_get_power_flags(struct acpi_device *device)
 {
    acpi_status status = 0;
@@ -875,8 +877,12 @@ static int acpi_bus_get_power_flags(struct
acpi_device *device) acpi_evaluate_reference(device->handle,
object_name, NULL, &ps->resources);
        if (ps->resources.count) {
+           int j;
+
            device->power.flags.power_resources = 1;
            ps->flags.valid = 1;
+           for (j = 0; j < ps->resources.count; j++)
+               acpi_bus_add_power_resource(ps->resources.handles[j]);
        }
 
        /* Evaluate "_PSx" to see if we can do explicit sets */
@@ -1323,6 +1329,20 @@ end:
 #define ACPI_STA_DEFAULT (ACPI_STA_DEVICE_PRESENT |
ACPI_STA_DEVICE_ENABLED | \ ACPI_STA_DEVICE_UI      |
ACPI_STA_DEVICE_FUNCTIONING) 
+static void acpi_bus_add_power_resource(acpi_handle handle)
+{
+   struct acpi_bus_ops ops = {
+       .acpi_op_add = 1,
+       .acpi_op_start = 1,
+   };
+   struct acpi_device *device = NULL;
+
+   acpi_bus_get_device(handle, &device);
+   if (!device)
+       acpi_add_single_object(&device, handle, ACPI_BUS_TYPE_POWER,
+                   ACPI_STA_DEFAULT, &ops);
+}
+
 static int acpi_bus_type_and_status(acpi_handle handle, int *type,
                    unsigned long long *sta)
 {

I could build and run a 2.6.38 kernel with the above commit reverted.
It boots with no problem (with acpi support).

Today, I tested kernel from current linux-2.6 tree and the problem is
still there.
I don't have a clue where to start from to help debugging this.

Regards

Pascal Dormeau


> 
> Bug-Entry	: http://bugzilla.kernel.org/show_bug.cgi?id=31872
> Subject		: boot panic unless acpi=off, Thread overran
> stack, or stack corrupted - Toshiba Satellite/mobile P4
> Submitter	: Pascal Dormeau <pdormeau@free.fr>
> Date		: 2011-03-25 20:17 (24 days old)
> 
> 

  reply	other threads:[~2011-04-17 16:35 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-17 13:48 2.6.36-rc3-git7: Reported regressions 2.6.37 -> 2.6.38 Rafael J. Wysocki
2011-04-17 13:48 ` [Bug #28422] kref and apparmor panic in 2.6.38-rc2 Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #28522] Unable to mount FAT-formatted floppy on /dev/fd0, plus WARN_ON when using /dev/fd0u1440 Rafael J. Wysocki
2011-04-20 20:19   ` Alex Villací­s Lasso
2011-04-20 20:30     ` Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #28642] ACPI broken on DELL Latitude E6410 in 2.6.38-rc3 Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #28452] 2.6.38-rc3 regression on parisc: segfaults Rafael J. Wysocki
2011-04-19 11:30   ` Meelis Roos
2011-04-19 21:20     ` Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #28802] commit 5d1d0cc breaks resume from suspend on Thinkpad X201 Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #28562] [BUG] usb problems in .38-rc3+ Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #29992] boot hang 2.6.37.1 regression w/ intel_idle and CONFIG_NO_HZ=n - asus p7p55d le Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #29672] [regression][ALSA][hda-conexant][2.6.38-rcX] external microphone sound too quiet Rafael J. Wysocki
2011-04-17 14:07   ` Shawn Starr
2011-04-17 18:16     ` Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #29852] 2.6.38-rc5: nfsd: page allocation failure. spinlock trylock failure on UP Rafael J. Wysocki
2011-04-17 19:46   ` Alexander Beregalov
2011-04-17 20:17     ` Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #30992] 2.6.38-rc7: Some strange soft-lockup Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #30582] WARNING: at drivers/net/wireless/ath/ath9k/recv.c:536 ath_stoprecv+0xc8/0xda [ath9k]() Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #30852] Seldom errors after suspend/resume causing problems Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #31452] ath9k: throughput issue in 802.11n and also IBSS mode Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #31402] Diminished brightness at startup Rafael J. Wysocki
     [not found]   ` <BANLkTim70ehcc8DQBjTYFOrJE5tsJdYTMg@mail.gmail.com>
2011-04-17 18:12     ` Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #31322] 2.6.38-rc echo 3 > /proc/sys/vm/drop_caches repairs mplayer distortions Rafael J. Wysocki
2011-04-18 20:17   ` Hans de Bruin
2011-04-19 21:21     ` Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #31012] WARNING: Perf: bad frame pointer = (null), 2.6.38-rc8 Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #31572] BUG in vb_alloc() - firewire crash at boot Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #31702] ath5k phy2: failed to wakeup the MAC Chip Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #31532] 2.6.38: Quota over NFS4 Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #31782] nouveau: lockdep spew Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #31872] boot panic unless acpi=off, Thread overran stack, or stack corrupted - Toshiba Satellite/mobile P4 Rafael J. Wysocki
2011-04-17 16:35   ` Pascal Dormeau [this message]
2011-04-17 13:52 ` [Bug #31922] ath5k: Decreased throughput in IBSS or 802.11n mode Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #31982] XFS memory allocation deadlock in 2.6.38 Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #32202] 2.6.38 hangs on boot until key is pressed Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #32762] Booting with external monitor attached results in red flickering screen on the external monitor Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #32072] 2.6.38 Regression: Nvidia GeForce8400 + i915 = Crash on Boot Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #32112] Writes to USB flash drives are extremely slow in 2.6.38 Rafael J. Wysocki
2011-04-17 13:52 ` [Bug #32862] acer_wmi partially crashes ACPI/EC (Aspire 8930G) Rafael J. Wysocki

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=20110417183530.b36689c9.pdormeau@free.fr \
    --to=pdormeau@free.fr \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®