Re: [Spice-devel] [RFC PATCH 1/1] Add a usbredir kernel module to remotely connect USB devices over IP.

2015-07-01 Thread Daniel P. Berrange
On Tue, Jun 30, 2015 at 04:44:10PM -0500, Jeremy White wrote: This module uses the usbredir protocol and user space tools, which are used by the SPICE project. Signed-off-by: Jeremy White jwh...@codeweavers.com [snip] diff --git a/drivers/usb/usbredir/Kconfig b/drivers/usb/usbredir/Kconfig

RE: [PATCH v2 3/3] usb: dwc3: gadget: return error if command sent to DEPCMD register fails

2015-07-01 Thread Subbaraya Sundeep Bhatta
Hi Felipe, -Original Message- From: Felipe Balbi [mailto:ba...@ti.com] Sent: Tuesday, June 30, 2015 3:17 AM To: Subbaraya Sundeep Bhatta Cc: ba...@ti.com; gre...@linuxfoundation.org; linux-usb@vger.kernel.org; linux-ker...@vger.kernel.org; sta...@vger.kernel.org; Subbaraya Sundeep

Re: Data loss with usb dvb tuners that is fixed by spinning a cpu - how to debug?

2015-07-01 Thread Andy Furniss
Alan Stern wrote: Of course I disabled USB3 in bios to get ehci - is there a way with bios still in this state, to force xhci again for the usb2 ports? The BIOS uses USB3 rather imprecisely as a synonym for xHCI. So you are asking if there is a way to use xHCI while telling the BIOS to turn

Re: Data loss with usb dvb tuners that is fixed by spinning a cpu - how to debug?

2015-07-01 Thread Alan Stern
On Wed, 1 Jul 2015, Andy Furniss wrote: Alan Stern wrote: Of course I disabled USB3 in bios to get ehci - is there a way with bios still in this state, to force xhci again for the usb2 ports? The BIOS uses USB3 rather imprecisely as a synonym for xHCI. So you are asking if there is

Re: High CPU usage when video streaming on EHCI, 3.17.8 kernel with DMA enabled

2015-07-01 Thread Tom Mises
I has been some time, but I have an update to share. On Sun, May 17, 2015 at 8:06 AM, Alan Stern st...@rowland.harvard.edu wrote: You might be able to learn more from ftrace. See the instructions in Documentation/trace/ftrace.txt. The irqsoff tracer may be the best one to try. I used ftrace

Re: [Spice-devel] [RFC PATCH 1/1] Add a usbredir kernel module to remotely connect USB devices over IP.

2015-07-01 Thread Hans de Goede
Hi, On 01-07-15 20:31, Jeremy White wrote: Assuming that's correct, then this seems to imply that the socket has raw plain text data being sent/received, and thus precludes the possibility of running any security protocol like TLS unless the kernel wants to have an impl of the TLS protocol.

Re: Data loss with usb dvb tuners that is fixed by spinning a cpu - how to debug?

2015-07-01 Thread Andy Furniss
Alan Stern wrote: Whether or not the loss is in both places further analysis would be step 2 - but I have no idea how I would match the relatively rare and small losses with usbmon events. By comparing the arrival times of the packets. usbmon will tell you exactly which microframe an

Re: [Spice-devel] [RFC PATCH 1/1] Add a usbredir kernel module to remotely connect USB devices over IP.

2015-07-01 Thread Jeremy White
Assuming that's correct, then this seems to imply that the socket has raw plain text data being sent/received, and thus precludes the possibility of running any security protocol like TLS unless the kernel wants to have an impl of the TLS protocol. Good point. For completeness, I'll note

Re: [RFC PATCH 1/1] Add a usbredir kernel module to remotely connect USB devices over IP.

2015-07-01 Thread Hans de Goede
Hi, On 01-07-15 18:13, Greg KH wrote: On Wed, Jul 01, 2015 at 10:55:49AM -0500, Jeremy White wrote: On 07/01/2015 12:44 AM, Greg KH wrote: On Tue, Jun 30, 2015 at 10:34:25PM -0500, Jeremy White wrote: 1. Is the basic premise reasonable? Is Hans correct in asserting that an alternate USB

dwc3 issue

2015-07-01 Thread Joao Pinto
Hi Filipe! We are experiencing a problem in a solution using the dwc3 driver. I will start by enumerating the setup: a) CPU running Linux Kernel 3.18 b) DesignWare USB 3.0 Device IP c) Windows 7 Host PC The dwc3 is loading successfully, but when we plug to the Windows 7 PC, it takes

[PATCH] usb: gadget: composite: Fix typo in comment

2015-07-01 Thread Nik Nyby
This fixes a typo in a comment where STATUS is misspelled as STAUS. Signed-off-by: Nik Nyby niko...@gnu.org --- include/linux/usb/composite.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index 2511469..3b6ef0d

Re: Data loss with usb dvb tuners that is fixed by spinning a cpu - how to debug?

2015-07-01 Thread Andy Furniss
Tom Yan wrote: Not sure if it's relevant at all, but Iong time ago I had a pci-e dtv tuner which requires c-state to be disabled in BIOS (workaround officially suggested by its vendor) to work. That's something I could try, though TBH as I bought this board to be always on but low power, not

Re: Cannot use the logitech k520 (046d:c52b) to unlock my luks disk at boot time

2015-07-01 Thread Alan Stern
On Wed, 1 Jul 2015, Glasswall Information Point wrote: Bug as submitted on: https://bugzilla.kernel.org/show_bug.cgi?id=100631 Mailing it to this mailing list on advice of greg k-h -- Cannot use the logitech

Re: About zero-length packet design for EHCI

2015-07-01 Thread Alan Stern
On Wed, 1 Jul 2015, Peter Chen wrote: On Tue, Jun 30, 2015 at 12:03:34PM -0400, Alan Stern wrote: On Tue, 30 Jun 2015, Peter Chen wrote: Hi Alan, When reading the code (at qh_urb_transaction) about zero-length packet for EHCI, would you please help me on below questions:

[PATCH] xHCI: FSE handled cleanly by incrementing event dequeue pointer

2015-07-01 Thread SAUROV KANTI SHYAM
When a transfer is in progress and a STOP command is issued to xHC, xHC will generate 2 event TRBs on event ring: (1) Force Stopped Event TRB on successful completion of STOP cmd. (2) Transfer Event TRB for the TD which was in progress and stopped in the middle (with its Completion Code set to

Re: [PATCH] functionfs: Avoid aio locking problem

2015-07-01 Thread Robert Baldyga
Hi John, On 06/22/2015 08:01 PM, John Stultz wrote: The functionfs aio logic seems broken. When using functionfs, I was seeing frequent hangs, and enabling spinlock debugging, I got: g_ffs gadget: g_ffs ready ci_hdrc ci_hdrc.0: CI_HDRC_CONTROLLER_RESET_EVENT received BUG: spinlock lockup

[PATCH v2 0/12] Discover and probe dependencies

2015-07-01 Thread Tomeu Vizoso
Hi, this is version 2 of a series that probes devices in dependency order so as to avoid deferred probes. While deferred probing is a powerful solution that makes sure that you eventually get a working system at the end of the boot, can make it very time consuming to find out why a device didn't

Re: Locking issues w/ functionfs gadget and aio?

2015-07-01 Thread Andrzej Pietrasiewicz
W dniu 22.06.2015 o 19:20, John Stultz pisze: On Sat, Jun 20, 2015 at 10:24 PM, Al Viro v...@zeniv.linux.org.uk wrote: On Fri, Jun 12, 2015 at 05:51:12PM -0700, John Stultz wrote: I'm not super sure what the right fix is, but if do something like the following (sorry, whitespace corrupted via

[PATCH v2 08/12] USB: EHCI: register dependency parser for firmware nodes

2015-07-01 Thread Tomeu Vizoso
So others can find out whether a firmware node depends on a phy as specified in bindings/usb/nvidia,tegra20-ehci.txt. Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com --- Changes in v2: None drivers/usb/host/ehci-tegra.c | 16 1 file changed, 16 insertions(+) diff --git

Re: [PATCH] xHCI: FSE handled cleanly by incrementing event dequeue pointer

2015-07-01 Thread Mathias Nyman
On 01.07.2015 13:13, SAUROV KANTI SHYAM wrote: When a transfer is in progress and a STOP command is issued to xHC, xHC will generate 2 event TRBs on event ring: (1) Force Stopped Event TRB on successful completion of STOP cmd. (2) Transfer Event TRB for the TD which was in progress and

Re: Data loss with usb dvb tuners that is fixed by spinning a cpu - how to debug?

2015-07-01 Thread Andy Furniss
Andy Furniss wrote: Andy Furniss wrote: Hi I recently set up a Asrock Q1900DC-itx Intel baytrail board as a router/nas/pvr. It has 2 usb dvb T/T2 tuners attached - pctv 290e and 292e. When running them I am getting lost dvb packets which are detected as lost via dvbs continuity counters. Have

Re: [PATCH] USB XHCI: Bugfix for NULL pointer deference in xhci_endpoint_init() function

2015-07-01 Thread Mathias Nyman
On 01.07.2015 07:40, AMAN DEEP wrote: virt_dev-num_cached_rings counts on freed ring and is not updated correctly. In xhci_free_or_cache_endpoint_ring() function, the free ring is added into cache and then num_rings_cache is incremented as below:

Re: 64 byte EP0 OUT data transfer issue on Chipidea highspeed dual role controller

2015-07-01 Thread Jayan John
On Tue, Jun 30, 2015 at 8:23 AM, Jayan John jayanjoh...@gmail.com wrote: On Tue, Jun 30, 2015 at 6:50 AM, Peter Chen peter.c...@freescale.com wrote: On Tue, Jun 30, 2015 at 12:33 AM, Steve Calfee stevecal...@gmail.com wrote: On Mon, Jun 29, 2015 at 7:16 AM, Alan Stern

[PATCH] usb-storage: ignore ZTE MF 823 in mode 0x1225

2015-07-01 Thread Oliver Neukum
This device automatically switches itself to another mode (0x1405) unless the specific access pattern of Windows is followed in its initial mode. That makes a dirty unmount of the internal storage devices inevitable if they are mounted. So the devices should be ignored. Signed-off-by: Oliver

Re: Data loss with usb dvb tuners that is fixed by spinning a cpu - how to debug?

2015-07-01 Thread Tom Yan
Not sure if it's relevant at all, but Iong time ago I had a pci-e dtv tuner which requires c-state to be disabled in BIOS (workaround officially suggested by its vendor) to work. On 1 July 2015 at 20:01, Andy Furniss adf.li...@gmail.com wrote: Andy Furniss wrote: Andy Furniss wrote: Hi I

Re: [PATCH] usb-storage: ignore ZTE MF 823 in mode 0x1225

2015-07-01 Thread Lars Melin
On 2015-07-01 22:41, Matthew Dharm wrote: On Wed, Jul 1, 2015 at 8:36 AM, Lars Melin lars...@gmail.com wrote: On 2015-07-01 19:24, Oliver Neukum wrote: This device automatically switches itself to another mode (0x1405) unless the specific access pattern of Windows is followed in its initial

Re: [PATCH] usb-storage: ignore ZTE MF 823 in mode 0x1225

2015-07-01 Thread Lars Melin
On 2015-07-01 19:24, Oliver Neukum wrote: This device automatically switches itself to another mode (0x1405) unless the specific access pattern of Windows is followed in its initial mode. That makes a dirty unmount of the internal storage devices inevitable if they are mounted. So the devices

Re: [RFC PATCH 1/1] Add a usbredir kernel module to remotely connect USB devices over IP.

2015-07-01 Thread Jeremy White
On 07/01/2015 12:44 AM, Greg KH wrote: On Tue, Jun 30, 2015 at 10:34:25PM -0500, Jeremy White wrote: 1. Is the basic premise reasonable? Is Hans correct in asserting that an alternate USB over IP module will be considered? I have no idea, if it fully replaces the usbip functionality, I

[PATCH] Revert usb: chipidea: usbmisc_imx: delete clock information

2015-07-01 Thread Fabio Estevam
Unhandled fault: external abort on non-linefetch (0x008) at 0xf4424600 pgd = c0004000 [f4424600] *pgd=1452(bad) Internal error: : 8 [#1] PREEMPT ARM Modules linked in: CPU: 0 PID: 1 Comm: swapper Not tainted 4.1.0-next-20150701-dirty #3089 Hardware name: Freescale i.MX27 (Device Tree Support) task

Re: [PATCH] usb-storage: ignore ZTE MF 823 in mode 0x1225

2015-07-01 Thread Matthew Dharm
On Wed, Jul 1, 2015 at 8:36 AM, Lars Melin lars...@gmail.com wrote: On 2015-07-01 19:24, Oliver Neukum wrote: This device automatically switches itself to another mode (0x1405) unless the specific access pattern of Windows is followed in its initial mode. That makes a dirty unmount of the

Re: Data loss with usb dvb tuners that is fixed by spinning a cpu - how to debug?

2015-07-01 Thread Alan Stern
On Wed, 1 Jul 2015, Andy Furniss wrote: Tom Yan wrote: Not sure if it's relevant at all, but Iong time ago I had a pci-e dtv tuner which requires c-state to be disabled in BIOS (workaround officially suggested by its vendor) to work. That's something I could try, though TBH as I bought

RE: [PATCH 3/3] arm: koelsch: make USB0 perform Host/Function switching

2015-07-01 Thread Phil Edworthy
Hi Sergei, On 22 June 2015 18:49, Sergei wrote: Hello. On 06/22/2015 08:43 PM, Sergei Shtylyov wrote: Both USB Host (pci0) and Function (USBHS) drivers are enabled. The USB PHY driver determines which IP block should be connected based on vbus and id signals read via gpios.

Re: [RESEND PATCH 2/2] ARM: at91/dt: update udc compatible strings

2015-07-01 Thread Kevin Hilman
Nicolas Ferre nicolas.fe...@atmel.com writes: From: Boris Brezillon boris.brezil...@free-electrons.com at91sam9g45, at91sam9x5 and sama5 SoCs should not use atmel,at91sam9rl-udc for their USB device compatible property since this compatible is attached to a specific hardware bug fix.

[PATCH V2] cdc_ncm: Add support for moving NDP to end of NCM frame

2015-07-01 Thread Enrico Mioso
NCM specs are not actually mandating a specific position in the frame for the NDP (Network Datagram Pointer). However, some Huawei devices will ignore our aggregates if it is not placed after the datagrams it points to. Add support for doing just this, in a per-device configurable way. While at

Re: dwc3 issue

2015-07-01 Thread Felipe Balbi
On Wed, Jul 01, 2015 at 11:10:42AM +0100, Joao Pinto wrote: Hi Filipe! s/Filipe/Felipe We are experiencing a problem in a solution using the dwc3 driver. I will start by enumerating the setup: a) CPU running Linux Kernel 3.18 b) DesignWare USB 3.0 Device IP c) Windows 7 Host PC

