From nobody@FreeBSD.org  Tue Aug 24 05:52:13 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4B0CC1065673
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Aug 2010 05:52:13 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 2049F8FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Aug 2010 05:52:13 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o7O5qC6k091956
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Aug 2010 05:52:12 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o7O5qCM0091955;
	Tue, 24 Aug 2010 05:52:12 GMT
	(envelope-from nobody)
Message-Id: <201008240552.o7O5qCM0091955@www.freebsd.org>
Date: Tue, 24 Aug 2010 05:52:12 GMT
From: Bruce Cran <bruce@cran.org.uk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: hard drive not stopped before removing power during acpi suspend
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         149927
>Category:       kern
>Synopsis:       [cam] hard drive not stopped before removing power during acpi suspend
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    sbruno
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 24 06:00:07 UTC 2010
>Closed-Date:    Mon Apr 29 07:04:16 UTC 2013
>Last-Modified:  Mon Apr 29 07:04:16 UTC 2013
>Originator:     Bruce Cran
>Release:        9.0-CURRENT
>Organization:
>Environment:
>Description:
When running "acpiconf -s 3" a loud "clunk" is heard as the hard drive
does an emergency unload. In comparison, both Linux and OpenBSD appear
to stop the drive before removing power and the only change in noise
comes from the drive and fans spinning down. The ahci driver is being used.
>How-To-Repeat:
acpiconf -s 3
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: arundel 
State-Changed-When: Tue Aug 24 11:11:11 UTC 2010 
State-Changed-Why:  
Could you please take a look at 140752. This PR seems to be a duplicate of that 
PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149927 
State-Changed-From-To: feedback->open 
State-Changed-By: arundel 
State-Changed-When: Tue Aug 24 13:58:44 UTC 2010 
State-Changed-Why:  
Back to open. Although this PR and 140752 deal with the same issue, the latter 
one is ATA related while this one occurs in CAM. 


Responsible-Changed-From-To: freebsd-bugs->mav 
Responsible-Changed-By: arundel 
Responsible-Changed-When: Tue Aug 24 13:58:44 UTC 2010 
Responsible-Changed-Why:  
Alexander Motin has been working on ATA_CAM and might know what to do (although 
this issue is pure CAM related). 
If my assumption is wrong please feel free to assign this PR back into the pool. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149927 
Responsible-Changed-From-To: mav->brucec  
Responsible-Changed-By: brucec 
Responsible-Changed-When: Wed Oct 20 08:12:47 UTC 2010 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149927 
State-Changed-From-To: open->closed  
State-Changed-By: brucec 
State-Changed-When: Tue Oct 26 16:51:11 UTC 2010 
State-Changed-Why:  
Duplicate of kern/140752. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149927 
State-Changed-From-To: closed->open 
State-Changed-By: brucec 
State-Changed-When: Mon Nov 15 15:58:12 UTC 2010 
State-Changed-Why:  
This is still a problem: the drive is now stopped when shutting down 
(kern/140752), but an emergency unload is still being done when the  
computer turns off during suspend. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149927 
State-Changed-From-To: open->suspended 
State-Changed-By: brucec 
State-Changed-When: Sun Feb 13 18:37:27 UTC 2011 
State-Changed-Why:  
To fix this will require cam(4) to be updated to support newbus. 


Responsible-Changed-From-To: brucec->freebsd-scsi 
Responsible-Changed-By: brucec 
Responsible-Changed-When: Sun Feb 13 18:37:27 UTC 2011 
Responsible-Changed-Why:  
I don't have the time or knowledge to work on this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149927 
Responsible-Changed-From-To: freebsd-scsi->sbruno 
Responsible-Changed-By: sbruno 
Responsible-Changed-When: Mon Apr 29 06:35:30 UTC 2013 
Responsible-Changed-Why:  
Taking this for monitoring 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149927 
State-Changed-From-To: suspended->closed 
State-Changed-By: sbruno 
State-Changed-When: Mon Apr 29 07:03:47 UTC 2013 
State-Changed-Why:  
This is resolved in CAM enabled ATA drivers in stable releases. 

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