From owner-freebsd-current@FreeBSD.ORG Tue Mar 8 17:22:41 2011 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 3CEEB1065673 for ; Tue, 8 Mar 2011 17:22:41 +0000 (UTC) (envelope-from rickvanderzwet@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id E4F0E8FC08 for ; Tue, 8 Mar 2011 17:22:40 +0000 (UTC) Received: by vxc34 with SMTP id 34so5721668vxc.13 for ; Tue, 08 Mar 2011 09:22:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=nsPTctx2wjHX0P64ABVpNdt6iiplts/zkCMThAIEQTk=; b=NY0OYyUxUhS0FD73M1T3R0ubvrwrswqYzHTbau8MK21DPNnmtf2VF1GzrLh4W+q4OE VZiqIAxJuY9WF/V2wM7/b3b0UmxP2Q4jqQqr5AxNPTYbjwqJh1/JXtYGb/faXtRhZ7Uk bVAschePuFU4rXxmGNiU5jhojUS2TIwhNgW/8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=Qp4r77f9v+BhqAQhQTbKnlTLHSczARZxRbHJGzs9D28xOUUDn+eW+6jnRKuYgcjURN WEkwiY0gOTQKP4zLcJimejjYRBHKF8dVXD9mu4UCmlQyu+jGihwFGcLY55JP4SwuUxjy ACPUkwCqPOBFkM2pS5PJVi0wIUXovktHAAnyA= MIME-Version: 1.0 Received: by 10.220.193.193 with SMTP id dv1mr1482517vcb.97.1299603468546; Tue, 08 Mar 2011 08:57:48 -0800 (PST) Sender: rickvanderzwet@gmail.com Received: by 10.220.112.206 with HTTP; Tue, 8 Mar 2011 08:57:48 -0800 (PST) Date: Tue, 8 Mar 2011 17:57:48 +0100 X-Google-Sender-Auth: G7XmWVtd7aDNWTilc0ofyKmX8jI Message-ID: From: Rick van der Zwet To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: MacbookPro4,1, atapci/ata stall during boot 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, 08 Mar 2011 17:22:41 -0000 After 8.1-RELEASE was running fine, upgrading to 8.2-RELEASE caused to stalls completely without crash during boot. I now went for a fresh -CURRENT which still stalls/freezes completely without crashing with last messages (captured via firewire/dcons): atapci0: port 0x8108-0x810f,0x811c-0x811f,0x8100-0x8107,0x8118-0x811b,0x80e0-0x80ef irq 21 at device 31.1 on pci0 ata2: on atapci0 ata2: reset tp1 mask=03 ostat0=50 ostat1=00 ata2: stat0=0x00 err=0x01 lsb=0x14 msb=0xeb ata2: stat1=0x00 err=0x00 lsb=0x00 msb=0x00 ata2: reset tp2 stat0=00 stat1=00 devices=0x10000 atapci1: port 0x80f8-0x80ff,0x8114-0x8117,0x80f0-0x80f7,0x8110-0x8113,0x8020-0x802f,0x4000-0x400f irq 18 at device 31.2 on pci0 ata3: on atapci1 My MacbookPro4,1 is using (S)ATA controller chipset : atapci0@pci0:0:31:1: class=0x01018f card=0x00a3106b chip=0x28508086 rev=0x04 hdr=0x00 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) Ultra ATA Storage Controllers' class = mass storage subclass = ATA atapci1@pci0:0:31:2: class=0x01018f card=0x00a3106b chip=0x28288086 rev=0x04 hdr=0x00 vendor = 'Intel Corporation' device = '82801 (ICH8M) 3 port SATA Controller' class = mass storage subclass = ATA The issue seem to be introduced in r214016 which is a fairly large commit about 'Set of legacy mode SATA enchancements'. If using the tree sys/dev/ata@214015 it boots fine: # svn up -r214015 /usr/src-head/sys/dev/ata # make -C /usr/src-head buildkernel installkernel And the next commit (which affects my chipset as well) it stops working: # svn up -r214016 /usr/src-head/sys/dev/ata # make -C /usr/src-head buildkernel installkernel Does anybody has the same SATA controller chipset (ATA_I82801HBM_S1), and is able to boot fine? Any hints on how to debug this issue much appreciated as I having quite some trouble understanding what the patch changed and how-to debug this, as it completely freezes the machine, making it impossible to get into the debugger. Br. /Rick -- http://rickvanderzwet.nl