From owner-cvs-all Mon Jul 8 14:40:39 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 943CF37B400; Mon, 8 Jul 2002 14:40:09 -0700 (PDT) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A79B43E31; Mon, 8 Jul 2002 14:40:08 -0700 (PDT) (envelope-from dl-freebsd@catspoiler.org) Received: from mousie.catspoiler.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.12.5/8.12.5) with ESMTP id g68LdZwr001637; Mon, 8 Jul 2002 14:39:39 -0700 (PDT) (envelope-from dl-freebsd@catspoiler.org) Message-Id: <200207082139.g68LdZwr001637@gw.catspoiler.org> Date: Mon, 8 Jul 2002 14:39:35 -0700 (PDT) From: Don Lewis Subject: Re: cvs commit: src/sys/dev/fxp if_fxp.c To: luigi@FreeBSD.org Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org In-Reply-To: <200206302228.g5UMS0kk053262@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 30 Jun, Luigi Rizzo wrote: > luigi 2002/06/30 15:28:00 PDT > > Modified files: > sys/dev/fxp if_fxp.c > Log: > Fix if_timer logic so that there is always a timeout pending if there > are packets queued for transmission. > > This driver is strange -- it never sets IFF_OACTIVE, so all > transmissions always cause a call to fxp_start. However, if the > link gets stuck, there was nothing to reset it, so there was still > a possibility of lockups. > > MFC after: 3 days > > Revision Changes Path > 1.132 +4 -2 src/sys/dev/fxp/if_fxp.c I just started seeing fxp timeouts on my -current box since I upgraded the morning of July 7. # ifconfig fxp0 fxp0: flags=8843 mtu 1500 inet 192.168.101.3 netmask 0xffffff00 broadcast 192.168.101.255 inet6 fe80::202:b3ff:fe5c:8b82%fxp0 prefixlen 64 scopeid 0x1 ether 00:02:b3:5c:8b:82 media: Ethernet autoselect (10baseT/UTP) status: active # grep fxp /var/log/messages Jul 7 01:29:17 scratch kernel: fxp0: port 0xe000-0xe03f mem 0xef000000-0xef01ffff,0xef021000-0xef021fff irq 10 at device 10.0 on pci0 Jul 7 01:29:17 scratch kernel: fxp0: Ethernet address 00:02:b3:5c:8b:82 Jul 7 16:05:58 scratch kernel: fxp0: device timeout Jul 7 22:35:41 scratch kernel: fxp0: port 0xe000-0xe03f mem 0xef000000-0xef01ffff,0xef021000-0xef021fff irq 10 at device 10.0 on pci0 Jul 7 22:35:41 scratch kernel: fxp0: Ethernet address 00:02:b3:5c:8b:82 Jul 8 01:18:37 scratch kernel: fxp0: device timeout Jul 8 05:58:34 scratch kernel: fxp0: device timeout Jul 8 05:59:00 scratch kernel: fxp0: device timeout Jul 8 06:07:34 scratch kernel: fxp0: device timeout Jul 8 06:23:55 scratch kernel: fxp0: device timeout Jul 8 06:40:43 scratch kernel: fxp0: device timeout Jul 8 06:47:07 scratch kernel: fxp0: device timeout Jul 8 14:33:06 scratch kernel: fxp0: port 0xe000-0xe03f mem 0xef000000-0xef01ffff,0xef021000-0xef021fff irq 10 at device 10.0 on pci0 Jul 8 14:33:06 scratch kernel: fxp0: Ethernet address 00:02:b3:5c:8b:82 Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.0-CURRENT #10: Sun Jul 7 19:52:04 PDT 2002 dl@scratch.catspoiler.org:/usr/obj/usr/src/sys/GENERICSMB Preloaded elf kernel "/boot/kernel/kernel" at 0xc05fa000. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc05fa0a8. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 1608227873 Hz CPU: AMD Athlon(tm) XP 1900+ (1608.23-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 Features=0x383fbff AMD Features=0xffffffffc0480000 real memory = 1073676288 (1048512K bytes) avail memory = 1035603968 (1011332K bytes) Pentium Pro MTRR support enabled Using $PIR table, 11 entries at 0xc00fdc30 npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-fast" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 acpi_cpu0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 acpi_pcib0: port 0x6000-0x607f,0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff on acpi0 pci0: on acpi_pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 5.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xc400-0xc40f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xc800-0xc81f irq 5 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhub0: port error, restarting port 1 uhub0: port error, giving up port 1 uhub0: port error, restarting port 2 uhub0: port error, giving up port 2 uhci1: port 0xcc00-0xcc1f irq 5 at device 7.3 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhub1: port error, restarting port 1 uhub1: port error, giving up port 1 uhub1: port error, restarting port 2 uhub1: port error, giving up port 2 viapropm0: SMBus I/O base at 0x5000 viapropm0: port 0x5000-0x500f at device 7.4 on pci0 viapropm0: SMBus revision code 0x40 smb0: on smbus0 fxp0: port 0xe000-0xe03f mem 0xef000000-0xef01ffff,0xef021000-0xef021fff irq 10 at device 10.0 on pci0 fxp0: Ethernet address 00:02:b3:5c:8b:82 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ahc0: port 0xe400-0xe4ff mem 0xef022000-0xef022fff irq 11 at device 12.0 on pci0 aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs fdc0: port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio1 port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 orm0: