From: Andrey Borzenkov <arvidjaar@mail.ru>
To: Len Brown <lenb@kernel.org>
Cc: linux-pm@lists.osdl.org, linux-usb-devel@lists.sourceforge.net,
linux-kernel@vger.kernel.org
Subject: Re: 2.6.20-rc5: BUG: lock held at task exit time! (pm_mutex){--..}, at: [<c013bfff>] enter_state+0x3f/0x170
Date: Sun, 21 Jan 2007 16:19:25 +0300 [thread overview]
Message-ID: <200701211619.26782.arvidjaar@mail.ru> (raw)
In-Reply-To: <200701161529.28110.lenb@kernel.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 16 January 2007 23:29, Len Brown wrote:
> On Tuesday 16 January 2007 13:22, Andrey Borzenkov wrote:
> > I have Toshiba Portege 4000 that almost always hangs dead resuming from
> > STR. This was better before 2.6.18, since then STR is unusable. Sometimes
> > it manages to resume; yesterday I got on console and in dmesg:
> >
> > =====================================
> > [ BUG: lock held at task exit time! ]
> > -------------------------------------
> > echo/28793 is exiting with locks still held!
> > 1 lock held by echo/28793:
> > #0: (pm_mutex){--..}, at: [<c013bfff>] enter_state+0x3f/0x170
> >
> > stack backtrace:
> > [<c0103fea>] show_trace_log_lvl+0x1a/0x30
> > [<c01045f2>] show_trace+0x12/0x20
> > [<c01046a6>] dump_stack+0x16/0x20
> > [<c0132377>] debug_check_no_locks_held+0x87/0x90
> > [<c011c8bb>] do_exit+0x4db/0x820
> > [<c011cc29>] do_group_exit+0x29/0x70
> > [<c011cc7f>] sys_exit_group+0xf/0x20
> > [<c010300e>] sysenter_past_esp+0x5f/0x99
> > =======================
>
> the global pm_mutex that this refers to is used in generic PM code, not USB
> code.
>
> enter_state() grabs it at the beginning of the suspend, and releases it
> when resume is completed.
>
> The mystery is why echo is exiting before enter_state() completes.
>
> >> if ! (/bin/echo $PARAM > $FILE &) ;then
> >> ret=1
> >> fi
>
> Same if you don't put the echo in the background here?
>
I just tried once more on 2.6.20-rc5 with
boot ... init=/bin/sh
mount -t sysfs sysfs /sys
echo mem > /proc/power/state
this hung dead on resume - not a single message (kernel was compiled with
PM_DEBUG).
I usually do not get any messages at all. I believe it was two times I got
anything; one is quoted in bug report and second here.
- -andrey
> > I have a bug report about resume issue but I may have wrongly attributed
> > it to ACPI: http://bugzilla.kernel.org/show_bug.cgi?id=7499
>
> hard to say if the failure is related to ACPI or not at this point --
> though it is not unusual for people to assume that STR and ACPI
> are synonyms, so that if STR doesn't work it must be due to ACPI
> rather than generic PM code or drivers.
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFs2heR6LMutpd94wRAqS7AJ0TMRb12cEgKrH0o/mW/sF1oNJ9CwCglx3z
HhzT2c3bAjBbNT7pOyCbATE=
=pp1M
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
WARNING: multiple messages have this Message-ID (diff)
From: Andrey Borzenkov <arvidjaar@mail.ru>
To: Len Brown <lenb@kernel.org>
Cc: linux-pm@lists.osdl.org, linux-usb-devel@lists.sourceforge.net,
linux-kernel@vger.kernel.org
Subject: Re: 2.6.20-rc5: BUG: lock held at task exit time! (pm_mutex){--..}, at: [<c013bfff>] enter_state+0x3f/0x170
Date: Sun, 21 Jan 2007 16:19:25 +0300 [thread overview]
Message-ID: <200701211619.26782.arvidjaar@mail.ru> (raw)
In-Reply-To: <200701161529.28110.lenb@kernel.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 16 January 2007 23:29, Len Brown wrote:
> On Tuesday 16 January 2007 13:22, Andrey Borzenkov wrote:
> > I have Toshiba Portege 4000 that almost always hangs dead resuming from
> > STR. This was better before 2.6.18, since then STR is unusable. Sometimes
> > it manages to resume; yesterday I got on console and in dmesg:
> >
> > =====================================
> > [ BUG: lock held at task exit time! ]
> > -------------------------------------
> > echo/28793 is exiting with locks still held!
> > 1 lock held by echo/28793:
> > #0: (pm_mutex){--..}, at: [<c013bfff>] enter_state+0x3f/0x170
> >
> > stack backtrace:
> > [<c0103fea>] show_trace_log_lvl+0x1a/0x30
> > [<c01045f2>] show_trace+0x12/0x20
> > [<c01046a6>] dump_stack+0x16/0x20
> > [<c0132377>] debug_check_no_locks_held+0x87/0x90
> > [<c011c8bb>] do_exit+0x4db/0x820
> > [<c011cc29>] do_group_exit+0x29/0x70
> > [<c011cc7f>] sys_exit_group+0xf/0x20
> > [<c010300e>] sysenter_past_esp+0x5f/0x99
> > =======================
>
> the global pm_mutex that this refers to is used in generic PM code, not USB
> code.
>
> enter_state() grabs it at the beginning of the suspend, and releases it
> when resume is completed.
>
> The mystery is why echo is exiting before enter_state() completes.
>
> >> if ! (/bin/echo $PARAM > $FILE &) ;then
> >> ret=1
> >> fi
>
> Same if you don't put the echo in the background here?
>
I just tried once more on 2.6.20-rc5 with
boot ... init=/bin/sh
mount -t sysfs sysfs /sys
echo mem > /proc/power/state
this hung dead on resume - not a single message (kernel was compiled with
PM_DEBUG).
I usually do not get any messages at all. I believe it was two times I got
anything; one is quoted in bug report and second here.
- -andrey
> > I have a bug report about resume issue but I may have wrongly attributed
> > it to ACPI: http://bugzilla.kernel.org/show_bug.cgi?id=7499
>
> hard to say if the failure is related to ACPI or not at this point --
> though it is not unusual for people to assume that STR and ACPI
> are synonyms, so that if STR doesn't work it must be due to ACPI
> rather than generic PM code or drivers.
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFs2heR6LMutpd94wRAqS7AJ0TMRb12cEgKrH0o/mW/sF1oNJ9CwCglx3z
HhzT2c3bAjBbNT7pOyCbATE=
=pp1M
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2007-01-21 13:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-16 18:22 2.6.20-rc5: BUG: lock held at task exit time! (pm_mutex){--..}, at: [<c013bfff>] enter_state+0x3f/0x170 Andrey Borzenkov
2007-01-16 20:29 ` Len Brown
2007-01-16 20:29 ` Len Brown
2007-01-21 13:19 ` Andrey Borzenkov [this message]
2007-01-21 13:19 ` Andrey Borzenkov
2007-01-16 20:31 ` [linux-usb-devel] " Alan Stern
2007-01-17 18:28 ` Andrey Borzenkov
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=200701211619.26782.arvidjaar@mail.ru \
--to=arvidjaar@mail.ru \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.osdl.org \
--cc=linux-usb-devel@lists.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 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.