From owner-freebsd-current@FreeBSD.ORG Tue Jun 14 13:27:15 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 A7BDF106564A for ; Tue, 14 Jun 2011 13:27:15 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2CBC18FC13 for ; Tue, 14 Jun 2011 13:27:14 +0000 (UTC) Received: by fxm11 with SMTP id 11so5475455fxm.13 for ; Tue, 14 Jun 2011 06:27:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=5J5OkUtUHfrgwiaPhWSVE9OGHtfTR0UE6qw7gaJHF4o=; b=eEto3wB7jxJmEWvMO1XkBTf3XxrVBJGjeGuhwhlu9xuUE7u3CK0hn9EueMXXjyodqv VHhIe5KW09lXXAT0JZEUu+bCsVV9KNkwPkwvztQH60ofqJESJF5ApF5lf1O0vARXn4G/ TOPItLN5tFknYdcp5bn7djUaTZom03ua53VEw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=L9NL3KJDFEnQOLuHS4lMN6W9PIcLRa4TKMpDBRi4csS73JF41ByuNFgWGxR1VDMtte f21eW5Dc909RK+n2TMF1LRIlP9mKFdxHmEBL0G+wORuQNyWcRHxMQGu+55H33UiZ5GSl pKq6R5iHYX8GFrRSCVM9rTcEng2APPmh50Ob0= Received: by 10.223.48.139 with SMTP id r11mr6796326faf.63.1308058034001; Tue, 14 Jun 2011 06:27:14 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id b25sm2726998fab.28.2011.06.14.06.27.12 (version=SSLv3 cipher=OTHER); Tue, 14 Jun 2011 06:27:13 -0700 (PDT) Sender: Alexander Motin Message-ID: <4DF76176.7030207@FreeBSD.org> Date: Tue, 14 Jun 2011 16:26:14 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Rick van der Zwet References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD-Current Subject: Re: ATA_PERIODIC_POLL on ATA_I82801HBM_S1 causes lockups 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, 14 Jun 2011 13:27:15 -0000 Hi. Rick van der Zwet wrote: > The ICH8M found in the MacBookPro4,1 has an known issue [1] which > locks up when enabling the periodic poll using sidpr (introduced a > ``little'' while ago in r214016), making it impossible to boot. > > Attached patch disables the polling and thus fixes the issue. > > Br. /Rick > [1] http://www.spinics.net/lists/linux-ide/msg23487.html Thank you for reminder, but your patch is not exactly right. Could you test this one: Index: ata-intel.c =================================================================== --- ata-intel.c (revision 223019) +++ ata-intel.c (working copy) @@ -288,7 +288,9 @@ ATA_OUTL(ctlr->r_res2, 0x0C, ATA_INL(ctlr->r_res2, 0x0C) | 0xf); } - } else { + /* Skip BAR(5) on ICH8M Apples, system locks up on access. */ + } else if (ctlr->chip->chipid != ATA_I82801HBM_S1 || + pci_get_subvendor(dev) != 0x106b) { ctlr->r_type2 = SYS_RES_IOPORT; ctlr->r_rid2 = PCIR_BAR(5); ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2, -- Alexander Motin