Re: usb/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)

2013-07-06 Thread Mike C.
The following reply was made to PR usb/179342; it has been noted by GNATS.

From: "Mike C." 
To: bug-follo...@freebsd.org
Cc: Hans Petter Selasky 
Subject: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working 
(xhci_do_comand:
 Command timeout!)
Date: Sat, 06 Jul 2013 23:07:18 +

 This is a multi-part message in MIME format.
 --020508010507010404080808
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 
 I adapted the previous patch to work with the recent changes and it work
 for me...
 
 So I've updated to the latest revision (revision 252698) and aplied the
 patch, has expect it works and I can use my USB 3.0 ports!
 
 
 
 --020508010507010404080808
 Content-Type: text/plain; charset=us-ascii;
  name="xhci_timer.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="xhci_timer.diff"
 
 === xhci.h
 ==
 --- xhci.h (revision 252698)
 +++ xhci.h (local)
 @@ -438,6 +438,8 @@
/* configure message */
struct usb_bus_msg  sc_config_msg[2];
  
 +  struct usb_callout  sc_callout;
 +
union xhci_hub_desc sc_hub_desc;
  
struct cv   sc_cmd_cv;
 === xhci_pci.c
 ==
 --- xhci_pci.c (revision 252698)
 +++ xhci_pci.c (local)
 @@ -142,6 +142,16 @@
usb_callout_reset(&sc->sc_callout, 1, (void *)&xhci_interrupt_poll, sc);
  }
  
 +static void
 +xhci_timer(void *_sc)
 +{
 +  struct xhci_softc *sc = _sc;
 +  USB_BUS_UNLOCK(&sc->sc_bus);
 +  xhci_interrupt(sc);
 +  USB_BUS_LOCK(&sc->sc_bus);
 +  usb_callout_reset(&sc->sc_callout, 1, (void *)&xhci_timer, sc);
 +}
 +
  static int
  xhci_pci_attach(device_t self)
  {
 @@ -186,6 +196,12 @@
  
sprintf(sc->sc_vendor, "0x%04x", pci_get_vendor(self));
  
 +  usb_callout_init_mtx(&sc->sc_callout, &sc->sc_bus.bus_mtx, 0);
 +
 +  USB_BUS_LOCK(&sc->sc_bus);
 +  xhci_timer(sc);
 +  USB_BUS_UNLOCK(&sc->sc_bus);
 +
if (sc->sc_irq_res != NULL) {
err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | 
INTR_MPSAFE,
NULL, (driver_intr_t *)xhci_interrupt, sc, 
&sc->sc_intr_hdl);
 
 --020508010507010404080808--
___
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/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)

2013-07-02 Thread Mike C.
The following reply was made to PR usb/179342; it has been noted by GNATS.

From: "Mike C." 
To: bug-follo...@freebsd.org, miguelmcl...@gmail.com
Cc:  
Subject: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working 
(xhci_do_comand:
 Command timeout!)
Date: Wed, 03 Jul 2013 00:57:04 +

 This is a multi-part message in MIME format.
 --030903080109090901000503
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 Hi,
 
 I was looking into the status of this and noticed that there's was
 something wrong with followups...
 
 I remember replying to this confirming that patch "xhci_timer.diff
 <http://www.freebsd.org/cgi/query-pr.cgi?pr=179342&getpatch=1>" fixed my
 problem and indeed I have that mail in my sent items...
 
 Anyway, I was testing with the most recent revision, and if I do that
 the problem returns...
 
 So just to make sure in my case the first proposed patch fixed the
 issue, while the other changes bring back the problem...
 
 Just wanted to clarify!
 
 Thanks,
 
 Mike
 
 --030903080109090901000503
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 
   
 
 
   
   
 Hi,
 
 I was looking into the status of this and noticed that there's was
 something wrong with followups... 
 
 I remember replying to this confirming that patch "http://www.freebsd.org/cgi/query-pr.cgi?pr=179342&getpatch=1";>xhci_timer.diff"
 fixed my problem and indeed I have that mail in my sent items...
 
 Anyway, I was testing with the most recent revision, and if I do
 that the problem returns...
 
 So just to make sure in my case the first proposed patch fixed the
 issue, while the other changes bring back the problem... 
 
 Just wanted to clarify!
 
 Thanks,
 
 Mike
   
 
 
 --030903080109090901000503--
___
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/179383: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)

2013-06-16 Thread linimon
Old Synopsis: Fwd: usb/179342: Freebsd 10.0-current USB 3.0 not working
New Synopsis: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working 
(xhci_do_comand: Command timeout!)

State-Changed-From-To: open->closed
State-Changed-By: linimon
State-Changed-When: Mon Jun 17 00:18:20 UTC 2013
State-Changed-Why: 
Misfiled followup to usb/179342; content migrated.


Responsible-Changed-From-To: gnats-admin->freebsd-usb
Responsible-Changed-By: linimon
Responsible-Changed-When: Mon Jun 17 00:18:20 UTC 2013
Responsible-Changed-Why: 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179383
___
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/179381: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)

2013-06-16 Thread linimon
Old Synopsis: Fwd: usb/179342: Freebsd 10.0-current USB 3.0 not working
New Synopsis: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working 
(xhci_do_comand: Command timeout!)

State-Changed-From-To: open->closed
State-Changed-By: linimon
State-Changed-When: Mon Jun 17 00:18:20 UTC 2013
State-Changed-Why: 
Misfiled followup to usb/179342; content migrated.


Responsible-Changed-From-To: gnats-admin->freebsd-usb
Responsible-Changed-By: linimon
Responsible-Changed-When: Mon Jun 17 00:18:20 UTC 2013
Responsible-Changed-Why: 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179381
___
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/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)

2013-06-07 Thread Hans Petter Selasky
The following reply was made to PR usb/179342; it has been noted by GNATS.

