Bug 55661

Summary: ACPI suspend/resume problem on ARMADA M700
Product: Base System Reporter: Oleg R. Muhutdinov <mor>
Component: i386Assignee: freebsd-acpi (Nobody) <acpi>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.1-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
acpidump.tgz none

Description Oleg R. Muhutdinov 2003-08-17 12:50:18 UTC
Suspend/resume (S1,S3 and S4) works fine only for the first time. If suspend
laptop next time, system freeze.

-----sysctl hw.acpi----
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.1-CURRENT #0: Sat Aug 16 13:06:17 MSD 2003
    mor@mor.ncport.ru:/usr/obj/usr/src/sys/KERNEL_M1_ULE
Preloaded elf kernel "/boot/kernel/kernel_ule" at 0xc054e000.
Preloaded elf module "/boot/kernel/vesa.ko" at 0xc054e1d0.
Preloaded elf module "/boot/kernel/linux.ko" at 0xc054e27c.
Preloaded elf module "/boot/kernel/ipfw.ko" at 0xc054e328.
Preloaded elf module "/boot/kernel/if_fxp.ko" at 0xc054e3d4.
Preloaded elf module "/boot/kernel/miibus.ko" at 0xc054e480.
Preloaded elf module "/boot/kernel/snd_maestro.ko" at 0xc054e52c.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc054e5dc.
Preloaded elf module "/boot/kernel/usb.ko" at 0xc054e688.
Preloaded elf module "/boot/kernel/random.ko" at 0xc054e730.
Preloaded elf module "/boot/kernel/ltmdm.ko" at 0xc054e7dc.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc054e888.
Timecounter "i8254" frequency 1193182 Hz
CPU: Intel Pentium III (696.84-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x683  Stepping = 3
  Features=0x387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,PN,
MMX,FXSR,SSE>
real memory  = 201261056 (191 MB)
avail memory = 189370368 (180 MB)
Pentium Pro MTRR support enabled
VESA: v2.0, 8128k memory, flags:0x0, mode table:0xc03d3c62 (1000022)
VESA: ATI MACH64
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <COMPAQ RSDB130 > on motherboard
pcibios: BIOS version 2.10
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-safe" frequency 3579545 Hz
can't fetch resources for \\_SB_.C0BF - AE_AML_INVALID_RESOURCE_TYPE
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x5008-0x500b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_tz0: <thermal zone> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 4 INTA is routed to irq 11
pcib0: slot 4 INTA is routed to irq 11  
pcib0: slot 7 INTD is routed to irq 11
pcib0: slot 8 INTA is routed to irq 11
pcib0: slot 9 INTA is routed to irq 11
pcib0: slot 9 INTA is routed to irq 11
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib1: slot 0 INTA is routed to irq 11
pci1: <display, VGA> at device 0.0 (no driver attached)
pcic0: <TI PCI-1450 PCI-CardBus Bridge> mem 0x42080000-0x42080fff irq 11 at device 4.0 on p
ci0
pcic0: TI12XX PCI Config Reg: [speaker enable][pwr save][CSC serial isa irq]
pccard0: <PC Card 16-bit bus (classic)> on pcic0
pcic1: <TI PCI-1450 PCI-CardBus Bridge> mem 0x42100000-0x42100fff irq 11 at device 4.1 on p
ci0
pcic1: TI12XX PCI Config Reg: [speaker enable][pwr save][CSC serial isa irq]
pccard1: <PC Card 16-bit bus (classic)> on pcic1
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x4010-0x401f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x4020-0x403f irq 11 at device 7.2 on
 pci0
usb0: <Intel 82371AB/EB (PIIX4) 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
intpm0: <Intel 82371AB Power management controller> port 0x4000-0x400f irq 9 at device 7.3
on pci0
intpm0: I/O mapped 4000
intpm0: intr IRQ 9 enabled revision 0
intsmb0: <Intel PIIX4 SMBUS Interface> on intpm0
smbus0: <System Management Bus> on intsmb0
smb0: <SMBus generic I/O> on smbus0
intpm0: PM I/O mapped 5000
pcm0: <ESS Technology Maestro-2E> port 0x4400-0x44ff irq 11 at device 8.0 on pci0
pcm0: <SigmaTel STAC9721/23 AC97 Codec>
fxp0: <Intel 82559ER Pro/100 Ethernet> port 0x4040-0x407f mem 0x42000000-0x4201ffff,0x42180
000-0x42180fff irq 11 at device 9.0 on pci0
fxp0: Ethernet address 00:d0:59:0b:82:d8
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ltmdm0: <Lucent Winmodem> port 0x4080-0x4087 mem 0x42200000-0x42200fff irq 11 at device 9.1
 on pci0
ltmdm0: type Virtual 16550A
acpi_button0: <Sleep Button> on acpi0
acpi_acad0: <AC adapter> on acpi0
acpi_cmbat0: <Control method Battery> on acpi0
acpi_cmbat1: <Control method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> 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 Generic PS/2 mouse, device ID 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x100-0x107,0x3e8-0x3ef irq 3 drq 5 on acpi0
sio1: type 16550A
orm0: <Option ROMs> at iomem 0xd2800-0xd3fff,0xc0000-0xcffff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <12 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 696837788 Hz
Timecounters tick every 1.000 msec
ipfw2 initialized, divert disabled, rule-based forwarding enabled, default to deny, logging
 disabled
acpi_cpu0: set speed to 100.0%
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
acpi_acad0: acline initialization start
acpi_acad0: On Line
acpi_acad0: acline initialization done, tried 1 times
acpi_cmbat0: battery initialization start
acpi_cmbat0: battery initialization done, tried 1 times
acpi_cmbat1: battery initialization start
ad0: 19077MB <IBM-DJSA-220> [38760/16/63] at ata0-master UDMA33
acd0: DVD-ROM <Compaq DVD-ROM SD-C2402> at ata0-slave PIO4

----sysctl hw.acpi----
hw.acpi.supported_sleep_state: S1 S3 S4 S5
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S1
hw.acpi.lid_switch_state: S1
hw.acpi.standby_state: S1
hw.acpi.suspend_state: S3
hw.acpi.sleep_delay: 5
hw.acpi.s4bios: 1
hw.acpi.verbose: 1
hw.acpi.disable_on_poweroff: 1
hw.acpi.cpu.max_speed: 8
hw.acpi.cpu.current_speed: 8
hw.acpi.cpu.performance_speed: 8
hw.acpi.cpu.economy_speed: 4
hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.polling_rate: 30
hw.acpi.thermal.tz0.temperature: 3272
hw.acpi.thermal.tz0.active: 2
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: 3632
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 3762
hw.acpi.thermal.tz0._ACx: 3482 3382 3232 -1 -1 -1 -1 -1 -1 -1
hw.acpi.acline: 1
hw.acpi.battery.life: 96
hw.acpi.battery.time: -1
hw.acpi.battery.state: 0
hw.acpi.battery.units: 2
hw.acpi.battery.info_expire: 5

Fix: n/a
Comment 1 njl freebsd_committer freebsd_triage 2003-09-04 02:00:31 UTC
Responsible Changed
From-To: freebsd-i386->njl

I'll look at this eventually.
Comment 2 Nate Lawson 2003-09-04 02:01:56 UTC
---------- Forwarded message ----------
Date: Tue, 2 Sep 2003 00:02:33 +0400
From: Oleg R. Muhutdinov <mor@ncport.ru>
To: acpi-jp@jp.FreeBSD.org

Hello,

I send Problem Report i386/55661 on Sun Aug 17 04:50:18 PDT 2003

acpidump -o ARMADA_M700.dsdt > ARMADA_M700.asl

http://mor.ncport.ru/ARMADA_M700.asl
http://mor.ncport.ru/ARMADA_M700.dsdt
or
http://213.134.203.20/ARMADA_M700.asl
http://213.134.203.20/ARMADA_M700.dsdt

boot -v
http://mor.ncport.ru/ARMADA_M700.dmesg
http://213.134.203.20/ARMADA_M700.dmesg

I want to obtain more specific information:

-----= screen =-----
mobile# sysctl hw.acpi
hw.acpi.supported_sleep_state: S1 S3 S4 S5
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S1
hw.acpi.lid_switch_state: S1
hw.acpi.standby_state: S1
hw.acpi.suspend_state: S4
hw.acpi.sleep_delay: 5
hw.acpi.s4bios: 1
hw.acpi.verbose: 1
hw.acpi.disable_on_poweroff: 1
hw.acpi.cpu.max_speed: 8
hw.acpi.cpu.current_speed: 8
hw.acpi.cpu.performance_speed: 8
hw.acpi.cpu.economy_speed: 4
hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.polling_rate: 30
hw.acpi.thermal.tz0.temperature: 3122
hw.acpi.thermal.tz0.active: -1
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: 3632
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 3762
hw.acpi.thermal.tz0._ACx: 3482 3382 3282 -1 -1 -1 -1 -1 -1 -1
hw.acpi.acline: 1
hw.acpi.battery.life: 93
hw.acpi.battery.time: -1
hw.acpi.battery.state: 0
hw.acpi.battery.units: 2
hw.acpi.battery.info_expire: 5

[... I press suspend/resume, laptop slept and wakeup fine ... ]

mobile# acpi_button0: sleep button pressed
ata0: resetting devices ..
ata0: pre reset mask=03 ostat0=50 ostat2=00
ad0: ATAPI 00 00
acd0: ATAPI 14 eb
ata0: after reset mask=03 stat0=50 stat1=00
ad0: ATA 01 a5
ata0: devices=09
ad0: success setting UDMA33 on Intel PIIX4 chip
acd0: success setting PIO4 on Intel PIIX4 chip
done
atkbd: the current kbd controller command byte 0047
atkbd: keyboard ID 0x41ab (2)
acpi_cmbat0: battery initialization start
acpi_cmbat1: battery initialization start
Sep  1 22:08:57 mobile kernel: wakeup from sleeping state (slept 00:00:20)
Sep  1 22:08:57 mobile kernel: kbdc: RESET_KBD return code:00fa
Sep  1 22:08:57 mobile kernel: kbdc: RESET_KBD status:00aa
acpi_cmbat0: battery initialization done, tried 1 times

[... OK, I press suspend next time ...]

mobile# acpi_button0: sleep button pressed

[... laptop is not suspended, I can input text, switch virtual console,
     but I can't input command, system freeze. Only 'reset' may help me :) ...]
-----= end sreen =-----

Of course I try change setting (hw.acpi*) and try boot other kernel (GENERIC),
but without result.



Thanks for yours work!

Oleg
Comment 3 njl freebsd_committer freebsd_triage 2004-10-17 20:02:36 UTC
Responsible Changed
From-To: njl->freebsd-acpi

Passing this to the acpi mailing list for historical purposes.  At some 
point, someone will have time to investigate suspend/resume.
Comment 4 Andriy Gapon freebsd_committer freebsd_triage 2010-12-05 14:42:02 UTC
Is this still an issue?

-- 
Andriy Gapon
Comment 5 Jaakko Heinonen freebsd_committer freebsd_triage 2011-12-03 10:08:38 UTC
State Changed
From-To: open->feedback

Note that submitter has been asked for feedback.
Comment 6 Jaakko Heinonen freebsd_committer freebsd_triage 2012-02-24 07:25:12 UTC
State Changed
From-To: feedback->closed

Feedback timeout.