Re: xhci regression since xhci: replace xhci_write_64() with writeq() - devices not detected

2014-01-29 Thread Bjørn Mork
Rafał Miłecki zaj...@gmail.com writes: Hi, This is report from my Samsung NP700G7A-S01PL. This notebook has two USB 2.0 ports and two 3.0 ports. Starting with the following commit: commit 7dd09a1af2c7150269350aaa567a11b06e831003 Author: Xenia Ragiadakou burzalod...@gmail.com Date: Fri

RE: xhci regression since xhci: replace xhci_write_64() with writeq() - devices not detected

2014-01-29 Thread David Laight
From: Of Bjørn Mork Rafal Milecki zaj...@gmail.com writes: Hi, This is report from my Samsung NP700G7A-S01PL. This notebook has two USB 2.0 ports and two 3.0 ports. Starting with the following commit: commit 7dd09a1af2c7150269350aaa567a11b06e831003 Author: Xenia Ragiadakou

Re: [PATCH v2 1/1] USB: EHCI: wait more than 3ms until the device enters full-speed idle

2014-01-29 Thread Peter Chen
On Tue, Jan 28, 2014 at 11:32:28AM -0500, Alan Stern wrote: On Tue, 28 Jan 2014, Peter Chen wrote: It sounds like this is a bug in your EHCI hardware. The wake-on-disconnect logic should never take effect until after the port goes into full-speed idle. Where EHCI spec said that?

Re: [PATCH] phy-rcar-usb-gen2: add device tree support

2014-01-29 Thread Sergei Shtylyov
Hello. On 29-01-2014 10:22, Simon Horman wrote: [snip] +static struct of_device_id rcar_gen2_usb_phy_ofmatch[] = { +{ .compatible = renesas,usb-phy-r8a7790, }, +{ .compatible = renesas,rcar-gen2-usb-phy, }, Frankly speaking, I don't understand the need for the clearly

Re: xhci regression since xhci: replace xhci_write_64() with writeq() - devices not detected

2014-01-29 Thread Xenia Ragiadakou
On 29/01/2014 12:08 μμ, Rafał Miłecki wrote: 2014-01-29 David Laight david.lai...@aculab.com: Maybe I misunderstand something, but won't that commit end up replacing the previous pair of writel() with a single native writeq() on 64bit platforms? Judging by the comment in front of the

Re: [PATCH] usb: chipidea: udc: add maximum-speed = full-speed option

2014-01-29 Thread Peter Chen
On Tue, Jan 28, 2014 at 04:28:44PM +0100, Michael Grzeschik wrote: This patch makes it possible to set the chipidea udc into full-speed only mode. It is set by the oftree property maximum-speed = full-speed. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de Signed-off-by: Marc

RE: xhci regression since xhci: replace xhci_write_64() with writeq() - devices not detected

2014-01-29 Thread David Laight
From: Xenia Ragiadakou On 29/01/2014 12:08 μμ, Rafał Miłecki wrote: 2014-01-29 David Laight david.lai...@aculab.com: Maybe I misunderstand something, but won't that commit end up replacing the previous pair of writel() with a single native writeq() on 64bit platforms? Judging by the

[PATCH v2] tools: usb: aio example applications

2014-01-29 Thread Robert Baldyga
This patch adds two example applications showing usage of Asynchronous I/O API of FunctionFS. First one (aio_simple) is simple example of bidirectional data transfer. Second one (aio_multibuff) shows multi-buffer data transfer, which may to be used in high performance applications. Both examples

RE: [PATCH v2] tools: usb: aio example applications

2014-01-29 Thread David Laight
From: Robert Baldyga This patch adds two example applications showing usage of Asynchronous I/O API of FunctionFS. First one (aio_simple) is simple example of bidirectional data transfer. Second one (aio_multibuff) shows multi-buffer data transfer, which may to be used in high performance

Re: [PATCH] phy-rcar-usb-gen2: add device tree support

2014-01-29 Thread Simon Horman
On Wed, Jan 29, 2014 at 02:41:58PM +0400, Sergei Shtylyov wrote: Hello. On 29-01-2014 10:22, Simon Horman wrote: [snip] +static struct of_device_id rcar_gen2_usb_phy_ofmatch[] = { +{ .compatible = renesas,usb-phy-r8a7790, }, +{ .compatible = renesas,rcar-gen2-usb-phy, },

Re: [PATCH] phy-rcar-usb-gen2: add device tree support

2014-01-29 Thread Sergei Shtylyov
Hello. On 29-01-2014 16:22, Simon Horman wrote: [snip] +static struct of_device_id rcar_gen2_usb_phy_ofmatch[] = { +{ .compatible = renesas,usb-phy-r8a7790, }, +{ .compatible = renesas,rcar-gen2-usb-phy, }, Frankly speaking, I don't understand the need for the clearly

Re: [PATCH] phy-rcar-usb-gen2: add device tree support

2014-01-29 Thread Simon Horman
On Wed, Jan 29, 2014 at 04:26:55PM +0400, Sergei Shtylyov wrote: Hello. On 29-01-2014 16:22, Simon Horman wrote: [snip] +static struct of_device_id rcar_gen2_usb_phy_ofmatch[] = { +{ .compatible = renesas,usb-phy-r8a7790, }, +{ .compatible = renesas,rcar-gen2-usb-phy, },

Re: [PATCH v2] tools: usb: aio example applications

2014-01-29 Thread Michal Nazarewicz
On Wed, Jan 29 2014, Robert Baldyga wrote: +++ b/tools/usb/aio_multibuff/device_app/aio_multibuff.c +#define BUF_LEN 8192 +#define BUFS_MAX 128 +#define AIO_MAX (BUFS_MAX*2) + +struct iocb *iocb1[AIO_MAX]; +struct iocb *iocb2[AIO_MAX]; + +unsigned char

RE: [PATCH v2] tools: usb: aio example applications

2014-01-29 Thread David Laight
From: Michal Nazarewicz On Wed, Jan 29 2014, Robert Baldyga wrote: + /* open endpoint files */ ep_path = malloc(strlen(argv[1]) + 4 /* /ep# */ + 1 /* '\0' */); if (!ep_path) { perror(malloc); return 1; } At this point you could get away

Re: [usb-storage] Re: usb disk recognized but fails

2014-01-29 Thread Matthieu CASTET
Hi, Le Fri, 24 Jan 2014 11:07:01 -0500, Alan Stern st...@rowland.harvard.edu a écrit : Matthieu: Can you help with this problem? You were right; that driver caused the problem. Matthieu Castet wrote the Cypress-ATACB driver, so maybe he can help. As shown above, this device

[PATCH v3 0/9] xhci: Add support for URB_ZERO_PACKET

2014-01-29 Thread David Laight
The xhci driver should send a zero length message if a bulk transfer is a multiple of the message size and the URB_ZERO_PACKET flag is set. Quite a few of the usb ethernet drivers generate requests with URB_ZERO_PACKET set, and at least some will fail to send some specific packet sizes (possibly

[PATCH v3 2/9] xhci: Minor cleanups to queue_bulk_sg_tx()

2014-01-29 Thread David Laight
- Use a separate 'ret' variable for the result of prepare_transfer(). - No need to assign 'urb_priv' and 'td' until the last fragment. - Add 'len_left' to count the bytes remaining, use instead of 'urb-transfer_buffer_length - running_total' and to check for the last fragment (instead of

[PATCH v3 3/9] xhci: Use a fast upper bound for the number of TRB for a SG request

2014-01-29 Thread David Laight
prepare_transfer() only needs an upper bound for the number of TRB required. For scatter-gather requests this can be calculated cheaply. However a request with a lot of fragments, or for a long transfer, might then get bounced because the number of fragments exceeds the size of a ring segment (and

[PATCH v3 4/9] xhci: Simplify setting of TRB type and flags in queue_bulk_sg_tx()

2014-01-29 Thread David Laight
The TRB type and flags are the same for all the TRB expect the first (which needs the opposite value of TRB_CYCLE) and the last (which needs TRB_CHAIN clear and TRB_IOC set). So move the code that sets it up outside the loop. Signed-off-by: David Laight david.lai...@aculab.com ---

[PATCH v3 5/9] xhci: Move fragment length calculation to top of loop in queue_bulk_sg_tx()

2014-01-29 Thread David Laight
The calculation done for the first fragment is exactly the same as the one for subsequent fragments. So move both versions to inside the loop at the top. Simplify the calculation for the distance to the next 64k boundary. Remove the never-checked 'num_sgs'. Signed-off-by: David Laight

[PATCH v3 1/9] xhci: Remove debug code

2014-01-29 Thread David Laight
The check_trb_math() function and the check for sg buffers crossing 64k boundaries are checks that the local function is correct. Since the code is correct they can be removed. Signed-off-by: David Laight david.lai...@aculab.com --- drivers/usb/host/xhci-ring.c | 26 -- 1

[PATCH v3 7/9] xhci: Add support for URB_ZERO_PACKET to queue_bulk_sg_tx()

2014-01-29 Thread David Laight
If URB_ZERO_PACKET is set then make sure that the last usb message sent isn't a full sized one. A partial transfer is needed to terminate variable length bulk output (eg ethernet frames). URB_ZERO_PACKET is easily implemented by increasing td_residue to account for the extra packet.

[PATCH v3 6/9] xhci: Use a much simpler algorithm for td_size on 1.0 hosts

2014-01-29 Thread David Laight
v1.0 hosts need the td_size set to the number of messages (including the final short one) that need to be sent to complete the transfer after all the full-sized ones for the current TRB have been sent. The code in xhci_v1_0_td_remainder() carefully copies the algorithm from the documentation, but

[PATCH v3 8/9] xhci: Common up setup of normal and scatter-gather transfers

2014-01-29 Thread David Laight
Modify the code in queue_bulk_sg_tx() to support non-sg transfers. Rename it xhci_queue_bulk_tx() and delete the old xhci_queue_bulk_tx(). Signed-off-by: David Laight david.lai...@aculab.com --- drivers/usb/host/xhci-ring.c | 159 --- 1 file changed, 15

Re: [PATCH v2] tools: usb: aio example applications

2014-01-29 Thread Robert Baldyga
Hi, On 01/29/2014 01:39 PM, Michal Nazarewicz wrote: On Wed, Jan 29 2014, Robert Baldyga wrote: +++ b/tools/usb/aio_multibuff/device_app/aio_multibuff.c +#define BUF_LEN 8192 +#define BUFS_MAX128 +#define AIO_MAX (BUFS_MAX*2) + +struct iocb *iocb1[AIO_MAX];

[PATCH v3 9/9] xhci: Add num_trbs_for_buf() to count trbs needed for a buffer fragment

2014-01-29 Thread David Laight
The number of trbs depends on the number of 64k boundaries crossed. Using a common function saves there being any typos in the 3 places it is used. Signed-off-by: David Laight david.lai...@aculab.com --- drivers/usb/host/xhci-ring.c | 18 -- 1 file changed, 12 insertions(+), 6

RE: Many USB ethernet devices are broken over xhci

2014-01-29 Thread David Laight
From: Greg KH On Mon, Jan 27, 2014 at 04:06:22PM +, David Laight wrote: Many of the net/usb ethernet drivers (including common ones like the smsc95xx) will fail to transmit all packet length properly when connected to a USB3 port (ie using the xhci driver). That's odd, as I've never

RE: [PATCH 1/5] xhci: Don't change the ownership of LINK TRB until all the TRB are written

2014-01-29 Thread David Laight
From: Sarah Sharp On Wed, Jan 22, 2014 at 03:22:53PM -0800, walt wrote: On 01/22/2014 12:56 PM, Sarah Sharp wrote: Walt, can you turn on xHCI debugging and look for whether the NEC host that worked with David's patch is a 1.0 host? You'll see a line like: // @%p = 0x%x (CAPLENGTH

Re: [PATCH 1/2] usb: dwc3: core: continue probing if usb phy library returns -ENODEV/-ENXIO

2014-01-29 Thread Heikki Krogerus
Hi, On Tue, Jan 28, 2014 at 10:30:36AM -0600, Felipe Balbi wrote: On Tue, Jan 28, 2014 at 05:32:30PM +0200, Heikki Krogerus wrote: On Mon, Jan 27, 2014 at 10:05:20AM -0600, Felipe Balbi wrote: For the controller drivers the PHYs are just a resource like any other. The controller drivers

RE: [PATCH 1/5] xhci: Don't change the ownership of LINK TRB until all the TRB are written

2014-01-29 Thread David Laight
From: Sarah Sharp Hi David, I've been thinking about this some more, and I'd like to propose a much simpler solution. The TD fragment rules didn't go into the xHCI specification until the 1.0 revision. The code that follows those rules only seems to trigger issues for 0.96 ASMedia

ehci init lockdep warning

2014-01-29 Thread Denis Kirjanov
Hi, Not sure if it's been posted already. I'm running the latest Linus tree. [ 10.636228] INFO: trying to register non-static key. [ 10.636782] the code is fine but needs lockdep annotation. [ 10.637271] turning off the locking correctness validator. [ 10.637772] CPU: 0 PID: 1216 Comm:

FW: xhci ASMedia lockups - a theory and a patch

2014-01-29 Thread David Laight
I've decided to forward this to the list. If you read further down he says that my patch makes the operation of the ax88179_178a stable - once the system has recognised it properly. David -Original Message- From: renev...@internode.on.net [mailto:renev...@internode.on.net]

question on UAS test device

2014-01-29 Thread Oliver Neukum
Hi, can you recommend a test device for UAS? Regards Oliver -- 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: ehci init lockdep warning

2014-01-29 Thread Alan Stern
On Wed, 29 Jan 2014, Denis Kirjanov wrote: Hi, Not sure if it's been posted already. I'm running the latest Linus tree. [ 10.636228] INFO: trying to register non-static key. [ 10.636782] the code is fine but needs lockdep annotation. [ 10.637271] turning off the locking correctness

Re: question on UAS test device

2014-01-29 Thread Alan Stern
On Wed, 29 Jan 2014, Oliver Neukum wrote: Hi, can you recommend a test device for UAS? I have never encountered any. You can always try the UAS gadget over dummy-hcd, but that's not the same as real hardware. Alan Stern -- To unsubscribe from this list: send the line unsubscribe

high cpu load on omap3 using musb

2014-01-29 Thread Adam Wozniak
With a USB 2.0 webcam attached to the OTG port on an OMAP3 (applies to overo gumstix, beagleboard, probably others) we see a high CPU load in a kworker thread. Between 2.6.33 and 2.6.34 musb_core.c changed. IRQ handlers changed with the result that a worker in musb_core.c got scheduled far

Re: [PATCH v2 1/1] USB: EHCI: wait more than 3ms until the device enters full-speed idle

2014-01-29 Thread Alan Stern
On Wed, 29 Jan 2014, Peter Chen wrote: On Tue, Jan 28, 2014 at 11:32:28AM -0500, Alan Stern wrote: On Tue, 28 Jan 2014, Peter Chen wrote: It sounds like this is a bug in your EHCI hardware. The wake-on-disconnect logic should never take effect until after the port goes into

[PATCH driver-core-linus] kernfs: make kernfs_deactivate() honor KERNFS_LOCKDEP flag

2014-01-29 Thread Tejun Heo
kernfs_deactivate() forgot to check whether KERNFS_LOCKDEP is set before performing lockdep annotations and ends up feeding uninitialized lockdep_map to lockdep triggering warning like the following on USB stick hotunplug. usb 1-2: USB disconnect, device number 2 INFO: trying to register

Re: [PATCH driver-core-linus] kernfs: make kernfs_deactivate() honor KERNFS_LOCKDEP flag

2014-01-29 Thread Fabio Estevam
On Wed, Jan 29, 2014 at 3:04 PM, Tejun Heo t...@kernel.org wrote: kernfs_deactivate() forgot to check whether KERNFS_LOCKDEP is set before performing lockdep annotations and ends up feeding uninitialized lockdep_map to lockdep triggering warning like the following on USB stick hotunplug.

[PATCH v6 1/8] phy: core: Add an exported of_phy_get function

2014-01-29 Thread Kamil Debski
Previously the of_phy_get function took a struct device * and was declared static. It was impossible to call it from another driver and thus it was impossible to get phy defined for a given node. The old function was renamed to _of_phy_get and was left for internal use. of_phy_get function was

[PATCH v6 6/8] phy: Add support for S5PV210 to the Exynos USB PHY driver

2014-01-29 Thread Kamil Debski
From: Mateusz Krawczuk mat.krawc...@gmail.com Add support for the Samsung's S5PV210 SoC to the Exynos USB PHY driver. Signed-off-by: Mateusz Krawczuk m.krawc...@partner.samsung.com [k.deb...@samsung.com: cleanup and commit description] [k.deb...@samsung.com: make changes accordingly to the

[PATCH v6 3/8] dts: Add usb2phy to Exynos 4

2014-01-29 Thread Kamil Debski
Add support to PHY of USB2 of the Exynos 4 SoC. Signed-off-by: Kamil Debski k.deb...@samsung.com --- .../devicetree/bindings/arm/samsung/pmu.txt|2 ++ arch/arm/boot/dts/exynos4.dtsi | 31 arch/arm/boot/dts/exynos4210.dtsi |

[PATCH v6 4/8] dts: Add usb2phy to Exynos 5250

2014-01-29 Thread Kamil Debski
Add support to PHY of USB2 of the Exynos 5250 SoC. Signed-off-by: Kamil Debski k.deb...@samsung.com --- arch/arm/boot/dts/exynos5250.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index

[PATCH v6 8/8] usb: ehci-exynos: Change to use phy provided by the generic phy framework

2014-01-29 Thread Kamil Debski
Change the phy provider used from the old one using the USB phy framework to a new one using the Generic phy framework. Signed-off-by: Kamil Debski k.deb...@samsung.com --- .../devicetree/bindings/usb/exynos-usb.txt | 13 +++ drivers/usb/host/ehci-exynos.c | 97

[PATCH v6 2/8] phy: core: Add devm_of_phy_get to phy-core

2014-01-29 Thread Kamil Debski
Adding devm_of_phy_get will allow to get phys by supplying a pointer to the struct device_node instead of struct device. Signed-off-by: Kamil Debski k.deb...@samsung.com --- drivers/phy/phy-core.c | 31 +++ include/linux/phy/phy.h |8 2 files changed,

[PATCH v6 5/8] phy: Add new Exynos USB PHY driver

2014-01-29 Thread Kamil Debski
Add a new driver for the Exynos USB PHY. The new driver uses the generic PHY framework. The driver includes support for the Exynos 4x10 and 4x12 SoC families. Signed-off-by: Kamil Debski k.deb...@samsung.com --- .../devicetree/bindings/phy/samsung-phy.txt| 55

[PATCH v6 7/8] phy: Add Exynos 5250 support to the Exynos USB 2.0 PHY driver

2014-01-29 Thread Kamil Debski
Add support for Exynos 5250. This driver is to replace the old USB 2.0 PHY driver. Signed-off-by: Kamil Debski k.deb...@samsung.com --- .../devicetree/bindings/phy/samsung-phy.txt|1 + drivers/phy/Kconfig| 11 + drivers/phy/Makefile

[PATCH v6 0/8] phy: Add new Exynos USB 2.0 PHY driver

2014-01-29 Thread Kamil Debski
Hi, This is the sixth version of the patchset. It adds a new Exynos USB 2.0 PHY driver. The driver uses the Generic PHY Framework. Again, I would like to thank everyone who commented and read through the fifth version of the patchset. Your input is very much appreciated. The last version had two

Re: [PATCH v6 8/8] usb: ehci-exynos: Change to use phy provided by the generic phy framework

2014-01-29 Thread Alan Stern
On Wed, 29 Jan 2014, Kamil Debski wrote: Change the phy provider used from the old one using the USB phy framework to a new one using the Generic phy framework. Signed-off-by: Kamil Debski k.deb...@samsung.com --- .../devicetree/bindings/usb/exynos-usb.txt | 13 +++

Re: [PATCH v6 3/8] dts: Add usb2phy to Exynos 4

2014-01-29 Thread Olof Johansson
On Wed, Jan 29, 2014 at 9:29 AM, Kamil Debski k.deb...@samsung.com wrote: Add support to PHY of USB2 of the Exynos 4 SoC. Signed-off-by: Kamil Debski k.deb...@samsung.com --- .../devicetree/bindings/arm/samsung/pmu.txt|2 ++ arch/arm/boot/dts/exynos4.dtsi |

Re: [PATCH v6 8/8] usb: ehci-exynos: Change to use phy provided by the generic phy framework

2014-01-29 Thread Olof Johansson
Hi, On Wed, Jan 29, 2014 at 9:29 AM, Kamil Debski k.deb...@samsung.com wrote: Change the phy provider used from the old one using the USB phy framework to a new one using the Generic phy framework. Signed-off-by: Kamil Debski k.deb...@samsung.com ---

Re: Help testing for USB ethernet/xHCI regression

2014-01-29 Thread Sarah Sharp
On Tue, Jan 28, 2014 at 11:30:51PM -0500, Mark Lord wrote: On 14-01-28 03:30 PM, Sarah Sharp wrote: .. Can you please pull this branch, which contains a 3.13 kernel with David's patch reverted, and test whether your USB ethernet device works or fails? Fails. dmesg log attached. It's

Re: question on UAS test device

2014-01-29 Thread Greg KH
On Wed, Jan 29, 2014 at 11:38:19AM -0500, Alan Stern wrote: On Wed, 29 Jan 2014, Oliver Neukum wrote: Hi, can you recommend a test device for UAS? I have never encountered any. You can always try the UAS gadget over dummy-hcd, but that's not the same as real hardware. I've never

Re: [PATCH driver-core-linus] kernfs: make kernfs_deactivate() honor KERNFS_LOCKDEP flag

2014-01-29 Thread Greg Kroah-Hartman
On Wed, Jan 29, 2014 at 03:19:51PM -0200, Fabio Estevam wrote: On Wed, Jan 29, 2014 at 3:04 PM, Tejun Heo t...@kernel.org wrote: kernfs_deactivate() forgot to check whether KERNFS_LOCKDEP is set before performing lockdep annotations and ends up feeding uninitialized lockdep_map to lockdep

Re: question on UAS test device

2014-01-29 Thread Sarah Sharp
On Wed, Jan 29, 2014 at 11:38:19AM -0500, Alan Stern wrote: On Wed, 29 Jan 2014, Oliver Neukum wrote: Hi, can you recommend a test device for UAS? I have never encountered any. You can always try the UAS gadget over dummy-hcd, but that's not the same as real hardware. Pluggable

Re: xhci regression since xhci: replace xhci_write_64() with writeq() - devices not detected

2014-01-29 Thread Xenia Ragiadakou
On 29/01/2014 01:43 μμ, David Laight wrote: From: Xenia Ragiadakou On 29/01/2014 12:08 μμ, Rafał Miłecki wrote: 2014-01-29 David Laight david.lai...@aculab.com: Maybe I misunderstand something, but won't that commit end up replacing the previous pair of writel() with a single native writeq()

Re: Help testing for USB ethernet/xHCI regression

2014-01-29 Thread Sarah Sharp
On Wed, Jan 29, 2014 at 04:21:00PM +1100, renev...@internode.on.net wrote: Hello, I am someone who has been struggling to get an ax88179 net adapter working reliably. I have an integrated Asmedia 1042 xhci controller that is reportedly version 0.96 on an ASUS M5A99FX PRO R2.0, BIOS 2201

Re: xhci regression since xhci: replace xhci_write_64() with writeq() - devices not detected

2014-01-29 Thread Sarah Sharp
On Wed, Jan 29, 2014 at 12:50:04PM +0200, Xenia Ragiadakou wrote: On 29/01/2014 12:08 μμ, Rafał Miłecki wrote: I've enabled some debugging in xhci-dbg.c, does it help? xhci_hcd :04:00.0: xHCI capability registers at c90004e6: xhci_hcd :04:00.0: CAPLENGTH AND HCIVERSION

Re: FW: xhci ASMedia lockups - a theory and a patch

2014-01-29 Thread renevant
The patch did prevent the whole system from crashing but I have to unplug and plug something like 20 times to get it not to spit out those error messages. Even once it is up, it doesn't operate at full gigabit speed and there is something funky going on. When sending via scp it maxed out at

Re: usb3 hdd docking station doesn't work with recent kernels

2014-01-29 Thread Sarah Sharp
On Fri, Jan 17, 2014 at 08:31:53PM -0500, Alan Stern wrote: I agree your alternative is much cleaner, and I agree we should try to treat roothubs like external hubs. I've made a patch (to be sent shortly) that fixes this. However, I would like to see the original bad commit (usbcore:

Re: EHCI host broken -- interrupts disabled

2014-01-29 Thread Bjorn Helgaas
On Mon, Jan 20, 2014 at 5:15 AM, Chen, Jamie jamie.c...@intel.com wrote: Try to apply this patch to kernel 3.8.0. Make sure the ehci can work fine and lspci show that PCI_COMMAND_INTX_DISABLE is 0. The patch can resolved this issue. Thanks for testing it. Can you collect the complete

Re: Help testing for USB ethernet/xHCI regression

2014-01-29 Thread renevant
I just tried with 3.12.9 and got the errors. I'll keep going back. It doesn't look like the nic is faulty, i'm using it right now plugged into a usb 2.0 port. [ 303.418028] usb 5-5: new high-speed USB device number 2 using ehci-pci [ 303.548948] usb 5-5: New USB device found, idVendor=0b95,

[XHCI] commit ec513b1 from Linus triggers ASMedia quirk

2014-01-29 Thread walt
Hi Sarah and David. I'm back with more ASMedia problems caused by this: commit ec513b16c480c6cdda1e3d597e611eafca05227b Merge: bcee634 2fc5a7d Author: Linus Torvalds torva...@linux-foundation.org Date: Mon Jan 20 16:13:02 2014 -0800 Merge tag 'usb-3.14-rc1' of

Re: Help testing for USB ethernet/xHCI regression

2014-01-29 Thread Sarah Sharp
On Thu, Jan 30, 2014 at 11:13:53AM +1100, renev...@internode.on.net wrote: I just tried with 3.12.9 and got the errors. I'll keep going back. But which version of 3.12 worked? Just 3.12? Sarah Sharp -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message

Re: [XHCI] commit ec513b1 from Linus triggers ASMedia quirk

2014-01-29 Thread Sarah Sharp
On Wed, Jan 29, 2014 at 04:16:49PM -0800, walt wrote: Hi Sarah and David. I'm back with more ASMedia problems caused by this: commit ec513b16c480c6cdda1e3d597e611eafca05227b Merge: bcee634 2fc5a7d Author: Linus Torvalds torva...@linux-foundation.org Date: Mon Jan 20 16:13:02 2014 -0800

Re: xhci regression since xhci: replace xhci_write_64() with writeq() - devices not detected

2014-01-29 Thread Sarah Sharp
On Wed, Jan 29, 2014 at 02:00:29PM -0800, Sarah Sharp wrote: I think the solution should be to just revert the writeq patch, and leave the xhci_write64 in place. We can always optimize that function later to do a writeq if the host supports 64-bit writes, but we'll have to analyze whether the

Re: [RFT] usb: Disable Link PM if setting device-initiated timeout fails.

2014-01-29 Thread Sarah Sharp
Yoma, can you apply this patch and see if it helps your issue? Thanks, Sarah Sharp On Wed, Jan 22, 2014 at 03:38:51PM -0800, Sarah Sharp wrote: If the control transfer to set the device-initiated timeout fails for a particular link state (U1 or U2), disable that state. This may solve issues

Re: FW: xhci ASMedia lockups - a theory and a patch

2014-01-29 Thread Sarah Sharp
On Wed, Jan 29, 2014 at 03:48:27PM +, David Laight wrote: I've decided to forward this to the list. If you read further down he says that my patch makes the operation of the ax88179_178a stable - once the system has recognised it properly. I don't understand why your patch helped. This

Re: FW: xhci ASMedia lockups - a theory and a patch

2014-01-29 Thread Sarah Sharp
[Please don't drop Cc'ed people.] On Thu, Jan 30, 2014 at 10:29:33AM +1100, renev...@internode.on.net wrote: The patch did prevent the whole system from crashing but I have to unplug and plug something like 20 times to get it not to spit out those error messages. Even once it is up, it

Re: 174c:5106 1 TB External USB 3.0 Drive Fails to Automount through USB 3.0 dock with XHCI Enabled

2014-01-29 Thread Sarah Sharp
On Wed, Jan 22, 2014 at 08:51:31AM -0800, Jay S wrote: Actually, the USB3 device I'm using, a Unitek Y-1072 HDD dock, works fine with a WD 500 GB drive using XHCI, so it seems like it's something to do with the larger drive. I have also tried with a Rosewill RX35-AT-SU3 external enclosure

Re: [PATCH v3] phy: Add new Exynos5 USB 3.0 PHY driver

2014-01-29 Thread Vivek Gautam
Hi Kishon, On Mon, Jan 27, 2014 at 2:27 PM, Kishon Vijay Abraham I kis...@ti.com wrote: Hi, Thanks for review. Please find my answers inline below. On Monday 20 January 2014 07:12 PM, Vivek Gautam wrote: Add a new driver for the USB 3.0 PHY on Exynos5 series of SoCs. The new driver uses

Re: [PATCH v3] phy: Add new Exynos5 USB 3.0 PHY driver

2014-01-29 Thread Kishon Vijay Abraham I
Hi, On Thursday 30 January 2014 09:49 AM, Vivek Gautam wrote: Hi Kishon, On Mon, Jan 27, 2014 at 2:27 PM, Kishon Vijay Abraham I kis...@ti.com wrote: Hi, Thanks for review. Please find my answers inline below. On Monday 20 January 2014 07:12 PM, Vivek Gautam wrote: Add a new driver

Re: [PATCH v2] tools: usb: aio example applications

2014-01-29 Thread Robert Baldyga
On 01/29/2014 01:01 PM, David Laight wrote: From: Robert Baldyga This patch adds two example applications showing usage of Asynchronous I/O API of FunctionFS. First one (aio_simple) is simple example of bidirectional data transfer. Second one (aio_multibuff) shows multi-buffer data