Re: USB devices don't attach when urtw is under load

2010-10-14 Thread Дмитрий Царьков
On Thu, Oct 14, 2010 at 1:52 AM, Jacob Meuser jake...@sdf.lonestar.org
wrote:
 On Thu, Oct 14, 2010 at 12:33:34AM +0200, ??? ??? wrote:
 % ps -akx | grep usb
 B  B  8 ?? B DK B  B  B 0:00.26 (usbtask)
 B 7243 p1 B S+ B  B  B 0:00.01 grep usb
 % top -S -n 200 | grep usb
 B  B  8 root B  B  B -6 B  B 0 B  B 0K B  19M idle B  B  B usbsyn B  B 0:00
B 0.00% usbtask

 usbsyn - there's a synchronous usb transfer not finishing. B does this
 recover (i.e. usbtask thread is not waiting in usbsyn) when you remove
 the device?

After urtw device removal:

% top -S -n 200 | grep usb
8 root  1000K   19M sleep/0   usbtsk0:00  0.00% usbtask

Then, after some time (not immediately on plugging in) it reverts to:

% top -S -n 200 | grep usb
8 root  -600K   19M idle  usbsyn0:00  0.00% usbtask

 does this happen with all usb devices?

With the rest of devices everything is OK.

Actually I'm using this dongle because booting proccess stopped on
trying to attach the WiMax part on Intel Link 5150. While that device
is connected via MiniPCIe, the WiMax part connects to the USB bus, so
I think that could be somehow connected. In 4.7 there were no issues
with Intel device, and urtw was faulty, but didn't give these
problems.

B does it happen in all usb ports?

Yes. Regardless of usb port it attaches to the same EHCI hub and
behaves the same way.

Don't know whether it is somehow important or not, but power over usb
works for newly plugged devices that are not attached to the system.

--
Dmitrij D. Czarkoff



USB devices don't attach when urtw is under load

2010-10-13 Thread Дмитрий Царьков
Under 05-Oct-2010 snapshot:

1. Plug in urtw device (I have a LevelOne device, don't know model as
its plastic body is lost).
2. Start bittorrent client (or ftp or whatever loading urtw device).
3. Plug in any usb device - device doesn't get configured, lines not
appended to dmesg, usbdevs hangs, otherwise operating system fully
operational.
4. Stop loading urtw device.
5. Plug in and out any usb device - device gets configured, lines
appended to dmesg.

Couldn't reproduce it with my 3COM 3RUSB10075 as it gets device
timeout shortly and stops operating at all. As I have no other usb
WiFi devices, can't say whether the problem is urtw-specific, or is
valid for any usb WiFi or just urtw (or just my urtw).

% usbdevs -dv
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub0
 port 1 addr 2: high speed, power 98 mA, config 1, WebCam(0x62c0),
Sonix Technology Co., Ltd.(0x0c45), rev 1.00
   uvideo0
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 addr 3: high speed, power 100 mA, unconfigured,
RTL8187(0x8187), Realtek(0x0bda), rev 1.00, iSerialNumber 00116B1604AE
   urtw0
 port 6 powered
 port 7 powered
 port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub1
 port 1 powered
 port 2 addr 2: low speed, power 100 mA, config 1, Optical
Mouse(0x003a), Genius(0x0458), rev 1.00
   uhidev0
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub2
 port 1 powered
 port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub3
 port 1 powered
 port 2 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub4
 port 1 powered
 port 2 powered

dmesg (05-Oct-2010 snapshot), notice no dmesg lines between inserting
and removing flash usb module:

OpenBSD 4.8-current (GENERIC.MP) #456: Tue Oct  5 20:18:06 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
RTC BIOS diagnostic error 80clock_battery
cpu0: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (GenuineIntel 686-class) 1.60 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE
real mem  = 1060163584 (1011MB)
avail mem = 1032794112 (984MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 10/06/08, SMBIOS rev. 2.4 @
0xe91c0 (31 entries)
bios0: vendor Acer version v0.3110 date 10/06/2008
bios0: Acer AO531h
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT HPET APIC MCFG ASF! SLIC BOOT
acpi0: wakeup devices P32_(S4) UHC1(S3) UHC2(S3) UHC3(S3) UHC4(S3)
ECHI(S3) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) AZAL(S0) MODM(S0)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (GenuineIntel 686-class) 1.60 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 4
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P32_)
acpiprt2 at acpi0: bus 1 (EXP1)
acpiprt3 at acpi0: bus -1 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpiprt5 at acpi0: bus 2 (EXP4)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpitz0 at acpi0: critical temperature 95 degC
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: LID0
acpibtn2 at acpi0: SLPB
acpibat0 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpivideo0 at acpi0: OVGA
acpivout0 at acpivideo0: CRT1
acpivout1 at acpivideo0: DTV1
acpivout2 at acpivideo0: DFP1
acpivout3 at acpivideo0: LCD_
acpivout4 at acpivideo0: DTV2
acpivout5 at acpivideo0: DFP2
bios0: ROM list: 0xc/0xec00!
cpu0: Enhanced SpeedStep 1597 MHz: speeds: 1600, 1333, 1066, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GME Host rev 0x03
vga1 at pci0 dev 2 function 0 Intel 82945GME Video rev 0x03
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 0x4000, size 0x1000
inteldrm0 at vga1: apic 4 int 16 (irq 11)
drm0 at inteldrm0
Intel 82945GM Video rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02:
apic 4 int 16 (irq 11)
azalia0: codecs: Realtek ALC272
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 4

Re: USB devices don't attach when urtw is under load

2010-10-13 Thread Jacob Meuser
On Wed, Oct 13, 2010 at 10:56:24AM +0200, ??? ??? wrote:
 Under 05-Oct-2010 snapshot:
 
 1. Plug in urtw device (I have a LevelOne device, don't know model as
 its plastic body is lost).
 2. Start bittorrent client (or ftp or whatever loading urtw device).
 3. Plug in any usb device - device doesn't get configured, lines not
 appended to dmesg, usbdevs hangs, otherwise operating system fully
 operational.
 4. Stop loading urtw device.
 5. Plug in and out any usb device - device gets configured, lines
 appended to dmesg.

sounds like the device is messing up the usb task thread.  do you see
'usbtask' in 'top -S' or 'ps akx' output?

 Couldn't reproduce it with my 3COM 3RUSB10075 as it gets device
 timeout shortly and stops operating at all. As I have no other usb
 WiFi devices, can't say whether the problem is urtw-specific, or is
 valid for any usb WiFi or just urtw (or just my urtw).
 
 % usbdevs -dv
 Controller /dev/usb0:
 addr 1: high speed, self powered, config 1, EHCI root hub(0x),
 Intel(0x8086), rev 1.00
   uhub0
  port 1 addr 2: high speed, power 98 mA, config 1, WebCam(0x62c0),
 Sonix Technology Co., Ltd.(0x0c45), rev 1.00
uvideo0
  port 2 powered
  port 3 powered
  port 4 powered
  port 5 addr 3: high speed, power 100 mA, unconfigured,
 RTL8187(0x8187), Realtek(0x0bda), rev 1.00, iSerialNumber 00116B1604AE
urtw0
  port 6 powered
  port 7 powered
  port 8 powered
 Controller /dev/usb1:
 addr 1: full speed, self powered, config 1, UHCI root hub(0x),
 Intel(0x8086), rev 1.00
   uhub1
  port 1 powered
  port 2 addr 2: low speed, power 100 mA, config 1, Optical
 Mouse(0x003a), Genius(0x0458), rev 1.00
uhidev0
 Controller /dev/usb2:
 addr 1: full speed, self powered, config 1, UHCI root hub(0x),
 Intel(0x8086), rev 1.00
   uhub2
  port 1 powered
  port 2 powered
 Controller /dev/usb3:
 addr 1: full speed, self powered, config 1, UHCI root hub(0x),
 Intel(0x8086), rev 1.00
   uhub3
  port 1 powered
  port 2 powered
 Controller /dev/usb4:
 addr 1: full speed, self powered, config 1, UHCI root hub(0x),
 Intel(0x8086), rev 1.00
   uhub4
  port 1 powered
  port 2 powered
 
 dmesg (05-Oct-2010 snapshot), notice no dmesg lines between inserting
 and removing flash usb module:
 
 OpenBSD 4.8-current (GENERIC.MP) #456: Tue Oct  5 20:18:06 MDT 2010
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
 RTC BIOS diagnostic error 80clock_battery
 cpu0: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (GenuineIntel 686-class) 1.60 GHz
 cpu0: 
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE
 real mem  = 1060163584 (1011MB)
 avail mem = 1032794112 (984MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 10/06/08, SMBIOS rev. 2.4 @
 0xe91c0 (31 entries)
 bios0: vendor Acer version v0.3110 date 10/06/2008
 bios0: Acer AO531h
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S3 S4 S5
 acpi0: tables DSDT FACP SSDT HPET APIC MCFG ASF! SLIC BOOT
 acpi0: wakeup devices P32_(S4) UHC1(S3) UHC2(S3) UHC3(S3) UHC4(S3)
 ECHI(S3) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) AZAL(S0) MODM(S0)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpihpet0 at acpi0: 14318179 Hz
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: apic clock running at 133MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (GenuineIntel 686-class) 1.60 GHz
 cpu1: 
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE
 ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 4
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 3 (P32_)
 acpiprt2 at acpi0: bus 1 (EXP1)
 acpiprt3 at acpi0: bus -1 (EXP2)
 acpiprt4 at acpi0: bus -1 (EXP3)
 acpiprt5 at acpi0: bus 2 (EXP4)
 acpiec0 at acpi0
 acpicpu0 at acpi0: C3, C2, C1, PSS
 acpicpu1 at acpi0: C3, C2, C1, PSS
 acpitz0 at acpi0: critical temperature 95 degC
 acpibtn0 at acpi0: PWRB
 acpibtn1 at acpi0: LID0
 acpibtn2 at acpi0: SLPB
 acpibat0 at acpi0: BAT1 not present
 acpiac0 at acpi0: AC unit online
 acpivideo0 at acpi0: OVGA
 acpivout0 at acpivideo0: CRT1
 acpivout1 at acpivideo0: DTV1
 acpivout2 at acpivideo0: DFP1
 acpivout3 at acpivideo0: LCD_
 acpivout4 at acpivideo0: DTV2
 acpivout5 at acpivideo0: DFP2
 bios0: ROM list: 0xc/0xec00!
 cpu0: Enhanced SpeedStep 1597 MHz: speeds: 1600, 1333, 1066, 800 MHz
 pci0 at mainbus0 bus 0: configuration mode 1 (bios)
 pchb0 at pci0 dev 0 function 0 Intel 82945GME Host rev 0x03
 vga1 at pci0 dev 2 function 0 Intel 82945GME Video rev 0x03
 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 0x4000, size 0x1000
 inteldrm0 at vga1: apic 4 int 16 

Re: USB devices don't attach when urtw is under load

2010-10-13 Thread Дмитрий Царьков
On Wed, Oct 13, 2010 at 12:49 PM, Jacob Meuser jake...@sdf.lonestar.org
wrote:
 On Wed, Oct 13, 2010 at 10:56:24AM +0200, ??? ??? wrote:
 Under 05-Oct-2010 snapshot:

 1. Plug in urtw device (I have a LevelOne device, don't know model as
 its plastic body is lost).
 2. Start bittorrent client (or ftp or whatever loading urtw device).
 3. Plug in any usb device - device doesn't get configured, lines not
 appended to dmesg, usbdevs hangs, otherwise operating system fully
 operational.
 4. Stop loading urtw device.
 5. Plug in and out any usb device - device gets configured, lines
 appended to dmesg.

 sounds like the device is messing up the usb task thread. B do you see
 'usbtask' in 'top -S' or 'ps akx' output?

I do:

% ps -akx | grep usb
8 ??  DK  0:00.26 (usbtask)
24889 p1  S+  0:00.01 grep usb

--
Dmitrij D. Czarkoff



Re: USB devices don't attach when urtw is under load

2010-10-13 Thread Jacob Meuser
On Wed, Oct 13, 2010 at 09:32:59PM +0200, ??? ??? wrote:
 On Wed, Oct 13, 2010 at 12:49 PM, Jacob Meuser jake...@sdf.lonestar.org
 wrote:
  On Wed, Oct 13, 2010 at 10:56:24AM +0200, ??? ??? wrote:
  Under 05-Oct-2010 snapshot:
 
  1. Plug in urtw device (I have a LevelOne device, don't know model as
  its plastic body is lost).
  2. Start bittorrent client (or ftp or whatever loading urtw device).
  3. Plug in any usb device - device doesn't get configured, lines not
  appended to dmesg, usbdevs hangs, otherwise operating system fully
  operational.
  4. Stop loading urtw device.
  5. Plug in and out any usb device - device gets configured, lines
  appended to dmesg.
 
  sounds like the device is messing up the usb task thread. B do you see
  'usbtask' in 'top -S' or 'ps akx' output?
 
 I do:
 
 % ps -akx | grep usb
 8 ??  DK  0:00.26 (usbtask)
 24889 p1  S+  0:00.01 grep usb

is that while the urtw is causing problems?  maybe try
'top -S -n200 | grep usb' too.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: USB devices don't attach when urtw is under load

2010-10-13 Thread Дмитрий Царьков
On Thu, Oct 14, 2010 at 12:01 AM, Jacob Meuser jake...@sdf.lonestar.org
wrote:
 On Wed, Oct 13, 2010 at 09:32:59PM +0200, ??? ??? wrote:
 % ps -akx | grep usb
 B  B  8 ?? B DK B  B  B 0:00.26 (usbtask)
 24889 p1 B S+ B  B  B 0:00.01 grep usb

 is that while the urtw is causing problems? B maybe try
 'top -S -n200 | grep usb' too.

After inserting a usb device (3COM WiFi adapter mentioned in the first
mail) I get no notice on dmesg and following:

% ps -akx | grep usb
8 ??  DK  0:00.26 (usbtask)
 7243 p1  S+  0:00.01 grep usb
% top -S -n 200 | grep usb
8 root  -600K   19M idle  usbsyn0:00  0.00% usbtask

--
Dmitrij D. Czarkoff



Re: USB devices don't attach when urtw is under load

2010-10-13 Thread Jacob Meuser
On Thu, Oct 14, 2010 at 12:33:34AM +0200, ??? ??? wrote:
 On Thu, Oct 14, 2010 at 12:01 AM, Jacob Meuser jake...@sdf.lonestar.org
 wrote:
  On Wed, Oct 13, 2010 at 09:32:59PM +0200, ??? ??? wrote:
  % ps -akx | grep usb
  B  B  8 ?? B DK B  B  B 0:00.26 (usbtask)
  24889 p1 B S+ B  B  B 0:00.01 grep usb
 
  is that while the urtw is causing problems? B maybe try
  'top -S -n200 | grep usb' too.
 
 After inserting a usb device (3COM WiFi adapter mentioned in the first
 mail) I get no notice on dmesg and following:
 
 % ps -akx | grep usb
 8 ??  DK  0:00.26 (usbtask)
  7243 p1  S+  0:00.01 grep usb
 % top -S -n 200 | grep usb
 8 root  -600K   19M idle  usbsyn0:00  0.00% usbtask

usbsyn - there's a synchronous usb transfer not finishing.  does this
recover (i.e. usbtask thread is not waiting in usbsyn) when you remove
the device?  does this happen with all usb devices?  does it happen in
all usb ports?

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org