From owner-freebsd-bugs@FreeBSD.ORG Tue Sep 11 09:40:02 2007 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C52D16A479 for ; Tue, 11 Sep 2007 09:40:02 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp3.yandex.ru (smtp3.yandex.ru [213.180.200.14]) by mx1.freebsd.org (Postfix) with ESMTP id C8F9713C45A for ; Tue, 11 Sep 2007 09:40:01 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:20468 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S4748047AbXIKJj6 (ORCPT ); Tue, 11 Sep 2007 13:39:58 +0400 X-Comment: RFC 2476 MSA function at smtp3.yandex.ru logged sender identity as: bu7cher Message-ID: <46E6626C.4090908@yandex.ru> Date: Tue, 11 Sep 2007 13:39:56 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Dave Grochowski References: <200709100410.l8A4AAWt090232@freefall.freebsd.org> <46E4D768.7080303@yandex.ru> <46E5E69E.80708@gmail.com> In-Reply-To: <46E5E69E.80708@gmail.com> Content-Type: multipart/mixed; boundary="------------040000040506080405090502" Cc: freebsd-bugs@FreeBSD.org Subject: Re: kern/111699: [sata] SATA drives on an Asus A8V-MX are no longer detected on 7.0-CURRENT (regression) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2007 09:40:02 -0000 This is a multi-part message in MIME format. --------------040000040506080405090502 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Dave Grochowski wrote: >> Can you show verbose dmesg from RELENG_6 (without this patch)? >> > I've attached a verbose dmesg from a Freesbie CD. Hi, Dave. If you have some time, can you test this patch on CURRENT (without your patch). I guess it may help. -- WBR, Andrey V. Elsukov --------------040000040506080405090502 Content-Type: text/plain; name="ata-chipset.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ata-chipset.c.diff" --- src/sys/dev/ata/ata-chipset.c.orig 2007-09-11 13:11:19.475037453 +0400 +++ src/sys/dev/ata/ata-chipset.c 2007-09-11 13:28:47.876389301 +0400 @@ -721,7 +721,15 @@ ata_ahci_reset(device_t dev) /* enable interface */ if (ata_sata_phy_reset(dev)) { - switch (ATA_INL(ctlr->r_res2, ATA_AHCI_P_SIG + offset)) { + for (timeout = 0; timeout < 300; timeout++) { + if (!(ATA_INL(ctlr->r_res2, ATA_AHCI_P_TFD + offset) & ATA_S_BUSY)) + break; + DELAY(10000); + } + cmd = ATA_INL(ctlr->r_res2, ATA_AHCI_P_SIG + offset); + if (bootverbose) + device_printf(ch->dev, "Port Signature: %08x\n", cmd); + switch (cmd) { case 0xeb140101: ch->devices = ATA_ATAPI_MASTER; device_printf(ch->dev, "SATA ATAPI devices not supported yet\n"); @@ -732,6 +740,7 @@ ata_ahci_reset(device_t dev) device_printf(ch->dev, "Portmultipliers not supported yet\n"); ch->devices = 0; break; + case 0xc33c0101: case 0x00000101: ch->devices = ATA_ATA_MASTER; break; --------------040000040506080405090502--