raspberrypi / linux

Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/
Other
11.16k stars 5k forks source link

USB issues with dwc_otg since a few 5.15 patch levels #5070

Open spockfish opened 2 years ago

spockfish commented 2 years ago

Describe the bug

Recently I've started to notice some flooding of the logs when using a USB WiFi dongle on a Raspberry Pi 3 B with a 32 bit kernel. I'm certain this did not happen in the past. I'm also so relatively certain that it's not related to the specific dongle, as I've tried 2 different types.

I'm building the kernel in a buildroot environment, basically with the default config as provided (bcm2709).

The logs show the following (this is a snippet, it keeps on going):

[   14.610977] WARNING! power/level is deprecated; use power/control instead
[   14.623956] enumspeed_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875

[   14.624014] WARN::dwc_otg_handle_mode_mismatch_intr:67: Mode Mismatch Interrupt: currently in Host mode

[   14.624091] hprt0_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   14.624368] srpcapable_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875

[   14.624458] WARN::dwc_otg_handle_mode_mismatch_intr:67: Mode Mismatch Interrupt: currently in Host mode

[   14.624515] dwc_otg 3f980000.usb: Invalid offset (0xffffffff)
[   14.630528] hptxfsiz_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   14.630771] ggpio_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   14.630895] gotgctl_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   14.631129] Core is not in hibernation
[   14.631196] mode_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   14.631336] devspeed_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875

[   14.631367] WARN::dwc_otg_handle_mode_mismatch_intr:67: Mode Mismatch Interrupt: currently in Host mode

[   14.631412] Core Global Registers
[   14.631419] GOTGCTL   @0xBE800000 : 0x001C0001
[   14.631427] GOTGINT   @0xBE800004 : 0x00000000
[   14.631435] GAHBCFG   @0xBE800008 : 0x00000031
[   14.631442] GUSBCFG   @0xBE80000C : 0x20001700
[   14.631450] GRSTCTL   @0xBE800010 : 0x80000000
[   14.631457] GINTSTS   @0xBE800014 : 0x04000001
[   14.631464] GINTMSK   @0xBE800018 : 0xF301080E
[   14.631471] GRXSTSR   @0xBE80001C : 0x01CE0420
[   14.631479] GRXFSIZ   @0xBE800024 : 0x00000306
[   14.631486] GNPTXFSIZ @0xBE800028 : 0x01000306
[   14.631494] GNPTXSTS  @0xBE80002C : 0x28000100
[   14.631501] GI2CCTL   @0xBE800030 : 0x00000000
[   14.631508] GPVNDCTL  @0xBE800034 : 0x00000000
[   14.631515] GGPIO     @0xBE800038 : 0x00000000
[   14.631523] GUID      @0xBE80003C : 0x2708A000
[   14.631530] GSNPSID   @0xBE800040 : 0x4F54280A
[   14.631537] GHWCFG1   @0xBE800044 : 0x00000000
[   14.631544] GHWCFG2   @0xBE800048 : 0x228DDD50
[   14.631552] GHWCFG3   @0xBE80004C : 0x0FF000E8
[   14.631559] GHWCFG4   @0xBE800050 : 0x1FF00020
[   14.631567] GLPMCFG   @0xBE800054 : 0x75736230
[   14.631574] GPWRDN    @0xBE800058 : 0x00000000
[   14.631581] GDFIFOCFG     @0xBE80005C : 0x00000000
[   14.631589] ADPCTL    @0xBE800060 : 0x00000000
[   14.631596] HPTXFSIZ  @0xBE800100 : 0x02000406
[   14.631603] DIENPTXF[1] @0xBE800104 : 0x02000406
[   14.631612] DIENPTXF[2] @0xBE800108 : 0x02000406
[   14.631620] DIENPTXF[3] @0xBE80010C : 0x02000406
[   14.631628] DIENPTXF[4] @0xBE800110 : 0x02000406
[   14.631636] DIENPTXF[5] @0xBE800114 : 0x02000406
[   14.631644] DIENPTXF[6] @0xBE800118 : 0x02000406
[   14.631652] DIENPTXF[7] @0xBE80011C : 0x02000406
[   14.631660] PCGCCTL   @0xBE800E00 : 0x00000000
[   14.631668] Host Global Registers
[   14.631674] HCFG      @0xBE800400 : 0x00000000
[   14.631681] HFIR      @0xBE800404 : 0x00001D4B
[   14.631689] HFNUM     @0xBE800408 : 0x1B8E2E0E
[   14.631696] HPTXSTS   @0xBE800410 : 0x21080200
[   14.631703] HAINT     @0xBE800414 : 0x00000000
[   14.631711] HAINTMSK  @0xBE800418 : 0x00000020
[   14.631719] HPRT0     @0xBE800440 : 0x00001005
[   14.631726] Host Channel 0 Specific Registers
[   14.631733] HCCHAR    @0xBE800500 : 0x00DC9810
[   14.631740] HCSPLT    @0xBE800504 : 0x00000000
[   14.631747] HCINT     @0xBE800508 : 0x00000000
[   14.631756] HCINTMSK  @0xBE80050C : 0x00000000
[   14.631763] HCTSIZ    @0xBE800510 : 0x80080010
[   14.631770] HCDMA     @0xBE800514 : 0xC1F75E80
[   14.631778] Host Channel 1 Specific Registers
[   14.631784] HCCHAR    @0xBE800520 : 0x00DC9810
[   14.631791] HCSPLT    @0xBE800524 : 0x00000000
[   14.631798] HCINT     @0xBE800528 : 0x00000000
[   14.631805] HCINTMSK  @0xBE80052C : 0x00000000
[   14.631813] HCTSIZ    @0xBE800530 : 0x80080010
[   14.631820] HCDMA     @0xBE800534 : 0xC1F75E80
[   14.631827] Host Channel 2 Specific Registers
[   14.631834] HCCHAR    @0xBE800540 : 0x00DC9810
[   14.631841] HCSPLT    @0xBE800544 : 0x00000000
[   14.631848] HCINT     @0xBE800548 : 0x00000000
[   14.631855] HCINTMSK  @0xBE80054C : 0x00000000
[   14.631863] HCTSIZ    @0xBE800550 : 0x80080010
[   14.631870] HCDMA     @0xBE800554 : 0xC1F75E80
[   14.631877] Host Channel 3 Specific Registers
[   14.631883] HCCHAR    @0xBE800560 : 0x00D88A00
[   14.631891] HCSPLT    @0xBE800564 : 0x00000000
[   14.631898] HCINT     @0xBE800568 : 0x00000000
[   14.631905] HCINTMSK  @0xBE80056C : 0x00000000
[   14.631912] HCTSIZ    @0xBE800570 : 0xC020099F
[   14.631919] HCDMA     @0xBE800574 : 0xC53C5EE4
[   14.631926] Host Channel 4 Specific Registers
[   14.631933] HCCHAR    @0xBE800580 : 0x00D88A00
[   14.631940] HCSPLT    @0xBE800584 : 0x00000000
[   14.631947] HCINT     @0xBE800588 : 0x00000000
[   14.631954] HCINTMSK  @0xBE80058C : 0x00000000
[   14.631961] HCTSIZ    @0xBE800590 : 0xC020099F
[   14.631969] HCDMA     @0xBE800594 : 0xC53C4864
[   14.631976] Host Channel 5 Specific Registers
[   14.631982] HCCHAR    @0xBE8005A0 : 0x80D88A00
[   14.631989] HCSPLT    @0xBE8005A4 : 0x00000000
[   14.631996] HCINT     @0xBE8005A8 : 0x00000010
[   14.632004] HCINTMSK  @0xBE8005AC : 0x00000006
[   14.632011] HCTSIZ    @0xBE8005B0 : 0x00280A00
[   14.632018] HCDMA     @0xBE8005B4 : 0xC53C3180
[   14.632025] Host Channel 6 Specific Registers
[   14.632032] HCCHAR    @0xBE8005C0 : 0x00D88A00
[   14.632039] HCSPLT    @0xBE8005C4 : 0x00000000
[   14.632046] HCINT     @0xBE8005C8 : 0x00000000
[   14.632053] HCINTMSK  @0xBE8005CC : 0x00000000
[   14.632060] HCTSIZ    @0xBE8005D0 : 0x8020099F
[   14.632067] HCDMA     @0xBE8005D4 : 0xC53C3D24
[   14.632074] Host Channel 7 Specific Registers
[   14.632081] HCCHAR    @0xBE8005E0 : 0x00D88A00
[   14.632088] HCSPLT    @0xBE8005E4 : 0x00000000
[   14.632095] HCINT     @0xBE8005E8 : 0x00000000
[   14.632102] HCINTMSK  @0xBE8005EC : 0x00000000
[   14.632109] HCTSIZ    @0xBE8005F0 : 0x8020099F
[   14.632116] HCDMA     @0xBE8005F4 : 0xC53C53A4
[   14.632211] inv_sel_hsic_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   14.632294] HZ 100, MSEC_PER_JIFFIE 10, loops_per_jiffy 384000
[   15.910477] HZ 100, MSEC_PER_JIFFIE 10, loops_per_jiffy 384000
[   16.425130] hnpcapable_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   16.425292] gpvndctl_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   16.425448] gnptxfsiz_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   16.425585] grxfsiz_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   16.425659] guid_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   16.425817] gusbcfg_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   16.425893] hsic_connect_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   16.426029] gsnpsid_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   16.426104] busconnected_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   16.466245] enumspeed_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875

