From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 26 13:59:06 2014 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7BA1D170; Fri, 26 Sep 2014 13:59:06 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B271E6C; Fri, 26 Sep 2014 13:59:05 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1XXW35-0006VN-8G; Fri, 26 Sep 2014 13:59:04 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id s8QDx2JU005485; Fri, 26 Sep 2014 07:59:02 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+MdRM3i6ybimFyBtngM1LE X-Authentication-Warning: paranoia.hippie.lan: Host revolution.hippie.lan [172.22.42.240] claimed to be [172.22.42.240] Subject: Re: Boot failure with r272146 From: Ian Lepore To: Justin Hibbits In-Reply-To: <20140925204052.6f4c1d60@zhabar.attlocal.net> References: <20140925204052.6f4c1d60@zhabar.attlocal.net> Content-Type: multipart/mixed; boundary="=-CpXzZj/3atU4iGQ0CvjO" Date: Fri, 26 Sep 2014 07:59:01 -0600 Message-ID: <1411739941.66615.257.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: FreeBSD Current , FreeBSD PowerPC ML X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2014 13:59:06 -0000 --=-CpXzZj/3atU4iGQ0CvjO Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Thu, 2014-09-25 at 20:40 -0700, Justin Hibbits wrote: > With r272146 my SATA controller fails to attach, preventing the kernel > from mounting root. I've attached a log of as much as dconschat would > allow. The relevant portion is pcib10: > > atapci0: mem 0xfa402000-0xfa403fff > at device 12.0 on pci10 pcib1: failed to reserve resource for pcib10 > pcib10: failed to allocate initial I/O port window (0-0xffffffff,0x10) > atapci0: 0x10 bytes of rid 0x20 res 4 failed (0, 0xffffffffffffffff). > atapci0: unable to map interrupt > device_attach: atapci0 attach returned 6 > > pcib10: allocated memory range (0xfa400000-0xfa400fff) for rid 10 of > pci1:3:14:0 atapci0: mem > 0xfa402000-0xfa403fff at device 12.0 on pci10 pcib1: failed to reserve > resource for pcib10 pcib10: failed to allocate initial I/O port window > (0-0xffffffff,0x10) atapci0: 0x10 bytes of rid 0x20 res 4 failed (0, > 0xffffffffffffffff). atapci0: unable to map interrupt > device_attach: atapci0 attach returned 6 > ata0: mem 0xfa404000-0xfa407fff at device > 13.0 on pci10 ofw_pci mapdev: start fa404000, len 16384 > ata0: unable to allocate interrupt > device_attach: ata0 attach returned 6 > > > It works fine with r271697 kernel (latest I have booting). I haven't > yet tried bisecting. > > Hardware is a PowerMac G5 (last generation). > > - Justin Ooops, I think a paste-o in my r272109 caused it. See if this fixes it. -- Ian --=-CpXzZj/3atU4iGQ0CvjO Content-Disposition: inline; filename="ofw_pcibus_fix.diff" Content-Type: text/x-patch; name="ofw_pcibus_fix.diff"; charset="us-ascii" Content-Transfer-Encoding: 7bit Index: sys/powerpc/ofw/ofw_pcibus.c =================================================================== --- sys/powerpc/ofw/ofw_pcibus.c (revision 272109) +++ sys/powerpc/ofw/ofw_pcibus.c (working copy) @@ -201,7 +201,7 @@ ofw_pcibus_enum_devtree(device_t dev, u_int domain * resource list. */ if (dinfo->opd_dinfo.cfg.intpin == 0) - ofw_bus_intr_to_rl(dev, node, &dinfo->opd_dinfo.resources); + ofw_bus_intr_to_rl(dev, child, &dinfo->opd_dinfo.resources); } } --=-CpXzZj/3atU4iGQ0CvjO--