From: =?utf-8?Q?Hans_Petter_Selasky?= 
To: =?utf-8?Q?Takanori_Watanabe?= 
Cc: =?utf-8?Q?miguelmclara=40gmail=2Ecom?= , 
 =?utf-8?Q?bug-followup=40FreeBSD=2Eorg?= 
Subject: RE: usb/179342: Freebsd 10.0-current USB 3.0 not working
 (xhci_do_comand: Command timeout!)
Date: Fri, 7 Jun 2013 19:47:21 +0200

 This is a multi-part message in MIME format. Your mail reader does not
 understand MIME message format.
 --=_FOxI0JVt0ros0tqh1HRVDjPZNCyIUdOP9Jp8wmtmxJ+R8R9K
 Content-Type: text/plain; charset=utf-8
 Content-Transfer-Encoding: quoted-printable
 
 Can you try:=0D=0A=0D=0A=C2=A0=0D=0Ar251252=0D=0A=0D=0A=C2=A0=0D=0Aaswell=
 , that`s a header file change adjusting the IRQ rate of the XHCI controll=
 er.=0D=0A=0D=0A=C2=A0=0D=0A--HPS=0D=0A=0D=0A-Original message-=0D=
 =0AFrom:Takanori Watanabe =0D=0ASent:Fri 07-06-20=
 13 18:55=0D=0ASubject:Re: usb/179342: Freebsd 10.0-current USB 3.0 not wo=
 rking (xhci_do_comand: Command timeout!)=0D=0ATo:Hans Petter Selasky ;=20=0D=0ACC:bug-follo...@freebsd.org; migue=
 lmcl...@gmail.com;=20=0D=0AIn message <51b1826a.3000...@bitfrost.no>, Han=
 s Petter Selasky wrote:=0D=0A>On 06/07/13 08:21, takaw...@init-main.com w=
 rote:=0D=0A>> Reverting the recent change on xhci.c fixes the problem for=
  me.=0D=0A>>=0D=0A>> --- head/sys/dev/usb/controller/xhci.c =C2=A02013/04=
 /23 06:26:54 =C2=A0 =C2=A0 249786=0D=0A>> +++ head/sys/dev/usb/controller=
 /xhci.c =C2=A02013/06/02 12:28:29 =C2=A0 =C2=A0 251254=0D=0A>>=0D=0A>=0D=0A=
 >Hi,=0D=0A>=0D=0A>If you look at the SVN log, there are only a few change=
 s in the XHCI=20=0D=0A>area. Could you identify exactly which change is t=
 he cause of the=20=0D=0A>problem=3F I don't see that any of the changes b=
 etween r1 and r2 should=20=0D=0A>affect the XHCI device init function, wh=
 ere it is failing.=0D=0A>=0D=0A>http://svnweb.freebsd.org/base/head/sys/d=
 ev/usb/controller/xhci.c=3Fview=3Dlog=0D=0A>=0D=0A>xhci_do_comand: Comman=
 d timeout!=0D=0A>usb_alloc_device: device init 2 failed (USB_ERR_TIMEOUT,=
  ignored)=0D=0A>usbgen0.2:  at usbus0 (disconnected)=0D=0A>usb_r=
 eattach_port: could not allocate new device=0D=0A=0D=0Axhci.c 251251:2512=
 53 cause the problem for me.=0D=0A=0D=0A=0D=0A
 --=_FOxI0JVt0ros0tqh1HRVDjPZNCyIUdOP9Jp8wmtmxJ+R8R9K
 Content-Type: text/html; charset=utf-8
 Content-Transfer-Encoding: quoted-printable
 
 http://ww=
 w.w3.org/TR/html4/loose.dtd">=0A=0A  =0A  =0A  RE: usb/17934=
 2: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command time=
 out!)=0A  =0A  body=0D=0A  {=0D=0A=
 font-family: Arial, Verdana, Sans-Serif ! important;=0D=0A   =
  font-size: 12px;=0D=0Apadding: 5px 5px 5px 5px;=0D=0Amar=
 gin: 0px;=0D=0Aborder-style: none;=0D=0Abackground-color:=
  #ff;=0D=0A  }=0D=0A=0D=0A  p, ul, li=0D=0A  {=0D=0A =
margin-top: 0px;=0D=0Amargin-bottom: 0px;=0D=0A  }=0D=0A  =
 =0A=0A=0ACan you try: r251252<=
 /p> aswell, that`s a header file change adjusting the IRQ =
 rate of the XHCI controller. --HPS=
 -Original message-From:=09Takanori Watanab=
 e <takaw...@init-main.com>Sent:=09Fri 07-06-=
 2013 18:55Subject:=09Re: usb/179342: Freebsd 10.0-=
 current USB 3.0 not working (xhci_do_comand: Command timeout!)To:=09Hans Petter Selasky <hans.petter.sela...@bitfrost.no=
 >; CC:=09bug-follo...@freebsd.org; miguelmclara=
 @gmail.com; In message <51b1826a.3000...@bitfrost.no>, Hans P=
 etter Selasky wrote:>On 06/07/13 08:21, takaw...@init-main.com w=
 rote:>> Reverting the recent change on xhci.c fixes the probl=
 em for me.>>>> --- head/sys/dev/usb/controller/xh=
 ci.c  2013/04/23 06:26:54     249786>> +++ hea=
 d/sys/dev/usb/controller/xhci.c  2013/06/02 12:28:29     2=
 51254>>>>Hi,>>If you look=
  at the SVN log, there are only a few changes in the XHCI >area.=
  Could you identify exactly which change is the cause of the >pr=
 oblem=3F I don't see that any of the changes between r1 and r2 should=
  >affect the XHCI device init function, where it is failing.>>http://svnweb.freebsd.org/base/head/sys/dev/usb/controlle=
 r/xhci.c=3Fview=3Dlog>>xhci_do_comand: Command timeout!=
 >usb_alloc_device: device init 2 failed (USB_ERR_TIMEOUT, ignore=
 d)>usbgen0.2: <Unknown> at usbus0 (disconnected)>=
 usb_reattach_port: could not allocate new devicexhci.c 251251=
 :251253 cause the problem for me.=0A=0A
 --=_FOxI0JVt0ros0tqh1HRVDjPZNCyIUdOP9Jp8wmtmxJ+R8R9K--
 
___
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/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)

2013-06-07 Thread Takanori Watanabe
The following reply was made to PR usb/179342; it has been noted by GNATS.

From: Takanori Watanabe 
To: Hans Petter Selasky 
Cc: bug-follo...@freebsd.org, miguelmcl...@gmail.com
Subject: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working 
(xhci_do_comand: Command timeout!)
Date: Sat, 08 Jun 2013 01:49:55 +0900

 In message <51b1826a.3000...@bitfrost.no>, Hans Petter Selasky wrote:
 >On 06/07/13 08:21, takaw...@init-main.com wrote:
 >> Reverting the recent change on xhci.c fixes the problem for me.
 >>
 >> --- head/sys/dev/usb/controller/xhci.c  2013/04/23 06:26:54 249786
 >> +++ head/sys/dev/usb/controller/xhci.c  2013/06/02 12:28:29 251254
 >>
 >
 >Hi,
 >
 >If you look at the SVN log, there are only a few changes in the XHCI 
 >area. Could you identify exactly which change is the cause of the 
 >problem? I don't see that any of the changes between r1 and r2 should 
 >affect the XHCI device init function, where it is failing.
 >
 >http://svnweb.freebsd.org/base/head/sys/dev/usb/controller/xhci.c?view=log
 >
 >xhci_do_comand: Command timeout!
 >usb_alloc_device: device init 2 failed (USB_ERR_TIMEOUT, ignored)
 >usbgen0.2:  at usbus0 (disconnected)
 >usb_reattach_port: could not allocate new device
 
 xhci.c 251251:251253 cause the problem for me.
 
 
___
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/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)

2013-06-07 Thread miguelmclara
The following reply was made to PR usb/179342; it has been noted by GNATS.

From: miguelmcl...@gmail.com
To: "Hans Petter Selasky" 
Cc: freebsd-gnats-sub...@freebsd.org,bug-follo...@freebsd.org,"John Baldwin" 

Subject: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working 
(xhci_do_comand: Command timeout!)
Date: Fri, 7 Jun 2013 15:01:19 +

 DQpJIHVzZWQgc3ZuIGZvciBjaGVja291dCwgYnV0IHRoZSBwcmluY2lwbGUgSSB0aGUgc2FtZS4g
 SSB3aWxsIHRlc3QgZG9lcyBhbmQgcmVwb3J0IGJhY2sgbXkgZmluZGluZ3MuDQoNCg0KLS0tLS0t
 TWVuc2FnZW0gb3JpZ2luYWwtLS0tLS0NCkRlOkhhbnMgUGV0dGVyIFNlbGFza3kNClBhcmE6IE1p
 Z3VlbCBDbGFyYQ0KQ2M6IGZyZWVic2QtZ25hdHMtc3VibWl0QGZyZWVic2Qub3JnDQpDYzogYnVn
 LWZvbGxvd3VwQGZyZWVic2Qub3JnDQpDYzogSm9obiBCYWxkd2luDQpBc3N1bnRvOiBSZTogdXNi
 LzE3OTM0MjogRnJlZWJzZCAxMC4wLWN1cnJlbnQgVVNCIDMuMCBub3Qgd29ya2luZyAoeGhjaV9k
 b19jb21hbmQ6IENvbW1hbmQgdGltZW91dCEpDQpFbnZpYWRhOjcgSnVuIDIwMTMgMTQ6NDINCg0K
 T24gMDYvMDcvMTMgMTQ6NDQsIE1pZ3VlbCBDbGFyYSB3cm90ZToNCj4gSGksDQo+DQo+IFRoaXMg
 cGF0Y2ggZG9lcyBmaXggdGhlIGlzc3VlICh0ZXN0ZWQgd2l0aCBkaWZmZXJlbnQgbWVtc3RpY2tz
 KSwgSSBjYW4NCj4gbm93IHVzZSB1c2IgZHJpdmVycyENCj4NCj4gSSBkbyBzZWUgdGhpcyBhdCBi
 b290Og0KPiB1Z2VuMS4yOiA8dmVuZG9yIDB4ODA4Nz4gYXQgdXNidXMxDQo+IHVodWI0OiA8dmVu
 ZG9yIDB4ODA4NyBwcm9kdWN0IDB4MDAyNCwgY2xhc3MgOS8wLCByZXYgMi4wMC8wLjAwLCBhZGRy
 DQo+IDI+IG9uIHVzYnVzMQ0KDQpIaSwNCg0KVGhhbmsgeW91IGZvciB0ZXN0aW5nLiBJdCB0ZWxs
 cyBtZWQgdGhhdCB0aGUgSVJRIHJvdXRpbmcgaXMgYnJva2VuIA0Kc29tZXdoZXJlLg0KDQpDb3Vs
 ZCB5b3UgYmluYXJ5IHNlYXJjaCB0aGUga2VybmVscyBiZXR3ZWVuIHIyNDk3ODYgYW5kIHIyNTEy
 NTQsIHRvIA0KZmlndXJlIG91dCB0aGUgZXhhY3QgY29tbWl0IHRoYXQgYnJva2UgeW91ciBYSENJ
 IGRyaXZlciwgcmV2ZXJ0aW5nIG15IA0KcGF0Y2g/IFlvdSBzaG91bGQgbm90IG5lZWQgdG8gYnVp
 bGQgdGhlIGtlcm5lbCBtb3JlIHRoYW4gMTAgdGltZXMgYmVmb3JlIA0KeW91IGZpZ3VyZSBvdXQg
 d2hpY2ggaGFzIHRoZSBjb21taXQgd2hpY2ggY2F1c2VzIHRoZSBmYWlsdXJlLg0KDQptYWtlIGJ1
 aWxka2VybmVsIC1qOCAtRE5PX0NMRUFODQoNCklmIHlvdSBjaGVja2VkIG91dCB0aGUgc291cmNl
 cyB1c2luZyBHSVQsIHRoaXMgc2hvdWxkIGJlIHZlcnkgcXVpY2tseSBkb25lLg0KDQotLUhQUw0K
 DQoNCkVudmlhZG8gYSBwYXJ0aXIgZG8gbWV1IHNtYXJ0cGhvbmUgQmxhY2tCZXJyea4gd3d3LmJs
 YWNrYmVycnkuY29t
 
___
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/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)

2013-06-07 Thread miguelmclara
The following reply was made to PR usb/179342; it has been noted by GNATS.

From: miguelmcl...@gmail.com
To: "Hans Petter Selasky" 
Cc: freebsd-gnats-sub...@freebsd.org,bug-follo...@freebsd.org,"John Baldwin" 

Subject: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working 
(xhci_do_comand: Command timeout!)
Date: Fri, 7 Jun 2013 15:01:19 +

 DQpJIHVzZWQgc3ZuIGZvciBjaGVja291dCwgYnV0IHRoZSBwcmluY2lwbGUgSSB0aGUgc2FtZS4g
 SSB3aWxsIHRlc3QgZG9lcyBhbmQgcmVwb3J0IGJhY2sgbXkgZmluZGluZ3MuDQoNCg0KLS0tLS0t
 TWVuc2FnZW0gb3JpZ2luYWwtLS0tLS0NCkRlOkhhbnMgUGV0dGVyIFNlbGFza3kNClBhcmE6IE1p
 Z3VlbCBDbGFyYQ0KQ2M6IGZyZWVic2QtZ25hdHMtc3VibWl0QGZyZWVic2Qub3JnDQpDYzogYnVn
 LWZvbGxvd3VwQGZyZWVic2Qub3JnDQpDYzogSm9obiBCYWxkd2luDQpBc3N1bnRvOiBSZTogdXNi
 LzE3OTM0MjogRnJlZWJzZCAxMC4wLWN1cnJlbnQgVVNCIDMuMCBub3Qgd29ya2luZyAoeGhjaV9k
 b19jb21hbmQ6IENvbW1hbmQgdGltZW91dCEpDQpFbnZpYWRhOjcgSnVuIDIwMTMgMTQ6NDINCg0K
 T24gMDYvMDcvMTMgMTQ6NDQsIE1pZ3VlbCBDbGFyYSB3cm90ZToNCj4gSGksDQo+DQo+IFRoaXMg
 cGF0Y2ggZG9lcyBmaXggdGhlIGlzc3VlICh0ZXN0ZWQgd2l0aCBkaWZmZXJlbnQgbWVtc3RpY2tz
 KSwgSSBjYW4NCj4gbm93IHVzZSB1c2IgZHJpdmVycyENCj4NCj4gSSBkbyBzZWUgdGhpcyBhdCBi
 b290Og0KPiB1Z2VuMS4yOiA8dmVuZG9yIDB4ODA4Nz4gYXQgdXNidXMxDQo+IHVodWI0OiA8dmVu
 ZG9yIDB4ODA4NyBwcm9kdWN0IDB4MDAyNCwgY2xhc3MgOS8wLCByZXYgMi4wMC8wLjAwLCBhZGRy
 DQo+IDI+IG9uIHVzYnVzMQ0KDQpIaSwNCg0KVGhhbmsgeW91IGZvciB0ZXN0aW5nLiBJdCB0ZWxs
 cyBtZWQgdGhhdCB0aGUgSVJRIHJvdXRpbmcgaXMgYnJva2VuIA0Kc29tZXdoZXJlLg0KDQpDb3Vs
 ZCB5b3UgYmluYXJ5IHNlYXJjaCB0aGUga2VybmVscyBiZXR3ZWVuIHIyNDk3ODYgYW5kIHIyNTEy
 NTQsIHRvIA0KZmlndXJlIG91dCB0aGUgZXhhY3QgY29tbWl0IHRoYXQgYnJva2UgeW91ciBYSENJ
 IGRyaXZlciwgcmV2ZXJ0aW5nIG15IA0KcGF0Y2g/IFlvdSBzaG91bGQgbm90IG5lZWQgdG8gYnVp
 bGQgdGhlIGtlcm5lbCBtb3JlIHRoYW4gMTAgdGltZXMgYmVmb3JlIA0KeW91IGZpZ3VyZSBvdXQg
 d2hpY2ggaGFzIHRoZSBjb21taXQgd2hpY2ggY2F1c2VzIHRoZSBmYWlsdXJlLg0KDQptYWtlIGJ1
 aWxka2VybmVsIC1qOCAtRE5PX0NMRUFODQoNCklmIHlvdSBjaGVja2VkIG91dCB0aGUgc291cmNl
 cyB1c2luZyBHSVQsIHRoaXMgc2hvdWxkIGJlIHZlcnkgcXVpY2tseSBkb25lLg0KDQotLUhQUw0K
 DQoNCkVudmlhZG8gYSBwYXJ0aXIgZG8gbWV1IHNtYXJ0cGhvbmUgQmxhY2tCZXJyea4gd3d3LmJs
 YWNrYmVycnkuY29t
 
___
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/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)

2013-06-07 Thread Hans Petter Selasky
The following reply was made to PR usb/179342; it has been noted by GNATS.

From: Hans Petter Selasky 
To: Miguel Clara 
Cc: freebsd-gnats-sub...@freebsd.org, bug-follo...@freebsd.org, 
 John Baldwin 
Subject: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working 
(xhci_do_comand:
 Command timeout!)
Date: Fri, 07 Jun 2013 15:42:49 +0200

 On 06/07/13 14:44, Miguel Clara wrote:
 > Hi,
 >
 > This patch does fix the issue (tested with different memsticks), I can
 > now use usb drivers!
 >
 > I do see this at boot:
 > ugen1.2:  at usbus1
 > uhub4:  2> on usbus1
 
 Hi,
 
 Thank you for testing. It tells med that the IRQ routing is broken 
 somewhere.
 
 Could you binary search the kernels between r249786 and r251254, to 
 figure out the exact commit that broke your XHCI driver, reverting my 
 patch? You should not need to build the kernel more than 10 times before 
 you figure out which has the commit which causes the failure.
 
 make buildkernel -j8 -DNO_CLEAN
 
 If you checked out the sources using GIT, this should be very quickly done.
 
 --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/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)

2013-06-07 Thread Hans Petter Selasky
The following reply was made to PR usb/179342; it has been noted by GNATS.

From: Hans Petter Selasky 
To: Miguel Clara 
Cc: freebsd-gnats-sub...@freebsd.org, bug-follo...@freebsd.org, 
 John Baldwin 
Subject: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working 
(xhci_do_comand:
 Command timeout!)
Date: Fri, 07 Jun 2013 15:42:49 +0200

 On 06/07/13 14:44, Miguel Clara wrote:
 > Hi,
 >
 > This patch does fix the issue (tested with different memsticks), I can
 > now use usb drivers!
 >
 > I do see this at boot:
 > ugen1.2:  at usbus1
 > uhub4:  2> on usbus1
 
 Hi,
 
 Thank you for testing. It tells med that the IRQ routing is broken 
 somewhere.
 
 Could you binary search the kernels between r249786 and r251254, to 
 figure out the exact commit that broke your XHCI driver, reverting my 
 patch? You should not need to build the kernel more than 10 times before 
 you figure out which has the commit which causes the failure.
 
 make buildkernel -j8 -DNO_CLEAN
 
 If you checked out the sources using GIT, this should be very quickly done.
 
 --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/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)

2013-06-07 Thread Miguel Clara
The following reply was made to PR usb/179342; it has been noted by GNATS.

From: Miguel Clara 
To: Hans Petter Selasky 
Cc: freebsd-gnats-sub...@freebsd.org, bug-follo...@freebsd.org
Subject: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working
 (xhci_do_comand: Command timeout!)
Date: Fri, 7 Jun 2013 13:44:39 +0100

 Hi,
 
 This patch does fix the issue (tested with different memsticks), I can
 now use usb drivers!
 
 I do see this at boot:
 ugen1.2:  at usbus1
 uhub4:  on usbus1
 uhub4: 6 ports with 6 removable, self powered
 uhub3: 8 ports with 8 removable, self powered
 ugen1.3:  at usbus1
 usbd_setup_device_desc: getting device descriptor at addr 1 failed,
 USB_ERR_TIMEOUT
 usbd_setup_device_desc: getting device descriptor at addr 1 failed,
 USB_ERR_TIMEOUT
 usbd_setup_device_desc: getting device descriptor at addr 1 failed,
 USB_ERR_TIMEOUT
 usbd_setup_device_desc: getting device descriptor at addr 1 failed,
 USB_ERR_TIMEOUT
 usbd_setup_device_desc: getting device descriptor at addr 1 failed,
 USB_ERR_TIMEOUT
 ugen0.2:  at usbus0 (disconnected)
 uhub_reattach_port: could not allocate new device
 
 I guess its not related to the xhci problem, but another usb
 device but It tough I should mentioned it...
 
 Thanks
 
 On Fri, Jun 7, 2013 at 7:06 AM, Hans Petter Selasky  wrote:
 > On 06/05/13 21:05, Miguel C. wrote:
 >>
 >>
 >>> Number: 179342
 >>> Category:   usb
 >>> Synopsis:   Freebsd 10.0-current USB 3.0 not working (xhci_do_comand:
 >>> Command timeout!)
 >>> Confidential:   no
 >>> Severity:   non-critical
 >>> Priority:   low
 >>> Responsible:freebsd-usb
 >>> State:  open
 >>> Quarter:
 >>> Keywords:
 >>> Date-Required:
 >>> Class:  sw-bug
 >>> Submitter-Id:   current-users
 >>> Arrival-Date:   Wed Jun 05 19:10:00 UTC 2013
 >>> Closed-Date:
 >>> Last-Modified:
 >>> Originator: Miguel C.
 >>> Release:
 >>> Organization:
 >>> Environment:
 >>
 >> % uname -a
 >> FreeBSD r2d2 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Mon May 13 00:54:58 UTC
 >> 2013 r...@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
 >>>
 >>> Description:
 >>
 >> This is an Ultrabook (acer s3) with only one USB 3.0 Controller (2-ports)
 >>
 >> I first noticed that I could not install 10-current using the memstick
 >> images, I got stuck at mount root, after upgrading form 9.1 using base and
 >> kernel tarballs I noticed that the system has no longer detecting my
 >> memsticks.
 >>
 >>
 >> When connecting usb devices (memstick,hdd) I get:
 >>
 >> xhci_do_comand: Command timeout!
 >> usb_alloc_device: device init 2 failed (USB_ERR_TIMEOUT, ignored)
 >> usbgen0.2:  at usbus0 (disconnected)
 >> usb_reattach_port: could not allocate new device
 >>
 >>
 >> More info about the controller:
 >> xhci0:  mem 0xc050-0xc050
 >> at device 20.0 on pci0
 >>
 >> And has I explained in the mailling list, I already tried:
 >>
 >> sysctl hw.xhci.xhci_port_route=-1 (and =1) in /boot/loader.conf
 >> (and in sysctl.conf but I guess the first one is the proper way
 >>
 >> rebooted, and still no luck.
 >>
 >>
 >>> How-To-Repeat:
 >>
 >> 1: Download a memstick image and dd to a usb, after boot you get stuck at
 >> "mountroot" prompt.
 >>
 >> 2: If you're able to install 10-0 current any other way, just connect a
 >> USB memstick to 3.0 controller, and you'll see the problem (unless if this
 >> is related to my controller specifically - Intel Panther Point USB 3.0)
 >>>
 >>> Fix:
 >>
 >> Tried: sysctl hw.xhci.xhci_port_route=-1 -> DID NOT work!
 >>
 >
 > Hi,
 >
 > Can you patch the kernel using the attached patch? It will fake interrupts.
 > Does the XHCI work now?
 >
 > --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/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)

2013-06-07 Thread Miguel Clara
The following reply was made to PR usb/179342; it has been noted by GNATS.

From: Miguel Clara 
To: Hans Petter Selasky 
Cc: freebsd-gnats-sub...@freebsd.org, bug-follo...@freebsd.org
Subject: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working
 (xhci_do_comand: Command timeout!)
Date: Fri, 7 Jun 2013 13:44:39 +0100

 Hi,
 
 This patch does fix the issue (tested with different memsticks), I can
 now use usb drivers!
 
 I do see this at boot:
 ugen1.2:  at usbus1
 uhub4:  on usbus1
 uhub4: 6 ports with 6 removable, self powered
 uhub3: 8 ports with 8 removable, self powered
 ugen1.3:  at usbus1
 usbd_setup_device_desc: getting device descriptor at addr 1 failed,
 USB_ERR_TIMEOUT
 usbd_setup_device_desc: getting device descriptor at addr 1 failed,
 USB_ERR_TIMEOUT
 usbd_setup_device_desc: getting device descriptor at addr 1 failed,
 USB_ERR_TIMEOUT
 usbd_setup_device_desc: getting device descriptor at addr 1 failed,
 USB_ERR_TIMEOUT
 usbd_setup_device_desc: getting device descriptor at addr 1 failed,
 USB_ERR_TIMEOUT
 ugen0.2:  at usbus0 (disconnected)
 uhub_reattach_port: could not allocate new device
 
 I guess its not related to the xhci problem, but another usb
 device but It tough I should mentioned it...
 
 Thanks
 
 On Fri, Jun 7, 2013 at 7:06 AM, Hans Petter Selasky  wrote:
 > On 06/05/13 21:05, Miguel C. wrote:
 >>
 >>
 >>> Number: 179342
 >>> Category:   usb
 >>> Synopsis:   Freebsd 10.0-current USB 3.0 not working (xhci_do_comand:
 >>> Command timeout!)
 >>> Confidential:   no
 >>> Severity:   non-critical
 >>> Priority:   low
 >>> Responsible:freebsd-usb
 >>> State:  open
 >>> Quarter:
 >>> Keywords:
 >>> Date-Required:
 >>> Class:  sw-bug
 >>> Submitter-Id:   current-users
 >>> Arrival-Date:   Wed Jun 05 19:10:00 UTC 2013
 >>> Closed-Date:
 >>> Last-Modified:
 >>> Originator: Miguel C.
 >>> Release:
 >>> Organization:
 >>> Environment:
 >>
 >> % uname -a
 >> FreeBSD r2d2 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Mon May 13 00:54:58 UTC
 >> 2013 r...@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
 >>>
 >>> Description:
 >>
 >> This is an Ultrabook (acer s3) with only one USB 3.0 Controller (2-ports)
 >>
 >> I first noticed that I could not install 10-current using the memstick
 >> images, I got stuck at mount root, after upgrading form 9.1 using base and
 >> kernel tarballs I noticed that the system has no longer detecting my
 >> memsticks.
 >>
 >>
 >> When connecting usb devices (memstick,hdd) I get:
 >>
 >> xhci_do_comand: Command timeout!
 >> usb_alloc_device: device init 2 failed (USB_ERR_TIMEOUT, ignored)
 >> usbgen0.2:  at usbus0 (disconnected)
 >> usb_reattach_port: could not allocate new device
 >>
 >>
 >> More info about the controller:
 >> xhci0:  mem 0xc050-0xc050
 >> at device 20.0 on pci0
 >>
 >> And has I explained in the mailling list, I already tried:
 >>
 >> sysctl hw.xhci.xhci_port_route=-1 (and =1) in /boot/loader.conf
 >> (and in sysctl.conf but I guess the first one is the proper way
 >>
 >> rebooted, and still no luck.
 >>
 >>
 >>> How-To-Repeat:
 >>
 >> 1: Download a memstick image and dd to a usb, after boot you get stuck at
 >> "mountroot" prompt.
 >>
 >> 2: If you're able to install 10-0 current any other way, just connect a
 >> USB memstick to 3.0 controller, and you'll see the problem (unless if this
 >> is related to my controller specifically - Intel Panther Point USB 3.0)
 >>>
 >>> Fix:
 >>
 >> Tried: sysctl hw.xhci.xhci_port_route=-1 -> DID NOT work!
 >>
 >
 > Hi,
 >
 > Can you patch the kernel using the attached patch? It will fake interrupts.
 > Does the XHCI work now?
 >
 > --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/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)

2013-06-06 Thread Hans Petter Selasky
The following reply was made to PR usb/179342; it has been noted by GNATS.

From: Hans Petter Selasky 
To: takaw...@init-main.com
Cc: bug-follo...@freebsd.org, miguelmcl...@gmail.com
Subject: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working 
(xhci_do_comand:
 Command timeout!)
Date: Fri, 07 Jun 2013 08:49:14 +0200

 On 06/07/13 08:21, takaw...@init-main.com wrote:
 > Reverting the recent change on xhci.c fixes the problem for me.
 >
 > --- head/sys/dev/usb/controller/xhci.c  2013/04/23 06:26:54 249786
 > +++ head/sys/dev/usb/controller/xhci.c  2013/06/02 12:28:29 251254
 >
 
 Hi,
 
 If you look at the SVN log, there are only a few changes in the XHCI 
 area. Could you identify exactly which change is the cause of the 
 problem? I don't see that any of the changes between r1 and r2 should 
 affect the XHCI device init function, where it is failing.
 
 http://svnweb.freebsd.org/base/head/sys/dev/usb/controller/xhci.c?view=log
 
 xhci_do_comand: Command timeout!
 usb_alloc_device: device init 2 failed (USB_ERR_TIMEOUT, ignored)
 usbgen0.2:  at usbus0 (disconnected)
 usb_reattach_port: could not allocate new device
 
 --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/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)

2013-06-06 Thread Hans Petter Selasky
The following reply was made to PR usb/179342; it has been noted by GNATS.

From: Hans Petter Selasky 
To: "Miguel C." 
Cc: freebsd-gnats-sub...@freebsd.org
Subject: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working 
(xhci_do_comand:
 Command timeout!)
Date: Fri, 07 Jun 2013 08:06:14 +0200

 This is a multi-part message in MIME format.
 --090608050403080409000203
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 On 06/05/13 21:05, Miguel C. wrote:
 >
 >> Number: 179342
 >> Category:   usb
 >> Synopsis:   Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: 
 >> Command timeout!)
 >> Confidential:   no
 >> Severity:   non-critical
 >> Priority:   low
 >> Responsible:freebsd-usb
 >> State:  open
 >> Quarter:
 >> Keywords:
 >> Date-Required:
 >> Class:  sw-bug
 >> Submitter-Id:   current-users
 >> Arrival-Date:   Wed Jun 05 19:10:00 UTC 2013
 >> Closed-Date:
 >> Last-Modified:
 >> Originator: Miguel C.
 >> Release:
 >> Organization:
 >> Environment:
 > % uname -a
 > FreeBSD r2d2 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Mon May 13 00:54:58 UTC 
 > 2013 r...@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
 >> Description:
 > This is an Ultrabook (acer s3) with only one USB 3.0 Controller (2-ports)
 >
 > I first noticed that I could not install 10-current using the memstick 
 > images, I got stuck at mount root, after upgrading form 9.1 using base and 
 > kernel tarballs I noticed that the system has no longer detecting my 
 > memsticks.
 >
 >
 > When connecting usb devices (memstick,hdd) I get:
 >
 > xhci_do_comand: Command timeout!
 > usb_alloc_device: device init 2 failed (USB_ERR_TIMEOUT, ignored)
 > usbgen0.2:  at usbus0 (disconnected)
 > usb_reattach_port: could not allocate new device
 >
 >
 > More info about the controller:
 > xhci0:  mem 0xc050-0xc050 at 
 > device 20.0 on pci0
 >
 > And has I explained in the mailling list, I already tried:
 >
 > sysctl hw.xhci.xhci_port_route=-1 (and =1) in /boot/loader.conf
 > (and in sysctl.conf but I guess the first one is the proper way
 >
 > rebooted, and still no luck.
 >
 >
 >> How-To-Repeat:
 > 1: Download a memstick image and dd to a usb, after boot you get stuck at 
 > "mountroot" prompt.
 >
 > 2: If you're able to install 10-0 current any other way, just connect a USB 
 > memstick to 3.0 controller, and you'll see the problem (unless if this is 
 > related to my controller specifically - Intel Panther Point USB 3.0)
 >> Fix:
 > Tried: sysctl hw.xhci.xhci_port_route=-1 -> DID NOT work!
 >
 
 Hi,
 
 Can you patch the kernel using the attached patch? It will fake 
 interrupts. Does the XHCI work now?
 
 --HPS
 
 
 --090608050403080409000203
 Content-Type: text/x-patch;
  name="xhci_timer.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="xhci_timer.diff"
 
 === xhci.h
 ==
 --- xhci.h (revision 251258)
 +++ xhci.h (local)
 @@ -438,6 +438,8 @@
/* configure message */
struct usb_bus_msg  sc_config_msg[2];
  
 +  struct usb_callout  sc_callout;
 +
union xhci_hub_desc sc_hub_desc;
  
struct cv   sc_cmd_cv;
 === xhci_pci.c
 ==
 --- xhci_pci.c (revision 251258)
 +++ xhci_pci.c (local)
 @@ -132,6 +132,16 @@
}
  }
  
 +static void
 +xhci_timer(void *_sc)
 +{
 +  struct xhci_softc *sc = _sc;
 +  USB_BUS_UNLOCK(&sc->sc_bus);
 +  xhci_interrupt(sc);
 +  USB_BUS_LOCK(&sc->sc_bus);
 +  usb_callout_reset(&sc->sc_callout, 1, (void *)&xhci_timer, sc);
 +}
 +
  static int
  xhci_pci_attach(device_t self)
  {
 @@ -175,6 +185,12 @@
  
sprintf(sc->sc_vendor, "0x%04x", pci_get_vendor(self));
  
 +  usb_callout_init_mtx(&sc->sc_callout, &sc->sc_bus.bus_mtx, 0);
 +
 +  USB_BUS_LOCK(&sc->sc_bus);
 +  xhci_timer(sc);
 +  USB_BUS_UNLOCK(&sc->sc_bus);
 +
  #if (__FreeBSD_version >= 700031)
err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
NULL, (driver_intr_t *)xhci_interrupt, sc, &sc->sc_intr_hdl);
 
 --090608050403080409000203--
___
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"


usb/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)

2013-06-06 Thread takawata
The following reply was made to PR usb/179342; it has been noted by GNATS.

From: takaw...@init-main.com
To: bug-follo...@freebsd.org, miguelmcl...@gmail.com, h...@bitfrost.no
Cc:  
Subject: usb/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: 
Command timeout!)
Date: Fri, 07 Jun 2013 15:21:28 +0900

 Reverting the recent change on xhci.c fixes the problem for me.
 
 --- head/sys/dev/usb/controller/xhci.c  2013/04/23 06:26:54 249786
 +++ head/sys/dev/usb/controller/xhci.c  2013/06/02 12:28:29 251254
___
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/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)

2013-06-05 Thread Hans Petter Selasky
The following reply was made to PR usb/179342; it has been noted by GNATS.

From: Hans Petter Selasky 
To: "Miguel C." 
Cc: freebsd-gnats-sub...@freebsd.org
Subject: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working 
(xhci_do_comand:
 Command timeout!)
Date: Thu, 06 Jun 2013 08:20:17 +0200

 On 06/05/13 21:05, Miguel C. wrote:
 >
 >> Number: 179342
 >> Category:   usb
 >> Synopsis:   Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: 
 >> Command timeout!)
 >> Confidential:   no
 >> Severity:   non-critical
 >> Priority:   low
 >> Responsible:freebsd-usb
 >> State:  open
 >> Quarter:
 >> Keywords:
 >> Date-Required:
 >> Class:  sw-bug
 >> Submitter-Id:   current-users
 >> Arrival-Date:   Wed Jun 05 19:10:00 UTC 2013
 >> Closed-Date:
 >> Last-Modified:
 >> Originator: Miguel C.
 >> Release:
 >> Organization:
 >> Environment:
 > % uname -a
 > FreeBSD r2d2 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Mon May 13 00:54:58 UTC 
 > 2013 r...@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
 >> Description:
 > This is an Ultrabook (acer s3) with only one USB 3.0 Controller (2-ports)
 >
 > I first noticed that I could not install 10-current using the memstick 
 > images, I got stuck at mount root, after upgrading form 9.1 using base and 
 > kernel tarballs I noticed that the system has no longer detecting my 
 > memsticks.
 >
 >
 > When connecting usb devices (memstick,hdd) I get:
 >
 > xhci_do_comand: Command timeout!
 > usb_alloc_device: device init 2 failed (USB_ERR_TIMEOUT, ignored)
 > usbgen0.2:  at usbus0 (disconnected)
 > usb_reattach_port: could not allocate new device
 >
 >
 > More info about the controller:
 > xhci0:  mem 0xc050-0xc050 at 
 > device 20.0 on pci0
 >
 > And has I explained in the mailling list, I already tried:
 >
 > sysctl hw.xhci.xhci_port_route=-1 (and =1) in /boot/loader.conf
 > (and in sysctl.conf but I guess the first one is the proper way
 >
 > rebooted, and still no luck.
 >
 >
 >> How-To-Repeat:
 > 1: Download a memstick image and dd to a usb, after boot you get stuck at 
 > "mountroot" prompt.
 >
 > 2: If you're able to install 10-0 current any other way, just connect a USB 
 > memstick to 3.0 controller, and you'll see the problem (unless if this is 
 > related to my controller specifically - Intel Panther Point USB 3.0)
 >> Fix:
 > Tried: sysctl hw.xhci.xhci_port_route=-1 -> DID NOT work!
 >
 
 Hi,
 
 Compile a kernel with "options USB_DEBUG". Then enable 
 "hw.usb.xhci.debug=16". If you don't see any interrupt messages, then I 
 believe it is an IRQ routing issue which is the cause of the failure. 
 Might also be that the device uses MSI interrupts which we don't support 
 yet.
 
 --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"


usb/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)

2013-06-05 Thread Miguel C.

>Number: 179342
>Category:   usb
>Synopsis:   Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: 
>Command timeout!)
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-usb
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 05 19:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Miguel C.
>Release:
>Organization:
>Environment:
% uname -a
FreeBSD r2d2 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Mon May 13 00:54:58 UTC 2013 
r...@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
This is an Ultrabook (acer s3) with only one USB 3.0 Controller (2-ports)

I first noticed that I could not install 10-current using the memstick images, 
I got stuck at mount root, after upgrading form 9.1 using base and kernel 
tarballs I noticed that the system has no longer detecting my memsticks.


When connecting usb devices (memstick,hdd) I get:

xhci_do_comand: Command timeout!
usb_alloc_device: device init 2 failed (USB_ERR_TIMEOUT, ignored)
usbgen0.2:  at usbus0 (disconnected)
usb_reattach_port: could not allocate new device


More info about the controller:
xhci0:  mem 0xc050-0xc050 at 
device 20.0 on pci0

And has I explained in the mailling list, I already tried:

sysctl hw.xhci.xhci_port_route=-1 (and =1) in /boot/loader.conf 
(and in sysctl.conf but I guess the first one is the proper way

rebooted, and still no luck.


>How-To-Repeat:
1: Download a memstick image and dd to a usb, after boot you get stuck at 
"mountroot" prompt.

2: If you're able to install 10-0 current any other way, just connect a USB 
memstick to 3.0 controller, and you'll see the problem (unless if this is 
related to my controller specifically - Intel Panther Point USB 3.0)
>Fix:
Tried: sysctl hw.xhci.xhci_port_route=-1 -> DID NOT work!

>Release-Note:
>Audit-Trail:
>Unformatted:
___
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"