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


Groups > linux.kernel > #1587993 > unrolled thread

bug? dwc2: insufficient fifo memory

Started byJohn Stultz <john.stultz@linaro.org>
First post2017-02-24 23:50 +0100
Last post2017-02-25 01:30 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  bug? dwc2: insufficient fifo memory John Stultz <john.stultz@linaro.org> - 2017-02-24 23:50 +0100
    Re: bug? dwc2: insufficient fifo memory John Youn <John.Youn@synopsys.com> - 2017-02-25 01:30 +0100

#1587993 — bug? dwc2: insufficient fifo memory

FromJohn Stultz <john.stultz@linaro.org>
Date2017-02-24 23:50 +0100
Subjectbug? dwc2: insufficient fifo memory
Message-ID<tewQx-6Yh-5@gated-at.bofh.it>
Hey John,
  So after the USB tree landed in 4.11-rc, I've been seeing the
following warning at bootup.

It seems the fifo_mem/total_fifo_size value on hikey is 1920, but I'm
seeing the addresses zip upward quickly as the txfsz values are all
2048.  Not exactly sure whats wrong here.  Things still seem to work
properly.

thanks
-john


[    8.944987] dwc2 f72c0000.usb: bound driver configfs-gadget
[    8.956651] insufficient fifo memory
[    8.956703] ------------[ cut here ]------------
[    8.964906] WARNING: CPU: 7 PID: 1 at drivers/usb/dwc2/gadget.c:330
dwc2_hsotg_init_fifo+0x1a8/0x1c8
[    8.974041]
[    8.975536] CPU: 7 PID: 1 Comm: init Not tainted
4.10.0-09619-gcf8ef33-dirty #2280
[    8.983115] Hardware name: HiKey Development Board (DT)
[    8.988344] task: ffffffc005f38000 task.stack: ffffffc005f34000
[    8.994283] PC is at dwc2_hsotg_init_fifo+0x1a8/0x1c8
[    8.999341] LR is at dwc2_hsotg_init_fifo+0x1a8/0x1c8
[    9.004408] pc : [<ffffff8008699640>] lr : [<ffffff8008699640>]
pstate: 600001c5
[    9.011819] sp : ffffffc005f37be0
[    9.015138] x29: ffffffc005f37be0 x28: ffffffc005f38000
[    9.020471] x27: ffffff8008a52000 x26: 0000000000000001
[    9.025797] x25: ffffff8008c4d3f0 x24: ffffff8008dbdd3e
[    9.031118] x23: 0000000008000580 x22: 0000000000000580
[    9.036454] x21: ffffffc074ba7098 x20: ffffffc074ba7018
[    9.041781] x19: 000000000000011c x18: 0000000000000010
[    9.047116] x17: 0000000000000000 x16: ffffff80081d71c8
[    9.052443] x15: ffffff8088de639f x14: 0000000000000006
[    9.057763] x13: ffffff8008de63ad x12: ffffff8008d68820
[    9.063084] x11: 0000000000000000 x10: ffffffc005f37be0
[    9.068404] x9 : ffffffc005f37be0 x8 : 66696620746e6569
[    9.073726] x7 : 6369666675736e69 x6 : 000000000000034e
[    9.079047] x5 : 0000000000000015 x4 : 0000000000000000
[    9.084382] x3 : 0000000000000002 x2 : 0000000000000002
[    9.089722] x1 : 0000000000000001 x0 : 0000000000000018
[    9.095051]
[    9.096545] ---[ end trace 7e67e3086c7527eb ]---
[    9.101173] Call trace:
[    9.103641] Exception stack(0xffffffc005f37a10 to 0xffffffc005f37b40)
[    9.110112] 7a00:
000000000000011c 0000008000000000
[    9.117954] 7a20: ffffffc005f37be0 ffffff8008699640
ffffff8008c4d3f0 0000000000000001
[    9.125809] 7a40: ffffff8008a52000 ffffffc005f38000
ffffffc005f37a90 0000000000000000
[    9.133667] 7a60: ffffffc005f37be0 ffffffc005f37be0
ffffffc005f37ba0 00000000ffffffc8
[    9.141530] 7a80: ffffffc005f37ab0 ffffff8008105114
ffffffc005f37be0 ffffffc005f37be0
[    9.149390] 7aa0: ffffffc005f37ba0 00000000ffffffc8
0000000000000018 0000000000000001
[    9.157252] 7ac0: 0000000000000002 0000000000000002
0000000000000000 0000000000000015
[    9.165114] 7ae0: 000000000000034e 6369666675736e69
66696620746e6569 ffffffc005f37be0
[    9.172957] 7b00: ffffffc005f37be0 0000000000000000
ffffff8008d68820 ffffff8008de63ad
[    9.180811] 7b20: 0000000000000006 ffffff8088de639f
ffffff80081d71c8 0000000000000000
[    9.188673] [<ffffff8008699640>] dwc2_hsotg_init_fifo+0x1a8/0x1c8
[    9.194803] [<ffffff800869cb74>] dwc2_hsotg_core_init_disconnected+0x7c/0x3d0
[    9.201970] [<ffffff800869d928>] dwc2_hsotg_pullup+0x90/0x100
[    9.207751] [<ffffff80086c1aa8>] usb_udc_connect_control.isra.0+0x78/0x90
[    9.214572] [<ffffff80086c1b84>] udc_bind_to_driver+0xc4/0xe8
[    9.220349] [<ffffff80086c2a90>] usb_gadget_probe_driver+0xa0/0x150
[    9.226629] [<ffffff80086c0f84>] gadget_dev_desc_UDC_store+0xdc/0xf8
[    9.233015] [<ffffff8008255528>] configfs_write_file+0xc0/0x198
[    9.238969] [<ffffff80081d6d94>] __vfs_write+0x1c/0x100
[    9.244206] [<ffffff80081d7018>] vfs_write+0xa0/0x1b0
[    9.249269] [<ffffff80081d720c>] SyS_write+0x44/0xa0
[    9.254245] [<ffffff8008082f30>] el0_svc_naked+0x24/0x28

[toc] | [next] | [standalone]


#1588016

FromJohn Youn <John.Youn@synopsys.com>
Date2017-02-25 01:30 +0100
Message-ID<teypk-86z-9@gated-at.bofh.it>
In reply to#1587993
On 2/24/2017 2:46 PM, John Stultz wrote:
> Hey John,
>   So after the USB tree landed in 4.11-rc, I've been seeing the
> following warning at bootup.
>
> It seems the fifo_mem/total_fifo_size value on hikey is 1920, but I'm
> seeing the addresses zip upward quickly as the txfsz values are all
> 2048.  Not exactly sure whats wrong here.  Things still seem to work
> properly.

Thanks John.

I'm not sure what could be the problem at the moment but sounds like
something we broke with the default fifo initialization. We'll take a
look at it.

Regards,
John

>
>
> [    8.944987] dwc2 f72c0000.usb: bound driver configfs-gadget
> [    8.956651] insufficient fifo memory
> [    8.956703] ------------[ cut here ]------------
> [    8.964906] WARNING: CPU: 7 PID: 1 at drivers/usb/dwc2/gadget.c:330
> dwc2_hsotg_init_fifo+0x1a8/0x1c8
> [    8.974041]
> [    8.975536] CPU: 7 PID: 1 Comm: init Not tainted
> 4.10.0-09619-gcf8ef33-dirty #2280
> [    8.983115] Hardware name: HiKey Development Board (DT)
> [    8.988344] task: ffffffc005f38000 task.stack: ffffffc005f34000
> [    8.994283] PC is at dwc2_hsotg_init_fifo+0x1a8/0x1c8
> [    8.999341] LR is at dwc2_hsotg_init_fifo+0x1a8/0x1c8
> [    9.004408] pc : [<ffffff8008699640>] lr : [<ffffff8008699640>]
> pstate: 600001c5
> [    9.011819] sp : ffffffc005f37be0
> [    9.015138] x29: ffffffc005f37be0 x28: ffffffc005f38000
> [    9.020471] x27: ffffff8008a52000 x26: 0000000000000001
> [    9.025797] x25: ffffff8008c4d3f0 x24: ffffff8008dbdd3e
> [    9.031118] x23: 0000000008000580 x22: 0000000000000580
> [    9.036454] x21: ffffffc074ba7098 x20: ffffffc074ba7018
> [    9.041781] x19: 000000000000011c x18: 0000000000000010
> [    9.047116] x17: 0000000000000000 x16: ffffff80081d71c8
> [    9.052443] x15: ffffff8088de639f x14: 0000000000000006
> [    9.057763] x13: ffffff8008de63ad x12: ffffff8008d68820
> [    9.063084] x11: 0000000000000000 x10: ffffffc005f37be0
> [    9.068404] x9 : ffffffc005f37be0 x8 : 66696620746e6569
> [    9.073726] x7 : 6369666675736e69 x6 : 000000000000034e
> [    9.079047] x5 : 0000000000000015 x4 : 0000000000000000
> [    9.084382] x3 : 0000000000000002 x2 : 0000000000000002
> [    9.089722] x1 : 0000000000000001 x0 : 0000000000000018
> [    9.095051]
> [    9.096545] ---[ end trace 7e67e3086c7527eb ]---
> [    9.101173] Call trace:
> [    9.103641] Exception stack(0xffffffc005f37a10 to 0xffffffc005f37b40)
> [    9.110112] 7a00:
> 000000000000011c 0000008000000000
> [    9.117954] 7a20: ffffffc005f37be0 ffffff8008699640
> ffffff8008c4d3f0 0000000000000001
> [    9.125809] 7a40: ffffff8008a52000 ffffffc005f38000
> ffffffc005f37a90 0000000000000000
> [    9.133667] 7a60: ffffffc005f37be0 ffffffc005f37be0
> ffffffc005f37ba0 00000000ffffffc8
> [    9.141530] 7a80: ffffffc005f37ab0 ffffff8008105114
> ffffffc005f37be0 ffffffc005f37be0
> [    9.149390] 7aa0: ffffffc005f37ba0 00000000ffffffc8
> 0000000000000018 0000000000000001
> [    9.157252] 7ac0: 0000000000000002 0000000000000002
> 0000000000000000 0000000000000015
> [    9.165114] 7ae0: 000000000000034e 6369666675736e69
> 66696620746e6569 ffffffc005f37be0
> [    9.172957] 7b00: ffffffc005f37be0 0000000000000000
> ffffff8008d68820 ffffff8008de63ad
> [    9.180811] 7b20: 0000000000000006 ffffff8088de639f
> ffffff80081d71c8 0000000000000000
> [    9.188673] [<ffffff8008699640>] dwc2_hsotg_init_fifo+0x1a8/0x1c8
> [    9.194803] [<ffffff800869cb74>] dwc2_hsotg_core_init_disconnected+0x7c/0x3d0
> [    9.201970] [<ffffff800869d928>] dwc2_hsotg_pullup+0x90/0x100
> [    9.207751] [<ffffff80086c1aa8>] usb_udc_connect_control.isra.0+0x78/0x90
> [    9.214572] [<ffffff80086c1b84>] udc_bind_to_driver+0xc4/0xe8
> [    9.220349] [<ffffff80086c2a90>] usb_gadget_probe_driver+0xa0/0x150
> [    9.226629] [<ffffff80086c0f84>] gadget_dev_desc_UDC_store+0xdc/0xf8
> [    9.233015] [<ffffff8008255528>] configfs_write_file+0xc0/0x198
> [    9.238969] [<ffffff80081d6d94>] __vfs_write+0x1c/0x100
> [    9.244206] [<ffffff80081d7018>] vfs_write+0xa0/0x1b0
> [    9.249269] [<ffffff80081d720c>] SyS_write+0x44/0xa0
> [    9.254245] [<ffffff8008082f30>] el0_svc_naked+0x24/0x28
>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web