From owner-freebsd-current@freebsd.org Tue Jul 11 17:13:26 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 19EAEDA704A for ; Tue, 11 Jul 2017 17:13:26 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id EECA67DD0A for ; Tue, 11 Jul 2017 17:13:25 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: by mailman.ysv.freebsd.org (Postfix) id E252ADA7049; Tue, 11 Jul 2017 17:13:25 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E1EEADA7048 for ; Tue, 11 Jul 2017 17:13:25 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from mail.protected-networks.net (mail.protected-networks.net [IPv6:2001:470:8d59:1::8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protected-networks.net", Issuer "Protected Networks CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B2ABF7DD03 for ; Tue, 11 Jul 2017 17:13:25 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from michaels-mbp.cambridge.ibm.com (bi-03pt1.bluebird.ibm.com [129.42.208.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: imb@mail.protected-networks.net) by mail.protected-networks.net (Postfix) with ESMTPSA id C90E537F8E; Tue, 11 Jul 2017 13:13:22 -0400 (EDT) Subject: Re: Panic on boot after upgrade from r320827 -> r320869 To: Warner Losh Cc: FreeBSD Current References: <20170710115109.GD1177@albert.catwhisker.org> <20170711121311.GI1177@albert.catwhisker.org> From: Michael Butler Message-ID: <954e8793-7e17-8ae4-8449-39c742e0d432@protected-networks.net> Date: Tue, 11 Jul 2017 13:13:21 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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, 11 Jul 2017 17:13:26 -0000 On 7/11/17 1:09 PM, Warner Losh wrote: >> On a machine with SDHCI, a clean rebuild (after "r -rf /usr/obj") refuses >> to find /dev/ada0 :-( >> > > Take sdhci out of the kernel and try again. If that works, it tells us one > thing (need to troubleshoot sdhci stuff more). If not it tells us another > (need to troubleshoot CAM more), do we get errors with the ATA_IDENTIFY > command? Does it try multiple times per AHCI port? What AHCI device do you > have? You may need to scroll back with the screen-lock / pageup keys to see > these messages. > > Plus we know we have at least one bug in meta-mode rebuilding since not > everything is being rebuilt that should be across this change. > > The change itself didn't change CAM except for copying one set of data it > didn't used to, into a structure whose size grew (which is why we're seeing > crashes / failures for a 'cross-threaded' rebuild). There's nothing else > that changed (especially after I removed the bogus debug printfs) that I > can see in auditing the change. > > I was really hoping David's machine would exhibit the behavior since we're > co-workers and have a shared infrastructure for debugging we can leverage. I'll try this tonight when I'm back at home. The laptop concerned uses the ICH-7M part in "legacy mode" so it doesn't do AHCI at all :-( imb