devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* dwc2: RPi 3 B plus - USB mass storage boot broken
@ 2021-06-29 11:37 Stefan Wahren
  2021-06-29 21:31 ` Stefan Wahren
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Wahren @ 2021-06-29 11:37 UTC (permalink / raw)
  To: Saravana Kannan, Tudor Ambarus, Marek Szyprowski,
	Minas Harutyunyan, Nicolas Saenz Julienne
  Cc: Guenter Roeck, Kishon Vijay Abraham I, Greg Kroah-Hartman,
	devicetree, linux-rpi-kernel, linux-arm-kernel, linux-usb

Hi,

i noticed more fallout connected to the recent fw_devlink changes in
Linux 5.13. Since fw_devlink=on the Raspberry Pi 3 B Plus
(multi_v7_defconfig, 32 bit) is unable to boot from USB because the dwc2
driver probe too late and the kernel waits endlessly for the rootfs.
Switching fw_devlink back to permissive makes the dwc2 driver probe
earlier and make USB mass storage boot work again.

Here are some dmesg extracts taken from a Raspberry Pi 3 B Plus (5.13,
multi_v7_defconfig, booting from SD card to show good and bad case):

fw_devlink=permissive

[    2.198105] calling  dwc2_platform_driver_init+0x0/0x10 @ 1
[    2.198663] initcall dwc2_platform_driver_init+0x0/0x10 returned 0
after 529 usecs
[    4.156494] dwc2 3f980000.usb: supply vusb_d not found, using dummy
regulator
[    4.174514] dwc2 3f980000.usb: supply vusb_a not found, using dummy
regulator
[    4.242973] dwc2 3f980000.usb: DWC OTG Controller
[    4.259505] dwc2 3f980000.usb: new USB bus registered, assigned bus
number 1
[    4.278483] dwc2 3f980000.usb: irq 66, io mem 0x3f980000
[    4.759700] usb 1-1: new high-speed USB device number 2 using dwc2
[    5.359793] usb 1-1.1: new high-speed USB device number 3 using dwc2
[    5.899703] usb 1-1.2: new low-speed USB device number 4 using dwc2
[    6.149705] usb 1-1.1.3: new low-speed USB device number 5 using dwc2
[    6.629761] usb 1-1.1.1: new high-speed USB device number 6 using dwc2

fw_devlink=on

[    2.198579] calling  dwc2_platform_driver_init+0x0/0x10 @ 1
[    2.199021] initcall dwc2_platform_driver_init+0x0/0x10 returned 0
after 416 usecs
[    7.693987] dwc2 3f980000.usb: supply vusb_d not found, using dummy
regulator
[    7.694228] dwc2 3f980000.usb: supply vusb_a not found, using dummy
regulator
[    7.747111] dwc2 3f980000.usb: DWC OTG Controller
[    7.747152] dwc2 3f980000.usb: new USB bus registered, assigned bus
number 1
[    7.747192] dwc2 3f980000.usb: irq 66, io mem 0x3f980000
[    8.179985] usb 1-1: new high-speed USB device number 2 using dwc2
[    8.749920] usb 1-1.1: new high-speed USB device number 3 using dwc2
[    9.179900] usb 1-1.2: new low-speed USB device number 4 using dwc2
[    9.409951] usb 1-1.1.3: new low-speed USB device number 5 using dwc2
[    9.849927] usb 1-1.1.1: new high-speed USB device number 6 using dwc2

Unfortunately i wasn't able to find the root cause for this delay of 3
seconds during boot. I noticed that usb_phy_generic_init is called very
late. Maybe this is related.

Best regards
Stefan



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-29 21:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-29 11:37 dwc2: RPi 3 B plus - USB mass storage boot broken Stefan Wahren
2021-06-29 21:31 ` Stefan Wahren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).