public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.9 & 11 hang on ac/dc change
@ 2005-05-23  1:25 William D Waddington
  2005-06-14 19:11 ` 2.6.9 & 11 hang on ac/dc change with T43 Misha Nasledov
  0 siblings, 1 reply; 3+ messages in thread
From: William D Waddington @ 2005-05-23  1:25 UTC (permalink / raw)
  To: linux-kernel

In the course of trying to figure out why /sys/.../cpu0 isn't populated
when in APM mode, I discovered that the laptop hangs on the first (?)
attempt to write to the drive after a change of power source.

This is a ThinkPad T43.  I see the problem with both 2.6.9-1.667 and
2.6.11-1.14_FC3 (both FC3).  Doesn't seem to happen in ACPI mode.
I need APM since that suspends and hibernates will on TPs. (Including
this one)

It always leads to a filesystem check on reboot, and once it damaged
the partition so badly that it wouldn't reboot and "linux rescue" from
the FC3 DVD couldn't mount it.  That time, I got "journalling error"
messages on the console, and "abnormal status 0xD0 on port 0x1F7"
when I tried to shut down.

I can't write to the HD to try to capture anything, so I don't have
much diagnostic info.  I have posted the APM boot messages, FWIW:
http://www.beezmo.com/scratch/t43_fc3/dmesg.apm

Any place I should poke to track this one down?  If this doesn't belong
on lkml, please point me appropriately.

Thanks,
Bill (not subscribed but lurking on fa.linux.kernel)
-- 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.6.9 & 11 hang on ac/dc change with T43
  2005-05-23  1:25 2.6.9 & 11 hang on ac/dc change William D Waddington
@ 2005-06-14 19:11 ` Misha Nasledov
  2005-06-15  2:03   ` Misha Nasledov
  0 siblings, 1 reply; 3+ messages in thread
From: Misha Nasledov @ 2005-06-14 19:11 UTC (permalink / raw)
  To: William D Waddington; +Cc: linux-kernel

I am having this same exact problem! I'm running 2.6.11.12 on my ThinkPad
T43 which I just got yesterday. I discovered last night then when I
change the power state in any way, it'll give these ATA abnormal status
0xD0 on port 0x1F7 errors.

So I began doing some sleuthing.. Bill said that this only happens with
APM, so I tried it without APM. First I booted with noapm, but I found
that my system was still trying to use the apm kernel module when apmd
started. So, I removed apm from the kernel and uninstalled apmd. An
interesting side effect that I noted here was that once apmd was
uninstalled it generated some sort of power-change event that triggered
this bug.

So I booted with a new kernel without any APM support and tried changing
the power state -- no luck. Same errors. Fortunately I haven't experienced
severe filesystem corruption quite yet, but I have a feeling that if I keep
experimenting long enough, it will be inevitable.

So this is a pretty grave bug. Everytime I want to unplug my laptop or plug
it back in, I have to shut it down first. I'm not sure what kernel version
this bug was introduced in -- I might try building 2.6.8 and see how that
works.

I believe that there are two more things I can try; Bill mentioned this
problem not happening in ACPI mode. I thought that by this he meant that
the problem disappeared in absence of APM, but perhaps this problem
might disappear in presence of ACPI. Well, I'll try this, but I'd prefer
to have working APM on this machine for suspend.

Maybe disabling the BIOS power-saving mechanisms and solely relying on
Linux kernel to handle CPU throttling and such might do it, but I have
my doubts.

Has anyone else had this problem? Anyone look into it? It seems that Bill
posted this a while ago and has received no reply on the list.

On Sun, May 22, 2005 at 06:25:19PM -0700, William D Waddington wrote:
> In the course of trying to figure out why /sys/.../cpu0 isn't populated
> when in APM mode, I discovered that the laptop hangs on the first (?)
> attempt to write to the drive after a change of power source.
> 
> This is a ThinkPad T43.  I see the problem with both 2.6.9-1.667 and
> 2.6.11-1.14_FC3 (both FC3).  Doesn't seem to happen in ACPI mode.
> I need APM since that suspends and hibernates will on TPs. (Including
> this one)
> 
> It always leads to a filesystem check on reboot, and once it damaged
> the partition so badly that it wouldn't reboot and "linux rescue" from
> the FC3 DVD couldn't mount it.  That time, I got "journalling error"
> messages on the console, and "abnormal status 0xD0 on port 0x1F7"
> when I tried to shut down.
> 
> I can't write to the HD to try to capture anything, so I don't have
> much diagnostic info.  I have posted the APM boot messages, FWIW:
> http://www.beezmo.com/scratch/t43_fc3/dmesg.apm
> 
> Any place I should poke to track this one down?  If this doesn't belong
> on lkml, please point me appropriately.

-- 
Misha Nasledov
misha@nasledov.com
GPG: A063 B99A 2BD3 2D48 F2D7 8E68 0F27 4D21 948F 8F06

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.6.9 & 11 hang on ac/dc change with T43
  2005-06-14 19:11 ` 2.6.9 & 11 hang on ac/dc change with T43 Misha Nasledov
@ 2005-06-15  2:03   ` Misha Nasledov
  0 siblings, 0 replies; 3+ messages in thread
From: Misha Nasledov @ 2005-06-15  2:03 UTC (permalink / raw)
  To: William D Waddington; +Cc: linux-kernel

So I've done some further experiments and apparently this bug goes away
when ACPI is enabled in the kernel. This is a temporary fix though..

On Tue, Jun 14, 2005 at 12:11:10PM -0700, Misha Nasledov wrote:
> I am having this same exact problem! I'm running 2.6.11.12 on my ThinkPad
> T43 which I just got yesterday. I discovered last night then when I
> change the power state in any way, it'll give these ATA abnormal status
> 0xD0 on port 0x1F7 errors.
> 
> So I began doing some sleuthing.. Bill said that this only happens with
> APM, so I tried it without APM. First I booted with noapm, but I found
> that my system was still trying to use the apm kernel module when apmd
> started. So, I removed apm from the kernel and uninstalled apmd. An
> interesting side effect that I noted here was that once apmd was
> uninstalled it generated some sort of power-change event that triggered
> this bug.
> 
> So I booted with a new kernel without any APM support and tried changing
> the power state -- no luck. Same errors. Fortunately I haven't experienced
> severe filesystem corruption quite yet, but I have a feeling that if I keep
> experimenting long enough, it will be inevitable.
> 
> So this is a pretty grave bug. Everytime I want to unplug my laptop or plug
> it back in, I have to shut it down first. I'm not sure what kernel version
> this bug was introduced in -- I might try building 2.6.8 and see how that
> works.
> 
> I believe that there are two more things I can try; Bill mentioned this
> problem not happening in ACPI mode. I thought that by this he meant that
> the problem disappeared in absence of APM, but perhaps this problem
> might disappear in presence of ACPI. Well, I'll try this, but I'd prefer
> to have working APM on this machine for suspend.
> 
> Maybe disabling the BIOS power-saving mechanisms and solely relying on
> Linux kernel to handle CPU throttling and such might do it, but I have
> my doubts.
> 
> Has anyone else had this problem? Anyone look into it? It seems that Bill
> posted this a while ago and has received no reply on the list.

-- 
Misha Nasledov
misha@nasledov.com
GPG: A063 B99A 2BD3 2D48 F2D7 8E68 0F27 4D21 948F 8F06

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-15  2:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-23  1:25 2.6.9 & 11 hang on ac/dc change William D Waddington
2005-06-14 19:11 ` 2.6.9 & 11 hang on ac/dc change with T43 Misha Nasledov
2005-06-15  2:03   ` Misha Nasledov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox