NetBSD Problem Report #10141
Received: (qmail 2047 invoked from network); 17 May 2000 19:17:45 -0000
Message-Id: <200005171917.e4HJHi100344@setup.cs.umn.edu>
Date: Wed, 17 May 2000 14:17:44 -0500 (CDT)
From: dokas@cs.umn.edu
Reply-To: dokas@cs.umn.edu
To: gnats-bugs@gnats.netbsd.org
Subject: fxp bug(?) on large PCs
X-Send-Pr-Version: 3.95
>Number: 10141
>Category: port-i386
>Synopsis: 'fxp0: dmasync timeout' messages
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: jhawk
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 17 19:18:01 +0000 2000
>Closed-Date: Fri May 19 16:03:16 +0000 2000
>Last-Modified: Fri May 19 16:03:16 +0000 2000
>Originator: Paul Dokas
>Release: NetBSD-current May 17, 2000
>Organization:
University of Minnesota, Dept of Computer Science
>Environment:
System: NetBSD setup 1.4Y NetBSD 1.4Y (NEXUS) #0: Wed May 17 10:12:33 CDT 2000 root@setup:/usr/src/sys/arch/i386/compile/NEXUS i386
>Description:
I've got a Dell PowerEdge 2400 with a built in fxp ethernet adapter.
Starting with yesterday's -current (May 16), I've started getting lots
of the following messages:
fxp0: dmasync timeout
at a rate of about 1 per 15 seconds.
Here's the dmesg output for this machine:
May 17 12:59:23 setup /netbsd: NetBSD 1.4Y (NEXUS) #0: Wed May 17 10:12:33 CDT 2000
May 17 12:59:23 setup /netbsd: root@setup:/usr/src/sys/arch/i386/compile/NEXUS
May 17 12:59:23 setup /netbsd: cpu0: family 6 model 8 step 1
May 17 12:59:23 setup /netbsd: cpu0: Intel Pentium III (E) (686-class)
May 17 12:59:23 setup /netbsd: total memory = 511 MB
May 17 12:59:23 setup /netbsd: avail memory = 471 MB
May 17 12:59:23 setup /netbsd: using 4870 buffers containing 26296 KB of memory
May 17 12:59:23 setup /netbsd: BIOS32 rev. 0 found at 0xffe90
May 17 12:59:23 setup /netbsd: PCI BIOS rev. 2.1 found at 0xfc7ee
May 17 12:59:23 setup /netbsd: pcibios: config mechanism [1][x], special cycles [x][x], last bus 2
May 17 12:59:23 setup /netbsd: PCI IRQ Routing Table rev. 1.0 found at 0xfc330, size 208 bytes (11 entries)
May 17 12:59:23 setup /netbsd: PCI Interrupt Router at 000:15:0 (Pequr Technology product 0x0200)
May 17 12:59:23 setup /netbsd: pci_intr_fixup: no compatible PCI ICU found
May 17 12:59:23 setup /netbsd: Warning: unable to fix up PCI interrupt routing
May 17 12:59:23 setup /netbsd: PCI bridge 0: primary 0, secondary 1, subordinate 1
May 17 12:59:24 setup /netbsd: PCI bus #1 is the last bus
May 17 12:59:24 setup /netbsd: [System BIOS Setting]-----------------------
May 17 12:59:24 setup /netbsd: device vendor product
May 17 12:59:24 setup /netbsd: register space address size mask
May 17 12:59:24 setup /netbsd: --------------------------------------------
May 17 12:59:24 setup /netbsd: 000:00:0 0x1166 0x0009
May 17 12:59:24 setup /netbsd: [OK]
May 17 12:59:24 setup /netbsd: 000:00:1 0x1166 0x0009
May 17 12:59:24 setup /netbsd: [OK]
May 17 12:59:24 setup /netbsd: 000:02:0 0x8086 0x0962
May 17 12:59:24 setup /netbsd: [OK]
May 17 12:59:24 setup /netbsd: 000:08:0 0x8086 0x1229
May 17 12:59:24 setup /netbsd: 10h mem 0xfe102000 0x00001000 0
May 17 12:59:24 setup /netbsd: 14h port 0x0000ecc0 0x00000040 1
May 17 12:59:24 setup /netbsd: 18h mem 0xfe000000 0x00100000 0
May 17 12:59:24 setup /netbsd: [OK]
May 17 12:59:24 setup /netbsd: 000:14:0 0x1002 0x4759
May 17 12:59:24 setup /netbsd: 10h mem 0xf8000000 0x01000000 8
May 17 12:59:24 setup /netbsd: 14h port 0x0000e800 0x00000100 1
May 17 12:59:25 setup /netbsd: 18h mem 0xfe101000 0x00001000 0
May 17 12:59:25 setup /netbsd: [OK]
May 17 12:59:25 setup /netbsd: 000:15:0 0x1166 0x0200
May 17 12:59:25 setup /netbsd: [OK]
May 17 12:59:25 setup /netbsd: --------------------------[ 0 devices bogus]
May 17 12:59:25 setup /netbsd: Physical memory end: 0x1fffb000
May 17 12:59:25 setup /netbsd: PCI memory mapped I/O space start: 0x20000000
May 17 12:59:25 setup /netbsd: [PCIBIOS fixup stage]-----------------------
May 17 12:59:25 setup /netbsd: device vendor product
May 17 12:59:25 setup /netbsd: register space address size mask
May 17 12:59:25 setup /netbsd: --------------------------------------------
May 17 12:59:25 setup /netbsd: 000:00:0 0x1166 0x0009
May 17 12:59:25 setup /netbsd: [OK]
May 17 12:59:25 setup /netbsd: 000:00:1 0x1166 0x0009
May 17 12:59:25 setup /netbsd: [OK]
May 17 12:59:25 setup /netbsd: 000:02:0 0x8086 0x0962
May 17 12:59:25 setup /netbsd: [OK]
May 17 12:59:25 setup /netbsd: 000:08:0 0x8086 0x1229
May 17 12:59:25 setup /netbsd: 10h mem 0xfe102000 0x00001000 0
May 17 12:59:25 setup /netbsd: 14h port 0x0000ecc0 0x00000040 1
May 17 12:59:25 setup /netbsd: 18h mem 0xfe000000 0x00100000 0
May 17 12:59:25 setup /netbsd: [OK]
May 17 12:59:25 setup /netbsd: 000:14:0 0x1002 0x4759
May 17 12:59:25 setup /netbsd: 10h mem 0xf8000000 0x01000000 8
May 17 12:59:25 setup /netbsd: 14h port 0x0000e800 0x00000100 1
May 17 12:59:25 setup /netbsd: 18h mem 0xfe101000 0x00001000 0
May 17 12:59:25 setup /netbsd: [OK]
May 17 12:59:25 setup /netbsd: 000:15:0 0x1166 0x0200
May 17 12:59:25 setup /netbsd: [OK]
May 17 12:59:25 setup /netbsd: --------------------------[ 0 devices bogus]
May 17 12:59:25 setup /netbsd: mainbus0 (root)
May 17 12:59:25 setup /netbsd: pnpbios0 at mainbus0: code f0000, data 40, entry e2f4, control 0 eventp 0
May 17 12:59:25 setup /netbsd: pnpbios0: nodes 17, max len 248
May 17 12:59:25 setup /netbsd: PNP0C02 (mem 0-9ffff 100000-1fffdfff ffe00000-ffffffff f0000-fffff, io 800-83f 580-58f 62-63 65-6f e0-ef 2c00-2c7f, irq 15) at pnpbios0 index 0 ignored
May 17 12:59:25 setup /netbsd: com2 at pnpbios0 index 1 (PNP0501)
May 17 12:59:25 setup /netbsd: com2: io 3f8-3ff, irq 4
May 17 12:59:25 setup /netbsd: com2: ns16550a, working fifo
May 17 12:59:25 setup /netbsd: com3 at pnpbios0 index 2 (PNP0501)
May 17 12:59:25 setup /netbsd: com3: io 2f8-2ff, irq 3
May 17 12:59:25 setup /netbsd: com3: ns16550a, working fifo
May 17 12:59:25 setup /netbsd: lpt1 at pnpbios0 index 3 (PNP0401)
May 17 12:59:25 setup /netbsd: lpt1: io 378-37f 778-77b, irq 7
May 17 12:59:25 setup /netbsd: PNP0700 (io 3f0-3f5, irq 6, dma 2) at pnpbios0 index 4 ignored
May 17 12:59:25 setup /netbsd: PNP0F13 (irq 12) at pnpbios0 index 5 ignored
May 17 12:59:25 setup /netbsd: PNP0A03 (io cf8-cff) at pnpbios0 index 6 ignored
May 17 12:59:25 setup /netbsd: PNP0C02 (irq 9) at pnpbios0 index 7 ignored
May 17 12:59:25 setup /netbsd: PNP0000 (io 20-3f a0-bf 4d0-4d1, irq 2) at pnpbios0 index 8 ignored
May 17 12:59:26 setup /netbsd: PNP0003 (mem fee00000-fee0ffff fec00000-fec0ffff) at pnpbios0 index 9 ignored
May 17 12:59:26 setup /netbsd: PNP0100 (io 40-5f, irq 0) at pnpbios0 index 10 ignored
May 17 12:59:26 setup /netbsd: PNP0200 (io 80-9f 0-1f c0-df, dma 4) at pnpbios0 index 11 ignored
May 17 12:59:26 setup /netbsd: PNP0303 (io 60 64, irq 1) at pnpbios0 index 12 ignored
May 17 12:59:26 setup /netbsd: PNP0800 (io 61) at pnpbios0 index 13 ignored
May 17 12:59:26 setup /netbsd: PNP0B00 (io 70-7f, irq 8) at pnpbios0 index 14 ignored
May 17 12:59:26 setup /netbsd: PNP0C04 (io f0-ff, irq 13) at pnpbios0 index 15 ignored
May 17 12:59:26 setup /netbsd: PNP0C01 (io c00-c01 c06-c08 c14 c50-c52 c6c-c6f cd6-cd7 f50-f57) at pnpbios0 index 17 ignored
May 17 12:59:26 setup /netbsd: pci0 at mainbus0 bus 0: configuration mode 1
May 17 12:59:26 setup /netbsd: pci0: i/o space, memory space enabled
May 17 12:59:26 setup /netbsd: pchb0 at pci0 dev 0 function 0
May 17 12:59:26 setup /netbsd: pchb0: Pequr Technology product 0x0009 (rev. 0x05)
May 17 12:59:26 setup /netbsd: pchb1 at pci0 dev 0 function 1
May 17 12:59:26 setup /netbsd: pchb1: Pequr Technology product 0x0009 (rev. 0x05)
May 17 12:59:26 setup /netbsd: ppb0 at pci0 dev 2 function 0: Intel product 0x0962 (rev. 0x01)
May 17 12:59:26 setup /netbsd: pci1 at ppb0 bus 1
May 17 12:59:26 setup /netbsd: pci1: i/o space, memory space enabled
May 17 12:59:26 setup /netbsd: ahc0 at pci1 dev 4 function 0
May 17 12:59:26 setup /netbsd: ahc0: interrupting at irq 14
May 17 12:59:26 setup /netbsd: ahc0: aic7890/91 Wide Channel A, SCSI Id=7, 16/255 SCBs
May 17 12:59:27 setup /netbsd: scsibus0 at ahc0 channel 0: 16 targets, 8 luns per target
May 17 12:59:27 setup /netbsd: ahc1 at pci1 dev 6 function 0
May 17 12:59:27 setup /netbsd: ahc1: interrupting at irq 5
May 17 12:59:27 setup /netbsd: ahc1: aic7880 Single Channel A, SCSI Id=7, 16/255 SCBs
May 17 12:59:27 setup /netbsd: scsibus1 at ahc1 channel 0: 8 targets, 8 luns per target
May 17 12:59:27 setup /netbsd: fxp0 at pci0 dev 8 function 0: Intel i82557 Ethernet, rev 8
May 17 12:59:27 setup /netbsd: fxp0: interrupting at irq 11
May 17 12:59:27 setup /netbsd: fxp0: Ethernet address 00:b0:d0:21:06:35, 10/100 Mb/s
May 17 12:59:27 setup /netbsd: inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
May 17 12:59:27 setup /netbsd: inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
May 17 12:59:27 setup /netbsd: vga1 at pci0 dev 14 function 0: ATI Technologies product 0x4759 (rev. 0x7a)
May 17 12:59:27 setup /netbsd: wsdisplay0 at vga1: console (80x25, vt100 emulation)
May 17 12:59:27 setup /netbsd: pcib0 at pci0 dev 15 function 0
May 17 12:59:27 setup /netbsd: pcib0: Pequr Technology product 0x0200 (rev. 0x4f)
May 17 12:59:27 setup /netbsd: isa0 at pcib0
May 17 12:59:27 setup /netbsd: pckbc0 at isa0 port 0x60-0x64
May 17 12:59:27 setup /netbsd: pckbd0 at pckbc0 (kbd slot)
May 17 12:59:27 setup /netbsd: pckbc0: using irq 1 for kbd slot
May 17 12:59:27 setup /netbsd: wskbd0 at pckbd0: console keyboard, using wsdisplay0
May 17 12:59:27 setup /netbsd: pms0 at pckbc0 (aux slot)
May 17 12:59:27 setup /netbsd: pckbc0: using irq 12 for aux slot
May 17 12:59:28 setup /netbsd: wsmouse0 at pms0 mux 0
May 17 12:59:28 setup /netbsd: pcppi0 at isa0 port 0x61
May 17 12:59:28 setup /netbsd: midi0 at pcppi0: PC speaker
May 17 12:59:28 setup /netbsd: spkr0 at pcppi0
May 17 12:59:28 setup /netbsd: sysbeep0 at pcppi0
May 17 12:59:28 setup /netbsd: isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
May 17 12:59:28 setup /netbsd: npx0 at isa0 port 0xf0-0xff: using exception 16
May 17 12:59:28 setup /netbsd: fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
May 17 12:59:28 setup /netbsd: fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
May 17 12:59:28 setup /netbsd: isapnp0: no ISA Plug 'n Play devices found
May 17 12:59:28 setup /netbsd: biomask e765 netmask ef65 ttymask ffe7
May 17 12:59:28 setup /netbsd: scsibus0: waiting 2 seconds for devices to settle...
May 17 12:59:28 setup /netbsd: ahc0: target 0 using 16bit transfers
May 17 12:59:28 setup /netbsd: ahc0: target 0 synchronous at 40.0MHz, offset = 0x1f
May 17 12:59:28 setup /netbsd: ahc0: target 0 using tagged queuing
May 17 12:59:28 setup /netbsd: sd0 at scsibus0 target 0 lun 0: <QUANTUM, ATLAS 10K 36SCA, UCHD> SCSI3 0/direct fixed
May 17 12:59:28 setup /netbsd: sd0: 34732 MB, 10042 cyl, 24 head, 295 sec, 512 bytes/sect x 71132998 sectors
May 17 12:59:29 setup /netbsd: ahc0: target 1 using 16bit transfers
May 17 12:59:29 setup /netbsd: ahc0: target 1 synchronous at 40.0MHz, offset = 0x1f
May 17 12:59:29 setup /netbsd: ahc0: target 1 using tagged queuing
May 17 12:59:29 setup /netbsd: sd1 at scsibus0 target 1 lun 0: <QUANTUM, ATLAS 10K 36SCA, UCHD> SCSI3 0/direct fixed
May 17 12:59:29 setup /netbsd: sd1: 34732 MB, 10042 cyl, 24 head, 295 sec, 512 bytes/sect x 71132998 sectors
May 17 12:59:29 setup /netbsd: ahc0: target 6 using 8bit transfers
May 17 12:59:29 setup /netbsd: ahc0: target 6 using asynchronous transfers
May 17 12:59:29 setup /netbsd: uk0 at scsibus0 target 6 lun 0: <DELL, 1x4 U2W SCSI BP, 5.24> SCSI2 3/processor fixed
May 17 12:59:29 setup /netbsd: uk0: unknown device
May 17 12:59:29 setup /netbsd: scsibus1: waiting 2 seconds for devices to settle...
May 17 12:59:29 setup /netbsd: ahc1: target 1 synchronous at 20.0MHz, offset = 0xf
May 17 12:59:29 setup /netbsd: ahc1: target 1 using tagged queuing
May 17 12:59:29 setup /netbsd: sd2 at scsibus1 target 1 lun 0: <SEAGATE, ST34520N, 1487> SCSI2 0/direct fixed
May 17 12:59:29 setup /netbsd: sd2: 4340 MB, 9006 cyl, 4 head, 246 sec, 512 bytes/sect x 8888924 sectors
May 17 12:59:29 setup /netbsd: Kernelized RAIDframe activated
May 17 12:59:29 setup /netbsd: IPsec: Initialized Security Association Processing.
May 17 12:59:29 setup /netbsd: boot device: sd2
May 17 12:59:29 setup /netbsd: root on sd2a dumps on sd2b
May 17 12:59:30 setup /netbsd: root file system type: ffs
May 17 12:59:30 setup /netbsd: RAIDFRAME: protectedSectors is 64
May 17 12:59:30 setup /netbsd: raid0: Component /dev/sd0a being configured at row: 0 col: 0
May 17 12:59:30 setup /netbsd: Row: 0 Column: 0 Num Rows: 1 Num Columns: 2
May 17 12:59:30 setup /netbsd: Version: 2 Serial Number: 123456 Mod Counter: 165
May 17 12:59:30 setup /netbsd: Clean: Yes Status: 0
May 17 12:59:30 setup /netbsd: raid0: Component /dev/sd1a being configured at row: 0 col: 1
May 17 12:59:30 setup /netbsd: Row: 0 Column: 1 Num Rows: 1 Num Columns: 2
May 17 12:59:30 setup /netbsd: Version: 2 Serial Number: 123456 Mod Counter: 165
May 17 12:59:30 setup /netbsd: Clean: Yes Status: 0
May 17 12:59:30 setup /netbsd: RAIDFRAME: Configure (RAID Level 0): total number of sectors is 142194432 (69430 MB)
May 17 12:59:30 setup /netbsd: RAIDFRAME(RAID Level 0): Using 6 floating recon bufs with no head sep limit
May 17 12:59:30 setup /netbsd: IP Filter: v3.4.2 initialized. Default = pass all, Logging = enabled
May 17 12:59:30 setup /netbsd: fxp0: dmasync timeout
May 17 12:59:30 setup /netbsd: fxp0: dmasync timeout
May 17 12:59:30 setup /netbsd: wsdisplay0: screen 1 added (80x25, vt100 emulation)
May 17 12:59:30 setup /netbsd: wsdisplay0: screen 2 added (80x25, vt100 emulation)
May 17 12:59:30 setup /netbsd: wsdisplay0: screen 3 added (80x25, vt100 emulation)
May 17 12:59:30 setup /netbsd: wsdisplay0: screen 4 added (80x25, vt100 emulation)
May 17 12:59:30 setup /netbsd: wsmux1: connecting to wsdisplay0
May 17 12:59:24 setup savecore: no core dump
May 17 12:59:43 setup /netbsd: fxp0: dmasync timeout
May 17 13:00:15 setup last message repeated 2 times
May 17 13:02:07 setup last message repeated 7 times
May 17 13:12:12 setup last message repeated 37 times
May 17 13:22:19 setup last message repeated 37 times
May 17 13:32:20 setup last message repeated 37 times
May 17 13:42:12 setup last message repeated 37 times
>How-To-Repeat:
Use the fxp device on a Dell PowerEdge 2400? I'm really not sure if this can
easily be repeated. I'm willing to be a guinnea pig and test experimental
patches.
>Fix:
Unknown.
>Release-Note:
>Audit-Trail:
From: <abs@mono.org>
To: dokas@cs.umn.edu
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-i386/10141: fxp bug(?) on large PCs
Date: Wed, 17 May 2000 20:27:55 +0100 (BST)
Just a datapoint - we're running a relatively recent -current on
a Dell PE1300 and using the same adaptor without any problems
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
Copy of our dmesg in case its any help:
NetBSD 1.4X (wopr) #0: Fri Apr 21 15:08:53 BST 2000
abs@wopr.int.purplei.com:/home/abs/wopr
cpu0: family 6 model 7 step 3
cpu0: Intel Pentium III (686-class)
total memory = 191 MB
avail memory = 155 MB
using 4870 buffers containing 29400 KB of memory
BIOS32 rev. 0 found at 0xffe90
PCI BIOS rev. 2.1 found at 0xfc85e
PCI IRQ Routing Table rev. 1.0 found at 0xfc410, size 192 bytes (10 entries)
PCI Interrupt Router at 000:07:0 (Intel 82371FB PCI-to-ISA Bridge (PIIX))
mainbus0 (root)
pnpbios0 at mainbus0: nodes 16, max len 248
com3 at pnpbios0 index 1 (PNP0501)
com3: io 3f8-3ff, irq 4
com3: ns16550a, working fifo
com4 at pnpbios0 index 2 (PNP0501)
com4: io 2f8-2ff, irq 3
com4: ns16550a, working fifo
lpt3 at pnpbios0 index 3 (PNP0401)
lpt3: io 378-37f 778-77b, irq 7
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443BX Host Bridge/Controller (rev. 0x03)
ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Interface (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: ATI Technologies Mach64 GW (rev. 0x7a)
wsdisplay0 at vga0: console (80x25, vt100 emulation)
ppb1 at pci0 dev 2 function 0: Digital Equipment DECchip 21152 PCI-PCI Bridge (r
ev. 0x03)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
ahc0 at pci2 dev 11 function 0
ahc0: interrupting at irq 11
ahc0: aic7890/91 Wide Channel A, SCSI Id=7, 16/255 SCBs
scsibus0 at ahc0 channel 0: 16 targets, 8 luns per target
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <IBM-DPTA-372050>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 19574 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 40088160 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <SAMSUNG SC-140B, , d005> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev.
0x01)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revisio
n 0x02) at pci0 dev 7 function 3 not configured
fxp0 at pci0 dev 13 function 0: Intel i82557 Ethernet, rev 8
fxp0: interrupting at irq 10
fxp0: Ethernet address 00:d0:b7:47:23:17, 10/100 Mb/s
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at pcib0
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2
biomask eb65 netmask ef65 ttymask ffe7
scsibus0: waiting 2 seconds for devices to settle...
ahc0: target 0 using 16bit transfers
ahc0: target 0 synchronous at 40.0MHz, offset = 0x1f
ahc0: target 0 using tagged queuing
sd0 at scsibus0 target 0 lun 0: <QUANTUM, ATLAS IV 9 WLS, 0808> SCSI3 0/direct f
ixed
sd0: 8683 MB, 13816 cyl, 4 head, 321 sec, 512 bytes/sect x 17783249 sectors
ahc0: target 1 using 16bit transfers
ahc0: target 1 synchronous at 40.0MHz, offset = 0x1f
ahc0: target 1 using tagged queuing
sd1 at scsibus0 target 1 lun 0: <IBM, DMVS18N, 0250> SCSI3 0/direct fixed
sd1: 17501 MB, 11736 cyl, 10 head, 305 sec, 512 bytes/sect x 35843670 sectors
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
David/absolute
-- www.netbsd.org: No hype required --
On Wed, 17 May 2000 dokas@cs.umn.edu wrote:
>
> >Number: 10141
> >Category: port-i386
> >Synopsis: 'fxp0: dmasync timeout' messages
> >Confidential: no
> >Severity: serious
> >Priority: medium
> >Responsible: port-i386-maintainer
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Wed May 17 12:18:01 PDT 2000
> >Closed-Date:
> >Last-Modified:
> >Originator: Paul Dokas
> >Release: NetBSD-current May 17, 2000
> >Organization:
> University of Minnesota, Dept of Computer Science
> >Environment:
>
> System: NetBSD setup 1.4Y NetBSD 1.4Y (NEXUS) #0: Wed May 17 10:12:33 CDT 2000 root@setup:/usr/src/sys/arch/i386/compile/NEXUS i386
>
>
> >Description:
> I've got a Dell PowerEdge 2400 with a built in fxp ethernet adapter.
> Starting with yesterday's -current (May 16), I've started getting lots
> of the following messages:
>
> fxp0: dmasync timeout
>
> at a rate of about 1 per 15 seconds.
>
>
> Here's the dmesg output for this machine:
>
> May 17 12:59:23 setup /netbsd: NetBSD 1.4Y (NEXUS) #0: Wed May 17 10:12:33 CDT 2000
> May 17 12:59:23 setup /netbsd: root@setup:/usr/src/sys/arch/i386/compile/NEXUS
> May 17 12:59:23 setup /netbsd: cpu0: family 6 model 8 step 1
> May 17 12:59:23 setup /netbsd: cpu0: Intel Pentium III (E) (686-class)
> May 17 12:59:23 setup /netbsd: total memory = 511 MB
> May 17 12:59:23 setup /netbsd: avail memory = 471 MB
> May 17 12:59:23 setup /netbsd: using 4870 buffers containing 26296 KB of memory
> May 17 12:59:23 setup /netbsd: BIOS32 rev. 0 found at 0xffe90
> May 17 12:59:23 setup /netbsd: PCI BIOS rev. 2.1 found at 0xfc7ee
> May 17 12:59:23 setup /netbsd: pcibios: config mechanism [1][x], special cycles [x][x], last bus 2
> May 17 12:59:23 setup /netbsd: PCI IRQ Routing Table rev. 1.0 found at 0xfc330, size 208 bytes (11 entries)
> May 17 12:59:23 setup /netbsd: PCI Interrupt Router at 000:15:0 (Pequr Technology product 0x0200)
> May 17 12:59:23 setup /netbsd: pci_intr_fixup: no compatible PCI ICU found
> May 17 12:59:23 setup /netbsd: Warning: unable to fix up PCI interrupt routing
> May 17 12:59:23 setup /netbsd: PCI bridge 0: primary 0, secondary 1, subordinate 1
> May 17 12:59:24 setup /netbsd: PCI bus #1 is the last bus
> May 17 12:59:24 setup /netbsd: [System BIOS Setting]-----------------------
> May 17 12:59:24 setup /netbsd: device vendor product
> May 17 12:59:24 setup /netbsd: register space address size mask
> May 17 12:59:24 setup /netbsd: --------------------------------------------
> May 17 12:59:24 setup /netbsd: 000:00:0 0x1166 0x0009
> May 17 12:59:24 setup /netbsd: [OK]
> May 17 12:59:24 setup /netbsd: 000:00:1 0x1166 0x0009
> May 17 12:59:24 setup /netbsd: [OK]
> May 17 12:59:24 setup /netbsd: 000:02:0 0x8086 0x0962
> May 17 12:59:24 setup /netbsd: [OK]
> May 17 12:59:24 setup /netbsd: 000:08:0 0x8086 0x1229
> May 17 12:59:24 setup /netbsd: 10h mem 0xfe102000 0x00001000 0
> May 17 12:59:24 setup /netbsd: 14h port 0x0000ecc0 0x00000040 1
> May 17 12:59:24 setup /netbsd: 18h mem 0xfe000000 0x00100000 0
> May 17 12:59:24 setup /netbsd: [OK]
> May 17 12:59:24 setup /netbsd: 000:14:0 0x1002 0x4759
> May 17 12:59:24 setup /netbsd: 10h mem 0xf8000000 0x01000000 8
> May 17 12:59:24 setup /netbsd: 14h port 0x0000e800 0x00000100 1
> May 17 12:59:25 setup /netbsd: 18h mem 0xfe101000 0x00001000 0
> May 17 12:59:25 setup /netbsd: [OK]
> May 17 12:59:25 setup /netbsd: 000:15:0 0x1166 0x0200
> May 17 12:59:25 setup /netbsd: [OK]
> May 17 12:59:25 setup /netbsd: --------------------------[ 0 devices bogus]
> May 17 12:59:25 setup /netbsd: Physical memory end: 0x1fffb000
> May 17 12:59:25 setup /netbsd: PCI memory mapped I/O space start: 0x20000000
> May 17 12:59:25 setup /netbsd: [PCIBIOS fixup stage]-----------------------
> May 17 12:59:25 setup /netbsd: device vendor product
> May 17 12:59:25 setup /netbsd: register space address size mask
> May 17 12:59:25 setup /netbsd: --------------------------------------------
> May 17 12:59:25 setup /netbsd: 000:00:0 0x1166 0x0009
> May 17 12:59:25 setup /netbsd: [OK]
> May 17 12:59:25 setup /netbsd: 000:00:1 0x1166 0x0009
> May 17 12:59:25 setup /netbsd: [OK]
> May 17 12:59:25 setup /netbsd: 000:02:0 0x8086 0x0962
> May 17 12:59:25 setup /netbsd: [OK]
> May 17 12:59:25 setup /netbsd: 000:08:0 0x8086 0x1229
> May 17 12:59:25 setup /netbsd: 10h mem 0xfe102000 0x00001000 0
> May 17 12:59:25 setup /netbsd: 14h port 0x0000ecc0 0x00000040 1
> May 17 12:59:25 setup /netbsd: 18h mem 0xfe000000 0x00100000 0
> May 17 12:59:25 setup /netbsd: [OK]
> May 17 12:59:25 setup /netbsd: 000:14:0 0x1002 0x4759
> May 17 12:59:25 setup /netbsd: 10h mem 0xf8000000 0x01000000 8
> May 17 12:59:25 setup /netbsd: 14h port 0x0000e800 0x00000100 1
> May 17 12:59:25 setup /netbsd: 18h mem 0xfe101000 0x00001000 0
> May 17 12:59:25 setup /netbsd: [OK]
> May 17 12:59:25 setup /netbsd: 000:15:0 0x1166 0x0200
> May 17 12:59:25 setup /netbsd: [OK]
> May 17 12:59:25 setup /netbsd: --------------------------[ 0 devices bogus]
> May 17 12:59:25 setup /netbsd: mainbus0 (root)
> May 17 12:59:25 setup /netbsd: pnpbios0 at mainbus0: code f0000, data 40, entry e2f4, control 0 eventp 0
> May 17 12:59:25 setup /netbsd: pnpbios0: nodes 17, max len 248
> May 17 12:59:25 setup /netbsd: PNP0C02 (mem 0-9ffff 100000-1fffdfff ffe00000-ffffffff f0000-fffff, io 800-83f 580-58f 62-63 65-6f e0-ef 2c00-2c7f, irq 15) at pnpbios0 index 0 ignored
> May 17 12:59:25 setup /netbsd: com2 at pnpbios0 index 1 (PNP0501)
> May 17 12:59:25 setup /netbsd: com2: io 3f8-3ff, irq 4
> May 17 12:59:25 setup /netbsd: com2: ns16550a, working fifo
> May 17 12:59:25 setup /netbsd: com3 at pnpbios0 index 2 (PNP0501)
> May 17 12:59:25 setup /netbsd: com3: io 2f8-2ff, irq 3
> May 17 12:59:25 setup /netbsd: com3: ns16550a, working fifo
> May 17 12:59:25 setup /netbsd: lpt1 at pnpbios0 index 3 (PNP0401)
> May 17 12:59:25 setup /netbsd: lpt1: io 378-37f 778-77b, irq 7
> May 17 12:59:25 setup /netbsd: PNP0700 (io 3f0-3f5, irq 6, dma 2) at pnpbios0 index 4 ignored
> May 17 12:59:25 setup /netbsd: PNP0F13 (irq 12) at pnpbios0 index 5 ignored
> May 17 12:59:25 setup /netbsd: PNP0A03 (io cf8-cff) at pnpbios0 index 6 ignored
> May 17 12:59:25 setup /netbsd: PNP0C02 (irq 9) at pnpbios0 index 7 ignored
> May 17 12:59:25 setup /netbsd: PNP0000 (io 20-3f a0-bf 4d0-4d1, irq 2) at pnpbios0 index 8 ignored
> May 17 12:59:26 setup /netbsd: PNP0003 (mem fee00000-fee0ffff fec00000-fec0ffff) at pnpbios0 index 9 ignored
> May 17 12:59:26 setup /netbsd: PNP0100 (io 40-5f, irq 0) at pnpbios0 index 10 ignored
> May 17 12:59:26 setup /netbsd: PNP0200 (io 80-9f 0-1f c0-df, dma 4) at pnpbios0 index 11 ignored
> May 17 12:59:26 setup /netbsd: PNP0303 (io 60 64, irq 1) at pnpbios0 index 12 ignored
> May 17 12:59:26 setup /netbsd: PNP0800 (io 61) at pnpbios0 index 13 ignored
> May 17 12:59:26 setup /netbsd: PNP0B00 (io 70-7f, irq 8) at pnpbios0 index 14 ignored
> May 17 12:59:26 setup /netbsd: PNP0C04 (io f0-ff, irq 13) at pnpbios0 index 15 ignored
> May 17 12:59:26 setup /netbsd: PNP0C01 (io c00-c01 c06-c08 c14 c50-c52 c6c-c6f cd6-cd7 f50-f57) at pnpbios0 index 17 ignored
> May 17 12:59:26 setup /netbsd: pci0 at mainbus0 bus 0: configuration mode 1
> May 17 12:59:26 setup /netbsd: pci0: i/o space, memory space enabled
> May 17 12:59:26 setup /netbsd: pchb0 at pci0 dev 0 function 0
> May 17 12:59:26 setup /netbsd: pchb0: Pequr Technology product 0x0009 (rev. 0x05)
> May 17 12:59:26 setup /netbsd: pchb1 at pci0 dev 0 function 1
> May 17 12:59:26 setup /netbsd: pchb1: Pequr Technology product 0x0009 (rev. 0x05)
> May 17 12:59:26 setup /netbsd: ppb0 at pci0 dev 2 function 0: Intel product 0x0962 (rev. 0x01)
> May 17 12:59:26 setup /netbsd: pci1 at ppb0 bus 1
> May 17 12:59:26 setup /netbsd: pci1: i/o space, memory space enabled
> May 17 12:59:26 setup /netbsd: ahc0 at pci1 dev 4 function 0
> May 17 12:59:26 setup /netbsd: ahc0: interrupting at irq 14
> May 17 12:59:26 setup /netbsd: ahc0: aic7890/91 Wide Channel A, SCSI Id=7, 16/255 SCBs
> May 17 12:59:27 setup /netbsd: scsibus0 at ahc0 channel 0: 16 targets, 8 luns per target
> May 17 12:59:27 setup /netbsd: ahc1 at pci1 dev 6 function 0
> May 17 12:59:27 setup /netbsd: ahc1: interrupting at irq 5
> May 17 12:59:27 setup /netbsd: ahc1: aic7880 Single Channel A, SCSI Id=7, 16/255 SCBs
> May 17 12:59:27 setup /netbsd: scsibus1 at ahc1 channel 0: 8 targets, 8 luns per target
> May 17 12:59:27 setup /netbsd: fxp0 at pci0 dev 8 function 0: Intel i82557 Ethernet, rev 8
> May 17 12:59:27 setup /netbsd: fxp0: interrupting at irq 11
> May 17 12:59:27 setup /netbsd: fxp0: Ethernet address 00:b0:d0:21:06:35, 10/100 Mb/s
> May 17 12:59:27 setup /netbsd: inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
> May 17 12:59:27 setup /netbsd: inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> May 17 12:59:27 setup /netbsd: vga1 at pci0 dev 14 function 0: ATI Technologies product 0x4759 (rev. 0x7a)
> May 17 12:59:27 setup /netbsd: wsdisplay0 at vga1: console (80x25, vt100 emulation)
> May 17 12:59:27 setup /netbsd: pcib0 at pci0 dev 15 function 0
> May 17 12:59:27 setup /netbsd: pcib0: Pequr Technology product 0x0200 (rev. 0x4f)
> May 17 12:59:27 setup /netbsd: isa0 at pcib0
> May 17 12:59:27 setup /netbsd: pckbc0 at isa0 port 0x60-0x64
> May 17 12:59:27 setup /netbsd: pckbd0 at pckbc0 (kbd slot)
> May 17 12:59:27 setup /netbsd: pckbc0: using irq 1 for kbd slot
> May 17 12:59:27 setup /netbsd: wskbd0 at pckbd0: console keyboard, using wsdisplay0
> May 17 12:59:27 setup /netbsd: pms0 at pckbc0 (aux slot)
> May 17 12:59:27 setup /netbsd: pckbc0: using irq 12 for aux slot
> May 17 12:59:28 setup /netbsd: wsmouse0 at pms0 mux 0
> May 17 12:59:28 setup /netbsd: pcppi0 at isa0 port 0x61
> May 17 12:59:28 setup /netbsd: midi0 at pcppi0: PC speaker
> May 17 12:59:28 setup /netbsd: spkr0 at pcppi0
> May 17 12:59:28 setup /netbsd: sysbeep0 at pcppi0
> May 17 12:59:28 setup /netbsd: isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
> May 17 12:59:28 setup /netbsd: npx0 at isa0 port 0xf0-0xff: using exception 16
> May 17 12:59:28 setup /netbsd: fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
> May 17 12:59:28 setup /netbsd: fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
> May 17 12:59:28 setup /netbsd: isapnp0: no ISA Plug 'n Play devices found
> May 17 12:59:28 setup /netbsd: biomask e765 netmask ef65 ttymask ffe7
> May 17 12:59:28 setup /netbsd: scsibus0: waiting 2 seconds for devices to settle...
> May 17 12:59:28 setup /netbsd: ahc0: target 0 using 16bit transfers
> May 17 12:59:28 setup /netbsd: ahc0: target 0 synchronous at 40.0MHz, offset = 0x1f
> May 17 12:59:28 setup /netbsd: ahc0: target 0 using tagged queuing
> May 17 12:59:28 setup /netbsd: sd0 at scsibus0 target 0 lun 0: <QUANTUM, ATLAS 10K 36SCA, UCHD> SCSI3 0/direct fixed
> May 17 12:59:28 setup /netbsd: sd0: 34732 MB, 10042 cyl, 24 head, 295 sec, 512 bytes/sect x 71132998 sectors
> May 17 12:59:29 setup /netbsd: ahc0: target 1 using 16bit transfers
> May 17 12:59:29 setup /netbsd: ahc0: target 1 synchronous at 40.0MHz, offset = 0x1f
> May 17 12:59:29 setup /netbsd: ahc0: target 1 using tagged queuing
> May 17 12:59:29 setup /netbsd: sd1 at scsibus0 target 1 lun 0: <QUANTUM, ATLAS 10K 36SCA, UCHD> SCSI3 0/direct fixed
> May 17 12:59:29 setup /netbsd: sd1: 34732 MB, 10042 cyl, 24 head, 295 sec, 512 bytes/sect x 71132998 sectors
> May 17 12:59:29 setup /netbsd: ahc0: target 6 using 8bit transfers
> May 17 12:59:29 setup /netbsd: ahc0: target 6 using asynchronous transfers
> May 17 12:59:29 setup /netbsd: uk0 at scsibus0 target 6 lun 0: <DELL, 1x4 U2W SCSI BP, 5.24> SCSI2 3/processor fixed
> May 17 12:59:29 setup /netbsd: uk0: unknown device
> May 17 12:59:29 setup /netbsd: scsibus1: waiting 2 seconds for devices to settle...
> May 17 12:59:29 setup /netbsd: ahc1: target 1 synchronous at 20.0MHz, offset = 0xf
> May 17 12:59:29 setup /netbsd: ahc1: target 1 using tagged queuing
> May 17 12:59:29 setup /netbsd: sd2 at scsibus1 target 1 lun 0: <SEAGATE, ST34520N, 1487> SCSI2 0/direct fixed
> May 17 12:59:29 setup /netbsd: sd2: 4340 MB, 9006 cyl, 4 head, 246 sec, 512 bytes/sect x 8888924 sectors
> May 17 12:59:29 setup /netbsd: Kernelized RAIDframe activated
> May 17 12:59:29 setup /netbsd: IPsec: Initialized Security Association Processing.
> May 17 12:59:29 setup /netbsd: boot device: sd2
> May 17 12:59:29 setup /netbsd: root on sd2a dumps on sd2b
> May 17 12:59:30 setup /netbsd: root file system type: ffs
> May 17 12:59:30 setup /netbsd: RAIDFRAME: protectedSectors is 64
> May 17 12:59:30 setup /netbsd: raid0: Component /dev/sd0a being configured at row: 0 col: 0
> May 17 12:59:30 setup /netbsd: Row: 0 Column: 0 Num Rows: 1 Num Columns: 2
> May 17 12:59:30 setup /netbsd: Version: 2 Serial Number: 123456 Mod Counter: 165
> May 17 12:59:30 setup /netbsd: Clean: Yes Status: 0
> May 17 12:59:30 setup /netbsd: raid0: Component /dev/sd1a being configured at row: 0 col: 1
> May 17 12:59:30 setup /netbsd: Row: 0 Column: 1 Num Rows: 1 Num Columns: 2
> May 17 12:59:30 setup /netbsd: Version: 2 Serial Number: 123456 Mod Counter: 165
> May 17 12:59:30 setup /netbsd: Clean: Yes Status: 0
> May 17 12:59:30 setup /netbsd: RAIDFRAME: Configure (RAID Level 0): total number of sectors is 142194432 (69430 MB)
> May 17 12:59:30 setup /netbsd: RAIDFRAME(RAID Level 0): Using 6 floating recon bufs with no head sep limit
> May 17 12:59:30 setup /netbsd: IP Filter: v3.4.2 initialized. Default = pass all, Logging = enabled
> May 17 12:59:30 setup /netbsd: fxp0: dmasync timeout
> May 17 12:59:30 setup /netbsd: fxp0: dmasync timeout
> May 17 12:59:30 setup /netbsd: wsdisplay0: screen 1 added (80x25, vt100 emulation)
> May 17 12:59:30 setup /netbsd: wsdisplay0: screen 2 added (80x25, vt100 emulation)
> May 17 12:59:30 setup /netbsd: wsdisplay0: screen 3 added (80x25, vt100 emulation)
> May 17 12:59:30 setup /netbsd: wsdisplay0: screen 4 added (80x25, vt100 emulation)
> May 17 12:59:30 setup /netbsd: wsmux1: connecting to wsdisplay0
> May 17 12:59:24 setup savecore: no core dump
> May 17 12:59:43 setup /netbsd: fxp0: dmasync timeout
> May 17 13:00:15 setup last message repeated 2 times
> May 17 13:02:07 setup last message repeated 7 times
> May 17 13:12:12 setup last message repeated 37 times
> May 17 13:22:19 setup last message repeated 37 times
> May 17 13:32:20 setup last message repeated 37 times
> May 17 13:42:12 setup last message repeated 37 times
>
> >How-To-Repeat:
>
> Use the fxp device on a Dell PowerEdge 2400? I'm really not sure if this can
> easily be repeated. I'm willing to be a guinnea pig and test experimental
> patches.
>
> >Fix:
> Unknown.
> >Release-Note:
> >Audit-Trail:
> >Unformatted:
>
Responsible-Changed-From-To: port-i386-maintainer->jhawk
Responsible-Changed-By: jhawk
Responsible-Changed-When: Wed May 17 13:09:59 PDT 2000
Responsible-Changed-Why:
I "broke" this.
From: John Hawkinson <jhawk@MIT.EDU>
To: dokas@cs.umn.edu
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: port-i386/10141: fxp bug(?) on large PCs
Date: Wed, 17 May 2000 16:23:29 -0400 (EDT)
| >Description:
| I've got a Dell PowerEdge 2400 with a built in fxp ethernet adapter.
| Starting with yesterday's -current (May 16), I've started getting lots
| of the following messages:
|
| fxp0: dmasync timeout
|
| at a rate of about 1 per 15 seconds.
Interesting.
I added checks to the fxp driver (dev/ic/i82557.c) to avoid some places
where it had the potential to hang forever:
----------------------------
revision 1.26
date: 2000/05/12 03:35:57; author: jhawk; state: Exp; lines: +26 -7
Catch some potentially infinite loops in while() loops if the chip happens
to "go insane" and never complete some operations (dmasync, etc.).
----------------------------
It appears that in some cases those timeouts may be too short.
It would be good to know which of the timeouts is causing the problem,
and what a better value for it might be. Perhaps the attached patch,
for instance.
Could you also try frobbing the timeout count before the loop,
for instance:
1373 i = 10000;
1374 do {
1375 FXP_CDCONFIGSYNC(sc,
1376 BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
1377 } while ((cbp->cb_status & FXP_CB_STATUS_C) == 0 && --i);
1378 if (i == 0) {
1379 printf("%s: dmasync timeout\n", sc->sc_dev.dv_xname);
1380 return ETIMEDOUT;
change the initialization of i to 100,000 and see if that improves things?
Thanks.
--jhawk
*** sys/dev/ic/i82557.c Wed May 17 16:19:13 2000
--- sys/dev/ic/i82557.c Wed May 17 16:16:42 2000
***************
*** 1376,1382 ****
BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
} while ((cbp->cb_status & FXP_CB_STATUS_C) == 0 && --i);
if (i == 0) {
! printf("%s: dmasync timeout\n", sc->sc_dev.dv_xname);
return ETIMEDOUT;
}
--- 1376,1382 ----
BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
} while ((cbp->cb_status & FXP_CB_STATUS_C) == 0 && --i);
if (i == 0) {
! printf("%s: 1dmasync timeout\n", sc->sc_dev.dv_xname);
return ETIMEDOUT;
}
***************
*** 1406,1412 ****
BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
} while ((cb_ias->cb_status & FXP_CB_STATUS_C) == 0 && --i);
if (i == 0) {
! printf("%s: dmasync timeout\n", sc->sc_dev.dv_xname);
return ETIMEDOUT;
}
/*
--- 1406,1412 ----
BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
} while ((cb_ias->cb_status & FXP_CB_STATUS_C) == 0 && --i);
if (i == 0) {
! printf("%s: 2dmasync timeout\n", sc->sc_dev.dv_xname);
return ETIMEDOUT;
}
/*
***************
*** 1865,1871 ****
BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
} while ((mcsp->cb_status & FXP_CB_STATUS_C) == 0 && --count);
if (count == 0) {
! printf("%s: dmasync timeout\n", sc->sc_dev.dv_xname);
return;
}
}
--- 1865,1871 ----
BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
} while ((mcsp->cb_status & FXP_CB_STATUS_C) == 0 && --count);
if (count == 0) {
! printf("%s: 3dmasync timeout\n", sc->sc_dev.dv_xname);
return;
}
}
State-Changed-From-To: open->feedback
State-Changed-By: jhawk
State-Changed-When: Wed May 17 13:27:44 PDT 2000
State-Changed-Why:
Request further information from the pr submitter
From: John Hawkinson <jhawk@mit.edu>
To: dokas@cs.umn.edu
Cc: gnats-bugs@netbsd.org
Subject: Re: port-i386/10141: fxp bug(?) on large PCs
Date: Wed, 17 May 2000 18:32:28 -0400 (EDT)
Please try this patch instead of the previous one.
It recalibrates timeouts to use DELAY(1) which should
be less machine-dependant, and also is more clear about
which timeouts are losing.
If it still causes problems, please try bumping up the
timeout numbers again.
--jhawk
Index: i82557.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/ic/i82557.c,v
retrieving revision 1.26
diff -c -r1.26 i82557.c
*** i82557.c 2000/05/12 03:35:57 1.26
--- i82557.c 2000/05/17 22:30:50
***************
*** 1370,1382 ****
CSR_WRITE_4(sc, FXP_CSR_SCB_GENERAL, sc->sc_cddma + FXP_CDCONFIGOFF);
CSR_WRITE_1(sc, FXP_CSR_SCB_COMMAND, FXP_SCB_COMMAND_CU_START);
/* ...and wait for it to complete. */
! i = 10000;
do {
FXP_CDCONFIGSYNC(sc,
BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
} while ((cbp->cb_status & FXP_CB_STATUS_C) == 0 && --i);
if (i == 0) {
! printf("%s: dmasync timeout\n", sc->sc_dev.dv_xname);
return ETIMEDOUT;
}
--- 1370,1384 ----
CSR_WRITE_4(sc, FXP_CSR_SCB_GENERAL, sc->sc_cddma + FXP_CDCONFIGOFF);
CSR_WRITE_1(sc, FXP_CSR_SCB_COMMAND, FXP_SCB_COMMAND_CU_START);
/* ...and wait for it to complete. */
! i = 1000;
do {
FXP_CDCONFIGSYNC(sc,
BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
+ DELAY(1);
} while ((cbp->cb_status & FXP_CB_STATUS_C) == 0 && --i);
if (i == 0) {
! printf("%s at line %d: dmasync timeout\n",
! sc->sc_dev.dv_xname, __LINE__);
return ETIMEDOUT;
}
***************
*** 1400,1414 ****
CSR_WRITE_4(sc, FXP_CSR_SCB_GENERAL, sc->sc_cddma + FXP_CDIASOFF);
CSR_WRITE_1(sc, FXP_CSR_SCB_COMMAND, FXP_SCB_COMMAND_CU_START);
/* ...and wait for it to complete. */
! i = 10000;
do {
FXP_CDIASSYNC(sc,
BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
} while ((cb_ias->cb_status & FXP_CB_STATUS_C) == 0 && --i);
if (i == 0) {
! printf("%s: dmasync timeout\n", sc->sc_dev.dv_xname);
return ETIMEDOUT;
}
/*
* Initialize the transmit descriptor ring. txlast is initialized
* to the end of the list so that it will wrap around to the first
--- 1402,1419 ----
CSR_WRITE_4(sc, FXP_CSR_SCB_GENERAL, sc->sc_cddma + FXP_CDIASOFF);
CSR_WRITE_1(sc, FXP_CSR_SCB_COMMAND, FXP_SCB_COMMAND_CU_START);
/* ...and wait for it to complete. */
! i = 1000;
do {
FXP_CDIASSYNC(sc,
BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
+ DELAY(1);
} while ((cb_ias->cb_status & FXP_CB_STATUS_C) == 0 && --i);
if (i == 0) {
! printf("%s at line %d: dmasync timeout\n",
! sc->sc_dev.dv_xname, __LINE__);
return ETIMEDOUT;
}
+
/*
* Initialize the transmit descriptor ring. txlast is initialized
* to the end of the list so that it will wrap around to the first
***************
*** 1842,1853 ****
* Wait until the command unit is not active. This should never
* happen since nothing is queued, but make sure anyway.
*/
! count = 10000;
while ((CSR_READ_1(sc, FXP_CSR_SCB_RUSCUS) >> 6) ==
FXP_SCB_CUS_ACTIVE && --count)
! /* nothing */ ;
if (count == 0) {
! printf("%s: command queue timeout\n", sc->sc_dev.dv_xname);
return;
}
--- 1847,1859 ----
* Wait until the command unit is not active. This should never
* happen since nothing is queued, but make sure anyway.
*/
! count = 100;
while ((CSR_READ_1(sc, FXP_CSR_SCB_RUSCUS) >> 6) ==
FXP_SCB_CUS_ACTIVE && --count)
! DELAY(1);
if (count == 0) {
! printf("%s at line %d: command queue timeout\n",
! sc->sc_dev.dv_xname, __LINE__);
return;
}
***************
*** 1859,1871 ****
CSR_WRITE_1(sc, FXP_CSR_SCB_COMMAND, FXP_SCB_COMMAND_CU_START);
/* ...and wait for it to complete. */
! count = 10000;
do {
FXP_CDMCSSYNC(sc,
BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
} while ((mcsp->cb_status & FXP_CB_STATUS_C) == 0 && --count);
if (count == 0) {
! printf("%s: dmasync timeout\n", sc->sc_dev.dv_xname);
return;
}
}
--- 1865,1879 ----
CSR_WRITE_1(sc, FXP_CSR_SCB_COMMAND, FXP_SCB_COMMAND_CU_START);
/* ...and wait for it to complete. */
! count = 1000;
do {
FXP_CDMCSSYNC(sc,
BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
+ DELAY(1);
} while ((mcsp->cb_status & FXP_CB_STATUS_C) == 0 && --count);
if (count == 0) {
! printf("%s at line %d: dmasync timeout\n",
! sc->sc_dev.dv_xname, __LINE__);
return;
}
}
From: Paul B Dokas <dokas@cs.umn.edu>
To: John Hawkinson <jhawk@MIT.EDU>
Cc:
Subject: Re: port-i386/10141: fxp bug(?) on large PCs
Date: Fri, 19 May 2000 10:51:21 -0500 (CDT)
On Wed, 17 May 2000, John Hawkinson wrote:
>
> Please try this patch instead of the previous one.
>
> It recalibrates timeouts to use DELAY(1) which should
> be less machine-dependant, and also is more clear about
> which timeouts are losing.
>
> If it still causes problems, please try bumping up the
> timeout numbers again.
>
> --jhawk
This patch seems to have made the timeouts go away and I haven't seen
any problems created either. I'd like to see the patch committed.
Paul
[...]
--
Paul Dokas dokas@cs.umn.edu
======================================================================
Don Juan Matus: "an enigma wrapped in mystery wrapped in a tortilla."
State-Changed-From-To: feedback->closed
State-Changed-By: jhawk
State-Changed-When: Fri May 19 09:02:30 PDT 2000
State-Changed-Why:
Submitter confirmed fix; fix checked in as i82557.c rev 1.27.
--jhawk
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.