From nobody@FreeBSD.org  Wed Aug 21 01:57:33 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 8DE6BB54
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Aug 2013 01:57:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 7B9DA2BDE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Aug 2013 01:57:33 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7L1vXGB000122
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Aug 2013 01:57:33 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7L1vXre000121;
	Wed, 21 Aug 2013 01:57:33 GMT
	(envelope-from nobody)
Message-Id: <201308210157.r7L1vXre000121@oldred.freebsd.org>
Date: Wed, 21 Aug 2013 01:57:33 GMT
From: John Hickey <jjh-freebsdbug@daedalian.us>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Asmedia ASM1061 Times out with AHCI driver
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         181441
>Category:       kern
>Synopsis:       [ahci] Asmedia ASM1061 Times out with AHCI driver
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 21 02:00:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sat Aug 24 16:36:48 UTC 2013
>Originator:     John Hickey
>Release:        FreeBSD 9.2-BETA1
>Organization:
>Environment:
FreeBSD foo 9.2-BETA1 FreeBSD 9.2-BETA1 #2: Tue Jul 23 15:56:07 PDT 2013     root@foo:/usr/obj/usr/src/sys/FOO  amd64
>Description:
When using the ahci driver instead of the ata driver, my drive times out on an Asmedia 1061 controller.

ahcich0: Timeout on slot 0 port 0
ahcich0: is 00000000 cs 00000001 ss 00000000 rs 00000001 tfd 451 serr 00000000 cmd 0004c017 
ahcich0: AHCI reset...                                                          
ahcich0: SATA connect time=1000us status=00000123                               
ahcich0: AHCI reset: device found                                               
(aprobe0:ahcich0:0:0:0): SET_MULTI. ACB: c6 00 00 00 00 40 00 00 00 00 10 00    
(aprobe0:ahcich0:0:0:0): CAM status: Command timeout                            
(aprobe0:ahcich0:0:0:0): Error 5, Retry was blocked                             
ahcich0: AHCI reset: device ready after 100ms                                   


From a kernel with the ahci driver disabled, here is the pci information for the card:

atapci0@pci0:13:0:0:	class=0x010601 card=0x10601b21 chip=0x06121b21 rev=0x01 hdr=0x00
>How-To-Repeat:
Boot a system with an asmedia 1061 controller and the ahci driver enabled.
>Fix:
This setup has been running fine for over a year using the ata driver instead of ahci.

>Release-Note:
>Audit-Trail:
>Unformatted:
