Subject: port-i386/21885: laptop hangs on wake-up from suspend with APM
To: None <gnats-bugs@gnats.netbsd.org>
From: None <bsd@cs.ubc.ca>
List: netbsd-bugs
Date: 06/14/2003 15:15:42
>Number:         21885
>Category:       port-i386
>Synopsis:       laptop hangs on wake-up from suspend with APM
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 14 22:39:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Brian de Alwis
>Release:        NetBSD 1.6T
>Organization:
>Environment:
System: NetBSD slab 1.6T NetBSD 1.6T (GENERIC_LAPTOP) #0: Fri Jun 13 14:16:03 PDT 2003 bsd@slab:/usr/src/sys/arch/i386/compile/GENERIC_LAPTOP i386
Architecture: i386
Machine: i386: Dell Inspiron 2100 (Pentium-3 700MHz); dmesg below
>Description:
	I've had this Dell for well over a year, and have been
	running 1.6 very successfully on it during this time.  It
	suspended and woke up using APM with absolutely no problems.
	It could not hibernate (suspend to disk) -- it would seem
	to load the image, the console would be restored properly,
	but it would then hang.  DDB would not work, and in fact,
	it was so hung that I would need to remove the AC and
	battery to power it off.  As the suspend mode was good
	enough, I never pursued this any further.

	As I recently needed to run the Sun JDK 1.4, I decided to
	move to -current.  Since then about 1 out of every 3 or 4
	suspends now fail in a similar manner as the previous
	hibernate problem.  The console window seems to be restored
	properly, but it hangs.  Unlike the previous hibernation
	problem, this can at least be powered off through the power
	switch.

	I'm not sure what causes this, and it is not easily
	reproducible.  I am running the GENERIC_LAPTOP from the
	Friday's sources.  I am fully willing to try any experimentation
	that might be helpful.

>How-To-Repeat:
>Fix:

NetBSD 1.6T (GENERIC_LAPTOP) #0: Fri Jun 13 14:16:03 PDT 2003
	bsd@slab:/usr/src/sys/arch/i386/compile/GENERIC_LAPTOP
total memory = 255 MB
avail memory = 231 MB
using 3296 buffers containing 13184 KB of memory
BIOS32 rev. 0 found at 0xfd7a0
PCI BIOS rev. 2.1 found at 0xfd9c5
pcibios: config mechanism [1][x], special cycles [x][x], last bus 1
PCI IRQ Routing Table rev. 1.0 found at 0xfdf40, size 160 bytes (8 entries)
PCI Interrupt Router at 000:07:0 (Intel 82371FB PCI-to-ISA Bridge (PIIX))
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:07:2 0x8086 0x7112   D  0x03  11  0    already assigned
000:08:0 0x1013 0x6005   A  0x01  10  0    already assigned
000:10:0 0x104c 0xac50   A  0x00  10  0    already assigned
000:13:0 0x10b7 0x9200   A  0x00  10  0    already assigned
000:16:0 0x11c1 0x0448   A  0x02   3  0    already assigned
001:00:0 0x1002 0x4c4d   A  0x00  10  0    already assigned
------------------------------------------
PCI fixup examining 8086:7190
PCI fixup examining 8086:7191
PCI fixup examining 1002:4c4d
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI fixup examining 8086:7110
PCI fixup examining 8086:7111
PCI fixup examining 8086:7112
PCI fixup examining 8086:7113
PCI fixup examining 1013:6005
PCI fixup examining 104c:ac50
PCI bridge 1: primary 0, secondary 2, subordinate 2
PCI fixup examining 10b7:9200
PCI fixup examining 11c1:448
PCI bus #2 is the last bus
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x8086 0x7190 
	10h mem  0xf8000000 0x04000000
		[OK]
000:01:0 0x8086 0x7191 
		[OK]
000:07:0 0x8086 0x7110 
		[OK]
000:07:1 0x8086 0x7111 
	20h port 0x0000fcd0 0x00000010
		[OK]
000:07:2 0x8086 0x7112 
	20h port 0x0000fce0 0x00000020
		[OK]
000:07:3 0x8086 0x7113 
		[OK]
000:08:0 0x1013 0x6005 
	10h mem  0xfedef000 0x00001000
	14h mem  0xfedf0000 0x00010000
		[OK]
000:10:0 0x104c 0xac50 
	10h mem  0x00000000 0x00001000
		[NG]
000:13:0 0x10b7 0x9200 
	10h port 0x0000fc00 0x00000080
	14h mem  0xfededc00 0x00000080
		[OK]
000:16:0 0x11c1 0x0448 
	10h mem  0xfeded800 0x00000100
	14h port 0x0000fcc8 0x00000008
	18h port 0x0000f800 0x00000100
		[OK]
001:00:0 0x1002 0x4c4d 
	10h mem  0xfd000000 0x01000000
	14h port 0x0000e800 0x00000100
	18h mem  0xfecfe000 0x00001000
		[OK]
--------------------------[  1 devices bogus]
WARNING: can't reserve area for I/O APIC.
 Physical memory end: 0x0ffec000
 PCI memory mapped I/O space start: 0x10000000
[PCIBIOS fixup stage]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x8086 0x7190 
	10h mem  0xf8000000 0x04000000
		[OK]
000:01:0 0x8086 0x7191 
		[OK]
000:07:0 0x8086 0x7110 
		[OK]
000:07:1 0x8086 0x7111 
	20h port 0x0000fcd0 0x00000010
		[OK]
000:07:2 0x8086 0x7112 
	20h port 0x0000fce0 0x00000020
		[OK]
000:07:3 0x8086 0x7113 
		[OK]
000:08:0 0x1013 0x6005 
	10h mem  0xfedef000 0x00001000
	14h mem  0xfedf0000 0x00010000
		[OK]
000:10:0 0x104c 0xac50 
	10h mem  0x10000000 0x00001000
		[OK]
000:13:0 0x10b7 0x9200 
	10h port 0x0000fc00 0x00000080
	14h mem  0xfededc00 0x00000080
		[OK]
000:16:0 0x11c1 0x0448 
	10h mem  0xfeded800 0x00000100
	14h port 0x0000fcc8 0x00000008
	18h port 0x0000f800 0x00000100
		[OK]
001:00:0 0x1002 0x4c4d 
	10h mem  0xfd000000 0x01000000
	14h port 0x0000e800 0x00000100
	18h mem  0xfecfe000 0x00001000
		[OK]
--------------------------[  0 devices bogus]
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium III (686-class), 697.01 MHz, id 0x686
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu0: features 383f9ff<FXSR,SSE>
cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
cpu0: L2 cache 256 KB 32b/line 8-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: 8 page colors
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443BX Host Bridge/Controller (rev. 0x03)
agp0 at pchb0: aperture at 0xf8000000, size 0x4000000
ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Interface (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: ATI Technologies Rage Mobility (rev. 0x64)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <IBM-DJSA-210>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 9590 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 19640880 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
pciide0: disabling secondary channel (no drives)
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x03) at pci0 dev 7 function 3 not configured
clct0 at pci0 dev 8 function 0: Cirrus Logic CS4281 CrystalClear Audio Interface (rev. 0x01)
clct0: interrupting at irq 10
clct0: Crystal CS4297A codec; headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D
audio0 at clct0: full duplex, independent
cbb0 at pci0 dev 10 function 0: Texas Instruments PCI1410 PCI-CardBus Bridge (rev. 0x01)
ex0 at pci0 dev 13 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt (rev. 0x78)
ex0: interrupting at irq 10
ex0: MAC address 00:b0:d0:bf:00:12
ukphy0 at ex0 phy 24: Generic IEEE 802.3u media interface
ukphy0: Broadcom 3c905C internal PHY (OUI 0x000818, model 0x0017), rev. 7
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
Lucent Technologies LTMODEM (miscellaneous communications, revision 0x01) at pci0 dev 16 function 0 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
cbb0: interrupting at irq 10
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0
pcmcia0 at cardslot0
apm0 at mainbus0: Power Management spec V1.2
Kernelized RAIDframe activated
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
>Release-Note:
>Audit-Trail:
>Unformatted: