Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Sep 2014 07:59:01 -0600
From:      Ian Lepore <ian@FreeBSD.org>
To:        Justin Hibbits <chmeeedalf@gmail.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>
Subject:   Re: Boot failure with r272146
Message-ID:  <1411739941.66615.257.camel@revolution.hippie.lan>
In-Reply-To: <20140925204052.6f4c1d60@zhabar.attlocal.net>
References:  <20140925204052.6f4c1d60@zhabar.attlocal.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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: <ServerWorks K2 SATA150 controller> 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: <ServerWorks K2 SATA150 controller> 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: <Shasta Kauai ATA Controller> 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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1411739941.66615.257.camel>