uplcom / ucom problems on RELENG_5

Mike Tancsa mike at sentex.net
Tue Mar 29 19:57:57 PST 2005


I have been trying out USB serial devices on RELENG_5 to see if they are a 
workable replacement to PCI cards.  Unfortunately, it seems fairly easy to 
hang such a device. (full dmesg below)

I have a 28.8 modem connected to a ucom device

Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), 
Intel(0x0000), rev 1.00
  port 1 addr 2: full speed, power 100 mA, config 1, PL2303 Serial adapter 
(ATEN/IOGEAR UC232A)(0x2303), Prolific Technology(0x067b), rev 2.02
  port 2 powered


I start up a ppp session using it with the speed set to 57600.  I then 
start up a ping -s 512 pinging something on the other side.  I then kill 
the connection from the terminal server side to simulate a dialup modem 
failure.  The pings build up to the point where I get "no buffer space 
available" and then a few dozen

putc to a clist with no reserved cblocks
putc to a clist with no reserved cblocks
putc to a clist with no reserved cblocks
putc to a clist with no reserved cblocks
putc to a clist with no reserved cblocks
putc to a clist with no reserved cblocks
putc to a clist with no reserved cblocks

fill up the console.  At this point, ppp is totally hung, and I cannot kill ppp

[releng5-865]# ps -auxwwjl -p 718
USER   PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED      TIME 
COMMAND           PPID  PGID   SID JOBC   UID CPU PRI NI MWCHAN
root   718  0.0  0.9  3292  2340  ??  Ds   10:07PM   0:00.97 ppp -ddial 
papch     1   718   718    0     0   0  -8  0 usbdly
[releng5-865]#


I need to reboot the box at this point it would seem :(


Should I fill a PR ? Or is this a known issue ?

         ---Mike



Copyright (c) 1992-2005 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.4-PRERELEASE #1: Tue Mar 29 21:28:37 EST 2005
     mdtancsa at releng5-865.sentex.ca:/usr/obj/usr/src/sys/ptest
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Celeron(R) CPU 2.40GHz (2400.41-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0xf33  Stepping = 3
   Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS
,HTT,TM,PBE>
real memory  = 267321344 (254 MB)
avail memory = 251940864 (240 MB)
ACPI APIC Table: <AOpen  AWRDACPI>
ioapic0 <Version 2.0> irqs 0-23 on motherboard
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <AOpen AWRDACPI> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82865G (865G GMCH) SVGA controller> port 0xd000-0xd007 mem 
0xfa000000-0xfa07ffff,0xf0000000-0xf7ffffff irq 16 at devic
e 2.0 on pci0
agp0: detected 892k stolen memory
agp0: aperture size is 128M
uhci0: <Intel 82801EB (ICH5) USB controller USB-A> port 0xc000-0xc01f irq 
16 at device 29.0 on pci0
usb0: <Intel 82801EB (ICH5) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801EB (ICH5) USB controller USB-B> port 0xc400-0xc41f irq 
19 at device 29.1 on pci0
usb1: <Intel 82801EB (ICH5) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801EB (ICH5) USB controller USB-C> port 0xc800-0xc81f irq 
18 at device 29.2 on pci0
usb2: <Intel 82801EB (ICH5) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <Intel 82801EB (ICH5) USB controller USB-D> port 0xcc00-0xcc1f irq 
16 at device 29.3 on pci0
usb3: <Intel 82801EB (ICH5) USB controller USB-D> on uhci3
usb3: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfa080000-0xfa0803ff irq 23 
at device 29.7 on pci0
ehci_pci_attach: companion usb0
ehci_pci_attach: companion usb1
ehci_pci_attach: companion usb2
ehci_pci_attach: companion usb3
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <EHCI (generic) USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: single transaction translator
uhub4: 8 ports with 8 removable, self powered
pcib1: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci1: <ACPI PCI bus> on pcib1
rl0: <RealTek 8139 10/100BaseTX> port 0xa000-0xa0ff mem 
0xf9000000-0xf90000ff irq 16 at device 4.0 on pci1
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:50:fc:f9:6b:7a
pci1: <simple comms, UART> at device 5.0 (no driver attached)
fxp0: <Intel 82801BA (D865) Pro/100 VE Ethernet> port 0xa800-0xa83f mem 
0xf9001000-0xf9001fff irq 20 at device 8.0 on pci1
miibus1: <MII bus> on fxp0
inphy0: <i82562ET 10/100 media interface> on miibus1
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:01:80:54:b3:b8
puc0: <Lava Computers Quattro-PCI serial port> port 
0xb000-0xb007,0xac00-0xac07 irq 18 at device 10.0 on pci1
sio4: <Lava Computers Quattro-PCI serial port> on puc0
sio4: type 16550A
sio4: unable to activate interrupt in fast mode - using normal mode
sio5: <Lava Computers Quattro-PCI serial port> on puc0
sio5: type 16550A
sio5: unable to activate interrupt in fast mode - using normal mode
puc1: <Lava Computers Quattro-PCI serial port> port 
0xb800-0xb807,0xb400-0xb407 irq 18 at device 10.1 on pci1
sio6: <Lava Computers Quattro-PCI serial port> on puc1
sio6: type 16550A
sio6: unable to activate interrupt in fast mode - using normal mode
sio7: <Lava Computers Quattro-PCI serial port> on puc1
sio7: type 16550A
sio7: unable to activate interrupt in fast mode - using normal mode
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH5 UDMA100 controller> port 
0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
fdc0: <floppy drive controller> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A, console
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
orm0: <ISA Option ROMs> at iomem 0xcc000-0xd3fff,0xc0000-0xc9fff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
umass0: LEXAR MEDIA JUMPDRIVE ELITE, rev 2.00/20.00, addr 2
Timecounter "TSC" frequency 2400411330 Hz quality 800
Timecounters tick every 10.000 msec
Fast IPsec: Initialized Security Association Processing.
ipfw2 initialized, divert disabled, rule-based forwarding disabled, default 
to accept, logging limited to 31000 packets/entry by de
fault
ad0: 38166MB <ST340014A/3.06> [77545/16/63] at ata0-master UDMA100
ucom0: Prolific Technology PL2303 Serial adapter (ATEN/IOGEAR UC232A), rev 
1.10/2.02, addr 2
ugen0: Phoenixtec Power UPS USB Interface (V2.00), rev 1.10/0.06, addr 2
umass1: SCM Microsystems Inc. eUSB CompactFlash Adapter, rev 1.10/2.18, addr 3
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <LEXAR JUMPDRIVE ELITE 1000> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 493MB (1010784 512 byte sectors: 64H 32S/T 493C)
Mounting root from ufs:/dev/ad0s1a
da1 at umass-sim1 bus 1 target 0 lun 0
da1: <eUSB Compact Flash > Removable Direct Access SCSI-2 device
da1: 1.000MB/s transfers
da1: 61MB (125440 512 byte sectors: 64H 32S/T 61C)



--------------------------------------------------------------------
Mike Tancsa,                                      tel +1 519 651 3400
Sentex Communications,                            mike at sentex.net
Providing Internet since 1994                    www.sentex.net
Cambridge, Ontario Canada                         www.sentex.net/mike



More information about the freebsd-usb mailing list