Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1616915

Re: dwc2_hc_chhltd_intr_dma - ChHltd set errors?

From Minas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Newsgroups linux.kernel
Subject Re: dwc2_hc_chhltd_intr_dma - ChHltd set errors?
Date 2017-04-05 15:20 +0200
Message-ID <tsT0R-364-7@gated-at.bofh.it> (permalink)
References (3 earlier) <ts9Kq-6Yw-13@gated-at.bofh.it> <tsn0Z-7wd-3@gated-at.bofh.it> <tsqUW-1Er-11@gated-at.bofh.it> <tsreh-1N1-1@gated-at.bofh.it> <tsC01-Cw-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi,

On 4/4/2017 11:03 PM, John Stultz wrote:
> On Tue, Apr 4, 2017 at 12:38 AM, Felipe Balbi
> <felipe.balbi@linux.intel.com> wrote:
>>
>> Hi,
>>
>> Minas Harutyunyan <Minas.Harutyunyan@synopsys.com> writes:
>>>>>>>>   We've noticed that when using usb ethernet adapters on HiKey, we
>>>>>>>> occasionally see errors like:
>>>>>>>>
>>>>>>>> dwc2 f72c0000.usb: dwc2_hc_chhltd_intr_dma: Channel 0 - ChHltd set,
>>>>>>>> but reason is unknown
>>>>>>>> dwc2 f72c0000.usb: hcint 0x00000002, intsts 0x06200029
>>>>>>>>
>>>>>>>> dwc2 f72c0000.usb: dwc2_hc_chhltd_intr_dma: Channel 11 - ChHltd set,
>>>>>>>> but reason is unknown
>>>>>>>> dwc2 f72c0000.usb: hcint 0x00000002, intsts 0x04200029
>>>>>>>>
>>>>>>>> Sometimes followed up by a usb error in the driver, something like:
>>>>>>>> asix 1-1.2:1.0 eth0: asix_rx_fixup() Bad Header Length 0x36000807, offset 68
>>>>>>>>
>>>>>>>> Curious if you've seen any reports like this?
>>>>>
>>>>> The core version is less than 2.71a, am I right?
>>>>
>>>> So it looks like its reporting 0x4f54300a for hsotg->regs + GSNPSID
>>>> which looks like DWC2_CORE_REV_3_00a
>>>>
>>>>> Please send full debug log to do more investigation.
>>>>
>>>> Full dmesg, or is there special debugging you want me to enable?
>>>
>>> Full dmesg around issue.
>>>>
>>>>> Also send us regdump after connecting ethernet adapter.
>>>>
>>>> Sorry, can you clarify how to generate this?
>>>
>>> cat regdump. To locate dwc2 regdump file: cd /; find -name regdump
>>
>> this won't work if his distro doesn't mount debugfs. Please give
>> complete instructions ;-)
>>
>> # mkdir -p /d
>> # mount -t debugfs none /d
>> # cd /d
>> # find . -name regdump
>>
>> The directory name is the same name as the dwc2 device name, AFAICT. So,
>> check your DTS for the name of the device.
>
> Thanks for the extra details! I didn't have DEBUG_FS built in, so this
> helped clue me in.
>
> Attached are dmesg including the issue and the regdump.
>
> I did notice when cating the regdump file, I saw:
> dwc2 f72c0000.usb: Mode Mismatch Interrupt: currently in Host mode
> twice. (You'll see it 4 times in the dmesg around 1077 as I cat'ed
> regdump again to verify it wasn't just chance).
>
> Let me know if there is anything else you need!
>
> thanks
> -john
>

Could you please apply attached patch and try again.

Thanks,
Minas

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: dwc2_hc_chhltd_intr_dma - ChHltd set errors? John Stultz <john.stultz@linaro.org> - 2017-04-01 01:10 +0200
  Re: dwc2_hc_chhltd_intr_dma - ChHltd set errors? John Youn <John.Youn@synopsys.com> - 2017-04-03 07:30 +0200
    Re: dwc2_hc_chhltd_intr_dma - ChHltd set errors? Minas Harutyunyan <Minas.Harutyunyan@synopsys.com> - 2017-04-03 15:00 +0200
      Re: dwc2_hc_chhltd_intr_dma - ChHltd set errors? John Stultz <john.stultz@linaro.org> - 2017-04-04 05:10 +0200
        Re: dwc2_hc_chhltd_intr_dma - ChHltd set errors? Minas Harutyunyan <Minas.Harutyunyan@synopsys.com> - 2017-04-04 09:20 +0200
          Re: dwc2_hc_chhltd_intr_dma - ChHltd set errors? Felipe Balbi <felipe.balbi@linux.intel.com> - 2017-04-04 09:40 +0200
            Re: dwc2_hc_chhltd_intr_dma - ChHltd set errors? Minas Harutyunyan <Minas.Harutyunyan@synopsys.com> - 2017-04-05 15:20 +0200
              Re: dwc2_hc_chhltd_intr_dma - ChHltd set errors? Minas Harutyunyan <Minas.Harutyunyan@synopsys.com> - 2017-04-06 09:50 +0200
                Re: dwc2_hc_chhltd_intr_dma - ChHltd set errors? Felipe Balbi <felipe.balbi@linux.intel.com> - 2017-04-07 10:20 +0200
                Re: dwc2_hc_chhltd_intr_dma - ChHltd set errors? Minas Harutyunyan <Minas.Harutyunyan@synopsys.com> - 2017-04-07 15:00 +0200

csiph-web