Skip to contentSkip to conversation

strange network performance degradation 2.6.8-rc3-mm1 -> 2.6.8-rc4-mm1

DISCUSSION Jurriaan 3 participants 12 messages Aug 14, 2004 – Aug 15, 2004

Subsystems (2)
lore
Share & tools
lore

Jurriaan

author
#0 lore raw

My adsl-line, which is capable of reaching 450 KiB/s with 2.6.8-rc3-mm1 (and earlier kernels) barely gets 6 to 10 KiB/s with 2.6.8-rc4-mm1. The router, firewall and internet connection are the same in both cases.

I'm using the 8139TOO driver, and it seems to call pci_enable_device() in drivers/net/8139too.c.
so that should be OK.

The dmesg-output between 2.6.8-rc3-mm1 and 2.6.8-rc4-mm1 differs like this:

1c1
< Linux version 2.6.8-rc3-mm1 (jurriaan@middle) (gcc version 3.3.4 (Debian 1:3.3.4-7)) #1 SMP Fri Aug 6 07:12:48 CEST 2004
---

Quoted 1 line

Linux version 2.6.8-rc4-mm1 (jurriaan@middle) (gcc version 3.3.4 (Debian 1:3.3.4-7)) #2 SMP Tue Aug 10 09:40:51 CEST 2004

123,138c123,129
< ACPI: PCI interrupt 0000:00:1d.0[A] -> GSI 16 (level, low) -> IRQ 16 < ACPI: PCI interrupt 0000:00:1d.1[B] -> GSI 19 (level, low) -> IRQ 19 < ACPI: PCI interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 18 < ACPI: PCI interrupt 0000:00:1d.3[A] -> GSI 16 (level, low) -> IRQ 16 < ACPI: PCI interrupt 0000:00:1d.7[D] -> GSI 23 (level, low) -> IRQ 23 < ACPI: PCI interrupt 0000:00:1f.1[A] -> GSI 18 (level, low) -> IRQ 18 < ACPI: PCI interrupt 0000:00:1f.3[B] -> GSI 17 (level, low) -> IRQ 17 < ACPI: PCI interrupt 0000:00:1f.5[B] -> GSI 17 (level, low) -> IRQ 17 < ACPI: PCI interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 16 < ACPI: PCI interrupt 0000:02:00.0[A] -> GSI 16 (level, low) -> IRQ 16 < ACPI: PCI interrupt 0000:02:00.1[A] -> GSI 16 (level, low) -> IRQ 16 < ACPI: PCI interrupt 0000:02:01.0[A] -> GSI 17 (level, low) -> IRQ 17 < ACPI: PCI interrupt 0000:02:02.0[A] -> GSI 18 (level, low) -> IRQ 18 < ACPI: PCI interrupt 0000:02:05.0[A] -> GSI 21 (level, low) -> IRQ 21 < ACPI: PCI interrupt 0000:02:06.0[A] -> GSI 22 (level, low) -> IRQ 22 < ACPI: PCI interrupt 0000:02:07.0[A] -> GSI 23 (level, low) -> IRQ 23
---

Quoted 7 lines

** PCI interrupts are no longer routed automatically. If this ** causes a device to stop working, it is probably because the ** driver failed to call pci_enable_device(). As a temporary ** workaround, the "pci=routeirq" argument restores the old ** behavior. If this argument makes the device work again, ** please email the output of "lspci" to [email protected] ** so I can fix the driver.

[obviously uninteresting lines about different cpu temperatures snipped]

