public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [r8169] WARNING: at net/sched/sch_generic.c
@ 2010-03-31 10:21 Sergey Senozhatsky
  2010-03-31 11:19 ` Neil Horman
  0 siblings, 1 reply; 8+ messages in thread
From: Sergey Senozhatsky @ 2010-03-31 10:21 UTC (permalink / raw)
  To: netdev
  Cc: Francois Romieu, Neil Horman, Eric Dumazet, David S. Miller,
	linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1969 bytes --]

Hello,
I have the following problem:

[  296.337510] ------------[ cut here ]------------
[  296.337523] WARNING: at net/sched/sch_generic.c:255 dev_watchdog+0xc1/0x125()
[  296.337527] Hardware name: F3JC                
[  296.337530] NETDEV WATCHDOG: eth0 (r8169): transmit queue 0 timed out
[  296.337533] Modules linked in: pktgen ipv6 snd_hwdep snd_hda_codec_si3054 snd_hda_codec_realtek sdhci_pci sdhci asus_laptop sparse_keymap mmc_core led_class snd_hda_intel
snd_hda_codec psmouse snd_pcm snd_timer snd soundcore snd_page_alloc serio_raw i2c_i801 rng_core evdev sg r8169 mii usbhid hid uhci_hcd ehci_hcd sr_mod cdrom sd_mod usbcore
ata_piix
[  296.337586] Pid: 0, comm: swapper Not tainted 2.6.34-rc3-dbg #74
[  296.337589] Call Trace:
[  296.337597]  [<c102e71f>] warn_slowpath_common+0x65/0x7c
[  296.337603]  [<c126e30c>] ? dev_watchdog+0xc1/0x125
[  296.337608]  [<c102e76a>] warn_slowpath_fmt+0x24/0x27
[  296.337613]  [<c126e30c>] dev_watchdog+0xc1/0x125
[  296.337620]  [<c1040039>] ? prepare_to_wait_exclusive+0x52/0x5b
[  296.337627]  [<c1037053>] ? run_timer_softirq+0x120/0x1eb
[  296.337632]  [<c10370a9>] run_timer_softirq+0x176/0x1eb
[  296.337637]  [<c1037053>] ? run_timer_softirq+0x120/0x1eb
[  296.337643]  [<c126e24b>] ? dev_watchdog+0x0/0x125
[  296.337650]  [<c10331c9>] __do_softirq+0x8d/0x117
[  296.337655]  [<c103327e>] do_softirq+0x2b/0x43
[  296.337660]  [<c10333a3>] irq_exit+0x38/0x75
[  296.337667]  [<c1015138>] smp_apic_timer_interrupt+0x6d/0x7b
[  296.337673]  [<c12cbada>] apic_timer_interrupt+0x36/0x3c
[  296.337679]  [<c104007b>] ? prepare_to_wait+0x39/0x57
[  296.337685]  [<c11dd835>] ? acpi_idle_enter_simple+0x119/0x144
[  296.337692]  [<c124d358>] cpuidle_idle_call+0x6d/0xa5
[  296.337697]  [<c1001b51>] cpu_idle+0x92/0xc1
[  296.337704]  [<c12c63d0>] start_secondary+0x1f3/0x1fa
[  296.337708] ---[ end trace cd4a1b50139837df ]---


Reproducing 100% with pktgen tests.


	Sergey

[-- Attachment #2: Type: application/pgp-signature, Size: 316 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [r8169] WARNING: at net/sched/sch_generic.c
  2010-03-31 10:21 [r8169] WARNING: at net/sched/sch_generic.c Sergey Senozhatsky
@ 2010-03-31 11:19 ` Neil Horman
  2010-03-31 12:14   ` Sergey Senozhatsky
  0 siblings, 1 reply; 8+ messages in thread
From: Neil Horman @ 2010-03-31 11:19 UTC (permalink / raw)
  To: Sergey Senozhatsky
  Cc: netdev, Francois Romieu, Eric Dumazet, David S. Miller,
	linux-kernel

On Wed, Mar 31, 2010 at 01:21:42PM +0300, Sergey Senozhatsky wrote:
> Hello,
> I have the following problem:
> 
> [  296.337510] ------------[ cut here ]------------
> [  296.337523] WARNING: at net/sched/sch_generic.c:255 dev_watchdog+0xc1/0x125()
> [  296.337527] Hardware name: F3JC                
> [  296.337530] NETDEV WATCHDOG: eth0 (r8169): transmit queue 0 timed out
> [  296.337533] Modules linked in: pktgen ipv6 snd_hwdep snd_hda_codec_si3054 snd_hda_codec_realtek sdhci_pci sdhci asus_laptop sparse_keymap mmc_core led_class snd_hda_intel
> snd_hda_codec psmouse snd_pcm snd_timer snd soundcore snd_page_alloc serio_raw i2c_i801 rng_core evdev sg r8169 mii usbhid hid uhci_hcd ehci_hcd sr_mod cdrom sd_mod usbcore
> ata_piix
> [  296.337586] Pid: 0, comm: swapper Not tainted 2.6.34-rc3-dbg #74
> [  296.337589] Call Trace:
> [  296.337597]  [<c102e71f>] warn_slowpath_common+0x65/0x7c
> [  296.337603]  [<c126e30c>] ? dev_watchdog+0xc1/0x125
> [  296.337608]  [<c102e76a>] warn_slowpath_fmt+0x24/0x27
> [  296.337613]  [<c126e30c>] dev_watchdog+0xc1/0x125
> [  296.337620]  [<c1040039>] ? prepare_to_wait_exclusive+0x52/0x5b
> [  296.337627]  [<c1037053>] ? run_timer_softirq+0x120/0x1eb
> [  296.337632]  [<c10370a9>] run_timer_softirq+0x176/0x1eb
> [  296.337637]  [<c1037053>] ? run_timer_softirq+0x120/0x1eb
> [  296.337643]  [<c126e24b>] ? dev_watchdog+0x0/0x125
> [  296.337650]  [<c10331c9>] __do_softirq+0x8d/0x117
> [  296.337655]  [<c103327e>] do_softirq+0x2b/0x43
> [  296.337660]  [<c10333a3>] irq_exit+0x38/0x75
> [  296.337667]  [<c1015138>] smp_apic_timer_interrupt+0x6d/0x7b
> [  296.337673]  [<c12cbada>] apic_timer_interrupt+0x36/0x3c
> [  296.337679]  [<c104007b>] ? prepare_to_wait+0x39/0x57
> [  296.337685]  [<c11dd835>] ? acpi_idle_enter_simple+0x119/0x144
> [  296.337692]  [<c124d358>] cpuidle_idle_call+0x6d/0xa5
> [  296.337697]  [<c1001b51>] cpu_idle+0x92/0xc1
> [  296.337704]  [<c12c63d0>] start_secondary+0x1f3/0x1fa
> [  296.337708] ---[ end trace cd4a1b50139837df ]---
> 
> 
> Reproducing 100% with pktgen tests.
> 
What kind of packets are you sending with pktgen?
Neil

> 
> 	Sergey



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [r8169] WARNING: at net/sched/sch_generic.c
  2010-03-31 11:19 ` Neil Horman
@ 2010-03-31 12:14   ` Sergey Senozhatsky
  2010-03-31 12:29     ` Eric Dumazet
  0 siblings, 1 reply; 8+ messages in thread
From: Sergey Senozhatsky @ 2010-03-31 12:14 UTC (permalink / raw)
  To: Neil Horman
  Cc: netdev, Francois Romieu, Eric Dumazet, David S. Miller,
	linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3536 bytes --]

Hello,

On (03/31/10 07:19), Neil Horman wrote:
> On Wed, Mar 31, 2010 at 01:21:42PM +0300, Sergey Senozhatsky wrote:
> > Hello,
> > I have the following problem:
> > 
> > [  296.337510] ------------[ cut here ]------------
> > [  296.337523] WARNING: at net/sched/sch_generic.c:255 dev_watchdog+0xc1/0x125()
> > [  296.337527] Hardware name: F3JC                
> > [  296.337530] NETDEV WATCHDOG: eth0 (r8169): transmit queue 0 timed out
> > [  296.337533] Modules linked in: pktgen ipv6 snd_hwdep snd_hda_codec_si3054 snd_hda_codec_realtek sdhci_pci sdhci asus_laptop sparse_keymap mmc_core led_class snd_hda_intel
> > snd_hda_codec psmouse snd_pcm snd_timer snd soundcore snd_page_alloc serio_raw i2c_i801 rng_core evdev sg r8169 mii usbhid hid uhci_hcd ehci_hcd sr_mod cdrom sd_mod usbcore
> > ata_piix
> > [  296.337586] Pid: 0, comm: swapper Not tainted 2.6.34-rc3-dbg #74
> > [  296.337589] Call Trace:
> > [  296.337597]  [<c102e71f>] warn_slowpath_common+0x65/0x7c
> > [  296.337603]  [<c126e30c>] ? dev_watchdog+0xc1/0x125
> > [  296.337608]  [<c102e76a>] warn_slowpath_fmt+0x24/0x27
> > [  296.337613]  [<c126e30c>] dev_watchdog+0xc1/0x125
> > [  296.337620]  [<c1040039>] ? prepare_to_wait_exclusive+0x52/0x5b
> > [  296.337627]  [<c1037053>] ? run_timer_softirq+0x120/0x1eb
> > [  296.337632]  [<c10370a9>] run_timer_softirq+0x176/0x1eb
> > [  296.337637]  [<c1037053>] ? run_timer_softirq+0x120/0x1eb
> > [  296.337643]  [<c126e24b>] ? dev_watchdog+0x0/0x125
> > [  296.337650]  [<c10331c9>] __do_softirq+0x8d/0x117
> > [  296.337655]  [<c103327e>] do_softirq+0x2b/0x43
> > [  296.337660]  [<c10333a3>] irq_exit+0x38/0x75
> > [  296.337667]  [<c1015138>] smp_apic_timer_interrupt+0x6d/0x7b
> > [  296.337673]  [<c12cbada>] apic_timer_interrupt+0x36/0x3c
> > [  296.337679]  [<c104007b>] ? prepare_to_wait+0x39/0x57
> > [  296.337685]  [<c11dd835>] ? acpi_idle_enter_simple+0x119/0x144
> > [  296.337692]  [<c124d358>] cpuidle_idle_call+0x6d/0xa5
> > [  296.337697]  [<c1001b51>] cpu_idle+0x92/0xc1
> > [  296.337704]  [<c12c63d0>] start_secondary+0x1f3/0x1fa
> > [  296.337708] ---[ end trace cd4a1b50139837df ]---
> > 
> > 
> > Reproducing 100% with pktgen tests.
> > 
> What kind of packets are you sending with pktgen?


