Recompiling kernel with UFTDI_DEBUG, USB_DEBUG, UHCI_DEBUG and UHUB_DEBUG flags the device keeps failing stealthly... No error message appears on console.

Any advice will be welcomed :)

Beers!

El 27/07/2011 10:45, Daniel Gracia escribis:
Without dettaching the device after failure, trying to reconnect to any
of the dead serial ports makes console sput:

uticom0: uticom_param: STALLED
uticom0: uticom_dtr: STALLED
uticom0: uticom_rts: STALLED
uticom0: uticom_close: STALLED

El 27/07/2011 10:34, Daniel Gracia escribis:
Similar problems founds on a uticom usb to 4-port serial adapter.

Everything works for several hours, then stops working. This time
workload seems to be less involved; just at idle -some keepalive style
packets- the soft stops working.

No error messages at the console, and dettacching/reattaching the device
doesn't work.

Plugging device on another usb port brings it new life and, only then,
dettaching and reattaching in the original usb port makes it work again
without rebooting.

I wonder in what kind of mess I'm digging... Oh, my; I _knew_ USB is
_not_ serious xDDD

El 26/07/2011 16:54, Daniel Gracia escribis:
Here we go again with more info. The facts:

-uftdi USB to 4 port serial.
-Adaptor attaches fine, works for a while.
-After an amount of time, when serial load increases, the driver may
fail.
-After the failure error is unrecoverable; detaching/reattaching device
doesn't work. Must reboot the computer to get working again.
-After failure usbdevs seems different! -No messages in console indicate
any device change whatsoever-.

Driver seems to work just fine under light load, and has a stealth fail
-no errors on message log-:

8<-----------------------

uftdi_read: sc=0xd1e78c00, port=1 count=5 data[0]=0x30
uftdi_read: sc=0xd1e78a80, port=1 count=2
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0b
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0a
uftdi_write: sc=0xd1e78f00, port=1 count=20 data[0]=0x31
uftdi_read: sc=0xd1e78f00, port=1 count=2
uftdi_write: sc=0xd1e78a80, port=1 count=3 data[0]=0x02
uftdi_write: sc=0xd1e78c00, port=1 count=6 data[0]=0x23
uftdi_read: sc=0xd1e78c00, port=1 count=2
uftdi_read: sc=0xd1e78a80, port=1 count=2
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0b
uftdi_write: sc=0xd1e78c00, port=1 count=5 data[0]=0x23
uftdi_write: sc=0xd1e78a80, port=1 count=3 data[0]=0x02
-stopped here. Failed! 20lines/second. Three last lines delayed between
them about half a second-.

8<-----------------------

Before failure, usbdevs reads

8<-----------------------

$ usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered
port 5 powered
port 6 addr 2: high speed, power 500 mA, config 1, USB Storage(0x0727),
Generic(0x05e3), rev 2.06, iSerialNumber 000000000206
port 7 powered
port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 addr 2: low speed, power 100 mA, config 1, USB Keyboard(0x0408),
Chicony(0x04f2), rev 1.65
port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 addr 2: full speed, self powered, config 1, HRS PRINTER(0x0013),
APS(0x1ad4), rev 1.00
port 2 addr 3: full speed, power 100 mA, config 1, GL650 Hub(0x0604),
Genesys Logic(0x05e3), rev 3.05
port 1 addr 4: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tmz
port 2 addr 5: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tr2
port 3 addr 6: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001T4y
port 4 addr 7: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tlt
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
$

8<-----------------------

After failure, usbdevs reads different!:

8<-----------------------

$ usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered
port 5 powered
port 6 addr 2: high speed, power 500 mA, config 1, USB Storage(0x0727),
Generic(0x05e3), rev 2.06,

iSerialNumber 000000000206
port 7 powered
port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 addr 2: low speed, power 100 mA, config 1, USB Keyboard(0x0408),
Chicony(0x04f2), rev 1.65
port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 addr 2: full speed, self powered, config 1, HRS PRINTER(0x0013),
APS(0x1ad4), rev 1.00
port 2 addr 3: full speed, power 100 mA, config 1, GL650 Hub(0x0604),
Genesys Logic(0x05e3), rev

3.05
port 1 addr 4: full speed, power 90 mA, config 1, 8U232AM
Serial(0x6001), Future Technology

Devices(0x0403), rev 6.00
port 2 addr 5: full speed, power 90 mA, config 1, 8U232AM
Serial(0x6001), Future Technology

Devices(0x0403), rev 6.00
port 3 addr 6: full speed, power 90 mA, config 1, 8U232AM
Serial(0x6001), Future Technology

Devices(0x0403), rev 6.00
port 4 addr 7: full speed, power 90 mA, config 1, 8U232AM
Serial(0x6001), Future Technology

Devices(0x0403), rev 6.00
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
$

8<-----------------------

Then you dettach device, console shows:

8<-----------------------

uftdi_detach: sc=0xd1e78f00 flags=1
ucom0 detached
uftdi0 detached
uftdi_detach: sc=0xd1e78d80 flags=1
ucom1 detached
uftdi1 detached
uftdi_detach: sc=0xd1e78c00 flags=1
ucom2 detached
uftdi2 detached
uftdi_detach: sc=0xd1e78a80 flags=1
ucom3 detached
uftdi3 detached
uhub5 detached

8<-----------------------

Trying to reattach is to no avail; doesn't show anything on screen.

Some advice???

8<-----------------------

My /var/run/dmesg.boot
OpenBSD 4.9 (GENERIC) #1: Tue Jul 26 13:31:08 CEST 2011
r...@foo.electronicagracia.com:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Atom(TM) CPU D410 @ 1.66GHz ("GenuineIntel" 686-class)
1.67 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF


LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,TM2,SSSE3,CX16,xT



PR,PDCM,MOVBE
real mem = 1063481344 (1014MB)
avail mem = 1035948032 (987MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 10/27/10, BIOS32 rev. 0 @ 0xf0010,
SMBIOS
rev. 2.6 @ 0xf0720 (46 entries)
bios0: vendor American Megatrends Inc. version "0601" date 10/27/2010
bios0: ASUSTeK Computer INC. EB1007
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB HPET GSCI SLIC
acpi0: wakeup devices P0P1(S4) PS2K(S4) PS2M(S4) USB0(S4) USB2(S4)
EUSB(S4) P0P4
(S4) P0P5(S4) P0P6(S4) P0P7(S4) P0P8(S4) P0P9(S4) USB1(S4) USB3(S4)
SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 1, remapped to apid 2
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P0P5)
acpiprt2 at acpi0: bus 2 (P0P6)
acpicpu0 at acpi0
aibs0 at acpi0: RTMP RVLT RFAN GGRP GITM SITM
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: PWRB
bios0: ROM list: 0xc0000/0xda00! 0xce000/0x1000
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel Pineview DMI" rev 0x00
vga1 at pci0 dev 2 function 0 "Intel Pineview Video" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd0000000, size 0x10000000
inteldrm0 at vga1: apic 2 int 16 (irq 5)
drm0 at inteldrm0
"Intel Pineview Video" rev 0x00 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02:
apic 2 int
20 (irq 4)
azalia0: codecs: Realtek ALC662
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 2 int
16 (irq
5)
pci1 at ppb0 bus 4
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 2 int
17 (irq
11)
pci2 at ppb1 bus 3
jme0 at pci2 dev 0 function 0 "JMicron JMC250" rev 0x03: apic 2 int 17
(irq 11),
address f4:6d:04:04:34:af
jmphy0 at jme0 phy 1: JMP211 10/100/1000 PHY, rev. 1
ppb2 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 2 int
18 (irq
10)
pci3 at ppb2 bus 2
athn0 at pci3 dev 0 function 0 "Atheros AR9285" rev 0x01: apic 2 int 18
(irq 10)
athn0: AR9285 rev 2 (1T1R), ROM rev 13, address e0:b9:a5:00:f8:46
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 2 int
23 (irq
14)
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 2 int
21 (irq
7)
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 2 int
18 (irq
10)
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 2 int
22 (irq
3)
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 2 int
23 (irq
14)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci4 at ppb3 bus 1
pcib0 at pci0 dev 31 function 0 "Intel Tigerpoint LPC" rev 0x02
ahci0 at pci0 dev 31 function 2 "Intel 82801GR AHCI" rev 0x02: apic 2
int 19 (ir
q 15), AHCI 1.1
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: <ATA, WDC WD2500BEVT-8, 01.0> SCSI3
0/direct fixed
sd0: 238475MB, 512 bytes/sec, 488397168 sec total
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: apic 2
int 19
(irq 15)
iic0 at ichiic0
spdmem0 at iic0 addr 0x51: 1GB DDR2 SDRAM non-parity PC2-6400CL5 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
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
spkr0 at pcppi0
it0 at isa0 port 0x2e/2: IT8720F rev 8, EC port 0x290
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
umass0 at uhub0 port 6 configuration 1 interface 0 "Generic USB Storage"
rev 2.0
0/2.06 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <Generic, STORAGE DEVICE, 0206> SCSI0
0/direct rem
ovable
sd1: drive offline
uhidev0 at uhub1 port 1 configuration 1 interface 0 "Chicony USB
Keyboard" rev 2
.00/1.65 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub1 port 1 configuration 1 interface 1 "Chicony USB
Keyboard" rev 2
.00/1.65 addr 2
uhidev1: iclass 3/0, 3 report ids
uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 2: input=2, output=0, feature=2
uhid2 at uhidev1 reportid 3: input=3, output=0, feature=0
ulpt0 at uhub2 port 1 configuration 1 interface 0 "APS HRS PRINTER" rev
1.10/1.0
0 addr 2
ulpt0: using bi-directional mode
uhub5 at uhub2 port 2 "Genesys Logic GL650 Hub" rev 1.10/3.05 addr 3
uftdi0 at uhub5 port 1 "FTDI FT232R USB UART" rev 2.00/6.00 addr 4

uftdi_attach: sc=0xd1e78f00
uftdi: in=0x81 out=0x2
ucom0 at uftdi0 portno 1
uftdi1 at uhub5 port 2 "FTDI FT232R USB UART" rev 2.00/6.00 addr 5

uftdi_attach: sc=0xd1e78d80
uftdi: in=0x81 out=0x2
ucom1 at uftdi1 portno 1
uftdi2 at uhub5 port 3 "FTDI FT232R USB UART" rev 2.00/6.00 addr 6

uftdi_attach: sc=0xd1e78c00
uftdi: in=0x81 out=0x2
ucom2 at uftdi2 portno 1
uftdi3 at uhub5 port 4 "FTDI FT232R USB UART" rev 2.00/6.00 addr 7

uftdi_attach: sc=0xd1e78a80
uftdi: in=0x81 out=0x2
ucom3 at uftdi3 portno 1
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
root on sd0a swap on sd0b dump on sd0b

Reply via email to