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

Kernel: msk1: watchdog timeout

Scheduled Pinned Locked Moved Hardware
19 Posts 3 Posters 11.5k 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.
  • G
    Gabri.91
    last edited by Jun 15, 2012, 9:43 AM

    Hi, sometimes my WAN connections fails with this error in system logs:
    Jun 15 08:03:49 kernel: msk1: watchdog timeout
    Jun 15 08:03:49 kernel: msk1: link state changed to DOWN
    Jun 15 08:03:49 check_reload_status: Linkup starting msk1
    Jun 15 08:03:51 check_reload_status: Linkup starting msk1
    Jun 15 08:03:51 kernel: msk1: link state changed to UP

    It stays in this continuous loop until I reboot the PFsense.

    I've read some old post but are all referred to version 1.
    How could be the problem? The strange thing is that LAN interface stays up, I can login to web interface (where I reboot the machine) and all LAN services (DNS,DHCP) are ok, but WAN is down..
    I think that isn't a driver problem because the LAN and WAN interface have the same motherboard chip network card (Commel 673)
    Thanks

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Jun 15, 2012, 10:10 AM

      I've seen those errors on my box. They usually happen only when I stress the interface with a lot of traffic. There should be code in 2.1 to prevent it happening. Some people have reported success by disabling MSI or MSI-X. There is a tunable for the msk driver:

      
      hw.msk.msi_disable=1
      
      

      Or you can disable it for everything:

      
      hw.pci.enable_msi=0
      hw.pci.enable_msix=0
      
      

      These lines should be put in /boot/loader.conf.local create the file if it doesn't exits.

      Steve

      1 Reply Last reply Reply Quote 0
      • G
        Gabri.91
        last edited by Jun 15, 2012, 10:20 AM

        Thanks, I'll try that!

        1 Reply Last reply Reply Quote 0
        • G
          Gabri.91
          last edited by Jun 15, 2012, 8:58 PM

          Hi, I've created the file, but how can I verify that it was applied correctly?
          This night I'll see if it works..

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Jun 15, 2012, 10:00 PM

            You can use the sysctl command to check from the console:

            
            [2.0.1-RELEASE][root@pfsense.fire.box]/root(1): sysctl hw.pci
            hw.pci.usb_early_takeover: 1
            hw.pci.honor_msi_blacklist: 1
            hw.pci.enable_msix: 1
            hw.pci.enable_msi: 1
            hw.pci.do_power_resume: 1
            hw.pci.do_power_nodriver: 0
            hw.pci.enable_io_modes: 1
            hw.pci.default_vgapci_unit: -1
            hw.pci.host_mem_start: 2147483648
            hw.pci.mcfg: 1
            hw.pci.irq_override_mask: 57080
            
            

            Steve

            1 Reply Last reply Reply Quote 0
            • G
              Gabri.91
              last edited by Jun 16, 2012, 7:00 AM

              I've made the command and the output is exactly as your, so I think that /boot/loader.conf.local doesn't works (in fact this night crashes again)..
              How is it possible? I've created the file /boot/loader.conf.local with this lines:

              hw.pci.enable_msi=0
              hw.pci.enable_msix=0
              

              I need to change also /boot/loader.conf or some other file?

              1 Reply Last reply Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by Jun 16, 2012, 10:04 AM

                Hmm,
                Some tunables can be set by adding them to the table in the webGUI, System: Advanced: System Tunables:
                Just create new entries for hw.pci.enable_msi etc.
                However I had thought these needed to be set as boot loader entries.  :-
                In fact that is the instruction given here: http://doc.pfsense.org/index.php/Tuning_and_Troubleshooting_Network_Cards
                Does your file look exactly like the example given in the docs?

                Steve

                1 Reply Last reply Reply Quote 0
                • W
                  wallabybob
                  last edited by Jun 17, 2012, 12:45 AM

                  @Gabri.91:

                  I've made the command and the output is exactly as your, so I think that /boot/loader.conf.local doesn't works (in fact this night crashes again)..

                  /boot/loader.conf.local is processed only at boot time. Hence your change to it won't take effect until the system is rebooted.

                  When you wrote "I think that /boot/loader.conf.local doesn't works" did you mean (assuming you rebooted so the changed file would take effect)
                  1. the change didn't stop the crash?
                  2. the change didn't seem to affect the sysctl values?

                  1 Reply Last reply Reply Quote 0
                  • G
                    Gabri.91
                    last edited by Jun 19, 2012, 12:15 PM

                    @wallabybob:

                    /boot/loader.conf.local is processed only at boot time. Hence your change to it won't take effect until the system is rebooted.
                    When you wrote "I think that /boot/loader.conf.local doesn't works" did you mean (assuming you rebooted so the changed file would take effect)
                    1. the change didn't stop the crash?
                    2. the change didn't seem to affect the sysctl values?

                    Logically I've rebooted the pfSense..
                    I mean all two things: the change didn't stop the crash and the change didn't seem to affect the sysctl values

                    1 Reply Last reply Reply Quote 0
                    • G
                      Gabri.91
                      last edited by Jul 23, 2012, 8:21 AM

                      There is no solution? The problem still remains..

                      1 Reply Last reply Reply Quote 0
                      • S
                        stephenw10 Netgate Administrator
                        last edited by Jul 23, 2012, 9:02 AM

                        I have a patched msk driver I made for the firebox NICs you could try. I also modified the LED register settings but that won't effect the operation. See:
                        http://forum.pfsense.org/index.php/topic,20095.msg273691.html#msg273691
                        I have not yet had any reports of it working or not.

                        Steve

                        1 Reply Last reply Reply Quote 0
                        • G
                          Gabri.91
                          last edited by Jul 23, 2012, 10:21 AM

                          Ok, I can try with that but why loader.conf.local settings aren't loaded?
                          I prefer to try with that before patch driver..

                          1 Reply Last reply Reply Quote 0
                          • S
                            stephenw10 Netgate Administrator
                            last edited by Jul 23, 2012, 10:36 AM

                            Some random weirdness!  ::)
                            Seriously I have no idea, it should work. Permissions problem?
                            Try putting it in loader.conf instead. That file will definitely be read and acted upon. It may be overwritten with a firmware update later but it will prove the method.

                            Steve

                            1 Reply Last reply Reply Quote 0
                            • G
                              Gabri.91
                              last edited by Jul 23, 2012, 10:59 AM

                              Ok, putting them in loader.conf from sysctl the settings were loaded correctly:

                              hw.pci.enable_msix: 0
                              hw.pci.enable_msi: 0
                              

                              I'll let you know if it solves the problem..

                              1 Reply Last reply Reply Quote 0
                              • G
                                Gabri.91
                                last edited by Aug 1, 2012, 7:12 AM

                                With this settings never crashes and it's perfect! I suggest them before change driver or trash your firewall.. :)

                                1 Reply Last reply Reply Quote 0
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by Aug 1, 2012, 4:34 PM

                                  Good to know. Thanks for reporting back.
                                  Disabling MSI like that will presumably increase the CPU interrupt load. Have you noticed any increased load?

                                  Steve

                                  1 Reply Last reply Reply Quote 0
                                  • G
                                    Gabri.91
                                    last edited by Aug 2, 2012, 11:14 AM

                                    I don't know because it's on a Pentium M @ 1,7Ghz and it will be never heavy load by a normal ADSL\Hyperlan connection.
                                    I'll let you now in the next weeks\month when I'll add another NIC for DMZ and CPU will be more loaded..

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      stephenw10 Netgate Administrator
                                      last edited by Aug 2, 2012, 1:18 PM

                                      It would be interesting to see if you can achieve the same thing using instead:

                                      hw.msk.msi_disable=1
                                      

                                      This would disable MSI only for the msk NIC rather than all PCI devices. A cleaner solution.

                                      Steve

                                      1 Reply Last reply Reply Quote 0
                                      • G
                                        Gabri.91
                                        last edited by Aug 3, 2012, 6:58 PM

                                        I prefer to don't touch a things that works good.. ;)
                                        If it helps I never see a delay or slowing down in ping, speedtest, navigation etc after modify the value..

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                          This community forum collects and processes your personal information.
                                          consent.not_received