From nobody@FreeBSD.org  Mon Mar 25 12:48:50 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id E3E57DFC
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Mar 2013 12:48:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id D5B63ABD
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Mar 2013 12:48:50 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r2PCmoRK017157
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Mar 2013 12:48:50 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r2PCmoRr017156;
	Mon, 25 Mar 2013 12:48:50 GMT
	(envelope-from nobody)
Message-Id: <201303251248.r2PCmoRr017156@red.freebsd.org>
Date: Mon, 25 Mar 2013 12:48:50 GMT
From: Volodymyr Kostyrko <c.kworr@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sysutils/smartmontools - triggers channel blocking
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         177371
>Category:       kern
>Synopsis:       [cam] ATA_IDENTIFY command timeout, disk lost
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 25 12:50:01 UTC 2013
>Closed-Date:    Sat Jan 04 09:17:11 UTC 2014
>Last-Modified:  Sat Jan 04 09:17:11 UTC 2014
>Originator:     Volodymyr Kostyrko
>Release:        RELENG_9_1
>Organization:
none
>Environment:
FreeBSD chmmr.3501.lan 9.1-RELEASE-p1 FreeBSD 9.1-RELEASE-p1 #0 r247172M: Sat Feb 23 14:10:33 EET 2013     arcade@chmmr.3501.lan:/usr/obj/usr/src/sys/MINIMAL  amd64

pciconf -lv > http://pastebin.com/tErKL8Yv

# camcontrol devlist
<WDC WD2500AAKX-001CA0 15.01H15>   at scbus0 target 0 lun 0 (ada0,pass0)
>Description:
I personally don't think that bug is in smartmontools, but smartmontools is a good place to start and describe a bug better.

This is not generally linked with update of smartmontools to 6.1 - this doesn't work with 6.0 too as with RELENG_9_0.

When trying to start smartd I get this:

# service smartd onestart
Starting smartd.
(pass0:ahcich0:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 00 00 00 00 01 00
(pass0:ahcich0:0:0:0): CAM status: Command timeout
(pass0:ahcich0:0:0:0): ATAPI_IDENTIFY. ACB: a1 00 00 00 00 40 00 00 00 00 01 00
(pass0:ahcich0:0:0:0): CAM status: Command timeout
/usr/local/etc/rc.d/smartd: WARNING: failed to start smartd
#

/var/log/messages >
Mar 22 11:28:50 chmmr kernel: ahcich0: Timeout on slot 28 port 0
Mar 22 11:28:50 chmmr kernel: ahcich0: is 00000002 cs 00000000 ss 00000000 rs 10000000 tfd 50 serr 00000000 cmd 00047c17

Screenshot: http://postimg.org/image/80m463scx/

After this the disk is lost and machine should be rebooted.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Mon Mar 25 12:50:09 UTC 2013 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

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

From: Edwin Groothuis <edwin@FreeBSD.org>
To: samm@os2.kiev.ua
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/177371: sysutils/smartmontools - triggers channel blocking
Date: Mon, 25 Mar 2013 12:50:08 UT

 Maintainer of sysutils/smartmontools,
 
 Please note that PR ports/177371 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/177371
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Alex Samorukov <samm@os2.kiev.ua>
To: bug-followup@FreeBSD.org, c.kworr@gmail.com
Cc:  
Subject: Re: ports/177371: sysutils/smartmontools - triggers channel blocking
Date: Wed, 03 Jul 2013 09:39:51 +0200

 I don`t feel that this bug have anything to do with smartmontools 
 package itself. On hardware i own it can`t be reproduces + generally 
 smartd is using only very safe commands. Fail of ATA_IDENTIFY indicates 
 serious problems with hardware. Please close this PR and re-open it if 
 needed for the system itself (or ahci driver).

From: Alex Samorukov <samm@os2.kiev.ua>
To: edwin@FreeBSD.org
Cc: bug-followup@FreeBSD.org, c.kworr@gmail.com
Subject: Re: ports/177371: sysutils/smartmontools - triggers channel blocking
Date: Thu, 21 Nov 2013 18:43:59 +0100

 Dear Edwin@,
 
 Please close this PR as non-relevant.
 
 Maintainer.
 
State-Changed-From-To: feedback->open 
State-Changed-By: tijl 
State-Changed-When: Fri Jan 3 10:18:28 CET 2014 
State-Changed-Why:  
While the problem has been described using smartmontools it is not 
believed to be a ports PR. 


Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-bugs 
Responsible-Changed-By: tijl 
Responsible-Changed-When: Fri Jan 3 10:18:28 CET 2014 
Responsible-Changed-Why:  
While the problem has been described using smartmontools it is not 
believed to be a ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=177371 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sat Jan 4 09:16:34 UTC 2014 
State-Changed-Why:  
Closed at submitter's request. 

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