Here is the sh file to run pktgen.

=====
#!/bin/sh

function pgset() {
    local result

    echo $1 > $PGDEV

    result=`cat $PGDEV | fgrep "Result: OK:"`
    if [ "$result" = "" ]; then
         cat $PGDEV | fgrep Result:
    fi
}

function pg() {
    echo inject > $PGDEV
    cat $PGDEV
}

# Config Start Here -----------------------------------------------------------


# thread config
# Each CPU has own thread. Two CPU exammple. We add eth1, eth2 respectivly.

PGDEV=/proc/net/pktgen/kpktgend_0
  echo "Removing all devices"
 pgset "rem_device_all" 
  echo "Adding eth0"
 pgset "add_device eth0" 
  echo "Setting max_before_softirq 10000"
 pgset "max_before_softirq 10000"


# device config
# delay 0 means maximum speed.

CLONE_SKB="clone_skb 500"
# NIC adds 4 bytes CRC
PKT_SIZE="pkt_size 2048"

# COUNT 0 means forever
#COUNT="count 0"
COUNT="count 110110"
DELAY="delay 3"

PGDEV=/proc/net/pktgen/eth0
  echo "Configuring $PGDEV"
 pgset "$COUNT"
 pgset "$CLONE_SKB"
 pgset "$PKT_SIZE"
 pgset "$DELAY"
 pgset "dst ???????"
 pgset "dst_mac ????????"


# Time to run
PGDEV=/proc/net/pktgen/pgctrl

 echo "Running... ctrl^C to stop"
 pgset "start" 
 echo "Done"

====


	Sergey

[-- Attachment #2: Type: application/pgp-signature, Size: 316 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [r8169] WARNING: at net/sched/sch_generic.c
  2010-03-31 12:14   ` Sergey Senozhatsky
@ 2010-03-31 12:29     ` Eric Dumazet
  2010-03-31 13:35       ` Neil Horman
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Dumazet @ 2010-03-31 12:29 UTC (permalink / raw)
  To: Sergey Senozhatsky
  Cc: Neil Horman, netdev, Francois Romieu, David S. Miller,
	linux-kernel

Le mercredi 31 mars 2010 à 15:14 +0300, Sergey Senozhatsky a écrit :


> PKT_SIZE="pkt_size 2048"
> 

If you use 1024 bytes pktgen messages, do you still have the problem ?



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [r8169] WARNING: at net/sched/sch_generic.c
  2010-03-31 12:29     ` Eric Dumazet
@ 2010-03-31 13:35       ` Neil Horman
  2010-03-31 13:49         ` Sergey Senozhatsky
  2010-03-31 20:14         ` =?unknown-8bit?B?RnJhbsOnb2lz?= Romieu
  0 siblings, 2 replies; 8+ messages in thread
From: Neil Horman @ 2010-03-31 13:35 UTC (permalink / raw)
  To: Eric Dumazet
  Cc: Sergey Senozhatsky, netdev, Francois Romieu, David S. Miller,
	linux-kernel

On Wed, Mar 31, 2010 at 02:29:29PM +0200, Eric Dumazet wrote:
> Le mercredi 31 mars 2010 à 15:14 +0300, Sergey Senozhatsky a écrit :
> 
> 
> > PKT_SIZE="pkt_size 2048"
> > 
> 
> If you use 1024 bytes pktgen messages, do you still have the problem ?
> 
+1 I wouldn't be suprised if using something over the nominal 1522 byte frame
length on r8169 caused tx errors.  The driver doesn't seem to support Jumbo
frames, so my guess is you have to keep the packet size below 1522 bytes.
Neil

> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [r8169] WARNING: at net/sched/sch_generic.c
  2010-03-31 13:35       ` Neil Horman
@ 2010-03-31 13:49         ` Sergey Senozhatsky
  2010-03-31 20:14         ` =?unknown-8bit?B?RnJhbsOnb2lz?= Romieu
  1 sibling, 0 replies; 8+ messages in thread
From: Sergey Senozhatsky @ 2010-03-31 13:49 UTC (permalink / raw)
  To: Neil Horman
  Cc: Eric Dumazet, Sergey Senozhatsky, netdev, Francois Romieu,
	David S. Miller, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

On (03/31/10 09:35), Neil Horman wrote:
> On Wed, Mar 31, 2010 at 02:29:29PM +0200, Eric Dumazet wrote:
> > Le mercredi 31 mars 2010 à 15:14 +0300, Sergey Senozhatsky a écrit :
> > 
> > 
> > > PKT_SIZE="pkt_size 2048"
> > > 
> > 
> > If you use 1024 bytes pktgen messages, do you still have the problem ?
> > 
> +1 I wouldn't be suprised if using something over the nominal 1522 byte frame
> length on r8169 caused tx errors.  The driver doesn't seem to support Jumbo
> frames, so my guess is you have to keep the packet size below 1522 bytes.
> Neil

Hm. Good point. I'll test a bit later today.


	Sergey

[-- Attachment #2: Type: application/pgp-signature, Size: 316 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [r8169] WARNING: at net/sched/sch_generic.c
  2010-03-31 13:35       ` Neil Horman
  2010-03-31 13:49         ` Sergey Senozhatsky
@ 2010-03-31 20:14         ` =?unknown-8bit?B?RnJhbsOnb2lz?= Romieu
  2010-04-01  9:29           ` Sergey Senozhatsky
  1 sibling, 1 reply; 8+ messages in thread
From: =?unknown-8bit?B?RnJhbsOnb2lz?= Romieu @ 2010-03-31 20:14 UTC (permalink / raw)
  To: Neil Horman
  Cc: Eric Dumazet, Sergey Senozhatsky, netdev, David S. Miller,
	linux-kernel

Neil Horman <nhorman@redhat.com> :
[...]
> +1 I wouldn't be suprised if using something over the nominal 1522 byte frame
> length on r8169 caused tx errors.  The driver doesn't seem to support Jumbo
> frames, so my guess is you have to keep the packet size below 1522 bytes.

-1

The driver does not support Jumbo frames because the original 8169 will not
go much beyond 7200 (see r8169.c::SafeMtu and netdev circa 2004 december 7).

/me checks... Apparently it still works a bit.

Sergey, can you 'dmesg | grep XID' and send the output of a lspci as
well as the MTU used during the test ?

-- 
Ueimor

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [r8169] WARNING: at net/sched/sch_generic.c
  2010-03-31 20:14         ` =?unknown-8bit?B?RnJhbsOnb2lz?= Romieu
@ 2010-04-01  9:29           ` Sergey Senozhatsky
  0 siblings, 0 replies; 8+ messages in thread
From: Sergey Senozhatsky @ 2010-04-01  9:29 UTC (permalink / raw)
  To: François Romieu
  Cc: Neil Horman, Eric Dumazet, netdev, David S. Miller, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 554 bytes --]

Hello,

On (03/31/10 22:14), François Romieu wrote:
> -1
> 
> The driver does not support Jumbo frames because the original 8169 will not
> go much beyond 7200 (see r8169.c::SafeMtu and netdev circa 2004 december 7).
> 
> /me checks... Apparently it still works a bit.
> 

> Sergey, can you 'dmesg | grep XID' and send the output of a lspci as
> well as the MTU used during the test ?
> 

Sure. 

dmesg | grep XID
[   11.761633] r8169 0000:02:00.0: eth0: RTL8168b/8111b at 0xfd1da000, 00:1a:92:c9:a0:68, XID 18000000 IRQ 28


	Sergey

[-- Attachment #2: Type: application/pgp-signature, Size: 316 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-04-01  9:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-31 10:21 [r8169] WARNING: at net/sched/sch_generic.c Sergey Senozhatsky
2010-03-31 11:19 ` Neil Horman
2010-03-31 12:14   ` Sergey Senozhatsky
2010-03-31 12:29     ` Eric Dumazet
2010-03-31 13:35       ` Neil Horman
2010-03-31 13:49         ` Sergey Senozhatsky
2010-03-31 20:14         ` =?unknown-8bit?B?RnJhbsOnb2lz?= Romieu
2010-04-01  9:29           ` Sergey Senozhatsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox