strange network performance degradation 2.6.8-rc3-mm1 -> 2.6.8-rc4-mm1
Subsystems (2)
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=yCONFIG_MMU=yCONFIG_UID16=yCONFIG_GENERIC_ISA_DMA=yCONFIG_EXPERIMENTAL=yCONFIG_BROKEN=yCONFIG_BROKEN_ON_SMP=yCONFIG_SWAP=yCONFIG_SYSVIPC=yCONFIG_SYSCTL=yCONFIG_LOG_BUF_SHIFT=16CONFIG_IKCONFIG=yCONFIG_IKCONFIG_PROC=yCONFIG_KALLSYMS=yCONFIG_KALLSYMS_ALL=yCONFIG_FUTEX=yCONFIG_EPOLL=yCONFIG_IOSCHED_NOOP=yCONFIG_IOSCHED_AS=yCONFIG_IOSCHED_DEADLINE=yCONFIG_IOSCHED_CFQ=yCONFIG_MODULES=yCONFIG_MODULE_UNLOAD=yCONFIG_OBSOLETE_MODPARM=yCONFIG_KMOD=yCONFIG_STOP_MACHINE=yCONFIG_X86_PC=yCONFIG_MPENTIUM4=yCONFIG_X86_CMPXCHG=yCONFIG_X86_XADD=yCONFIG_X86_L1_CACHE_SHIFT=7CONFIG_RWSEM_XCHGADD_ALGORITHM=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_X86_GOOD_APIC=yCONFIG_X86_INTEL_USERCOPY=yCONFIG_X86_USE_PPRO_CHECKSUM=yCONFIG_HPET_TIMER=yCONFIG_HPET_EMULATE_RTC=yCONFIG_SMP=yCONFIG_NR_CPUS=2CONFIG_SCHED_SMT=yCONFIG_PREEMPT=yCONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=yCONFIG_X86_TSC=yCONFIG_X86_MCE=yCONFIG_X86_MCE_NONFATAL=yCONFIG_X86_MCE_P4THERMAL=yCONFIG_MICROCODE=yCONFIG_X86_MSR=yCONFIG_X86_CPUID=yCONFIG_HIGHMEM4G=yCONFIG_HIGHMEM=yCONFIG_HIGHPTE=yCONFIG_MTRR=yCONFIG_HAVE_DEC_LOCK=yCONFIG_REGPARM=yCONFIG_PM=yCONFIG_ACPI=yCONFIG_ACPI_BOOT=yCONFIG_ACPI_INTERPRETER=yCONFIG_ACPI_SLEEP=yCONFIG_ACPI_SLEEP_PROC_FS=yCONFIG_ACPI_AC=yCONFIG_ACPI_BUTTON=yCONFIG_ACPI_FAN=yCONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_THERMAL=yCONFIG_ACPI_BUS=yCONFIG_ACPI_EC=yCONFIG_ACPI_POWER=yCONFIG_ACPI_PCI=yCONFIG_ACPI_SYSTEM=yCONFIG_X86_PM_TIMER=yCONFIG_PCI=yCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_PCI_MMCONFIG=yCONFIG_PCI_NAMES=yCONFIG_ISA=yCONFIG_BINFMT_ELF=yCONFIG_BINFMT_AOUT=yCONFIG_BINFMT_MISC=yCONFIG_PREVENT_FIRMWARE_BUILD=yCONFIG_PARPORT=yCONFIG_PARPORT_PC=yCONFIG_PARPORT_PC_CML1=yCONFIG_PARPORT_1284=yCONFIG_BLK_DEV_FD=yCONFIG_BLK_DEV_LOOP=yCONFIG_IDE=yCONFIG_BLK_DEV_IDE=yCONFIG_BLK_DEV_IDEDISK=yCONFIG_BLK_DEV_IDECD=yCONFIG_BLK_DEV_IDESCSI=yCONFIG_IDE_GENERIC=yCONFIG_BLK_DEV_IDEPCI=yCONFIG_IDEPCI_SHARE_IRQ=yCONFIG_BLK_DEV_IDEDMA_PCI=yCONFIG_IDEDMA_PCI_AUTO=yCONFIG_BLK_DEV_ADMA=yCONFIG_BLK_DEV_AMD74XX=yCONFIG_BLK_DEV_HPT366=yCONFIG_BLK_DEV_PIIX=yCONFIG_BLK_DEV_PDC202XX_OLD=yCONFIG_BLK_DEV_VIA82CXXX=yCONFIG_BLK_DEV_IDEDMA=yCONFIG_IDEDMA_AUTO=yCONFIG_SCSI=yCONFIG_SCSI_PROC_FS=yCONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_ST=yCONFIG_BLK_DEV_SR=yCONFIG_CHR_DEV_SG=yCONFIG_SCSI_MULTI_LUN=yCONFIG_SCSI_CONSTANTS=yCONFIG_SCSI_SPI_ATTRS=yCONFIG_SCSI_SYM53C8XX_2=yCONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=16CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64CONFIG_SCSI_QLA2XXX=yCONFIG_MD=yCONFIG_BLK_DEV_MD=yCONFIG_MD_LINEAR=yCONFIG_MD_RAID0=yCONFIG_MD_RAID1=yCONFIG_MD_RAID5=yCONFIG_NET=yCONFIG_PACKET=yCONFIG_UNIX=yCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=yCONFIG_IP_ROUTE_VERBOSE=yCONFIG_SYN_COOKIES=yCONFIG_IPV6=yCONFIG_NETFILTER=yCONFIG_IP6_NF_IPTABLES=yCONFIG_IP6_NF_MATCH_LIMIT=yCONFIG_IP6_NF_MATCH_MAC=yCONFIG_IP6_NF_MATCH_RT=yCONFIG_IP6_NF_MATCH_OPTS=yCONFIG_IP6_NF_MATCH_FRAG=yCONFIG_IP6_NF_MATCH_HL=yCONFIG_IP6_NF_MATCH_MULTIPORT=yCONFIG_IP6_NF_MATCH_OWNER=yCONFIG_IP6_NF_MATCH_MARK=yCONFIG_IP6_NF_MATCH_IPV6HEADER=yCONFIG_IP6_NF_MATCH_AHESP=yCONFIG_IP6_NF_MATCH_LENGTH=yCONFIG_IP6_NF_MATCH_EUI64=yCONFIG_IP6_NF_FILTER=yCONFIG_IP6_NF_TARGET_LOG=yCONFIG_IP6_NF_MANGLE=yCONFIG_IP6_NF_TARGET_MARK=yCONFIG_IP6_NF_RAW=yCONFIG_NETDEVICES=yCONFIG_DUMMY=yCONFIG_NET_ETHERNET=yCONFIG_MII=yCONFIG_NET_TULIP=yCONFIG_TULIP=yCONFIG_TULIP_MWI=yCONFIG_TULIP_MMIO=yCONFIG_NET_PCI=yCONFIG_8139TOO=yCONFIG_E1000=yCONFIG_TIGON3=yCONFIG_INPUT=yCONFIG_INPUT_MOUSEDEV=yCONFIG_INPUT_MOUSEDEV_PSAUX=yCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768CONFIG_SOUND_GAMEPORT=yCONFIG_SERIO=yCONFIG_SERIO_I8042=yCONFIG_SERIO_SERPORT=yCONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ATKBD=yCONFIG_INPUT_MOUSE=yCONFIG_MOUSE_PS2=yCONFIG_INPUT_MISC=yCONFIG_INPUT_PCSPKR=yCONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=yCONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_NR_UARTS=4CONFIG_SERIAL_CORE=yCONFIG_UNIX98_PTYS=yCONFIG_LEGACY_PTYS=yCONFIG_LEGACY_PTY_COUNT=256CONFIG_PRINTER=yCONFIG_WATCHDOG=yCONFIG_SOFT_WATCHDOG=yCONFIG_HW_RANDOM=yCONFIG_RTC=yCONFIG_AGP=yCONFIG_AGP_INTEL=yCONFIG_DRM=yCONFIG_DRM_RADEON=yCONFIG_DRM_MGA=yCONFIG_HANGCHECK_TIMER=yCONFIG_I2C=yCONFIG_I2C_CHARDEV=mCONFIG_I2C_ALGOBIT=yCONFIG_I2C_ISA=mCONFIG_I2C_VIAPRO=mCONFIG_I2C_SENSOR=mCONFIG_SENSORS_VIA686A=mCONFIG_SENSORS_W83781D=mCONFIG_SENSORS_EEPROM=mCONFIG_FB=yCONFIG_FB_MODE_HELPERS=yCONFIG_VIDEO_SELECT=yCONFIG_FB_MATROX=yCONFIG_FB_MATROX_G450=yCONFIG_FB_MATROX_G100=yCONFIG_FB_RADEON=yCONFIG_FB_RADEON_I2C=yCONFIG_VGA_CONSOLE=yCONFIG_DUMMY_CONSOLE=yCONFIG_FRAMEBUFFER_CONSOLE=yCONFIG_FONTS=y
CONFIG_FONT_SUN12x22=yCONFIG_LOGO=yCONFIG_LOGO_LINUX_MONO=yCONFIG_LOGO_LINUX_VGA16=yCONFIG_LOGO_LINUX_CLUT224=yCONFIG_SOUND=yCONFIG_SND=yCONFIG_SND_TIMER=yCONFIG_SND_PCM=yCONFIG_SND_HWDEP=yCONFIG_SND_RAWMIDI=yCONFIG_SND_SEQUENCER=yCONFIG_SND_OSSEMUL=yCONFIG_SND_MIXER_OSS=yCONFIG_SND_PCM_OSS=yCONFIG_SND_SEQUENCER_OSS=yCONFIG_SND_RTCTIMER=yCONFIG_SND_MPU401_UART=yCONFIG_SND_OPL3_LIB=yCONFIG_SND_AC97_CODEC=yCONFIG_SND_EMU10K1=yCONFIG_SND_CMIPCI=yCONFIG_SND_INTEL8X0=yCONFIG_SND_VIA82XX=yCONFIG_USB=yCONFIG_USB_DEVICEFS=yCONFIG_USB_EHCI_HCD=yCONFIG_USB_UHCI_HCD=yCONFIG_USB_PRINTER=yCONFIG_USB_HID=yCONFIG_USB_HIDINPUT=yCONFIG_EXT2_FS=yCONFIG_EXT3_FS=yCONFIG_EXT3_FS_XATTR=yCONFIG_JBD=yCONFIG_FS_MBCACHE=yCONFIG_REISERFS_FS=yCONFIG_XFS_FS=yCONFIG_ISO9660_FS=yCONFIG_JOLIET=yCONFIG_UDF_FS=yCONFIG_UDF_NLS=yCONFIG_FAT_FS=yCONFIG_VFAT_FS=yCONFIG_FAT_DEFAULT_CODEPAGE=437CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"CONFIG_NTFS_FS=yCONFIG_PROC_FS=yCONFIG_PROC_KCORE=yCONFIG_SYSFS=yCONFIG_TMPFS=yCONFIG_RAMFS=yCONFIG_NFS_FS=yCONFIG_NFS_V3=yCONFIG_LOCKD=yCONFIG_LOCKD_V4=yCONFIG_SUNRPC=yCONFIG_MSDOS_PARTITION=yCONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1"CONFIG_NLS_CODEPAGE_437=yCONFIG_NLS_ISO8859_1=yCONFIG_DEBUG_KERNEL=yCONFIG_EARLY_PRINTK=yCONFIG_MAGIC_SYSRQ=yCONFIG_FRAME_POINTER=yCONFIG_SCHEDSTATS=yCONFIG_X86_FIND_SMP_CONFIG=yCONFIG_X86_MPPARSE=yCONFIG_CRC32=yCONFIG_X86_SMP=yCONFIG_X86_HT=yCONFIG_X86_BIOS_REBOOT=yCONFIG_X86_TRAMPOLINE=yCONFIG_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.04Jurriaan <[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_scalingset 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.patchFeedback 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
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 youhave 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
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.patchI 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
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.patchI 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
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
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
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
@@ -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_deviceint 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
_
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
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
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
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