From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesper Dangaard Brouer Subject: Re: NIU driver: Sun x8 Express Quad Gigabit Ethernet Adapter Date: Thu, 13 Nov 2008 10:10:12 +0100 Message-ID: <1226567412.6834.80.camel@localhost.localdomain> References: <20081112.014923.68124784.davem@davemloft.net> <1226487710.6834.53.camel@localhost.localdomain> <20081112.035240.226243372.davem@davemloft.net> <20081112.041143.11487260.davem@davemloft.net> Reply-To: jdb@comx.dk Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: David Miller Return-path: Received: from lanfw001a.cxnet.dk ([87.72.215.196]:58373 "EHLO lanfw001a.cxnet.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751463AbYKMJKa (ORCPT ); Thu, 13 Nov 2008 04:10:30 -0500 In-Reply-To: <20081112.041143.11487260.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 2008-11-12 at 04:11 -0800, David Miller wrote: > From: David Miller > Date: Wed, 12 Nov 2008 03:52:40 -0800 (PST) > > > Ok, Jesper, please try two things for me, leave the debugging patch > > in there for all the tests: > > > > 1) Retrigger the problem (with or without MSI, doesn't matter) but > > add back in that test I asked you to try last week. The one > > where the "if (++rp->mark_counter == rp->mark_freq)" condition > > test in niu_start_xmit() is commented out, so that the > > "mrk |= TX_DESC_MARK;" statement always runs. > > > > Get me the log dump produced by that scenerio. ------------[ cut here ]------------ WARNING: at net/sched/sch_generic.c:226 dev_watchdog+0x21e/0x230() NETDEV WATCHDOG: eth2 (niu): transmit timed out Modules linked in: niu ipmi_si hpwdt serio_raw bnx2 zlib_inflate rng_core ipmi_msghandler hpilo ehci_hcd uhci_hcd sr_mod cdrom Pid: 0, comm: swapper Not tainted 2.6.28-rc4-davem #17 Call Trace: [] warn_slowpath+0x63/0x80 [] ? __enqueue_entity+0x8e/0xb0 [] ? native_sched_clock+0x1c/0x80 [] ? __lock_acquire+0x104/0x8e0 [] ? __lock_acquire+0x104/0x8e0 [] ? native_sched_clock+0x1c/0x80 [] ? getnstimeofday+0x3b/0xe0 [] ? lock_release_holdtime+0x79/0xc0 [] ? strlcpy+0x1e/0x60 [] dev_watchdog+0x21e/0x230 [] ? lock_release_holdtime+0x79/0xc0 [] ? run_timer_softirq+0x10d/0x190 [] run_timer_softirq+0x11f/0x190 [] ? tick_dev_program_event+0x3c/0xc0 [] ? dev_watchdog+0x0/0x230 [] __do_softirq+0x94/0x160 [] ? hrtimer_interrupt+0x150/0x180 [] ? ktime_get+0x11/0x30 [] do_softirq+0x3b/0x50 [] irq_exit+0x75/0x90 [] smp_apic_timer_interrupt+0x5a/0x90 [] ? hrtimer_start+0x1a/0x20 [] apic_timer_interrupt+0x28/0x30 [] ? mwait_idle+0x35/0x40 [] cpu_idle+0x4e/0xa0 ---[ end trace 3045c940a424568f ]--- niu 0000:0b:00.0: niu: eth2: Transmit timed out, resetting niu 0000:0b:00.0: niu: eth2: LDG[idx(0):num(0)] V0[sw(0x0)hw(0x0)] V1[sw(0x0)hw(0x0)] V2[sw(0x0)hw(0x0)] niu 0000:0b:00.0: niu: eth2: LDG[idx(1):num(1)] V0[sw(0x0)hw(0x0)] V1[sw(0x0)hw(0x0)] V2[sw(0x0)hw(0x0)] niu 0000:0b:00.0: niu: eth2: LDG[idx(2):num(2)] V0[sw(0x2000000000)hw(0x0)] V1[sw(0x0)hw(0x0)] V2[sw(0x0)hw(0x0)] niu 0000:0b:00.0: niu: eth2: LDG[idx(3):num(3)] V0[sw(0x1)hw(0x0)] V1[sw(0x0)hw(0x0)] V2[sw(0x0)hw(0x0)] niu 0000:0b:00.0: niu: eth2: LDG[idx(4):num(4)] V0[sw(0x0)hw(0x0)] V1[sw(0x0)hw(0x0)] V2[sw(0x0)hw(0x0)] niu 0000:0b:00.0: niu: eth2: LDG[idx(5):num(5)] V0[sw(0x0)hw(0x0)] V1[sw(0x0)hw(0x0)] V2[sw(0x0)hw(0x0)] niu 0000:0b:00.0: niu: eth2: LDG[idx(6):num(6)] V0[sw(0x0)hw(0x0)] V1[sw(0x0)hw(0x0)] V2[sw(0x0)hw(0x0)] niu 0000:0b:00.0: niu: eth2: LDG[idx(7):num(7)] V0[sw(0x100000000)hw(0x0)] V1[sw(0x0)hw(0x0)] V2[sw(0x0)hw(0x0)] niu 0000:0b:00.0: niu: eth2: LDG[idx(8):num(8)] V0[sw(0x0)hw(0x0)] V1[sw(0x0)hw(0x0)] V2[sw(0x0)hw(0x0)] niu 0000:0b:00.0: niu: eth2: LDG[idx(9):num(9)] V0[sw(0x0)hw(0x0)] V1[sw(0x0)hw(0x0)] V2[sw(0x0)hw(0x0)] niu 0000:0b:00.0: niu: eth2: Dumping transmitter state. niu 0000:0b:00.0: niu: eth2: TX_RING[ 0] CHANNEL 0 LDN 32 niu 0000:0b:00.0: niu: eth2: TX_RING[ 0] parent->lgd_map[ldn] 7 niu 0000:0b:00.0: niu: eth2: TX_RING[ 0] Num pending TX SKBs: 2 niu 0000:0b:00.0: niu: eth2: TX_RING[ 0] TX_CS sw[0002000100000000] hw[0002000100000000] niu 0000:0b:00.0: niu: eth2: TX_RING[ 1] CHANNEL 1 LDN 33 niu 0000:0b:00.0: niu: eth2: TX_RING[ 1] parent->lgd_map[ldn] 8 niu 0000:0b:00.0: niu: eth2: TX_RING[ 1] Num pending TX SKBs: 0 niu 0000:0b:00.0: niu: eth2: TX_RING[ 1] TX_CS sw[0000000000000000] hw[0000000000000000] niu 0000:0b:00.0: niu: eth2: TX_RING[ 2] CHANNEL 2 LDN 34 niu 0000:0b:00.0: niu: eth2: TX_RING[ 2] parent->lgd_map[ldn] 9 niu 0000:0b:00.0: niu: eth2: TX_RING[ 2] Num pending TX SKBs: 0 niu 0000:0b:00.0: niu: eth2: TX_RING[ 2] TX_CS sw[0000000000000000] hw[0000000000000000] niu 0000:0b:00.0: niu: eth2: TX_RING[ 3] CHANNEL 3 LDN 35 niu 0000:0b:00.0: niu: eth2: TX_RING[ 3] parent->lgd_map[ldn] 0 niu 0000:0b:00.0: niu: eth2: TX_RING[ 3] Num pending TX SKBs: 0 niu 0000:0b:00.0: niu: eth2: TX_RING[ 3] TX_CS sw[0000000000000000] hw[0000000000000000] niu 0000:0b:00.0: niu: eth2: TX_RING[ 4] CHANNEL 4 LDN 36 niu 0000:0b:00.0: niu: eth2: TX_RING[ 4] parent->lgd_map[ldn] 1 niu 0000:0b:00.0: niu: eth2: TX_RING[ 4] Num pending TX SKBs: 0 niu 0000:0b:00.0: niu: eth2: TX_RING[ 4] TX_CS sw[0000000000000000] hw[0000000000000000] niu 0000:0b:00.0: niu: eth2: TX_RING[ 5] CHANNEL 5 LDN 37 niu 0000:0b:00.0: niu: eth2: TX_RING[ 5] parent->lgd_map[ldn] 2 niu 0000:0b:00.0: niu: eth2: TX_RING[ 5] Num pending TX SKBs: 237 niu 0000:0b:00.0: niu: eth2: TX_RING[ 5] TX_CS sw[00ed00ec00000000] hw[00ed00ec00000000] -- Med venlig hilsen / Best regards Jesper Brouer ComX Networks A/S Linux Network developer Cand. Scient Datalog / MSc. Author of http://adsl-optimizer.dk LinkedIn: http://www.linkedin.com/in/brouer