From owner-freebsd-current@FreeBSD.ORG Tue Mar 3 03:36:40 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3B54106564A for ; Tue, 3 Mar 2009 03:36:40 +0000 (UTC) (envelope-from elliot@schlegelmilch.org) Received: from a.r00t-servers.net (a.r00t-servers.net [206.223.224.18]) by mx1.freebsd.org (Postfix) with ESMTP id 7D1488FC12 for ; Tue, 3 Mar 2009 03:36:40 +0000 (UTC) (envelope-from elliot@schlegelmilch.org) Received: by a.r00t-servers.net (Postfix, from userid 1002) id 6C3F933C3F; Mon, 2 Mar 2009 22:39:35 -0500 (EST) Date: Mon, 2 Mar 2009 22:39:35 -0500 From: Elliot Schlegelmilch To: Alexander Motin Message-ID: <20090303033935.GA1437@schlegelmilch.org> References: <1235602472.00079680.1235592003@10.7.7.3> <1235658185.00079898.1235647801@10.7.7.3> <1235863381.00080963.1235851802@10.7.7.3> <49AAB0A6.3040304@mavhome.dp.ua> <20090302190759.GA95194@schlegelmilch.org> <49AC36FF.2080509@mavhome.dp.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49AC36FF.2080509@mavhome.dp.ua> User-Agent: Mutt/1.4.2.3i X-Mailman-Approved-At: Tue, 03 Mar 2009 04:04:06 +0000 Cc: FreeBSD-Current Subject: Re: SATA disks suddenly stop working X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2009 03:36:40 -0000 On Mon, Mar 02, 2009 at 09:43:59PM +0200, Alexander Motin wrote: > >>>The last known kernel which works was Dec 17, but trying to rebuild a > >>>kernel from that date doesn't see the SATA disks either (as the kernel > >>>which sees the disks zfs doesn't work.) Or perhaps I'm csup'ing > >>>incorrectly. > >>Haven't you tried to just touched reset sequence on 15. > > > >Do you mean a kernel on Feb 15? Was there more that happened between > >15th and the 22nd or so? > > You have made something unreadable cutting and gluing two my sentences. > :) Yes, there many happens between Feb 15 and 22. > > >>When you succeed to boot, can you try to make some experiments against > >>HEAD, may be some of them fix the problem: > >>1) comment that line inside ata_ahci_issue_cmd(): > >> ATA_OUTL(ctlr->r_res2, ATA_AHCI_P_FBS + offset, (port << 8) | > >>0x00000001); > >> > >>2) comment these lines inside ata_sata_phy_reset(): > >> if ((ATA_IDX_INL(ch, ATA_SCONTROL) & ATA_SC_DET_MASK) == > >>ATA_SC_DET_IDLE) > >> return ata_sata_connect(ch); > >> > >>3) comment first that line inside ata_ahci_softreset(): > >> return (-1); > >> > >>Thanks. > >> > > > >I'll try these patches and report back right after I freshen up my > >backups. :) > > First one is already committed to the HEAD. It may be related to your > problem. FreeBSD radon.periodic 8.0-CURRENT FreeBSD 8.0-CURRENT #2 r189291: Mon Mar 2 17:12:15 PST 2009 root@radon.periodic:/usr/obj/usr/src/sys/GENERIC amd64 HEAD works. I didn't try the other patches, but I could. Thanks.