Re: [RFC PATCH 1/1] Add a usbredir kernel module to remotely connect USB devices over IP.

2015-07-01 Thread Greg KH
On Wed, Jul 01, 2015 at 10:55:49AM -0500, Jeremy White wrote: On 07/01/2015 12:44 AM, Greg KH wrote: On Tue, Jun 30, 2015 at 10:34:25PM -0500, Jeremy White wrote: 1. Is the basic premise reasonable? Is Hans correct in asserting that an alternate USB over IP module will be considered?

Re: [PATCH v2 3/3] usb: dwc3: gadget: return error if command sent to DEPCMD register fails

2015-07-01 Thread Felipe Balbi
On Thu, Jul 02, 2015 at 02:03:14AM +, John Youn wrote: On 6/29/2015 2:48 PM, Felipe Balbi wrote: Hi again, On Mon, Jun 29, 2015 at 04:47:01PM -0500, Felipe Balbi wrote: On Thu, May 21, 2015 at 03:46:48PM +0530, Subbaraya Sundeep Bhatta wrote: We need to return error to caller if

Re: [PATCH v2 3/3] usb: dwc3: gadget: return error if command sent to DEPCMD register fails

2015-07-01 Thread John Youn
On 6/29/2015 2:48 PM, Felipe Balbi wrote: Hi again, On Mon, Jun 29, 2015 at 04:47:01PM -0500, Felipe Balbi wrote: On Thu, May 21, 2015 at 03:46:48PM +0530, Subbaraya Sundeep Bhatta wrote: We need to return error to caller if command is not sent to controller succesfully. Signed-off-by:

Cannot use the logitech k520 (046d:c52b) to unlock my luks disk at boot time

2015-07-01 Thread Glasswall Information Point
Bug as submitted on: https://bugzilla.kernel.org/show_bug.cgi?id=100631 Mailing it to this mailing list on advice of greg k-h -- Cannot use the logitech k520 (046d:c52b) to unlock my luks disk at boot time Hitting