From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 5 11:40:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CD23C76B for ; Sat, 5 Jan 2013 11:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id AF902A2C for ; Sat, 5 Jan 2013 11:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r05Be0fU032815 for ; Sat, 5 Jan 2013 11:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r05Be0sB032811; Sat, 5 Jan 2013 11:40:00 GMT (envelope-from gnats) Resent-Date: Sat, 5 Jan 2013 11:40:00 GMT Resent-Message-Id: <201301051140.r05Be0sB032811@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "NIKA Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E6A02651 for ; Sat, 5 Jan 2013 11:30:59 +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 D73EAA12 for ; Sat, 5 Jan 2013 11:30:59 +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 r05BUxMb062281 for ; Sat, 5 Jan 2013 11:30:59 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r05BUxjK062280; Sat, 5 Jan 2013 11:30:59 GMT (envelope-from nobody) Message-Id: <201301051130.r05BUxjK062280@red.freebsd.org> Date: Sat, 5 Jan 2013 11:30:59 GMT From: "NIKA To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/175002: AHCI or ATA-ATI bug on BSD 8 and above (ATI SB600; ahci timeout; on BSD 7 - no bug) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 11:40:00 -0000 >Number: 175002 >Category: kern >Synopsis: AHCI or ATA-ATI bug on BSD 8 and above (ATI SB600; ahci timeout; on BSD 7 - no bug) >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: Sat Jan 05 11:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: NIKA >Release: 9.1 >Organization: >Environment: >Description: I get a bug when I run install program FreeBSD 9.1 on my ASUS A7U notebook (ATI RS690 chipset; ATI SB600 south bridge; Seagate SATAI harddrive; BIOS a7uas.206, if it's important). This bug have been posted already two times (first - after which I guessed to turn on Verbose option and wrote detailed dmesg, and second - because of formatting problem, no dmesg was posted). So, previous two PRs (kern/174880 and kern/174985) are about the same bug and can be closed. The bug is the following. FreeBSD 9.1 (FreeBSD 8.3 too) can not see my harddrive. The message is: "ahcich1: Timeout on slot 0 port 0". So, install program can not resume - no hard drive in the system. My BIOS does not have option to switch drive to PATA mode, so AHCI is required. At the same time, FreeBSD 7.4 can see it. With FreeBSD 7.4 is no problem. Clearly, some bug in AHCI or ATA-ATI driver appeared in 8R. I am interested to use PCBSD, but can not do it. Please, help. Below - messages from verbosed dmesg, which can relate to this bug (FreeBSD 9.1): ************************************************* * * * ahcich1: AHCI reset... ahcich1: SATA connect time=1800us status=00000113 ahcich1: AHCI reset: device found * * * ata0: reset tp1 mask=03 ostat0=50 ostat1=00 ahcich1: AHCI reset: device ready after 100ms (aprobe0:ahcich1:0:15:0): NOP. ACB: 00 00 00 00 00 00 00 00 00 00 00 00 (aprobe0:ahcich1:0:15:0): CAM status: Command timeout (aprobe0:ahcich1:0:15:0): Error 5, Retries exhausted ata0: stat0=0x00 err=0x01 lsb=0x14 msb=0xeb ata0: stat1=0x00 err=0x00 lsb=0x00 msb=0x00 ata0: reset tp2 stat0=00 stat1=00 devices=0x10000 * * * ahcich1: Timeout on slot 0 port 0 ahcich1: is 00000002 cs 00000000 ss 00000000 rs 00000001 tfd 50 serr 00000000 cmd 00042017 ahcich1: AHCI reset... ahcich1: SATA connect time=1800us status=00000113 ahcich1: AHCI reset: device found (aprobe0:ahcich1:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 00 00 00 00 00 00 (aprobe0:ahcich1:0:0:0): CAM status: Command timeout (aprobe0:ahcich1:0:0:0): Error 5, Retry was blocked * * * ahcich1: AHCI reset: device ready after 100ms * * * ************************************************* >How-To-Repeat: Try to run FreeBSD 9.1 on ASUS A7U. I can test solves on my notebook. >Fix: Patch attached with submission follows: I get a bug when I run install program FreeBSD 9.1 on my ASUS A7U notebook (ATI RS690 chipset; ATI SB600 south bridge; Seagate SATAI harddrive; BIOS a7uas.206, if it's important). This bug have been posted already two times (first - after which I guessed to turn on Verbose option and wrote detailed dmesg, and second - because of formatting problem, no dmesg was posted). So, previous two PRs (kern/174880 and kern/174985) are about the same bug and can be closed. The bug is the following. FreeBSD 9.1 (FreeBSD 8.3 too) can not see my harddrive. The message is: "ahcich1: Timeout on slot 0 port 0". So, install program can not resume - no hard drive in the system. My BIOS does not have option to switch drive to PATA mode, so AHCI is required. At the same time, FreeBSD 7.4 can see it. With FreeBSD 7.4 is no problem. Clearly, some bug in AHCI or ATA-ATI driver appeared in 8R. I am interested to use PCBSD, but can not do it. Please, help. Below - messages from verbosed dmesg, which can relate to this bug (FreeBSD 9.1): ************************************************* * * * ahcich1: AHCI reset... ahcich1: SATA connect time=1800us status=00000113 ahcich1: AHCI reset: device found * * * ata0: reset tp1 mask=03 ostat0=50 ostat1=00 ahcich1: AHCI reset: device ready after 100ms (aprobe0:ahcich1:0:15:0): NOP. ACB: 00 00 00 00 00 00 00 00 00 00 00 00 (aprobe0:ahcich1:0:15:0): CAM status: Command timeout (aprobe0:ahcich1:0:15:0): Error 5, Retries exhausted ata0: stat0=0x00 err=0x01 lsb=0x14 msb=0xeb ata0: stat1=0x00 err=0x00 lsb=0x00 msb=0x00 ata0: reset tp2 stat0=00 stat1=00 devices=0x10000 * * * ahcich1: Timeout on slot 0 port 0 ahcich1: is 00000002 cs 00000000 ss 00000000 rs 00000001 tfd 50 serr 00000000 cmd 00042017 ahcich1: AHCI reset... ahcich1: SATA connect time=1800us status=00000113 ahcich1: AHCI reset: device found (aprobe0:ahcich1:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 00 00 00 00 00 00 (aprobe0:ahcich1:0:0:0): CAM status: Command timeout (aprobe0:ahcich1:0:0:0): Error 5, Retry was blocked * * * ahcich1: AHCI reset: device ready after 100ms * * * ************************************************* >Release-Note: >Audit-Trail: >Unformatted: