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
--0000000000000cbff605d9aa6551 Content-Type: text/plain; charset="UTF-8" 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 --0000000000000cbff605d9aa6551 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr">On Mon, Feb 28, 2022 at 7:01 AM Franco Fi= chtner <<a href=3D"mailto:franco@opnsense.org">franco@opnsense.org</a>&g= t; wrote:<br></div><div class=3D"gmail_quote"><blockquote class=3D"gmail_qu= ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20= 4);padding-left:1ex"><div style=3D"overflow-wrap: break-word;">Hi Mark,<div= ><div><br><blockquote type=3D"cite"><div>On 28. Feb 2022, at 15:51, Mark Jo= hnston <<a href=3D"mailto:markj@freebsd.org" target=3D"_blank">markj@fre= ebsd.org</a>> wrote:</div><div><div><br>Do you have any idea what trigge= rs the message in the first place? =C2=A0I<br>haven't seen it on my igb= -using systems.<br></div></div></blockquote></div><br></div><div>No but I h= ave hardware here that does this. Short dmesg scan:</div><div><br></div><di= v><div style=3D"margin:0px;font-stretch:normal;line-height:normal;font-fami= ly:"Source Code Pro""><span style=3D"font-variant-ligatures:no-co= mmon-ligatures"># dmesg | grep igb2</span></div><div style=3D"margin:0px;fo= nt-stretch:normal;line-height:normal;font-family:"Source Code Pro"= ;"><span style=3D"font-variant-ligatures:no-common-ligatures">igb2: <Int= el(R) I210 Flashless (Copper)> port 0x4000-0x401f mem 0xf7d00000-0xf7d1f= fff,0xf7d20000-0xf7d23fff irq 36 at device 0.0 on pci3</span></div><div sty= le=3D"margin:0px;font-stretch:normal;line-height:normal;font-family:"S= ource Code Pro""><span style=3D"font-variant-ligatures:no-common-ligat= ures">igb2: NVM V0.6 imgtype6</span></div><div style=3D"margin:0px;font-str= etch:normal;line-height:normal;font-family:"Source Code Pro""><sp= an style=3D"font-variant-ligatures:no-common-ligatures">igb2: Using 1024 TX= descriptors and 1024 RX descriptors</span></div><div style=3D"margin:0px;f= ont-stretch:normal;line-height:normal;font-family:"Source Code Pro&quo= t;"><span style=3D"font-variant-ligatures:no-common-ligatures">igb2: Using = 4 RX queues 4 TX queues</span></div><div style=3D"margin:0px;font-stretch:n= ormal;line-height:normal;font-family:"Source Code Pro""><span sty= le=3D"font-variant-ligatures:no-common-ligatures">igb2: Using MSI-X interru= pts with 5 vectors</span></div><div style=3D"margin:0px;font-stretch:normal= ;line-height:normal;font-family:"Source Code Pro""><span style=3D= "font-variant-ligatures:no-common-ligatures">igb2: Ethernet address: f4:90:= ea:00:2d:9d</span></div><div style=3D"margin:0px;font-stretch:normal;line-h= eight:normal;font-family:"Source Code Pro""><span style=3D"font-v= ariant-ligatures:no-common-ligatures">igb2: netmap queues/slots: TX 4/1024,= RX 4/1024</span></div><div style=3D"margin:0px;font-stretch:normal;line-he= ight:normal;font-family:"Source Code Pro""><span style=3D"font-va= riant-ligatures:no-common-ligatures">debugnet_any_ifnet_update: Bad dn_init= result from igb2 (ifp 0xfffff800035ea000), ignoring.</span></div></div><di= v style=3D"margin:0px;font-stretch:normal;line-height:normal;font-family:&q= uot;Source Code Pro""><span style=3D"font-variant-ligatures:no-common-= ligatures"><br></span></div><div style=3D"margin:0px;font-stretch:normal;li= ne-height:normal;font-family:"Source Code Pro"">Context for dn_in= it messages:</div><div style=3D"margin:0px;font-stretch:normal;line-height:= normal;font-family:"Source Code Pro""><br></div><div style=3D"mar= gin:0px;font-stretch:normal;line-height:normal;font-family:"Source Cod= e Pro""><div style=3D"margin:0px;font-stretch:normal;line-height:norma= l"><span style=3D"font-variant-ligatures:no-common-ligatures"># dmesg | gre= p -C1 dn_init</span></div><div style=3D"margin:0px;font-stretch:normal;line= -height:normal"><span style=3D"font-variant-ligatures:no-common-ligatures">= igb0: link state changed to UP</span></div><div style=3D"margin:0px;font-st= retch:normal;line-height:normal"><span style=3D"font-variant-ligatures:no-c= ommon-ligatures">debugnet_any_ifnet_update: Bad dn_init result from igb0 (i= fp 0xfffff80003752800), ignoring.</span></div><div style=3D"margin:0px;font= -stretch:normal;line-height:normal"><span style=3D"font-variant-ligatures:n= o-common-ligatures">igb1: link state changed to UP</span></div><div style= =3D"margin:0px;font-stretch:normal;line-height:normal"><span style=3D"font-= variant-ligatures:no-common-ligatures">debugnet_any_ifnet_update: Bad dn_in= it result from igb1 (ifp 0xfffff800035e8800), ignoring.</span></div><div st= yle=3D"margin:0px;font-stretch:normal;line-height:normal"><span style=3D"fo= nt-variant-ligatures:no-common-ligatures">intsmb0: <AMD FCH SMBus Contro= ller> at device 20.0 on pci0</span></div><div style=3D"margin:0px;font-s= tretch:normal;line-height:normal"><span style=3D"font-variant-ligatures:no-= common-ligatures">--</span></div><div style=3D"margin:0px;font-stretch:norm= al;line-height:normal"><span style=3D"font-variant-ligatures:no-common-liga= tures">amdtemp0: <AMD CPU On-Die Thermal Sensors> on hostb5</span></d= iv><div style=3D"margin:0px;font-stretch:normal;line-height:normal"><span s= tyle=3D"font-variant-ligatures:no-common-ligatures">debugnet_any_ifnet_upda= te: Bad dn_init result from igb2 (ifp 0xfffff800035ea000), ignoring.</span>= </div><div style=3D"margin:0px;font-stretch:normal;line-height:normal"><spa= n style=3D"font-variant-ligatures:no-common-ligatures">lagg0: link state ch= anged to DOWN</span></div><div style=3D"margin:0px;font-stretch:normal;line= -height:normal"><span style=3D"font-variant-ligatures:no-common-ligatures">= <br></span></div><div style=3D"margin:0px;font-stretch:normal;line-height:n= ormal"><span style=3D"font-variant-ligatures:no-common-ligatures">It appear= s this happens on all interfaces that get configured during init.</span></d= iv><div style=3D"margin:0px;font-stretch:normal;line-height:normal"><span s= tyle=3D"font-variant-ligatures:no-common-ligatures"><br></span></div><div s= tyle=3D"margin:0px;font-stretch:normal;line-height:normal"><span style=3D"f= ont-variant-ligatures:no-common-ligatures">The device has a fourth device t= hat doesn't appear to have this issue:</span></div><div style=3D"margin= :0px;font-stretch:normal;line-height:normal"><span style=3D"font-variant-li= gatures:no-common-ligatures"><br></span></div><div style=3D"margin:0px;font= -stretch:normal;line-height:normal"><span style=3D"font-variant-ligatures:n= o-common-ligatures"><div style=3D"margin:0px;font-stretch:normal;line-heigh= t:normal"><span style=3D"font-variant-ligatures:no-common-ligatures"># dmes= g | grep igb3</span></div><div style=3D"margin:0px;font-stretch:normal;line= -height:normal"><span style=3D"font-variant-ligatures:no-common-ligatures">= igb3: <Intel(R) I210 Flashless (Copper)> port 0x6000-0x601f mem 0xf7e= 00000-0xf7e1ffff,0xf7e20000-0xf7e23fff irq 40 at device 0.0 on pci4</span><= /div><div style=3D"margin:0px;font-stretch:normal;line-height:normal"><span= style=3D"font-variant-ligatures:no-common-ligatures">igb3: NVM V0.6 imgtyp= e6</span></div><div style=3D"margin:0px;font-stretch:normal;line-height:nor= mal"><span style=3D"font-variant-ligatures:no-common-ligatures">igb3: Using= 1024 TX descriptors and 1024 RX descriptors</span></div><div style=3D"marg= in:0px;font-stretch:normal;line-height:normal"><span style=3D"font-variant-= ligatures:no-common-ligatures">igb3: Using 4 RX queues 4 TX queues</span></= div><div style=3D"margin:0px;font-stretch:normal;line-height:normal"><span = style=3D"font-variant-ligatures:no-common-ligatures">igb3: Using MSI-X inte= rrupts with 5 vectors</span></div><div style=3D"margin:0px;font-stretch:nor= mal;line-height:normal"><span style=3D"font-variant-ligatures:no-common-lig= atures">igb3: Ethernet address: f4:90:ea:00:2d:9e</span></div><div style=3D= "margin:0px;font-stretch:normal;line-height:normal"><span style=3D"font-var= iant-ligatures:no-common-ligatures">igb3: netmap queues/slots: TX 4/1024, R= X 4/1024</span></div><div style=3D"margin:0px;font-stretch:normal;line-heig= ht:normal"><span style=3D"font-variant-ligatures:no-common-ligatures">vlan1= : changing name to 'igb3_vlan43'</span></div><div style=3D"margin:0= px;font-stretch:normal;line-height:normal"><span style=3D"font-variant-liga= tures:no-common-ligatures">igb3: promiscuous mode enabled</span></div><div = style=3D"margin:0px;font-stretch:normal;line-height:normal"><span style=3D"= font-variant-ligatures:no-common-ligatures"><br></span></div><div style=3D"= margin:0px;font-stretch:normal;line-height:normal"><span style=3D"font-vari= ant-ligatures:no-common-ligatures">Can also share full dmesg if you want or= deliver other info.</span></div><div style=3D"margin:0px;font-stretch:norm= al;line-height:normal"><span style=3D"font-variant-ligatures:no-common-liga= tures"><br></span></div><div style=3D"margin:0px;font-stretch:normal;line-h= eight:normal"><span style=3D"font-variant-ligatures:no-common-ligatures"><b= r></span></div><div style=3D"margin:0px;font-stretch:normal;line-height:nor= mal"><span style=3D"font-variant-ligatures:no-common-ligatures">Cheers,</sp= an></div><div style=3D"margin:0px;font-stretch:normal;line-height:normal"><= span style=3D"font-variant-ligatures:no-common-ligatures">Franco</span></di= v></span></div></div></div></blockquote><div><br></div>I'm all for remo= ving that printf(). What are you supposed to do about a "Bad dn_init r= esult from ####", and what's the problem if it's ignored?<div>= <br></div><div>- Eric=C2=A0</div></div></div> --0000000000000cbff605d9aa6551--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bb0zg9kuoPpggT_Mii3L2QagtZAJb2d=zCXCVdQ3NntoTze9A>