Hi, I have a mini-itx system being used as a wireless router with a Ralink RT2661 wifi card (driven by ral(4)) in host AP mode. I've found that if I copy a lot of data from my laptop connected via wifi to another system connected via wired (100 mbit) ethernet, say doing a big rsync, that the ral interface sometimes hangs and the wifi-connected laptop is not able to send or receive anything any more.
The router system is still up, and in fact just logging in on the console and doing "ifconfig ral0 down; ifconfig ral0 up" is enough to start things working again. I don't see any messages in the kernel log or anywhere else when ral0 gets stuck. Thoughts on how to fix this or debug this further would be appreciated. Thanks, Roland Full pcidump -v and dmesg output is below; I see problems when routing a lot of traffic from the ral0/RT2661 to the vr1/RhineIII interface. Domain /dev/pci0: 0:0:0: VIA VT8623 PCI 0x0000: Vendor ID: 1106 Product ID: 3123 0x0004: Command: 0006 Status ID: 2230 0x0008: Class: 06 Subclass: 00 Interface: 00 Revision: 00 0x000c: BIST: 00 Header Type: 00 Latency Timer: 08 Cache Line Size: 00 0x0010: BAR mem prefetchable 32bit addr: 0xd0000000 0x0014: BAR empty (00000000) 0x0018: BAR empty (00000000) 0x001c: BAR empty (00000000) 0x0020: BAR empty (00000000) 0x0024: BAR empty (00000000) 0x0028: Cardbus CIS: 00000000 0x002c: Subsystem Vendor ID: 1106 Product ID: aa01 0x0030: Expansion ROM Base Address: 00000000 0x0038: 00000000 0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00 0x00a0: Capability 0x02: AGP 0x00c0: Capability 0x01: Power Management 0:1:0: VIA VT8633 AGP 0x0000: Vendor ID: 1106 Product ID: b091 0x0004: Command: 0107 Status ID: a230 0x0008: Class: 06 Subclass: 04 Interface: 00 Revision: 00 0x000c: BIST: 00 Header Type: 01 Latency Timer: 00 Cache Line Size: 00 0x0010: 00000000 0x0014: 00000000 0x0018: Primary Bus: 0 Secondary Bus: 1 Subordinate Bus: 1 Secondary Latency Timer: 00 0x001c: I/O Base: f0 I/O Limit: 00 Secondary Status: a220 0x0020: Memory Base: dc00 Memory Limit: ddf0 0x0024: Prefetch Memory Base: d800 Prefetch Memory Limit: dbf0 0x0028: Prefetch Memory Base Upper 32 Bits: 00000000 0x002c: Prefetch Memory Limit Upper 32 Bits: 00000000 0x0030: I/O Base Upper 16 Bits: 0000 I/O Limit Upper 16 Bits: 0000 0x0038: Expansion ROM Base Address: 00000000 0x003c: Interrupt Pin: 00 Line: 00 Bridge Control: 000c 0x0080: Capability 0x01: Power Management 0:15:0: VIA VT6105 RhineIII 0x0000: Vendor ID: 1106 Product ID: 3106 0x0004: Command: 0007 Status ID: 0210 0x0008: Class: 02 Subclass: 00 Interface: 00 Revision: 8b 0x000c: BIST: 00 Header Type: 00 Latency Timer: 20 Cache Line Size: 08 0x0010: BAR io addr: 0x0000d000 0x0014: BAR mem 32bit addr: 0xde00a000 0x0018: BAR empty (00000000) 0x001c: BAR empty (00000000) 0x0020: BAR empty (00000000) 0x0024: BAR empty (00000000) 0x0028: Cardbus CIS: 00000000 0x002c: Subsystem Vendor ID: 1106 Product ID: 0106 0x0030: Expansion ROM Base Address: 00000000 0x0038: 00000000 0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 03 Max Lat: 08 0x0044: Capability 0x01: Power Management 0:16:0: VIA VT83C572 USB 0x0000: Vendor ID: 1106 Product ID: 3038 0x0004: Command: 0007 Status ID: 0210 0x0008: Class: 0c Subclass: 03 Interface: 00 Revision: 80 0x000c: BIST: 00 Header Type: 80 Latency Timer: 20 Cache Line Size: 08 0x0010: BAR empty (00000000) 0x0014: BAR empty (00000000) 0x0018: BAR empty (00000000) 0x001c: BAR empty (00000000) 0x0020: BAR io addr: 0x0000d400 0x0024: BAR empty (00000000) 0x0028: Cardbus CIS: 00000000 0x002c: Subsystem Vendor ID: 1106 Product ID: aa01 0x0030: Expansion ROM Base Address: 00000000 0x0038: 00000000 0x003c: Interrupt Pin: 01 Line: 0c Min Gnt: 00 Max Lat: 00 0x0080: Capability 0x01: Power Management 0:16:1: VIA VT83C572 USB 0x0000: Vendor ID: 1106 Product ID: 3038 0x0004: Command: 0007 Status ID: 0210 0x0008: Class: 0c Subclass: 03 Interface: 00 Revision: 80 0x000c: BIST: 00 Header Type: 80 Latency Timer: 20 Cache Line Size: 08 0x0010: BAR empty (00000000) 0x0014: BAR empty (00000000) 0x0018: BAR empty (00000000) 0x001c: BAR empty (00000000) 0x0020: BAR io addr: 0x0000d800 0x0024: BAR empty (00000000) 0x0028: Cardbus CIS: 00000000 0x002c: Subsystem Vendor ID: 1106 Product ID: aa01 0x0030: Expansion ROM Base Address: 00000000 0x0038: 00000000 0x003c: Interrupt Pin: 02 Line: 09 Min Gnt: 00 Max Lat: 00 0x0080: Capability 0x01: Power Management 0:16:2: VIA VT83C572 USB 0x0000: Vendor ID: 1106 Product ID: 3038 0x0004: Command: 0007 Status ID: 0210 0x0008: Class: 0c Subclass: 03 Interface: 00 Revision: 80 0x000c: BIST: 00 Header Type: 80 Latency Timer: 20 Cache Line Size: 08 0x0010: BAR empty (00000000) 0x0014: BAR empty (00000000) 0x0018: BAR empty (00000000) 0x001c: BAR empty (00000000) 0x0020: BAR io addr: 0x0000dc00 0x0024: BAR empty (00000000) 0x0028: Cardbus CIS: 00000000 0x002c: Subsystem Vendor ID: 1106 Product ID: aa01 0x0030: Expansion ROM Base Address: 00000000 0x0038: 00000000 0x003c: Interrupt Pin: 03 Line: 0b Min Gnt: 00 Max Lat: 00 0x0080: Capability 0x01: Power Management 0:16:3: VIA VT6202 USB 0x0000: Vendor ID: 1106 Product ID: 3104 0x0004: Command: 0007 Status ID: 0210 0x0008: Class: 0c Subclass: 03 Interface: 20 Revision: 82 0x000c: BIST: 00 Header Type: 00 Latency Timer: 20 Cache Line Size: 08 0x0010: BAR mem 32bit addr: 0xde008000 0x0014: BAR empty (00000000) 0x0018: BAR empty (00000000) 0x001c: BAR empty (00000000) 0x0020: BAR empty (00000000) 0x0024: BAR empty (00000000) 0x0028: Cardbus CIS: 00000000 0x002c: Subsystem Vendor ID: 1106 Product ID: 3104 0x0030: Expansion ROM Base Address: 00000000 0x0038: 00000000 0x003c: Interrupt Pin: 04 Line: 0b Min Gnt: 00 Max Lat: 00 0x0080: Capability 0x01: Power Management 0:17:0: VIA VT8235 ISA 0x0000: Vendor ID: 1106 Product ID: 3177 0x0004: Command: 0087 Status ID: 0210 0x0008: Class: 06 Subclass: 01 Interface: 00 Revision: 00 0x000c: BIST: 00 Header Type: 80 Latency Timer: 00 Cache Line Size: 00 0x0010: BAR empty (00000000) 0x0014: BAR empty (00000000) 0x0018: BAR empty (00000000) 0x001c: BAR empty (00000000) 0x0020: BAR empty (00000000) 0x0024: BAR empty (00000000) 0x0028: Cardbus CIS: 00000000 0x002c: Subsystem Vendor ID: 1106 Product ID: aa01 0x0030: Expansion ROM Base Address: 00000000 0x0038: 00000000 0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00 0x00c0: Capability 0x01: Power Management 0:17:1: VIA VT82C571 IDE 0x0000: Vendor ID: 1106 Product ID: 0571 0x0004: Command: 0007 Status ID: 0290 0x0008: Class: 01 Subclass: 01 Interface: 8a Revision: 06 0x000c: BIST: 00 Header Type: 00 Latency Timer: 20 Cache Line Size: 00 0x0010: BAR empty (00000000) 0x0014: BAR empty (00000000) 0x0018: BAR empty (00000000) 0x001c: BAR empty (00000000) 0x0020: BAR io addr: 0x0000e000 0x0024: BAR empty (00000000) 0x0028: Cardbus CIS: 00000000 0x002c: Subsystem Vendor ID: 1106 Product ID: aa01 0x0030: Expansion ROM Base Address: 00000000 0x0038: 00000000 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00 0x00c0: Capability 0x01: Power Management 0:17:5: VIA VT8233 AC97 0x0000: Vendor ID: 1106 Product ID: 3059 0x0004: Command: 0001 Status ID: 0210 0x0008: Class: 04 Subclass: 01 Interface: 00 Revision: 50 0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 00 0x0010: BAR io addr: 0x0000e400 0x0014: BAR empty (00000000) 0x0018: BAR empty (00000000) 0x001c: BAR empty (00000000) 0x0020: BAR empty (00000000) 0x0024: BAR empty (00000000) 0x0028: Cardbus CIS: 00000000 0x002c: Subsystem Vendor ID: 1106 Product ID: aa01 0x0030: Expansion ROM Base Address: 00000000 0x0038: 00000000 0x003c: Interrupt Pin: 03 Line: 0b Min Gnt: 00 Max Lat: 00 0x00c0: Capability 0x01: Power Management 0:18:0: VIA RhineII-2 0x0000: Vendor ID: 1106 Product ID: 3065 0x0004: Command: 0007 Status ID: 0210 0x0008: Class: 02 Subclass: 00 Interface: 00 Revision: 74 0x000c: BIST: 00 Header Type: 00 Latency Timer: 20 Cache Line Size: 08 0x0010: BAR io addr: 0x0000e800 0x0014: BAR mem 32bit addr: 0xde009000 0x0018: BAR empty (00000000) 0x001c: BAR empty (00000000) 0x0020: BAR empty (00000000) 0x0024: BAR empty (00000000) 0x0028: Cardbus CIS: 00000000 0x002c: Subsystem Vendor ID: 1106 Product ID: 0102 0x0030: Expansion ROM Base Address: 00000000 0x0038: 00000000 0x003c: Interrupt Pin: 01 Line: 0c Min Gnt: 03 Max Lat: 08 0x0040: Capability 0x01: Power Management 0:20:0: Ralink RT2661 0x0000: Vendor ID: 1814 Product ID: 0401 0x0004: Command: 0007 Status ID: 0410 0x0008: Class: 02 Subclass: 80 Interface: 00 Revision: 00 0x000c: BIST: 00 Header Type: 00 Latency Timer: 20 Cache Line Size: 08 0x0010: BAR mem 32bit addr: 0xde000000 0x0014: BAR empty (00000000) 0x0018: BAR empty (00000000) 0x001c: BAR empty (00000000) 0x0020: BAR empty (00000000) 0x0024: BAR empty (00000000) 0x0028: Cardbus CIS: 00000601 0x002c: Subsystem Vendor ID: 1814 Product ID: 2661 0x0030: Expansion ROM Base Address: 00000000 0x0038: 00000000 0x003c: Interrupt Pin: 01 Line: 09 Min Gnt: 00 Max Lat: 00 0x0040: Capability 0x01: Power Management 1:0:0: VIA CLE266 0x0000: Vendor ID: 1106 Product ID: 3122 0x0004: Command: 0007 Status ID: 0230 0x0008: Class: 03 Subclass: 00 Interface: 00 Revision: 03 0x000c: BIST: 00 Header Type: 00 Latency Timer: 20 Cache Line Size: 00 0x0010: BAR mem prefetchable 32bit addr: 0xd8000000 0x0014: BAR mem 32bit addr: 0xdc000000 0x0018: BAR empty (00000000) 0x001c: BAR empty (00000000) 0x0020: BAR empty (00000000) 0x0024: BAR empty (00000000) 0x0028: Cardbus CIS: 00000000 0x002c: Subsystem Vendor ID: 1106 Product ID: 3122 0x0030: Expansion ROM Base Address: 00000000 0x0038: 00000000 0x003c: Interrupt Pin: 01 Line: 0c Min Gnt: 02 Max Lat: 00 0x0060: Capability 0x01: Power Management 0x0070: Capability 0x02: AGP OpenBSD 4.5 (GENERIC) #1749: Sat Feb 28 14:51:18 MST 2009 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: VIA Samuel 2 ("CentaurHauls" 686-class) 602 MHz cpu0: FPU,DE,TSC,MSR,MTRR,PGE,MMX real mem = 251166720 (239MB) avail mem = 234545152 (223MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 03/11/04, BIOS32 rev. 0 @ 0xface0, SMBIOS rev. 2.2 @ 0xf0800 (26 entries) bios0: vendor Award Software International, Inc. version "6.00 PG" date 03/11/2004 bios0: VIA Technologies, Inc. VT8623-8235 apm0 at bios0: Power Management spec V1.2 (slowidle) apm0: AC on, battery charge unknown acpi at bios0 function 0x0 not configured pcibios0 at bios0: rev 2.1 @ 0xf0000/0xdba4 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdb10/144 (7 entries) pcibios0: PCI Exclusive IRQs: 9 11 12 pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C596A ISA" rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc0000/0xe000 0xd0000/0x8000! cpu0 at mainbus0: (uniprocessor) pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "VIA VT8623 PCI" rev 0x00 viaagp0 at pchb0: v2 agp0 at viaagp0: aperture at 0xd0000000, size 0x10000000 ppb0 at pci0 dev 1 function 0 "VIA VT8633 AGP" rev 0x00 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 "VIA CLE266" rev 0x03 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) vr0 at pci0 dev 15 function 0 "VIA VT6105 RhineIII" rev 0x8b: irq 11, address 00:40:63:da:3d:15 ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 9: OUI 0x004063, model 0x0034 uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x80: irq 12 uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x80: irq 9 uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x80: irq 11 ehci0 at pci0 dev 16 function 3 "VIA VT6202 USB" rev 0x82: irq 11 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "VIA EHCI root hub" rev 2.00/1.00 addr 1 viapm0 at pci0 dev 17 function 0 "VIA VT8235 ISA" rev 0x00 iic0 at viapm0 spdmem0 at iic0 addr 0x50: 256MB DDR SDRAM non-parity PC2100CL2.5 pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: <ST380021A> wd0: 16-sector PIO, LBA, 76319MB, 156301488 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 pciide0: channel 1 disabled (no drives) auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x50: irq 11 ac97: codec id 0x56494161 (VIA Technologies VT1612A) ac97: codec features headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D audio0 at auvia0 vr1 at pci0 dev 18 function 0 "VIA RhineII-2" rev 0x74: irq 12, address 00:40:63:da:3d:79 ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 8: OUI 0x004063, model 0x0032 ral0 at pci0 dev 20 function 0 "Ralink RT2661" rev 0x00: irq 9, address 00:14:a5:33:a1:c6 ral0: MAC/BBP RT2661B, RF RT2529 (MIMO XR) usb1 at uhci0: USB revision 1.0 uhub1 at usb1 "VIA UHCI root hub" rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 "VIA UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 "VIA UHCI root hub" rev 1.00/1.00 addr 1 isa0 at mainbus0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo com2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 viasio0 at isa0 port 0x2e/2: VT1211 rev 0x02, HM, WDG not activated viasio1 at isa0 port 0x4e/2: VT1211 rev 0x02, HM not activated, WDG not activated npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 biomask ff45 netmask ff45 ttymask ffff uhidev0 at uhub1 port 1 configuration 1 interface 0 "Sun Microsystems Type 6 Keyboard" rev 1.00/1.02 addr 2 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 modifier keys, 6 key codes, country code 33 wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 softraid0 at root root on wd0a swap on wd0b dump on wd0b