From owner-freebsd-net@FreeBSD.ORG Thu Aug 26 05:19:18 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB26E106566C for ; Thu, 26 Aug 2010 05:19:18 +0000 (UTC) (envelope-from artem@viklenko.net) Received: from alf.aws-net.org.ua (alf.aws-net.org.ua [IPv6:2001:15c0:6605:1::61]) by mx1.freebsd.org (Postfix) with ESMTP id 1EB398FC12 for ; Thu, 26 Aug 2010 05:19:17 +0000 (UTC) Received: from rainbow.vl.net.ua (rainbow.vl.net.ua [194.44.80.215]) (authenticated bits=0) by alf.aws-net.org.ua (8.14.3/8.14.3) with ESMTP id o7Q5J8u2025417 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 26 Aug 2010 08:19:12 +0300 (EEST) (envelope-from artem@viklenko.net) Message-ID: <4C75F94B.50309@viklenko.net> Date: Thu, 26 Aug 2010 08:19:07 +0300 From: Artyom Viklenko Organization: Art&Co. User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.9.1.8) Gecko/20100322 Thunderbird/3.0.3 MIME-Version: 1.0 To: "Vladislav V. Prodan" References: <4C744053.6010403@ukr.net> <4C758D70.1030000@ukr.net> In-Reply-To: <4C758D70.1030000@ukr.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (alf.aws-net.org.ua [85.90.196.192]); Thu, 26 Aug 2010 08:19:14 +0300 (EEST) X-Virus-Scanned: clamav-milter 0.96.1 at alf.aws-net.org.ua X-Virus-Status: Clean Cc: freebsd-net@freebsd.org, marek3@intranetplanet.com Subject: Re: Error: em0: Watchdog timeout -- resetting X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 05:19:18 -0000 26.08.2010 00:38, Vladislav V. Prodan пишет: > > Add to /etc/rc.local : > ifconfig em0 debug > ifconfig em0 media 100baseTX mediaopt full-duplex > > For in rc.conf not working these options: > #ifconfig_em0="100baseTX mediaopt full-duplex" > #ifconfig_em0="debug -vlanmtu -vlanhwtag -vlanhwfilter -vlanhwtso -wol" > Try ifconfig_em0="100baseTX mediaopt full-duplex" ifconfig_em0_alias0="debug -vlanmtu -vlanhwtag -vlanhwfilter -vlanhwtso -wol" > Now the network card looks like this: > # ifconfig em0 | grep -v inet > em0: flags=8847 metric 0 > mtu 1500 > > options=219b > ether 00:25:90:05:83:7a > nd6 options=29 > media: Ethernet 100baseTX > status: active > > > 25.08.2010 0:57, Vladislav V. Prodan wrote: >> The server is sometimes off the network card. >> It helps just to restart via KVM-IPMI. >> >> MotherBoard: X8SIL/X8SIL-F >> BIOS Version: 1.0c >> Build Date: 02/05/10 >> >> OS: FreeBSD 8.1-RELEASE, FreeBSD 8.1-STABLE, FreeBSD 9.0-CURRENT >> >> What would you recommend to address the problem? >> >> >> # uname -a >> FreeBSD solo.XXX.biz 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Tue Aug 24 >> 15:52:21 EEST 2010 root@solo.XXX.biz:/usr/obj/usr/src/sys/solo.2 amd64 >> >> #pciconf -lv >> ... >> em0@pci0:2:0:0: class=0x020000 card=0x060515d9 chip=0x10d38086 rev=0x00 >> hdr=0x00 >> vendor = 'Intel Corporation' >> device = 'Intel 82574L Gigabit Ethernet Controller (82574L)' >> class = network >> subclass = ethernet >> em1@pci0:3:0:0: class=0x020000 card=0x060515d9 chip=0x10d38086 rev=0x00 >> hdr=0x00 >> vendor = 'Intel Corporation' >> device = 'Intel 82574L Gigabit Ethernet Controller (82574L)' >> class = network >> subclass = ethernet >> ... >> >> In /usr/src/sys/dev/e1000/if_em.c: >> >> static void >> em_local_timer(void *arg) >> { >> struct adapter *adapter = arg; >> struct ifnet *ifp = adapter->ifp; >> struct tx_ring *txr = adapter->tx_rings; >> >> EM_CORE_LOCK_ASSERT(adapter); >> >> em_update_link_status(adapter); >> em_update_stats_counters(adapter); >> >> /* Reset LAA into RAR[0] on 82571 */ >> if (e1000_get_laa_state_82571(&adapter->hw) == TRUE) >> e1000_rar_set(&adapter->hw, adapter->hw.mac.addr, 0); >> >> /* >> ** Check for time since any descriptor was cleaned >> */ >> for (int i = 0; i< adapter->num_queues; i++, txr++) { >> EM_TX_LOCK(txr); >> if (txr->watchdog_check == FALSE) { >> EM_TX_UNLOCK(txr); >> continue; >> } >> if ((ticks - txr->watchdog_time)> EM_WATCHDOG) >> goto hung; >> EM_TX_UNLOCK(txr); >> } >> >> callout_reset(&adapter->timer, hz, em_local_timer, adapter); >> return; >> hung: >> device_printf(adapter->dev, "Watchdog timeout -- resetting\n"); >> ifp->if_drv_flags&= ~IFF_DRV_RUNNING; >> adapter->watchdog_events++; >> EM_TX_UNLOCK(txr); >> em_init_locked(adapter); >> } >> >> Someone will finish the piece for debugging, to further diagnose the error? >> >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> >> >> > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- Sincerely yours, Artyom Viklenko. ------------------------------------------------------- artem@aws-net.org.ua | http://www.aws-net.org.ua/~artem artem@viklenko.net | ================================ FreeBSD: The Power to Serve - http://www.freebsd.org