From owner-freebsd-arm@freebsd.org Wed Aug 9 00:21:44 2017 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 02809DDA3A1 for ; Wed, 9 Aug 2017 00:21:44 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DA0237DFEE for ; Wed, 9 Aug 2017 00:21:43 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: c09ce723-7c98-11e7-bfd0-afd4446ba3af X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.ore.mailhop.org (Halon) with ESMTPSA id c09ce723-7c98-11e7-bfd0-afd4446ba3af; Wed, 09 Aug 2017 00:21:57 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v790LZxX002239 for ; Tue, 8 Aug 2017 18:21:35 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1502238095.50720.51.camel@freebsd.org> Subject: Re: [BBB] kernel panic during boot From: Ian Lepore To: freebsd-arm@freebsd.org Date: Tue, 08 Aug 2017 18:21:35 -0600 In-Reply-To: <20170808111918.GA38273@freebsd-t420.fritz.box> References: <20170808111918.GA38273@freebsd-t420.fritz.box> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Aug 2017 00:21:44 -0000 On Tue, 2017-08-08 at 13:19 +0200, Manuel Stühn wrote: > Hi, > booting a FreeBSD CURRENT r322118 on a BBB (GENERIC-NODEBUG kernel) > ends  > with a panic: > > [...] > iichb0: mem 0x44e0b000-0x44e0bfff irq 17 on  > simplebus0 > iichb0: I2C revision 4.0 FIFO size: 32 bytes > iicbus0: on iichb0 > panic: timed sleep before timers are working > cpuid = 0 > time = 1 > KDB: stack backtrace: > db_trace_self() at db_trace_self > [...] > > The complete boot log incl. backtrace is attached. > > Any ideas? It looks like we had 2 i2c rtc drivers that were misbehaving (trying to do i2c transfers before interrupts are enabled).  For now I simply removed them from the GENERIC config as a workaround (r322282).  I've ordered samples of the chips and when they arrive I'll rework the drivers to behave better. -- Ian