Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Mar 2022 16:51:50 -0800
From:      Eric Joyner <erj@freebsd.org>
To:        Franco Fichtner <franco@opnsense.org>
Cc:        Mark Johnston <markj@freebsd.org>, freebsd-net <freebsd-net@freebsd.org>
Subject:   Re: debugnet_any_ifnet_update: Bad dn_init result
Message-ID:  <CA%2Bb0zg9kuoPpggT_Mii3L2QagtZAJb2d=zCXCVdQ3NntoTze9A@mail.gmail.com>
In-Reply-To: <304F739C-914D-4675-A60F-80C539830F0C@opnsense.org>
References:  <EAE6EFB2-CB72-4C32-B56A-9ABDA78F597C@opnsense.org> <YhzhgWA%2B571cfAxa@nuc> <304F739C-914D-4675-A60F-80C539830F0C@opnsense.org>

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

[-- Attachment #1 --]
On Mon, Feb 28, 2022 at 7:01 AM Franco Fichtner <franco@opnsense.org> wrote:

> Hi Mark,
>
> On 28. Feb 2022, at 15:51, Mark Johnston <markj@freebsd.org> wrote:
>
> Do you have any idea what triggers the message in the first place?  I
> haven't seen it on my igb-using systems.
>
>
> No but I have hardware here that does this. Short dmesg scan:
>
> # dmesg | grep igb2
> igb2: <Intel(R) I210 Flashless (Copper)> port 0x4000-0x401f mem
> 0xf7d00000-0xf7d1ffff,0xf7d20000-0xf7d23fff irq 36 at device 0.0 on pci3
> igb2: NVM V0.6 imgtype6
> igb2: Using 1024 TX descriptors and 1024 RX descriptors
> igb2: Using 4 RX queues 4 TX queues
> igb2: Using MSI-X interrupts with 5 vectors
> igb2: Ethernet address: f4:90:ea:00:2d:9d
> igb2: netmap queues/slots: TX 4/1024, RX 4/1024
> debugnet_any_ifnet_update: Bad dn_init result from igb2 (ifp
> 0xfffff800035ea000), ignoring.
>
> Context for dn_init messages:
>
> # dmesg | grep -C1 dn_init
> igb0: link state changed to UP
> debugnet_any_ifnet_update: Bad dn_init result from igb0 (ifp
> 0xfffff80003752800), ignoring.
> igb1: link state changed to UP
> debugnet_any_ifnet_update: Bad dn_init result from igb1 (ifp
> 0xfffff800035e8800), ignoring.
> intsmb0: <AMD FCH SMBus Controller> at device 20.0 on pci0
> --
> amdtemp0: <AMD CPU On-Die Thermal Sensors> on hostb5
> debugnet_any_ifnet_update: Bad dn_init result from igb2 (ifp
> 0xfffff800035ea000), ignoring.
> lagg0: link state changed to DOWN
>
> It appears this happens on all interfaces that get configured during init.
>
> The device has a fourth device that doesn't appear to have this issue:
>
> # dmesg | grep igb3
> igb3: <Intel(R) I210 Flashless (Copper)> port 0x6000-0x601f mem
> 0xf7e00000-0xf7e1ffff,0xf7e20000-0xf7e23fff irq 40 at device 0.0 on pci4
> igb3: NVM V0.6 imgtype6
> igb3: Using 1024 TX descriptors and 1024 RX descriptors
> igb3: Using 4 RX queues 4 TX queues
> igb3: Using MSI-X interrupts with 5 vectors
> igb3: Ethernet address: f4:90:ea:00:2d:9e
> igb3: netmap queues/slots: TX 4/1024, RX 4/1024
> vlan1: changing name to 'igb3_vlan43'
> igb3: promiscuous mode enabled
>
> Can also share full dmesg if you want or deliver other info.
>
>
> Cheers,
> Franco
>

I'm all for removing that printf(). What are you supposed to do about a
"Bad dn_init result from ####", and what's the problem if it's ignored?

- Eric

[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr">On Mon, Feb 28, 2022 at 7:01 AM Franco Fichtner &lt;<a href="mailto:franco@opnsense.org">franco@opnsense.org</a>&gt; wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi Mark,<div><div><br><blockquote type="cite"><div>On 28. Feb 2022, at 15:51, Mark Johnston &lt;<a href="mailto:markj@freebsd.org" target="_blank">markj@freebsd.org</a>&gt; wrote:</div><div><div><br>Do you have any idea what triggers the message in the first place?  I<br>haven&#39;t seen it on my igb-using systems.<br></div></div></blockquote></div><br></div><div>No but I have hardware here that does this. Short dmesg scan:</div><div><br></div><div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Source Code Pro&quot;"><span style="font-variant-ligatures:no-common-ligatures"># dmesg | grep igb2</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Source Code Pro&quot;"><span style="font-variant-ligatures:no-common-ligatures">igb2: &lt;Intel(R) I210 Flashless (Copper)&gt; port 0x4000-0x401f mem 0xf7d00000-0xf7d1ffff,0xf7d20000-0xf7d23fff irq 36 at device 0.0 on pci3</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Source Code Pro&quot;"><span style="font-variant-ligatures:no-common-ligatures">igb2: NVM V0.6 imgtype6</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Source Code Pro&quot;"><span style="font-variant-ligatures:no-common-ligatures">igb2: Using 1024 TX descriptors and 1024 RX descriptors</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Source Code Pro&quot;"><span style="font-variant-ligatures:no-common-ligatures">igb2: Using 4 RX queues 4 TX queues</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Source Code Pro&quot;"><span style="font-variant-ligatures:no-common-ligatures">igb2: Using MSI-X interrupts with 5 vectors</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Source Code Pro&quot;"><span style="font-variant-ligatures:no-common-ligatures">igb2: Ethernet address: f4:90:ea:00:2d:9d</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Source Code Pro&quot;"><span style="font-variant-ligatures:no-common-ligatures">igb2: netmap queues/slots: TX 4/1024, RX 4/1024</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Source Code Pro&quot;"><span style="font-variant-ligatures:no-common-ligatures">debugnet_any_ifnet_update: Bad dn_init result from igb2 (ifp 0xfffff800035ea000), ignoring.</span></div></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Source Code Pro&quot;"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Source Code Pro&quot;">Context for dn_init messages:</div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Source Code Pro&quot;"><br></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Source Code Pro&quot;"><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"># dmesg | grep -C1 dn_init</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">igb0: link state changed to UP</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">debugnet_any_ifnet_update: Bad dn_init result from igb0 (ifp 0xfffff80003752800), ignoring.</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">igb1: link state changed to UP</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">debugnet_any_ifnet_update: Bad dn_init result from igb1 (ifp 0xfffff800035e8800), ignoring.</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">intsmb0: &lt;AMD FCH SMBus Controller&gt; at device 20.0 on pci0</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">--</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">amdtemp0: &lt;AMD CPU On-Die Thermal Sensors&gt; on hostb5</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">debugnet_any_ifnet_update: Bad dn_init result from igb2 (ifp 0xfffff800035ea000), ignoring.</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">lagg0: link state changed to DOWN</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">It appears this happens on all interfaces that get configured during init.</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">The device has a fourth device that doesn&#39;t appear to have this issue:</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"># dmesg | grep igb3</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">igb3: &lt;Intel(R) I210 Flashless (Copper)&gt; port 0x6000-0x601f mem 0xf7e00000-0xf7e1ffff,0xf7e20000-0xf7e23fff irq 40 at device 0.0 on pci4</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">igb3: NVM V0.6 imgtype6</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">igb3: Using 1024 TX descriptors and 1024 RX descriptors</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">igb3: Using 4 RX queues 4 TX queues</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">igb3: Using MSI-X interrupts with 5 vectors</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">igb3: Ethernet address: f4:90:ea:00:2d:9e</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">igb3: netmap queues/slots: TX 4/1024, RX 4/1024</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">vlan1: changing name to &#39;igb3_vlan43&#39;</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">igb3: promiscuous mode enabled</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">Can also share full dmesg if you want or deliver other info.</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">Cheers,</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">Franco</span></div></span></div></div></div></blockquote><div><br></div>I&#39;m all for removing that printf(). What are you supposed to do about a &quot;Bad dn_init result from ####&quot;, and what&#39;s the problem if it&#39;s ignored?<div><br></div><div>- Eric </div></div></div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bb0zg9kuoPpggT_Mii3L2QagtZAJb2d=zCXCVdQ3NntoTze9A>