Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Intel X520-DA2, kernel: CRITICAL: ECC ERROR!! Please Reboot!!

    Scheduled Pinned Locked Moved Hardware
    60 Posts 13 Posters 29.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      For those seeing this error, do the NICs actually function when they hit this error? Or do they stop passing traffic?

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • W
        wladikz
        last edited by

        Hi,

        NICs are working but some problem with MBUF reuse. i have 2 firewalls with x520-DA2 and x540-T2 cards that crash every 8 hours after MBUFs hit 100%.
        i have 512000 MBUFs defined on each system. i need to find solution for this problem ASAP.

        1 Reply Last reply Reply Quote 0
        • M
          msi
          last edited by

          Hmm, I also get this error with a X520-DA2 on an IBM box after updating to 2.1.
          I upgraded from a -RC0 around July, that was before the last ixgbe Update before shipping -RELEASE
          I have the VLAN fix as per wiki documentation.

          I'll have some chances to beat that thing a little bit and see how the MBUFs develop.
          Otherwise I'll have to presto go back to 2.1-RC0 which was rock-solid (sorry to say I wasn't able to give -RC1/2 any beating) :-\

          Update: I might give the .ko module from FreeBSD 8.3 or 8.4 a try - as workaround - since my RC0 at least shipped the version that was (almost) equivalent to what went into 8.4.

          1 Reply Last reply Reply Quote 0
          • W
            wladikz
            last edited by

            @MatSim:

            Hmm, I also get this error with a X520-DA2 on an IBM box after updating to 2.1.
            I upgraded from a -RC0 around July, that was before the last ixgbe Update before shipping -RELEASE
            I have the VLAN fix as per wiki documentation.

            I'll have some chances to beat that thing a little bit and see how the MBUFs develop.
            Otherwise I'll have to presto go back to 2.1-RC0 which was rock-solid (sorry to say I wasn't able to give -RC1/2 any beating) :-\

            Update: I might give the .ko module from FreeBSD 8.3 or 8.4 a try - as workaround - since my RC0 at least shipped the version that was (almost) equivalent to what went into 8.4.

            can you upload your .ko module? i'll try to see if the mbuf problem exists or not

            1 Reply Last reply Reply Quote 0
            • M
              msi
              last edited by

              Hi all

              While it's certainly not great to see that this issue slipped into 2.1-RELEASE I've heard from ESF crew, that they are actively working on a fix for this issue. If you want to join forces, offer them some of your support hours so they can work for this on paid basis. Anyhow, my not-so quick fiddlings on my part:

              • The plain, but old ixgbe 2.4.5 from 8.3-RELEASE works with the X520-DA2 I have here.

              • An experiment with 8.3's source tree + cherry-picks of 8.4's ixgbe paniced about at the level of boot comand disabling the VLAN filter (that was needed since RC0 for VLANs)

              You can get the modules that I tried on my box here: http://id.gymkl.ch/pfsense/ixgbe
              That said: This all is not endorsed by ESF crew or anyone else (not even myself). This may, or may not cause problems on your systems, nonetheless, if you are brave give it a try for workaround.

              
              # On the pfSense shell
              cd /boot/kernel
              fetch http://id.gymkl.ch/pfsense/ixgbe/ixgbe2.4.5-fbsd8.3-amd64.ko
              chmod 555 ixgbe2.4.5-fbsd8.3-amd64.ko
              
              

              Afterwards you add the following line to your /boot/loader.conf.local and then reboot the system:

              
              ixgbe2.4.5-fbsd8.3-amd64_load="YES"
              
              

              You should see the ixgbe 2.4.5 version being loaded in /var/log/dmesg.boot afterwards.

              1 Reply Last reply Reply Quote 0
              • W
                wladikz
                last edited by

                hi,

                As i remember ixgbe version 2.4.5 has problems with VLANs. can some one check?

                1 Reply Last reply Reply Quote 0
                • M
                  msi
                  last edited by

                  I have a couple of VLANs on one of my ix interfaces, yes they do work without hickups here as for now. fingers crossed

                  You can easily check if VLANs are passing through when you fire up a 'tcpdump -i ix<number>_vlan<id>'. If you only see traffic on ix<number>, but not on the VLAN interface then you may want to give that VLAN hw filter a try like it is found on the wiki documentation. I currently have that set from -RC0 times.

                  Although remember this was not required until some builds that brough newer ixgbe drivers with lat BETA and RC builds. I also have followed Intels ixgbe instructions for loader.conf(.local) for the mbufs where they recommend larger nmbcluster than for the 1GE models. The num_queues options was select to 4 since this system has 4 cores / 4 threads so it can use up to 4 queues not use more (and possibly exhaust CPU capacity).

                  
                  kern.ipc.nmbclusters=262144
                  kern.ipc.nmbjumbop=262144
                  hw.ixgbe.num_queues="4"
                  ixgbe2.4.5-fbsd8.3-amd64_load="YES"
                  
                  ```</number></id></number>
                  1 Reply Last reply Reply Quote 0
                  • W
                    wladikz
                    last edited by

                    hi,

                    2.4.5 don't support one of  my 10G cards  :'( Can some one to compile 2.5.1 or 2.5.8?

                    1 Reply Last reply Reply Quote 0
                    • M
                      msi
                      last edited by

                      Try 2.5.0 that is uploaded alongside, but as said.

                      It made my box panic, but it may work for you, give it a try.

                      It is line by line the same code as is in 8.4 and 8-STABLE.

                      1 Reply Last reply Reply Quote 0
                      • W
                        wladikz
                        last edited by

                        i'll try to set my own build environment for 2.1 and i'll try to build

                        1 Reply Last reply Reply Quote 0
                        • rbgargaR
                          rbgarga Developer Netgate Administrator
                          last edited by

                          I built a new 2.5.15 driver, with some fixes. Could you try it and let me know how it goes?

                          You can get it at http://files.pfsense.org/garga/ixgbe_modules/2.1/

                          Just put the ixgbe.ko at /boot/modules and add the following line to /boot/loader.conf.local

                          ixgbe_load="YES"

                          Best regards

                          Renato Botelho

                          1 Reply Last reply Reply Quote 0
                          • W
                            wladikz
                            last edited by

                            @Renato:

                            I built a new 2.5.15 driver, with some fixes. Could you try it and let me know how it goes?

                            You can get it at http://files.pfsense.org/garga/ixgbe_modules/2.1/

                            Just put the ixgbe.ko at /boot/modules and add the following line to /boot/loader.conf.local

                            ixgbe_load="YES"

                            Best regards

                            can you post also fixes?

                            1 Reply Last reply Reply Quote 0
                            • W
                              wladikz
                              last edited by

                              @Renato:

                              I built a new 2.5.15 driver, with some fixes. Could you try it and let me know how it goes?

                              You can get it at http://files.pfsense.org/garga/ixgbe_modules/2.1/

                              Just put the ixgbe.ko at /boot/modules and add the following line to /boot/loader.conf.local

                              ixgbe_load="YES"

                              Best regards

                              system crashed  :'(

                              crashreport.txt

                              1 Reply Last reply Reply Quote 0
                              • M
                                msi
                                last edited by

                                Thanks Renato, although wladikz wasn't really lucky, it though seems that there are either different X520-DA2 revisions in the wild or he has another ix card.

                                I'll give that module tomorrow a try. At least 2.4.5 - if it recognizes the card - seems to work for "older" cards by now.

                                1 Reply Last reply Reply Quote 0
                                • M
                                  msi
                                  last edited by

                                  Hi renato, thank you for your efforts, but unfortunately I have the same issue as wladikz and had to revert to 2.4.5:

                                  • The system boots and loads 2.5.15
                                  • Seems to go until NIC initialization (post-kernel stuff, pfSense outputs) and panics

                                  -> I've uploaded the crash log through the Web-UI if that helps and additionnaly to help identify potentially different boards, here is both pciconf and dmesg.boot outputs:

                                  
                                  ix0@pci0:17:0:0:        class=0x020000 card=0x7a128086 chip=0x10fb8086 rev=0x01 hdr=0x00
                                      class      = network
                                      subclass   = ethernet
                                  ix1@pci0:17:0:1:        class=0x020000 card=0x7a128086 chip=0x10fb8086 rev=0x01 hdr=0x00
                                      class      = network
                                      subclass   = ethernet
                                  
                                  

                                  dmesg.boot

                                  
                                  ix0: <intel(r) pro="" 10gbe="" pci-express="" network="" driver,="" version="" -="" 2.4.5="">port 0x2fc0-0x2fdf mem 0x91200000-0x912fffff,0x910fc000-0x910fffff irq 32 at device 0.0 on pci17
                                  ix0: Using MSIX interrupts with 5 vectors
                                  ix0: [ITHREAD]
                                  ix0: [ITHREAD]
                                  ix0: [ITHREAD]
                                  ix0: [ITHREAD]
                                  ix0: [ITHREAD]
                                  ix0: PCI Express Bus: Speed 5.0Gb/s Width x8
                                  ix1: <intel(r) pro="" 10gbe="" pci-express="" network="" driver,="" version="" -="" 2.4.5="">port 0x2fe0-0x2fff mem 0x91100000-0x911fffff,0x910f8000-0x910fbfff irq 36 at device 0.1 on pci17
                                  ix1: Using MSIX interrupts with 5 vectors
                                  ix1: [ITHREAD]
                                  ix1: [ITHREAD]
                                  ix1: [ITHREAD]
                                  ix1: [ITHREAD]
                                  ix1: [ITHREAD]
                                  ix1: PCI Express Bus: Speed 5.0Gb/s Width x8</intel(r)></intel(r)> 
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • rbgargaR
                                    rbgarga Developer Netgate Administrator
                                    last edited by

                                    Hello guys,

                                    Since I don't have hardware I cannot test the patches, but, I found 2 merge issues that were ending with duplicate code. So I did the merge again, revision by revision, and built a module for any of following versions:

                                    2.5.0-8
                                    2.5.7
                                    2.5.8
                                    2.5.13
                                    2.5.15

                                    This 2.5.15 is different from the old one I posted here few days ago.

                                    I built versions >= 2.5.13 with IXGBE_LEGACY_TX option defined to make it work with ALTQ.

                                    You can find all these versions at:

                                    http://files.pfsense.org/garga/ixgbe_modules/2.1/

                                    Please let me know the results when you are able to test it.

                                    Renato Botelho

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      msi
                                      last edited by

                                      Hi Renato, awesome.

                                      I can't promise an answer before weekend, but I hope to report back as quickly as possible.
                                      I will focus on the newer revisions since they will likely support thew newer chips found on systems like wladikz has.

                                      1 Reply Last reply Reply Quote 0
                                      • W
                                        wladikz
                                        last edited by

                                        Hi Renato,

                                        i'll try to check modules tomorrow. i have big problem with mbuf reuse and crash of system every 9-12 hours. so i'll try to check modules ASAP.

                                        Renato, can you put sources of compiled modules to same location with modules?

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          msi
                                          last edited by

                                          Hi renato and wladikz

                                          OK, I took some time on Saturday to give your ixgbe amd64 builds some beatings:

                                          • 2.5.15 (round 2): panics as before no chance to log in.

                                          • 2.5.13: The first module that doesn't panic the system before login. First traffic passes and after I wanted to check other services from interconnected servers (roughly 1 minute): Panics again.

                                          • 2.5.8: Crashes, similar to 2.5.15 - honestly I didn't look close when it did and whent over to 2.5.7

                                          • 2.5.7: Same as 2.5.13 loads I can fire up a tcpdump and stop it, then I go over and check some services, boom: panics.

                                          • 2.5.0-8: OK, I crossed fingers and hoped the best for this last one: Same as on 2.5.7 et al.

                                          In 2.5.0 I really tried log in with a device via the wifi VLAN, the AAA server (not on pfSense) allows access and the client waits for a DHCP address from pfSense - that's the moment when I realized it just crashed.

                                          The method used (just in case needed to reproduce situation) was:

                                          • loader.conf.local tunings for ixgbe/igb set to what I previously posted
                                          • Default in loader.conf.local is to load the old 2.4.5 module
                                          • I boot the system and switch to loader prompt and did: 1) unload, 2) load /boot/kernel/kernel, 3) load /boot/kernel/ixgbe<version>.ko and finally 4) boot

                                          This way I did not always have to copy back and forth modules and always was able to boot back into something working in case it crashed.

                                          @Renato: In case it would helpful I could provide you with a remote KVM access to the box.</version>

                                          1 Reply Last reply Reply Quote 0
                                          • M
                                            msi
                                            last edited by

                                            I had some spare motivation to make another round  8)

                                            The variables changed are:

                                            • Removed the shellcmd "ifconfig ix0 -vlanhwfilter" (that only started to be required with 2.5.0-8 in RC)

                                            • Add hw.intr_storm_threshold=10000 to the system tunables as suggested by the wiki and Intel driver doc

                                            I hope that the shellcmd removed takes one thing out of the equation since this command seem to be executed late in the startup process.

                                            • Baseline is 2.4.5 (my .ko): System loads, seems to work for as before, I have VLANs working and no ECC error

                                            • 2.5.15: System boots up, no panic until after login - so I have to guess it has to do with the previous shellcmd. I get traffic on ix0, but not ix0_vlan111. Executing the previously enabled shellcmd makes VLANs working again. Testing a wireless clients it gets a connection, gets  a DHCP lease from dhcpd but connection thereafter is dead, the server paniced.

                                            • 2.5.0-8 (yours): The behaviour as with 2.5.15 is the same as in terms of bootup, VLAN issue  System boots up, no panic at first. I was able at least to browse to one page before it also panics.

                                            If wladikz or others would get something working but without VLANs that could be an indication that having VLANs with newer ixgbe driver causes issues. I hope this helps little further - I consider myself and my employer lucky to have the current possibility of using the older driver to get cards recognized and VLANs working.  :-\

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.