Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Mar 2018 16:53:16 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        Nicola Mingotti <nmingotti@gmail.com>, freebsd-arm@freebsd.org, Udit agarwal <dev.madaari@gmail.com>
Cc:        Gleb Smirnoff <glebius@FreeBSD.org>
Subject:   Re: 15-march.img hangs at boot on BB-Green
Message-ID:  <1521499996.99081.109.camel@freebsd.org>
In-Reply-To: <869c43be-b380-cf06-1b50-cff933d20abe@gmail.com>
References:  <869c43be-b380-cf06-1b50-cff933d20abe@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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