[   16.466282] WARN::dwc_otg_handle_mode_mismatch_intr:67: Mode Mismatch Interrupt: currently in Host mode

[   16.466335] hsic_connect_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   16.466493] devspeed_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875

[   16.466512] WARN::dwc_otg_handle_mode_mismatch_intr:67: Mode Mismatch Interrupt: currently in Host mode

[   16.466570] busconnected_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   16.466642] ggpio_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   16.466715] grxfsiz_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   16.466788] hnpcapable_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   16.467117] srpcapable_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   16.467190] guid_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   16.467387] gpvndctl_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875

[   16.467471] WARN::dwc_otg_handle_mode_mismatch_intr:67: Mode Mismatch Interrupt: currently in Host mode

[   16.467528] inv_sel_hsic_show(a07998df) -> platform_dev db3b2ed5, otg_dev 01e28875
[   16.467628] dwc_otg 3f980000.usb: Invalid offset (0xffffffff)

Steps to reproduce the behaviour

insert USB WiFi dongle and start using it.

Device (s)

Raspberry Pi 3 Mod. B

System

Linux ropieeeiq 5.15.50-SPCKFSH-v7 #1 SMP PREEMPT Tue Jun 28 09:32:24 CEST 2022 armv7l GNU/Linux

Jun 15 2022 20:07:33 
Copyright (c) 2012 Broadcom
version ede5f7d365ef42ebbd4aa144ee5b51ea75604c82 (clean) (release) (start)

Logs

No response

Additional context

No response

popcornmix commented 2 years ago

As you are building your own kernel. Can you narrow down where the problem started?

spockfish commented 2 years ago

Yeah I already thought that would be your first question ;-)

But agreed, I'll build a few kernels back and see when this started happening and let you know.

Thanks