Re: Video transfer hangs with cx231xx deivce on ASM1042A USB 3.0 Host Controller

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 5, 2015 at 8:27 AM, Mathias Nyman
<mathias.nyman@xxxxxxxxxxxxxxx> wrote:
> On 23.04.2015 17:38, Rodrigo Severo wrote:
>> On Mon, Apr 13, 2015 at 10:15 AM, Mathias Nyman
>> <mathias.nyman@xxxxxxxxxxxxxxx> wrote:
>>> Hi
>>>
>>> On 08.04.2015 20:45, Rodrigo Severo wrote:
>>>>
>>>> At that time I even tested enabling XHCI_TRUST_TX_LENGTH quirk for the
>>>> ASM1042A USB 3.0 Host Controller which eliminated the warnings on my
>>>> logs but didn't solve the hang issues.
>>>
>>> Can you add xhci debugging and post the output before the hang.
>>>
>>> Enable xhci debugging with:
>>> echo -n 'module xhci_hcd =p' > /sys/kernel/debug/dynamic_debug/control
>>
>> I"m not sure my first message with the log uncompressed. Now I'm
>> sending it with the log compressed.
>>
>> I hope this is better.
>
> Hi
>
> Last patchseries I sent includes fixes for similar issues.
>
> The "ERROR Transfer event TRB DMA ptr not part of current TD" where we try to
> find a one old TRB should be fixed by:
>
> http://marc.info/?l=linux-usb&m=143040326306659&w=2
>
> In your example case it was the TRB at 0x..9250  which we start searching for
> from 0x..9260 to, well, the same 0x..9260

I have several servers with 5 cx231xx A/V recording devices working
without problems.

Today I included 2 Renesas USB boards to try 7 cx231xx A/V recording
devices on the same server.

It worked for around 10 min and them I got the following warnings:

May 20 14:57:39 video3-df kernel: [ 1004.311844] xhci_hcd
0000:04:00.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or
ep state.
May 20 14:58:27 video3-df kernel: [ 1052.429235] xhci_hcd
0000:06:00.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or
ep state.
May 20 14:59:16 video3-df kernel: [ 1101.123178] xhci_hcd
0000:08:00.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or
ep state.
May 20 15:00:36 video3-df kernel: [ 1180.558526] xhci_hcd
0000:02:00.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or
ep state.

Four minutes later my logs where flooded with the following errors:
May 20 15:04:05 video3-df kernel: [ 1390.185470] xhci_hcd
0000:02:00.0: ERROR Transfer event TRB DMA ptr not part of current TD
ep_index 8 comp_code 1
May 20 15:04:05 video3-df kernel: [ 1390.185523] xhci_hcd
0000:02:00.0: Looking for event-dma 00000000039ec060 trb-start
00000000039ec040 trb-end 00000000039ec040 seg-start 00000000039ec000
seg-end 00000000039ecff0

and all recording devices became unstable.

>From lspci we can see that the device that started to throw lots of
errors was a Renesas uPD720201:

02:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0
Host Controller (rev 03)
04:00.0 USB controller: ASMedia Technology Inc. ASM1042A USB 3.0 Host Controller
06:00.0 USB controller: ASMedia Technology Inc. ASM1042A USB 3.0 Host Controller
08:00.0 USB controller: Renesas Technology Corp. uPD720202 USB 3.0
Host Controller (rev 02)

Is there any kind of limit on how many xhci hosts I can have in the
same machine?


Regards,

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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux