Re: HS isochronous transfer on musb_otg

2013-08-12 Thread SAITOU Toshihide
In message: <20130811.193740.226802057.to...@ruby.ocn.ne.jp>
SAITOU Toshihide  writes:
> In message: <20130808.220939.219630261.to...@ruby.ocn.ne.jp>
> SAITOU Toshihide  writes:
>> I have confirmed the scattering is fixed by modifying the
>> mustbotg_host_data_rx(), althought the modification I have
>> made breaks other transfer type at the moment.
> 
> This is a Logitec C920 and realize that the only device that
> is working among I have tried.

Maybe the differences of the device is related to how the device can
handle the transactions per micro frame. This link tells that the 
existence of the undocumented bits and the default may be one
transaction per frame:
http://e2e.ti.com/support/embedded/wince/f/353/t/68966.aspx.
So I tried to set the bits to the MUSB2_REG_RXMAXP, but no change.

SAITOU Toshihide
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: usb/180923: SNES USB gamepad controller does not work.

2013-08-12 Thread eadler
Synopsis: SNES USB gamepad controller does not work.

State-Changed-From-To: open->closed
State-Changed-By: eadler
State-Changed-When: Mon Aug 12 20:26:46 UTC 2013
State-Changed-Why: 
per hps

http://www.freebsd.org/cgi/query-pr.cgi?pr=180923
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: usb/181159: Problem attaching USB device

2013-08-12 Thread Antonis Anastasiadis
2013/8/12 Hans Petter Selasky :
> Have you tried connecting this device through an external HUB?

I'm afraid I cannot control this.

>There has
> been some changes in the USB area since 9.1-RELEASE. Do other USB devices
> connected to this computer behave the same?

I cannot test this as well due to the circumstances I mentioned
previously. The procedure is  automated.

> Also, did the 9.1 image you used
> have XHCI enabled?

Yes, judging from the "xhci0:" entries in the original dmesg. It was a
default 9.1-RELEASE kernel.

I'll try with an older revision in a couple of days. Do you recommend
a revision, before a specific change?
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: usb/181159: Problem attaching USB device

2013-08-12 Thread Hans Petter Selasky

On 08/12/13 15:47, Antonis Anastasiadis wrote:

2013/8/12 Hans Petter Selasky :

Do you have an exact SVN revision where it works and where it doesn't work?


Unfortunately not. 9.1-RELEASE worked fine though. I could try older
kernels, but like I mentioned before, this device is attached only for
troubleshooting purposes when I bug the technical support team, and
then for limited periods only. So I guess it will take some time.

Let me know if I can do anything else to help.




Hi,

Have you tried connecting this device through an external HUB? There has 
been some changes in the USB area since 9.1-RELEASE. Do other USB 
devices connected to this computer behave the same? Also, did the 9.1 
image you used have XHCI enabled?


I'll dig a bit and see. Usually you would have to bisect the version 
history to figure out what broke it.


--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: usb/181159: Problem attaching USB device

2013-08-12 Thread Antonis Anastasiadis
2013/8/12 Hans Petter Selasky :
> Do you have an exact SVN revision where it works and where it doesn't work?

Unfortunately not. 9.1-RELEASE worked fine though. I could try older
kernels, but like I mentioned before, this device is attached only for
troubleshooting purposes when I bug the technical support team, and
then for limited periods only. So I guess it will take some time.

Let me know if I can do anything else to help.
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: usb/181159: Problem attaching USB device

2013-08-12 Thread Hans Petter Selasky

On 08/12/13 14:50, Antonis Anastasiadis wrote:

The following reply was made to PR usb/181159; it has been noted by GNATS.

From: Antonis Anastasiadis 
To: Hans Petter Selasky 
Cc: freebsd-gnats-sub...@freebsd.org
Subject: Re: usb/181159: Problem attaching USB device
Date: Mon, 12 Aug 2013 15:42:41 +0300

  2013/8/10 Hans Petter Selasky :
  
  > What you could try is to
  > identify the parent HUB or RootHUB and then set config 255 , then config 0.
  > Maybe the device will enumerate then.

  No change. The HUB is reset as I can see from the dmesg, but the
  device refuses to enumerate.
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Do you have an exact SVN revision where it works and where it doesn't work?

--HPS

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: usb/181159: Problem attaching USB device

2013-08-12 Thread Antonis Anastasiadis
The following reply was made to PR usb/181159; it has been noted by GNATS.

From: Antonis Anastasiadis 
To: Hans Petter Selasky 
Cc: freebsd-gnats-sub...@freebsd.org
Subject: Re: usb/181159: Problem attaching USB device
Date: Mon, 12 Aug 2013 15:42:41 +0300

 2013/8/10 Hans Petter Selasky :
 
 > What you could try is to
 > identify the parent HUB or RootHUB and then set config 255 , then config 0.
 > Maybe the device will enumerate then.
 
 No change. The HUB is reset as I can see from the dmesg, but the
 device refuses to enumerate.
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Current problem reports assigned to freebsd-usb@FreeBSD.org

2013-08-12 Thread FreeBSD bugmaster
Note: to view an individual PR, use:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=(number).

The following is a listing of current problems submitted by FreeBSD users.
These represent problem reports covering all versions including
experimental development code and obsolete releases.


S Tracker  Resp.  Description

o usb/181159   usbProblem attaching USB device
o usb/180923   usbSNES USB gamepad controller does not work.
o usb/180837   usb[scsi_da] [patch] Kingston DT 101 G2 usb stick quirk (
o usb/180726   usbXHCI umass support breaks between r248085 and r252560 
o usb/180657   usb[PATCH] Filco Majestouch 2 keyboard recognized as keyb
o usb/180617   usbNew quirk (another member of Western Digital My Passpo
o usb/180254   usbFreeBSD 9.1 on 384GB memory server
o usb/180119   usbFreeBSD 9.1 umass driver does not correctly handle Pan
o usb/179505   usbKernel detaches Arduino Leonardo (and similar) board u
o usb/179342   usbFreebsd 10.0-current USB 3.0 not working (xhci_do_coma
o usb/179109   usbAfter detach USB Flash a keyboard does not work.
o usb/179107   usb[usb] After detach USB Flash a keyboard does not work.
o usb/178773   usb[usbdevs] [patch] Huawei E303 USB 3G modem support
o usb/178771   usb[usbdevs] [patch] Western Digital My Passport HD
o usb/178722   usbFreeBSD 9.1-STABLE r250561 breaks support for webcam L
o usb/178267   usb[usb] USB causing interrupt storm on irq16
o usb/177897   usb[u3g][patch] add support for the Huawei E352 modem
o usb/177896   usbman page for usb_quirk suggests adding device to kerne
o usb/177895   usbsimilar 1TB Western Digital "My Passports" - some load
o usb/177666   usb[usbdevs] [patch] Add support for Texas Instruments / 
o usb/176913   usb[ehci] High interrupt load with ehci
o usb/176841   usb[umass] Sony DSC-H2 USB connection fails
o usb/176417   usb[xhci][cam][umass] kernelpanic while removing plugged 
o usb/175731   usbdetaching USB keyboard freezes other USB keyboards
o usb/175639   usbnot detect usb netcard D-LINK DUB-E100 rev C1
o usb/175599   usb[usbdevs][patch]Liebert UPS PSI1000 being assigned uhi
o usb/175551   usbSeagate 2TB USB extern hard disk have errors with Free
o usb/175379   usbusb card-reader problem
o usb/175302   usbdon't mount virtual driver CD for my phone
o usb/174963   usbbuffalo wli-uc-gn wireless card sometimes unusable and
o usb/174835   usbuaudio fails to create pcm/dsp device file
o usb/174814   usb[PATCH] support for MiFi 2200
o usb/174695   usbusb keeps disconnecting mouse or keyboard
o usb/174575   usbInterrupt storm error on startup
o usb/174464   usbclone MAC address(es) on usb networks cdce(4) && ue[0-
o usb/174254   usbMIDI keyboard not recognised
o usb/173722   usb[xhci] xhci driver bug after suspend to RAM (ACPI S3 m
o usb/173616   usbLG USB DVD-RW USB STALL
o usb/173182   usbusbus appears as a network device
o usb/172937   usbFreeBSD 9.1-RC2 usb3 port disconnects
o usb/172633   usbSony Cybershot not recognized as USB mem stick
o usb/172199   usb[xhci] high interrupts load xhci
o usb/171354   usb[umass] Medium not present error on flash drive [regre
o usb/171262   usbplug in sdhc via usb reader reboots machine
o usb/171197   usbADATA Classic CH11 USB HDD doesn't work in FreeBSD 9.1
o usb/170699   usbFreeBSD 9.0 Doesn't list HDD or its partitions in part
o usb/170688   usbpatch][usbdevs][wlan] Patch for ASUS Black Diamond USB
o usb/170606   usbr239222 kernel panic at boot - usb locking issue
o usb/170358   usb[ums] Wrong (duplicate) button numbers
o usb/170123   usb[umass] HP v210w USB stick not supported
o usb/169935   usb[keyboard] Unable use USB keyboard while panic
o usb/169789   usb[u3g] [patch] add support for huawei e3131
o usb/169461   usb[ugen] USB2 high-speed device detected as full speed
o usb/169428   usb[ugen] ugen not detecting all endpoints on device [reg
o usb/168551   usb[umass] Issues with embedded card reader (Laptop ASUS 
o usb/168132   usb[umass] MATSHITA memory card size reported wrong, moun
o usb/167847   usb[ural] dlink dwl-122g e crashes(?) when trying wap2 cr
o usb/167001   usb[USB] [PATCH] add support for Smart G2 64MB memory key
o usb/165815   usb[usbdevs] [patch] add k3772z 3g modem support
o usb/165163   usb[keyboard] The USB RF keyboard and mouse become non-re
o usb/164058   usb[umass] Lexar 8GB USB flash drive doesn't work by defa
f usb/163328   usb[usb] Support for Atheros USB abgn devices
o kern/163091  usb[panic] Fa

Re: COMPAT_32BIT libusb ABI problem

2013-08-12 Thread Hans Petter Selasky

On 07/24/13 22:09, Damjan Jovanovic wrote:

Hi

The ioctl:
#define USB_FS_INIT _IOW ('U', 195, struct usb_fs_init)
when used by a COMPAT_32BIT libusb on amd64, fails (causing
libusb_open() to fail) due to:

freebsd32_ioctl(0x6,0x800c55c3,0xc710,0x0,0x0,0x0) ERR#25
'Inappropriate ioctl for device'
but when hacked a bit:
freebsd32_ioctl(0x6,0x801055c3,0xc710,0x0,0x0,0x0) = 0 (0x0)

because sizeof(struct usb_fs_init) is 12 bytes on i386, and 16 bytes on amd64.

But the failure of even libusb_open() - a fundamental libusb function
- must mean that the COMPAT_32BIT libusb never worked. Can we please
take this opportunity to kill it and do a real 32 bit compatibility
layer in the kernel that will work from 32 bit chroots and statically
linked 32 bit binaries? I'll help.


Hi,

Some further analysis shows that this is due to structures being aligned 
to their biggest element on AMD64 while on I386 not. This should now be 
fixed. Please see the following commit:


http://svnweb.freebsd.org/changeset/base/254243

You will need to use the LibUSB-32 built by the 64-bit system build, and 
not the I386 one, which has COMPAT_32BIT set.


Thank you!

--HPS

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"