This behaviour happens both with /proc/sys/net/ipv4/tcp_window_scaling set to 0 or 1 (setting it to 0 or 1 doesn't matter with 2.6.8-rc3-mm1).

What could be the problem here?

2.6.8-rc4-mm1 .config:
CONFIG_X86=y
CONFIG_MMU=y
CONFIG_UID16=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_EXPERIMENTAL=y
CONFIG_BROKEN=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSCTL=y
CONFIG_LOG_BUF_SHIFT=16
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_ALL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_OBSOLETE_MODPARM=y
CONFIG_KMOD=y
CONFIG_STOP_MACHINE=y
CONFIG_X86_PC=y
CONFIG_MPENTIUM4=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_L1_CACHE_SHIFT=7
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_INTEL_USERCOPY=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_HPET_TIMER=y
CONFIG_HPET_EMULATE_RTC=y
CONFIG_SMP=y
CONFIG_NR_CPUS=2
CONFIG_SCHED_SMT=y
CONFIG_PREEMPT=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_TSC=y
CONFIG_X86_MCE=y
CONFIG_X86_MCE_NONFATAL=y
CONFIG_X86_MCE_P4THERMAL=y
CONFIG_MICROCODE=y
CONFIG_X86_MSR=y
CONFIG_X86_CPUID=y
CONFIG_HIGHMEM4G=y
CONFIG_HIGHMEM=y
CONFIG_HIGHPTE=y
CONFIG_MTRR=y
CONFIG_HAVE_DEC_LOCK=y
CONFIG_REGPARM=y
CONFIG_PM=y
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_BUS=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
CONFIG_PCI=y
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_MMCONFIG=y
CONFIG_PCI_NAMES=y
CONFIG_ISA=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_MISC=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_PARPORT=y
CONFIG_PARPORT_PC=y
CONFIG_PARPORT_PC_CML1=y
CONFIG_PARPORT_1284=y
CONFIG_BLK_DEV_FD=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDESCSI=y
CONFIG_IDE_GENERIC=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_ADMA=y
CONFIG_BLK_DEV_AMD74XX=y
CONFIG_BLK_DEV_HPT366=y
CONFIG_BLK_DEV_PIIX=y
CONFIG_BLK_DEV_PDC202XX_OLD=y
CONFIG_BLK_DEV_VIA82CXXX=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y
CONFIG_BLK_DEV_SD=y
CONFIG_CHR_DEV_ST=y
CONFIG_BLK_DEV_SR=y
CONFIG_CHR_DEV_SG=y
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_SPI_ATTRS=y
CONFIG_SCSI_SYM53C8XX_2=y
CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1
CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=16
CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64
CONFIG_SCSI_QLA2XXX=y
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_LINEAR=y
CONFIG_MD_RAID0=y
CONFIG_MD_RAID1=y
CONFIG_MD_RAID5=y
CONFIG_NET=y
CONFIG_PACKET=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_IP_ROUTE_VERBOSE=y
CONFIG_SYN_COOKIES=y
CONFIG_IPV6=y
CONFIG_NETFILTER=y
CONFIG_IP6_NF_IPTABLES=y
CONFIG_IP6_NF_MATCH_LIMIT=y
CONFIG_IP6_NF_MATCH_MAC=y
CONFIG_IP6_NF_MATCH_RT=y
CONFIG_IP6_NF_MATCH_OPTS=y
CONFIG_IP6_NF_MATCH_FRAG=y
CONFIG_IP6_NF_MATCH_HL=y
CONFIG_IP6_NF_MATCH_MULTIPORT=y
CONFIG_IP6_NF_MATCH_OWNER=y
CONFIG_IP6_NF_MATCH_MARK=y
CONFIG_IP6_NF_MATCH_IPV6HEADER=y
CONFIG_IP6_NF_MATCH_AHESP=y
CONFIG_IP6_NF_MATCH_LENGTH=y
CONFIG_IP6_NF_MATCH_EUI64=y
CONFIG_IP6_NF_FILTER=y
CONFIG_IP6_NF_TARGET_LOG=y
CONFIG_IP6_NF_MANGLE=y
CONFIG_IP6_NF_TARGET_MARK=y
CONFIG_IP6_NF_RAW=y
CONFIG_NETDEVICES=y
CONFIG_DUMMY=y
CONFIG_NET_ETHERNET=y
CONFIG_MII=y
CONFIG_NET_TULIP=y
CONFIG_TULIP=y
CONFIG_TULIP_MWI=y
CONFIG_TULIP_MMIO=y
CONFIG_NET_PCI=y
CONFIG_8139TOO=y
CONFIG_E1000=y
CONFIG_TIGON3=y
CONFIG_INPUT=y
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_SOUND_GAMEPORT=y
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y
CONFIG_SERIO_SERPORT=y
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y
CONFIG_INPUT_MISC=y
CONFIG_INPUT_PCSPKR=y
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_CORE=y
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256
CONFIG_PRINTER=y
CONFIG_WATCHDOG=y
CONFIG_SOFT_WATCHDOG=y
CONFIG_HW_RANDOM=y
CONFIG_RTC=y
CONFIG_AGP=y
CONFIG_AGP_INTEL=y
CONFIG_DRM=y
CONFIG_DRM_RADEON=y
CONFIG_DRM_MGA=y
CONFIG_HANGCHECK_TIMER=y
CONFIG_I2C=y
CONFIG_I2C_CHARDEV=m
CONFIG_I2C_ALGOBIT=y
CONFIG_I2C_ISA=m
CONFIG_I2C_VIAPRO=m
CONFIG_I2C_SENSOR=m
CONFIG_SENSORS_VIA686A=m
CONFIG_SENSORS_W83781D=m
CONFIG_SENSORS_EEPROM=m
CONFIG_FB=y
CONFIG_FB_MODE_HELPERS=y
CONFIG_VIDEO_SELECT=y
CONFIG_FB_MATROX=y
CONFIG_FB_MATROX_G450=y
CONFIG_FB_MATROX_G100=y
CONFIG_FB_RADEON=y
CONFIG_FB_RADEON_I2C=y
CONFIG_VGA_CONSOLE=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FONTS=y
CONFIG_FONT_SUN12x22=y
CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
CONFIG_LOGO_LINUX_VGA16=y
CONFIG_LOGO_LINUX_CLUT224=y
CONFIG_SOUND=y
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=y
CONFIG_SND_MPU401_UART=y
CONFIG_SND_OPL3_LIB=y
CONFIG_SND_AC97_CODEC=y
CONFIG_SND_EMU10K1=y
CONFIG_SND_CMIPCI=y
CONFIG_SND_INTEL8X0=y
CONFIG_SND_VIA82XX=y
CONFIG_USB=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_PRINTER=y
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
CONFIG_EXT2_FS=y
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_JBD=y
CONFIG_FS_MBCACHE=y
CONFIG_REISERFS_FS=y
CONFIG_XFS_FS=y
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
CONFIG_UDF_FS=y
CONFIG_UDF_NLS=y
CONFIG_FAT_FS=y
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
CONFIG_NTFS_FS=y
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
CONFIG_RAMFS=y
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_SUNRPC=y
CONFIG_MSDOS_PARTITION=y
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_ISO8859_1=y
CONFIG_DEBUG_KERNEL=y
CONFIG_EARLY_PRINTK=y
CONFIG_MAGIC_SYSRQ=y
CONFIG_FRAME_POINTER=y
CONFIG_SCHEDSTATS=y
CONFIG_X86_FIND_SMP_CONFIG=y
CONFIG_X86_MPPARSE=y
CONFIG_CRC32=y
CONFIG_X86_SMP=y
CONFIG_X86_HT=y
CONFIG_X86_BIOS_REBOOT=y
CONFIG_X86_TRAMPOLINE=y
CONFIG_PC=y

Thanks,
Jurriaan

Signature · 4 lines
Whatever women do they must do twice as well as men
to be thought of as half as good. Luckily, this is not difficult.
        Charlotte Whitton
Debian (Unstable) GNU/Linux 2.6.8-rc3-mm1 2x6078 bogomips load 0.04
#1 lore raw

Jurriaan <[email protected]> :
[8139too does not work after switch from 2.6.8-rc3-mm1 to 2.6.8-rc4-mm1]

Quoted 2 lines

The dmesg-output between 2.6.8-rc3-mm1 and 2.6.8-rc4-mm1 differs like this:

[...]

Quoted 9 lines

< ACPI: PCI interrupt 0000:02:07.0[A] -> GSI 23 (level, low) -> IRQ 23
---

Quoted 7 lines

** PCI interrupts are no longer routed automatically. If this ** causes a device to stop working, it is probably because the ** driver failed to call pci_enable_device(). As a temporary ** workaround, the "pci=routeirq" argument restores the old ** behavior. If this argument makes the device work again, ** please email the output of "lspci" to [email protected] ** so I can fix the driver.

[...]

Quoted 4 lines

This behaviour happens both with /proc/sys/net/ipv4/tcp_window_scaling set to 0 or 1 (setting it to 0 or 1 doesn't matter with 2.6.8-rc3-mm1).

What could be the problem here?

The transition from 2.6.8-rc3-mm1 to 2.6.8-rc4-mm1 changes both the point outlined above and the 8139too driver.

You may:
1 - try the "pci=routeirq" argument at startup on your 2.6.8-rc4-mm1 if you

    have not done so;
2 - apply to your 2.6.8-rc4-mm1 tree:
    http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.8-rc4-mm1/8139too-mm-revert.patch
3 - apply to your 2.6.8-rc4-mm1 tree:
    http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.8-rc4-mm1/8139too-mm-revert.patch
    http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.8-rc4-mm1/8139too-10.patch
    http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.8-rc4-mm1/8139too-20.patch

Feedback on points 1, 2 and 3 will be welcome.

Please add [email protected] to the Cc: list as it is probably/almost surely related to the driver itself.

--
Ueimor

author
#2 lore raw

From: Francois Romieu <[email protected]>
Date: Sat, Aug 14, 2004 at 02:15:33PM +0200

Quoted 8 lines
Quoted 1 line

What could be the problem here?

The transition from 2.6.8-rc3-mm1 to 2.6.8-rc4-mm1 changes both the point outlined above and the 8139too driver.

You may:
1 - try the "pci=routeirq" argument at startup on your 2.6.8-rc4-mm1 if you

    have not done so;

that didn't help

Quoted 2 lines

2 - apply to your 2.6.8-rc4-mm1 tree:

    http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.8-rc4-mm1/8139too-mm-revert.patch

I don't get it.

INTEL :patch -p1 -R --dry-run < ../268rc4mm1_8139too-mm-revert.patch patching file drivers/net/8139too.c
Hunk #1 FAILED at 593.
Hunk #2 FAILED at 1935.
Hunk #3 FAILED at 1951.
Hunk #4 FAILED at 1979.
Hunk #5 FAILED at 2006.
Hunk #6 FAILED at 2042.
Hunk #7 FAILED at 2062.
7 out of 7 hunks FAILED -- saving rejects to file drivers/net/8139too.c.rej INTEL :patch -p1 --dry-run < ../268rc4mm1_8139too-mm-revert.patch patching file drivers/net/8139too.c
Hunk #1 FAILED at 593.
Hunk #2 FAILED at 1934.
Hunk #3 FAILED at 1947.
Hunk #4 FAILED at 1976.
Hunk #5 FAILED at 1989.
Hunk #6 FAILED at 2024.
Hunk #7 FAILED at 2047.
7 out of 7 hunks FAILED -- saving rejects to file drivers/net/8139too.c.rej

This patch fails both with and without -R - how am I supposed to apply it?

Quoted 5 lines

3 - apply to your 2.6.8-rc4-mm1 tree:

    http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.8-rc4-mm1/8139too-mm-revert.patch
    http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.8-rc4-mm1/8139too-10.patch
    http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.8-rc4-mm1/8139too-20.patch

I can get the -20 patch to apply with -R (with offsets), but after that -10 with -R fails.

Since it's the network card, here's some extra info:

0000:02:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Unex Technology Corp. ND010
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (8000ns min, 16000ns max)
Interrupt: pin A routed to IRQ 23
Region 0: I/O ports at a800
Region 1: Memory at f3051000 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

Thanks,
Jurriaan [ please cc me: I'm not on netdev ]

Signature · 4 lines
No, no my lord. What I mean is we could get a mad wild killer bull
and disguise it as a bird.
	Baldrik in Blackadder II
Debian (Unstable) GNU/Linux 2.6.8-rc4-mm1 2x6078 bogomips load 0.31
#3 lore raw

Jurriaan <[email protected]> :
[...]

Quoted 4 lines
Quoted 2 lines

1 - try the "pci=routeirq" argument at startup on your 2.6.8-rc4-mm1 if you

    have not done so;

that didn't help

Ok. Bad day.

[...]

Quoted 4 lines
Quoted 2 lines

2 - apply to your 2.6.8-rc4-mm1 tree:

    http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.8-rc4-mm1/8139too-mm-revert.patch

I don't get it.

[...]

Quoted 2 lines

This patch fails both with and without -R - how am I supposed to apply it?

Without -R.

[linux-2.6.8-rc4-mm1]$ patch -p1 --dry-run < /tmp/8139too-mm-revert.patch patching file drivers/net/8139too.c
[linux-2.6.8-rc4-mm1]$ md5sum drivers/net/8139too.c 70b78e69d4c2387b63aaee943e67a244 drivers/net/8139too.c

Can you check the md5sum of the 8139too.c file in your 2.6.8-rc4-mm1 tree ?

--
Ueimor

author
#4 lore raw

From: Francois Romieu <[email protected]>
Date: Sat, Aug 14, 2004 at 05:08:24PM +0200

Quoted 7 lines

Jurriaan <[email protected]> :
[...]

Quoted 4 lines
Quoted 2 lines

1 - try the "pci=routeirq" argument at startup on your 2.6.8-rc4-mm1 if you

    have not done so;

that didn't help

Quoted 11 lines

Ok. Bad day.

[...]

Quoted 4 lines
Quoted 2 lines

2 - apply to your 2.6.8-rc4-mm1 tree:

    http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.8-rc4-mm1/8139too-mm-revert.patch

I don't get it.

[...]

Quoted 2 lines

This patch fails both with and without -R - how am I supposed to apply it?

Never mind, it seems my patch was saved incorrectly. Anyway, after applying this patch my network-traffic is as fast as it ever was.

There's no difference in dmesg-output, but I reach 450-460 KiB/s again.

If there's anything else I can test, please let me know - I gather the update did work for other people, so if testers are wanted I'm available.

Kind regards,
Jurriaan

Signature · 6 lines
'Tempers grow short,' Kruppe murmured as the commander rode away. 'But not
as short as Kruppe, for whom all nasty words whiz impactless over his head,
and are thus lost in the ether. And those darts aimed lower, ah, they but
bounce from Kruppe's ample equanimity--'
	Steven Erikson - Memories of Ice
Debian (Unstable) GNU/Linux 2.6.8-rc4-mm1 2x6078 bogomips load 0.20
#5 lore raw

Jurriaan <[email protected]> :
[...]

Quoted 4 lines

Never mind, it seems my patch was saved incorrectly. Anyway, after applying this patch my network-traffic is as fast as it ever was.

There's no difference in dmesg-output, but I reach 450-460 KiB/s again.

Ok. So Jeff was right (TM).

Quoted 3 lines

If there's anything else I can test, please let me know - I gather the update did work for other people, so if testers are wanted I'm available.

Can you apply 8139too-10.patch + 8139too-20.patch on top of your working config (namely 2.6.8-rc4-mm1 + 8139too-mm-revert.patch) and tell if things go wrong ?

--
Ueimor

author
#6 lore raw

From: Francois Romieu <[email protected]>
Date: Sat, Aug 14, 2004 at 07:28:35PM +0200

Quoted 9 lines

Jurriaan <[email protected]> :
[...]

Quoted 4 lines

Never mind, it seems my patch was saved incorrectly. Anyway, after applying this patch my network-traffic is as fast as it ever was.

There's no difference in dmesg-output, but I reach 450-460 KiB/s again.

Ok. So Jeff was right (TM).

Quoted 8 lines
Quoted 3 lines

If there's anything else I can test, please let me know - I gather the update did work for other people, so if testers are wanted I'm available.

Can you apply 8139too-10.patch + 8139too-20.patch on top of your working config (namely 2.6.8-rc4-mm1 + 8139too-mm-revert.patch) and tell if things go wrong ?

Indeed they do. Both with -10 and with -10+-20 added on my working 2.6.8-rc4-mm1 the booting process hangs somewhere while iptables is installing my ipv6 firewall. This is reproducable, I've not tried to install my firewall by hand after booting (call me paranoid).

Thus:

2.6.8-rc4-mm1: boots, slow network
2.6.8-rc4-mm1 + 8139too-mm-revert: boots, fast network 2.6.8-rc4-mm1 + 8139too-mm-revert + 8139too-10: doesn't boot 2.6.8-rc4-mm1 + 8139too-mm-revert + 8139too-10 + 8139too-20: doesn't boot

Good luck,
Jurriaan

Signature · 3 lines
Linux hackers are funny people: They count the time in patchlevels.
	Gerd Knorr
Debian (Unstable) GNU/Linux 2.6.8-rc4-mm1 2x6078 bogomips load 0.01
#7 lore raw

Jurriaan <[email protected]> :
[...]

Quoted 11 lines

Indeed they do. Both with -10 and with -10+-20 added on my working 2.6.8-rc4-mm1 the booting process hangs somewhere while iptables is installing my ipv6 firewall. This is reproducable, I've not tried to install my firewall by hand after booting (call me paranoid).

Thus:

2.6.8-rc4-mm1: boots, slow network
2.6.8-rc4-mm1 + 8139too-mm-revert: boots, fast network 2.6.8-rc4-mm1 + 8139too-mm-revert + 8139too-10: doesn't boot 2.6.8-rc4-mm1 + 8139too-mm-revert + 8139too-10 + 8139too-20: doesn't boot

Thanks. Erm... not exactly what I had expected.

Could you return to 2.6.8-rc4-mm1 + 8139too-mm-revert.patch and try each of the three patches attached ?

I.e.:
- apply patch #1
- boot test (success/crash)
- revert patch #1
- apply patch #2
- boot test (success/crash)
- revert patch #2
- apply patch #3
- boot test (success/crash)
- revert patch #3

--
Ueimor

This patch allows to update the interrupt status register after an Rx overflow or a Rx fifo error even when the Rx buffer contains no packet. The update must be kept in the packet processing loop to prevent an Rx error storm.

 drivers/net/8139too.c |   45 ++++++++++++++++++++++++++++++---------------
 1 files changed, 30 insertions(+), 15 deletions(-)
drivers/net/8139too.c renamed from drivers/net/8139too.c~8139too-10 +30 -15
diff -puN drivers/net/8139too.c~8139too-10 drivers/net/8139too.c
@@ -1927,6 +1927,23 @@ static __inline__ void wrap_copy(struct 
 }
 #endif
 
+static void rtl8139_isr_ack(struct rtl8139_private *tp, u16 status)
+{
+	void *ioaddr = tp->mmio_addr;
+
+	status = RTL_R16 (IntrStatus) & RxAckBits;
+
+	/* Clear out errors and receive interrupts */
+	if (likely(status != 0)) {
+		if (unlikely(status & (RxFIFOOver | RxOverflow))) {
+			tp->stats.rx_errors++;
+			if (status & RxFIFOOver)
+				tp->stats.rx_fifo_errors++;
+		}
+		RTL_W16_F (IntrStatus, RxAckBits);
+	}
+}
+
 static int rtl8139_rx(struct net_device *dev, struct rtl8139_private *tp,
 		      int budget)
 {
@@ -1934,20 +1951,22 @@ static int rtl8139_rx(struct net_device 
 	int received = 0;
 	unsigned char *rx_ring = tp->rx_ring;
 	unsigned int cur_rx = tp->cur_rx;
+	unsigned int rx_size = 0;
+	u16 status = 0;
 
 	DPRINTK ("%s: In rtl8139_rx(), current %4.4x BufAddr %4.4x,"
 		 " free to %4.4x, Cmd %2.2x.\n", dev->name, cur_rx,
 		 RTL_R16 (RxBufAddr),
 		 RTL_R16 (RxBufPtr), RTL_R8 (ChipCmd));
 
+	// status = RTL_R16 (IntrStatus);
+
 	while (netif_running(dev) && received < budget 
 	       && (RTL_R8 (ChipCmd) & RxBufEmpty) == 0) {
 		u32 ring_offset = cur_rx % RX_BUF_LEN;
 		u32 rx_status;
-		unsigned int rx_size;
 		unsigned int pkt_size;
 		struct sk_buff *skb;
-		u16 status;
 
 		rmb();
 
@@ -1977,7 +1996,7 @@ static int rtl8139_rx(struct net_device 
 		 */
 		if (unlikely(rx_size == 0xfff0)) {
 			tp->xstats.early_rx++;
-			goto done;
+			break;
 		}
 
 		/* If Rx err or invalid rx_size/rx_status received
@@ -1989,7 +2008,8 @@ static int rtl8139_rx(struct net_device 
 			     (rx_size < 8) ||
 			     (!(rx_status & RxStatusOK)))) {
 			rtl8139_rx_err (rx_status, dev, tp, ioaddr);
-			return -1;
+			received = -1;
+			goto out;
 		}
 
 		/* Malloc up new buffer, compatible with net-2e. */
@@ -2025,19 +2045,13 @@ static int rtl8139_rx(struct net_device 
 		cur_rx = (cur_rx + rx_size + 4 + 3) & ~3;
 		RTL_W16 (RxBufPtr, (u16) (cur_rx - 16));
 
-		/* Clear out errors and receive interrupts */
-		status = RTL_R16 (IntrStatus) & RxAckBits;
-		if (likely(status != 0)) {
-			if (unlikely(status & (RxFIFOOver | RxOverflow))) {
-				tp->stats.rx_errors++;
-				if (status & RxFIFOOver)
-					tp->stats.rx_fifo_errors++;
-			}
-			RTL_W16_F (IntrStatus, RxAckBits);
-		}
+		rtl8139_isr_ack(tp, status);
+
+		status = RTL_R16 (IntrStatus);
 	}
 
- done:
+	if (unlikely(!received || rx_size == 0xfff0))
+		rtl8139_isr_ack(tp, status);
 
 #if RTL8139_DEBUG > 1
 	DPRINTK ("%s: Done rtl8139_rx(), current %4.4x BufAddr %4.4x,"
@@ -2047,6 +2061,7 @@ static int rtl8139_rx(struct net_device 
 #endif
 
 	tp->cur_rx = cur_rx;
+out:
 	return received;
 }
 

_

This patch allows to update the interrupt status register after an Rx overflow or a Rx fifo error even when the Rx buffer contains no packet. The update must be kept in the packet processing loop to prevent an Rx error storm.

 drivers/net/8139too.c |   45 ++++++++++++++++++++++++++++++---------------
 1 files changed, 30 insertions(+), 15 deletions(-)
drivers/net/8139too.c renamed from drivers/net/8139too.c~8139too-10 +30 -15

95 lines not on this page · raw message

_

This patch allows to update the interrupt status register after an Rx overflow or a Rx fifo error even when the Rx buffer contains no packet. The update must be kept in the packet processing loop to prevent an Rx error storm.

 drivers/net/8139too.c |   45 ++++++++++++++++++++++++++++++---------------
 1 files changed, 30 insertions(+), 15 deletions(-)
drivers/net/8139too.c renamed from drivers/net/8139too.c~8139too-10 +30 -15

95 lines not on this page · raw message

_

author
#8 lore raw

From: Francois Romieu <[email protected]>
Date: Sat, Aug 14, 2004 at 09:27:40PM +0200

Quoted 14 lines

Jurriaan <[email protected]> :
[...]

Quoted 11 lines

Indeed they do. Both with -10 and with -10+-20 added on my working 2.6.8-rc4-mm1 the booting process hangs somewhere while iptables is installing my ipv6 firewall. This is reproducable, I've not tried to install my firewall by hand after booting (call me paranoid).

Thus:

2.6.8-rc4-mm1: boots, slow network
2.6.8-rc4-mm1 + 8139too-mm-revert: boots, fast network 2.6.8-rc4-mm1 + 8139too-mm-revert + 8139too-10: doesn't boot 2.6.8-rc4-mm1 + 8139too-mm-revert + 8139too-10 + 8139too-20: doesn't boot

Quoted 5 lines

Thanks. Erm... not exactly what I had expected.

Could you return to 2.6.8-rc4-mm1 + 8139too-mm-revert.patch and try each of the three patches attached ?

patch #1 boots
patch #2 doesn't boot
patch #3 boots

btw, if I shut off my ipv6 firewall, patch #2 hangs in the ntpupdate script, so it looks like the network card is hanging the system on first actual use with #2.

Kind regards,
Jurriaan

Signature · 4 lines
Well, let's just say, 'if your VCR is still blinking 12:00,
you don't want Linux'.
	Bruce Perens, Debian's Fearless Leader
Debian (Unstable) GNU/Linux 2.6.8-rc4-mm1 2x6078 bogomips load 0.34
#9 lore raw

Jurriaan <[email protected]> :

Quoted 10 lines
Quoted 7 lines
Quoted 1 line

2.6.8-rc4-mm1 + 8139too-mm-revert + 8139too-10 + 8139too-20: doesn't boot

Thanks. Erm... not exactly what I had expected.

Could you return to 2.6.8-rc4-mm1 + 8139too-mm-revert.patch and try each of the three patches attached ?

patch #1 boots
patch #2 doesn't boot
patch #3 boots

Ok, the early read of the interrupt status register is the culprit.

I have modified 8139too-10.patch so that it behaves like patch #1 and resynced the whole serie.

Can you both apply the updated patches below ?

If M.Sjoholm's setup works fine, I'll forward the update for inclusion in -mm/-netdev.

http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.8-rc4-mm1/8139too-mm-revert.patch
http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.8-rc4-mm1/8139too-10.patch
http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.8-rc4-mm1/8139too-20.patch

--
Ueimor

author
#10 lore raw

From: Francois Romieu <[email protected]>
Date: Sun, Aug 15, 2004 at 11:59:00AM +0200

Quoted 12 lines

Ok, the early read of the interrupt status register is the culprit.

I have modified 8139too-10.patch so that it behaves like patch #1 and resynced the whole serie.

Can you both apply the updated patches below ?

http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.8-rc4-mm1/8139too-mm-revert.patch
http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.8-rc4-mm1/8139too-10.patch
http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.8-rc4-mm1/8139too-20.patch

2.6.8-rc4-mm1 with those patches applied boots, and the network isn't slow either.

Thanks,
Jurriaan

Signature · 3 lines
Sort of a pregnant Johnny Cash, actually.
	Rev Hammer describing his voice in Elizabeth's Great Gallop
Debian (Unstable) GNU/Linux 2.6.8 2x6078 bogomips load 0.01
#11 lore raw
In reply to Francois Romieu
Quoted 3 lines · Francois Romieu

Ok, the early read of the interrupt status register is the culprit. If M.Sjoholm's setup works fine, I'll forward the update for inclusion in -mm/-netdev.

Tested these patches and everything worked ok.

--
Pasi Sjöholm