From owner-freebsd-arm@freebsd.org Tue Jun 14 16:57:32 2016 Return-Path: Delivered-To: freebsd-arm@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 C744EB726DD for ; Tue, 14 Jun 2016 16:57:32 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from kif.fubar.geek.nz (kif.fubar.geek.nz [178.62.119.249]) by mx1.freebsd.org (Postfix) with ESMTP id 982122B7F for ; Tue, 14 Jun 2016 16:57:31 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from zapp (global-5-142.nat-2.net.cam.ac.uk [131.111.5.142]) by kif.fubar.geek.nz (Postfix) with ESMTPSA id A2437D7A17; Tue, 14 Jun 2016 16:57:01 +0000 (UTC) Date: Tue, 14 Jun 2016 17:57:00 +0100 From: Andrew Turner To: Guy Yur Cc: freebsd-arm Subject: Re: ODROID C1+ doesn't finish booting on 11-CURRENT after r301062 Message-ID: <20160614175700.19bdf896@zapp> In-Reply-To: References: X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2016 16:57:32 -0000 This should be fixed in r301890. Andrew On Sat, 11 Jun 2016 15:56:09 +0300 Guy Yur wrote: > Hi, > > My ODROID C1+ gets stuck during boot starting with r301062 > (still gets stuck with r301778). > > Sometimes there are continuous prints of > "mmcsd0: Error indicated: 1 Timeout". > When there are no mmcsd timeouts, it still doesn't get to > the login prompt with last print being the NIC bringup. > > Adding the bellow print code to gic_bind() mask loop, > I see arm_gic_map[cpu] is 0 when setting one of the IRQs. > > for (mask = 0, cpu = 0; cpu < end; cpu++) > if (CPU_ISSET(cpu, cpus)) { > mask |= arm_gic_map[cpu]; > if (arm_gic_map[cpu] != 1 << cpu) > device_printf(sc->gic_dev, > "irq = %u, cpu = %u, arm_gic_map[cpu] = 0x%08x\n", > irq, cpu, arm_gic_map[cpu]); > } > > # dmesg | grep -B1 arm_gic_map > Release APs > gic0: irq = 32, cpu = 1, arm_gic_map[cpu] = 0x00000000 > > # dmesg | grep -B1 arm_gic_map > Release APs > gic0: irq = 35, cpu = 2, arm_gic_map[cpu] = 0x00000000 > > > If I add prints to the end of gic_bind() the board boots fine. > (Probably because of the delay added by the prints) > > Example: > device_printf(sc->gic_dev, "irq = %u, mask = 0x%08x\n", irq, mask); > return (0); > > # dmesg | grep -e "gic0: pn" -e "gic0: irq" -e "Release APs" > gic0: pn 0x390, arch 0x1, rev 0x1, implementer 0x43b irqs 256 > gic0: irq = 32, mask = 0x00000001 > gic0: irq = 42, mask = 0x00000001 > gic0: irq = 122, mask = 0x00000001 > gic0: irq = 58, mask = 0x00000001 > gic0: irq = 107, mask = 0x00000001 > gic0: irq = 125, mask = 0x00000001 > gic0: irq = 60, mask = 0x00000001 > gic0: irq = 110, mask = 0x00000001 > gic0: irq = 62, mask = 0x00000001 > gic0: irq = 63, mask = 0x00000001 > gic0: irq = 40, mask = 0x00000001 > gic0: irq = 35, mask = 0x00000001 > Release APs > gic0: irq = 32, mask = 0x00000002 > gic0: irq = 35, mask = 0x00000004 > gic0: irq = 40, mask = 0x00000008 > gic0: irq = 42, mask = 0x00000001 > gic0: irq = 58, mask = 0x00000002 > gic0: irq = 60, mask = 0x00000004 > gic0: irq = 62, mask = 0x00000008 > gic0: irq = 63, mask = 0x00000001 > gic0: irq = 107, mask = 0x00000002 > gic0: irq = 110, mask = 0x00000004 > gic0: irq = 122, mask = 0x00000008 > gic0: irq = 125, mask = 0x00000001 > > > Thanks, > Guy > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >