Re: [Bug] USB 2.0 Ports Dont Work on Sony Vaio Laptop

2013-06-24 Thread Sarah Sharp
On Wed, Jun 19, 2013 at 11:52:10AM -0400, Alan Stern wrote:
 On Wed, 19 Jun 2013, Ming Lei wrote:
 
   There's a good chance this problem was caused by a change in the
   xhci-hcd driver.
  
  I am wondering why xhci-hcd may cause the problem since the affected
  hub is 'Intel Corp. Integrated Rate Matching Hub' which is connected to
  EHCI root hub.
 
 It's just a guess.  You pointed out that the problem seems to be
 related to port routing, and the port routing code is part of the xHCI
 driver.
 
 The original bug report on Launchpad doesn't mention any earlier
 kernels working.  Maybe the problem was caused by a change somewhere
 else, such as a change in the BIOS.

It's entirely possible that the BIOS is not setting the xHCI port
routing mask properly, and the xHCI driver is not switching the ports
from EHCI to xHCI.  My guess would be that the BIOS sets the USB 3.0
port mask, but not the USB 2.0 port mask, which would cause the USB 3.0
ports to be switched over, and not the USB 2.0 ports.

It could also be that the BIOS is completely ignoring the writes to the
port registers as well.  Can the reporters recompile with
CONFIG_USB_DEBUG and CONFIG_USB_XHCI_HCD_DEBUGGING turned on?  That will
tell me which ports are being switched over.

Sarah Sharp
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Bug] USB 2.0 Ports Dont Work on Sony Vaio Laptop

2013-06-24 Thread Ming Lei
On Tue, Jun 25, 2013 at 12:06 AM, Sarah Sharp
sarah.a.sh...@linux.intel.com wrote:
 On Wed, Jun 19, 2013 at 11:52:10AM -0400, Alan Stern wrote:
 On Wed, 19 Jun 2013, Ming Lei wrote:

   There's a good chance this problem was caused by a change in the
   xhci-hcd driver.
 
  I am wondering why xhci-hcd may cause the problem since the affected
  hub is 'Intel Corp. Integrated Rate Matching Hub' which is connected to
  EHCI root hub.

 It's just a guess.  You pointed out that the problem seems to be
 related to port routing, and the port routing code is part of the xHCI
 driver.

 The original bug report on Launchpad doesn't mention any earlier
 kernels working.  Maybe the problem was caused by a change somewhere
 else, such as a change in the BIOS.

 It's entirely possible that the BIOS is not setting the xHCI port
 routing mask properly, and the xHCI driver is not switching the ports
 from EHCI to xHCI.  My guess would be that the BIOS sets the USB 3.0
 port mask, but not the USB 2.0 port mask, which would cause the USB 3.0
 ports to be switched over, and not the USB 2.0 ports.

So looks there is still the port routing thing between xhci hub and ehci rate
matching hub?

 It could also be that the BIOS is completely ignoring the writes to the
 port registers as well.  Can the reporters recompile with
 CONFIG_USB_DEBUG and CONFIG_USB_XHCI_HCD_DEBUGGING turned on?  That will
 tell me which ports are being switched over.

I will post your suggestion on Launchpad later.



Thanks,
-- 
Ming Lei
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Bug] USB 2.0 Ports Dont Work on Sony Vaio Laptop

2013-06-19 Thread Alan Stern
On Wed, 19 Jun 2013, Ming Lei wrote:

 Hi,
 
 Recently, there is one bug report from Ubuntu community:
 
  USB 2.0 Ports Dont Work on Sony Vaio Laptop
 
 and the problem exists on upstream kernel too.
 
 The built-in two USB 2.0 devices can be recognized correctly,
 but external devices can't be recognized when the device is
 connected to USB 2.0 port. Also, the USB 2.0 bus can be waken
 up successfully via /sys/bus/devices/.../power/control, but still can't
 find external connected devices, and no any 'dmesg' log with
 CONFIG_USB_DEBUG enabled after the device is plugged into
 2.0 ports.
 
 See detailed log in  below link:
 
 https://bugs.launchpad.net/bugs/1172908
 
 No such problem on Windows.

There's a good chance this problem was caused by a change in the 
xhci-hcd driver.

Anyway, it looks like the best way of finding the problem is git 
bisect.

Alan Stern

--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Bug] USB 2.0 Ports Dont Work on Sony Vaio Laptop

2013-06-19 Thread Ming Lei
Hi,

Thanks for your reply.

On Wed, Jun 19, 2013 at 11:17 PM, Alan Stern st...@rowland.harvard.edu wrote:
 On Wed, 19 Jun 2013, Ming Lei wrote:

 Hi,

 Recently, there is one bug report from Ubuntu community:

  USB 2.0 Ports Dont Work on Sony Vaio Laptop

 and the problem exists on upstream kernel too.

 The built-in two USB 2.0 devices can be recognized correctly,
 but external devices can't be recognized when the device is
 connected to USB 2.0 port. Also, the USB 2.0 bus can be waken
 up successfully via /sys/bus/devices/.../power/control, but still can't
 find external connected devices, and no any 'dmesg' log with
 CONFIG_USB_DEBUG enabled after the device is plugged into
 2.0 ports.

 See detailed log in  below link:

 https://bugs.launchpad.net/bugs/1172908

 No such problem on Windows.

 There's a good chance this problem was caused by a change in the
 xhci-hcd driver.

I am wondering why xhci-hcd may cause the problem since the affected
hub is 'Intel Corp. Integrated Rate Matching Hub' which is connected to
EHCI root hub.

Also tests showed that there is power provided by port of the
'Integrated Rate Matching Hub', but can't detect connection.

 Anyway, it looks like the best way of finding the problem is git
 bisect.


Thanks,
-- 
Ming Lei
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Bug] USB 2.0 Ports Dont Work on Sony Vaio Laptop

2013-06-19 Thread Alan Stern
On Wed, 19 Jun 2013, Ming Lei wrote:

  There's a good chance this problem was caused by a change in the
  xhci-hcd driver.
 
 I am wondering why xhci-hcd may cause the problem since the affected
 hub is 'Intel Corp. Integrated Rate Matching Hub' which is connected to
 EHCI root hub.

It's just a guess.  You pointed out that the problem seems to be
related to port routing, and the port routing code is part of the xHCI
driver.

The original bug report on Launchpad doesn't mention any earlier
kernels working.  Maybe the problem was caused by a change somewhere
else, such as a change in the BIOS.

Alan Stern

--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Bug] USB 2.0 Ports Dont Work on Sony Vaio Laptop

2013-06-18 Thread Ming Lei
Hi,

Recently, there is one bug report from Ubuntu community:

 USB 2.0 Ports Dont Work on Sony Vaio Laptop

and the problem exists on upstream kernel too.

The built-in two USB 2.0 devices can be recognized correctly,
but external devices can't be recognized when the device is
connected to USB 2.0 port. Also, the USB 2.0 bus can be waken
up successfully via /sys/bus/devices/.../power/control, but still can't
find external connected devices, and no any 'dmesg' log with
CONFIG_USB_DEBUG enabled after the device is plugged into
2.0 ports.

See detailed log in  below link:

https://bugs.launchpad.net/bugs/1172908

No such problem on Windows.



Thanks,
-- 
Ming Lei
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html