From owner-freebsd-arm@freebsd.org Mon Mar 19 22:53:28 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8CA57F511C5 for ; Mon, 19 Mar 2018 22:53:28 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1a.eu.mailhop.org (outbound1a.eu.mailhop.org [52.58.109.202]) (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 19D056A825 for ; Mon, 19 Mar 2018 22:53:27 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 5269c53d-2bc8-11e8-91c6-33ffc249f3e8 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound1.eu.mailhop.org (Halon) with ESMTPSA id 5269c53d-2bc8-11e8-91c6-33ffc249f3e8; Mon, 19 Mar 2018 22:53:22 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id w2JMrGGN038294; Mon, 19 Mar 2018 16:53:16 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1521499996.99081.109.camel@freebsd.org> Subject: Re: 15-march.img hangs at boot on BB-Green From: Ian Lepore To: Nicola Mingotti , freebsd-arm@freebsd.org, Udit agarwal Cc: Gleb Smirnoff Date: Mon, 19 Mar 2018 16:53:16 -0600 In-Reply-To: <869c43be-b380-cf06-1b50-cff933d20abe@gmail.com> References: <869c43be-b380-cf06-1b50-cff933d20abe@gmail.com> 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.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2018 22:53:28 -0000 On Mon, 2018-03-19 at 10:53 +0100, Nicola Mingotti wrote: > Hi, > > With latest 15-March img relase I am able to boot on BeagleBone Green > but still, the boot precess hangs at this point, it seems Ethernet related. > > ------------------------ last messages I see on serial console  > ---------------------- > cpswss0: <3-port Switch Ethernet Subsystem> mem  > 0x4a100000-0x4a1007ff,0x4a101200-0x4a1012ff irq 38,39,40,41 on simplebus0 > cpswss0: CPSW SS Version 1.12 (0) > cpswss0: Initial queue size TX=128 RX=384 > cpswss0: Unable to fill RX queue > cpsw0: on cpswss0 > -------------------------------------------------------------------------------------------------- > > Bye > Nicola Today I finally found some time to do some testing with this. It appears to have broken with r328916 on Feb 6. From then through r328981 the kernel page faults early in boot. Starting with r328982 the fault is fixed but we get this new problem with the "Unable to fill RX queue" followed by a hang. The "unable to fill" is caused by an m_getcl(M_NOWAIT) returning NULL. The hang is caused by a malloc(M_WAITOK) in if_alloc() hanging forever. The only other useful info I have so far is that this only happens with the GENERIC kernel. If you build a kernel using the BEAGLEBONE config it boots normally. I don't really know what to do next to debug further. I can insert a kdb_enter() right before the if_alloc() call that hangs, but I don't know what to look for in the debugger. -- Ian