From nobody@FreeBSD.org  Thu Dec 29 02:24:40 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 06DF016A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 Dec 2005 02:24:40 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A5B3F43D58
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 Dec 2005 02:24:39 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jBT2Od2o047513
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 Dec 2005 02:24:39 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jBT2Odwn047496;
	Thu, 29 Dec 2005 02:24:39 GMT
	(envelope-from nobody)
Message-Id: <200512290224.jBT2Odwn047496@www.freebsd.org>
Date: Thu, 29 Dec 2005 02:24:39 GMT
From: Vaida Bogdan <vaida.bogdan@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [panic] 6.0-RELEASE on Fujitsu Siemens Amilo Pro v2040 can't resume from sleep
X-Send-Pr-Version: www-2.3

>Number:         91038
>Category:       kern
>Synopsis:       [panic] [ata] [acpi] 6.0-RELEASE on Fujitsu Siemens Amilo Pro v2040 can't resume from sleep
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-acpi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 29 02:30:03 GMT 2005
>Closed-Date:    Sun Dec 05 14:44:39 UTC 2010
>Last-Modified:  Sun Dec 05 14:44:39 UTC 2010
>Originator:     Vaida Bogdan
>Release:        6.0-RELEASE-p1
>Organization:
>Environment:
FreeBSD amber.etc.upt.ro 6.0-RELEASE-p1 FreeBSD 6.0-RELEASE-p1 #5: Mon Dec 26 01:08:59 EET 2005     root@amber.etc.upt.ro:/usr/obj/usr/src/sys/AMBER  i386

>Description:
ACPI resume doesn't work: 

If I power on after a sleep (acpiconf -s 3):

ioapic_suspend: not_implemented!
ioapic_suspend: not_implemented!
[...]
fwohci0: Phy 1394a available S400, 2 ports
fwohci0: Link S400, max_rec 2048 bytes
fwohci0: Initiate bus reset
[ Freezes ]

tried to disable apic in kernel config with a partial success: it boots but hdd doesn't resume 


fwohci0: fwohci_pci_suspend
fwohci0: device physically ejected?
fw0hci0: suspend request ignored (not ready yet)
fwohci0: Phy 1394a available S400, 2 ports
fwohci0: Link S400, max_rec 2048 bytes
fwohci0: Initiate bus reset
fwohci0: Bus reset
fwohci0: node_id=0xc800ffc0 gen=0 CYCLEMASTER MODE
firewire0: 1 nodes maxhop <=0, cable IRM=0 (me)
firewire0: bus manager 0 (me)
fwohci0: phy int
ad4 detached
g_vfs_done() ad4s1a [READ(offset=53...,length=2048)] error=6
g_vfs_done()...
vnode_pager_getpages: I/O read error
g_vfs_done...
[ seems I can run bash builtin commands => memory was restored ok ]
[ still ad4 remains detached ]
cd /bin
./ls
g_vfs_done() ...
vnode_pager_getpages: I/O read error
./ls: Input/Output error

APM (similar problem here) 


1) Kernel config has: "device apm"
2) Load kernel module at boot:
apm_load="YES" to /boot/loader.conf
3) Hint.apm.0.disabled="0" in /boot/device.hints
4) Start apm automatically at boot:
apm_enable="YES" in /etc/rc.conf
5) Enable APM daemon:
apmd_enable="YES" to /etc/rc.conf

and I get the following error when starting apm:

apm: can't open /dev/apm: no such file or directory
/etc/rc: WARNING: /dev/apmctl not found; kernel is missing apm (4)

(kldstat shows no acpi loaded, I also tried using apm and pmtimer in
my kernel config file)             
>How-To-Repeat:
acpiconf -s 3 on a Fujitsu Siemens Amilo Pro v2040
try to resume it
>Fix:
              
>Release-Note:
>Audit-Trail:

From: "Vaida Bogdan" <vaida.bogdan@gmail.com>
To: bug-followup@freebsd.org, vaida.bogdan@gmail.com
Cc:  
Subject: Re: i386/91038: [panic] 6.0-RELEASE on Fujitsu Siemens Amilo Pro v2040 can't resume from sleep
Date: Wed, 23 Aug 2006 12:33:20 +0300

 Anyone interested in fixing this? I am willing to help/test/debug.
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Tue Feb 19 17:40:05 UTC 2008 
State-Changed-Why:  
To submitter:  Firstly, I'm sorry that this PR has sat for so long without 
anyone looking at it.  Can you tell me, is this still a problem with newer 
versions of FreeBSD?  If so, can you try using a kernel with as many devices 
removed as possible i(leave apic, ata etc but remove firewire, usb etc) and 
see if you still have issues?  If not, can you then add devices back one at 
a time and see what happens? 


Responsible-Changed-From-To: freebsd-i386->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Tue Feb 19 17:40:05 UTC 2008 
Responsible-Changed-Why:  
Track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=91038 

From: "Vaida Bogdan" <vaida.bogdan@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: re: i386/91038: [panic] 6.0-release on fujitsu siemens amilo pro v2040 can't resume from sleep
Date: Thu, 21 Feb 2008 11:41:46 +0200

 I switched to Ubuntu for a year now and this bug was one of the
 reasons I decided to switch. I'm sorry but I can't help you solve the
 bug.
State-Changed-From-To: feedback->suspended 
State-Changed-By: gavin 
State-Changed-When: Thu Feb 21 10:25:13 UTC 2008 
State-Changed-Why:  
Original submitter no longer uses FreeBSD on this laptop, mark as suspended 
until somebody else is able to help 


Responsible-Changed-From-To: gavin->freebsd-acpi 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Thu Feb 21 10:25:13 UTC 2008 
Responsible-Changed-Why:  
Over to freebsd-acpi@ 

http://www.freebsd.org/cgi/query-pr.cgi?pr=91038 
State-Changed-From-To: suspended->closed 
State-Changed-By: avg 
State-Changed-When: Sun Dec 5 14:43:59 UTC 2010 
State-Changed-Why:  
No point in keeping suspended PRs from ages ago. 
Openning a new PR is cheap. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=91038 
>Unformatted:
