Bug 46553 - System freezes after awakening from hibernation
Summary: System freezes after awakening from hibernation
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: i386 (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: acpi-jp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-26 19:50 UTC by Hubert Tournier
Modified: 2003-08-08 17:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hubert Tournier 2002-12-26 19:50:02 UTC
	When I fold the screen of my laptop, wait a few seconds,
	then reopen the screen, the system prints "ata0: resetting
	devices .." (in bold) then freezes. I have to power off
	the laptop in order to get out of this situation.

	There's no relevant message in /var/log/messages.

	Hereafter follows the dmesg output after rebooting (hoping
	it might be useful) :

--- dmesg begins here ---
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.0-RC1 #0: Tue Dec 10 17:20:33 CET 2002
    root@:/usr/src/sys/i386/compile/HERISSON
Preloaded elf kernel "/boot/kernel.HERISSON/kernel" at 0xc03f2000.
Preloaded elf module "/boot/kernel.HERISSON/vesa.ko" at 0xc03f20b4.
Preloaded elf module "/boot/kernel.HERISSON/snd_ess.ko" at 0xc03f2168.
Preloaded elf module "/boot/kernel.HERISSON/snd_pcm.ko" at 0xc03f2220.
Preloaded elf module "/boot/kernel.HERISSON/snd_sbc.ko" at 0xc03f22d8.
Preloaded elf module "/boot/kernel.HERISSON/acpi.ko" at 0xc03f2390.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 184560358 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (184.56-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x66a  Stepping = 10
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 201195520 (191 MB)
avail memory = 191127552 (182 MB)
Initializing GEOMetry subsystem
Pentium Pro MTRR support enabled
VESA: v2.0, 2560k memory, flags:0x0, mode table:0xc00c8030 (c0008030)
VESA: Copyright 1997 TRIDENT MICROSYSTEMS INC.

npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <TOSHIB 750     > on motherboard
    ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-safe"  frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xfe08-0xfe0b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_tz0: <thermal zone> on acpi0
Using $PIR table, 7 entries at 0xc00f0180
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
cbb0: <ToPIC97 PCI-CardBus Bridge> at device 2.0 on pci0
cardbus0: <CardBus bus> on cbb0
pcib0: slot 2 INTA is routed to irq 11
cbb1: <ToPIC97 PCI-CardBus Bridge> at device 2.1 on pci0
cardbus1: <CardBus bus> on cbb1
pcib0: slot 2 INTB is routed to irq 11
pci0: <display, VGA> at device 4.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 5.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xfe60-0xfe6f at device 5.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <serial bus, USB> at device 5.2 (no driver attached)
pci0: <bridge, PCI-unknown> at device 5.3 (no driver attached)
pci0: <simple comms> at device 7.0 (no driver attached)
pci0: <simple comms> at device 10.0 (no driver attached)
pci0: <multimedia, audio> at device 12.0 (no driver attached)
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_cmbat0: <Control method Battery> on acpi0
acpi_acad0: <AC adapter> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
orm0: <Option ROM> at iomem 0xc0000-0xcbfff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 10.000 msec
acpi_cpu: CPU throttling enabled, 8 steps from 100% to 12.5%
ad0: 6194MB <TOSHIBA MK6411MAT> [13424/15/63] at ata0-master UDMA33
acd0: CDROM <TOSHIBA CD-ROM XM-1802D> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s2a
WARNING: / was not properly dismounted
WARNING: /home was not properly dismounted
WARNING: /tmp was not properly dismounted
/tmp: superblock summary recomputed
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted
/var: mount pending error: blocks 20 files 1
--- dmesg ends here ---

Fix: 

No known work around except avoiding closing the screen.
How-To-Repeat: 	Fold the screen, wait 30 seconds, open the screen.
Comment 1 wollman 2002-12-26 20:16:39 UTC
<<On Thu, 26 Dec 2002 20:46:43 GMT, Hubert Tournier <hubert@tournier.org> said:

> Machine: Toshiba Satellite 4080XCDT laptop

>> How-To-Repeat:
> 	Fold the screen, wait 30 seconds, open the screen.

I can confirm the same symptoms on my Tecra 8100.

-GAWollman
Comment 2 andrew morton 2003-02-03 23:08:39 UTC
I get a very similar problem with my IBM A21e and FreeBSD 5.0-RELEASE. 
Closing the lid puts it into standby (instead of just turning off the 
LCD backlighting). When I open the lid the behavior seems to vary based 
on the length of time it's closed. If it's a short time (15-30 seconds) 
I get the same error. If it's a minute or two I open it up and find it 
counting down until an automatic reboot. I've yet to read the message as 
it reboots shortly thereafter. dmesg doesn't seem to show any of that 
output either. I'll post more as soon as I can present more specifics.

andrew
Comment 3 andrew morton 2003-02-11 20:04:05 UTC
Here's my dmesg dump:

Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.0-RELEASE-p1 #0: Tue Feb  4 22:25:45 PST 2003
     root@flip.drewish.com:/usr/obj/usr/src/sys/FLIP
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0471000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc04710a8.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 597785694 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (597.79-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0x683  Stepping = 3
 
Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 268369920 (255 MB)
avail memory = 256102400 (244 MB)
Initializing GEOMetry subsystem
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <PTLTD    RSDT  > on motherboard
     ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15
     ACPI-0625: *** Info: GPE Block1 defined as GPE16 to GPE31
Using $PIR table, 5 entries at 0xc00fdf40
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-fast"  frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_tz0: <thermal zone> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <multimedia, audio> at device 0.1 (no driver attached)
pci0: <old, non-VGA display device> at device 0.2 (no driver attached)
cbb0: <TI1410 PCI-CardBus Bridge> mem 0x50000000-0x50000fff irq 11 at 
device 2.0 on pci0
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0x1840-0x187f mem 
0xfc000000-0xfc01ffff,0xfc020000-0xfc020fff irq 11 at device 3.0 on pci0
fxp0: Ethernet address 00:10:a4:a7:06:43
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <simple comms, UART> at device 3.1 (no driver attached)
pci0: <display, VGA> at device 4.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0x1890-0x189f at device 7.1 
on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82443MX USB controller> port 0x18a0-0x18bf irq 11 at 
device 7.2 on pci0
usb0: <Intel 82443MX USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached)
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 
0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 8250 or not responding
acpi_ec0: <embedded controller> port 0x66,0x62 on acpi0
acpi_cmbat0: <Control method Battery> on acpi0
acpi_cmbat1: <Control method Battery> on acpi0
acpi_acad0: <AC adapter> on acpi0
orm0: <Option ROMs> at iomem 
0xe0000-0xeffff,0xd0000-0xd17ff,0xc0000-0xcffff on isa0
pmtimer0 on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 10.000 msec
acpi_cpu: CPU throttling enabled, 8 steps from 100% to 12.5%
wi0: <WaveLAN/IEEE> at port 0x100-0x13f irq 11 function 0 config 1 on 
pccard0
wi0: 802.11 address: 00:02:2d:22:86:05
wi0: using Lucent Technologies, WaveLAN/IEEE
wi0: Lucent Firmware: Station 8.72.01
ad0: DMA limited to UDMA33, non-ATA66 cable or device
ad0: 19077MB <IC25N020ATCS04-0> [38760/16/63] at ata0-master UDMA33
acd0: CDROM <CD-224E> at ata0-slave PIO4
MBREXT Slice 5 on ad0s3:
0000   00 01 c1 ff 07 ef ff ff 3f 00 00 00 e1 8c 06 01  |........?.......|
[0] f:00 typ:7 s(CHS):255/1/193 e(CHS):255/239/255 s:63 l:17206497
0000   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
[1] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
Mounting root from ufs:/dev/ad0s2a
     ACPI-0432: *** Error: Handler for [EmbeddedControl] returned AE_ERROR
     ACPI-1287: *** Error: Method execution failed, AE_ERROR
Comment 4 Kris Kennaway freebsd_committer freebsd_triage 2003-07-14 09:57:25 UTC
State Changed
From-To: open->feedback

Can you please retry with 5.1-RELEASE or 5.1-CURRENT? 


Comment 5 Kris Kennaway freebsd_committer freebsd_triage 2003-07-14 09:57:25 UTC
Responsible Changed
From-To: freebsd-bugs->acpi-jp@jp.FreeBSD.org

Assign to ACPI maintainers
Comment 6 Kris Kennaway 2003-07-14 22:36:15 UTC
Adding to audit trail

----- Forwarded message from Hubert Tournier <hubert.tournier@online.fr> -----

X-Original-To: kkenn@localhost
Delivered-To: kkenn@localhost.obsecurity.org
Delivered-To: kris@freebsd.org
Date: Mon, 14 Jul 2003 23:25:56 +0200
From: Hubert Tournier <hubert.tournier@online.fr>
Reply-To: hubert@tournier.org
Organization: Maison
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: fr, en
To: Kris Kennaway <kris@FreeBSD.org>
Subject: Re: i386/46553: System freezes after awakening from hibernation
In-Reply-To: <200307140857.h6E8vmUh079941@freefall.freebsd.org>
X-UIDL: 37d201940bdb953c0b984415dd56745b
X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.13.7.2

Hello Kris,

I can only retry with 5.1-RELEASE under VMWare.

I'll do that this week.

Have a nice day !

Kris Kennaway wrote:

>Synopsis: System freezes after awakening from hibernation
>
>State-Changed-From-To: open->feedback
>State-Changed-By: kris
>State-Changed-When: Mon Jul 14 01:57:25 PDT 2003
>State-Changed-Why: 
>Can you please retry with 5.1-RELEASE or 5.1-CURRENT?
>
>
>Responsible-Changed-From-To: freebsd-bugs->acpi-jp@jp.FreeBSD.org
>Responsible-Changed-By: kris
>Responsible-Changed-When: Mon Jul 14 01:57:25 PDT 2003
>Responsible-Changed-Why: 
>Assign to ACPI maintainers
>
>http://www.freebsd.org/cgi/query-pr.cgi?pr=46553
>
>
> 
>



----- End forwarded message -----
Comment 7 Nate Lawson 2003-07-21 23:01:26 UTC
You can disable going into S3 on lid close by doing:
   sysctl hw.acpi.lid_switch_state=NONE
Fixing suspend on your laptop is a different story.

-Nate
Comment 8 Nate Lawson 2003-08-08 17:08:22 UTC
Did you try the sysctl I posted in the reply?  I am closing the PR
accordingly.  If you have suspend problems, please submit it as a separate
PR.

-Nate
Comment 9 njl freebsd_committer freebsd_triage 2003-08-08 17:09:06 UTC
State Changed
From-To: feedback->closed

Submitter can send in a bug report if suspend does not work.  The 
workaround given in this PR should address the problem of closing 
the lid.