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.15k stars 5k forks source link

Pi Zero W on rpi-4.19.y-rt locks up if OTG USB used #3649

Open Claudenw opened 4 years ago

Claudenw commented 4 years ago

System works with raspberrypi-kernel but fails wit raspberrypi-kernel-rt

Describe the bug When booting with raspberrypi-kernel-rt and a USB device attached the system shuts down. When plugging in a USB device after boot the system locks up.

After reviewing the logs I believe that the issue is that the blue tooth operation conflicts with the OTG USB on the pi zero.

To reproduce

running lockup using a pi zero W with blue tooth enabled running the raspberrypi-kernel and terminal via SSH

sudo apt install raspberrypi-kernel-rt
reboot

log back in
attach USB driver to OTG USB port.
system locks up

running lockup using a pi zero W with blue tooth enabled and the raspberrypi-kernel-rt installed, powered off.

attach USB driver to OTG USB port.
power on.
system starts to boot and then shuts down.

Expected behaviour Expect USB Storage to be recognized and OS to continue running.

Actual behaviour System freezes or fails to boot.

System

raspinfo.txt

Logs Logs from boot with USB installed. boot_with_usb.zip

Logs from pugging USB after boot (logs also contain entries from the above case) usb_after_boot.zip

pelwell commented 4 years ago

You can report the issue here, as you've done, but you might not get a rapid response - we host the -rt branches, but we rely on others to support them.

P33M commented 4 years ago

Is there any specific reason to use dwc_otg in this case? You appear to be using a single USB mass storage device, which dwc2 in host mode can handle just fine.

Claudenw commented 4 years ago

I am just using the standard PI Zero W setup for the USB data setup.

On Mon, Jun 1, 2020 at 10:44 AM P33M notifications@github.com wrote:

Is there any specific reason to use dwc_otg in this case? You appear to be using a single USB mass storage device, which dwc2 in host mode can handle just fine.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/raspberrypi/linux/issues/3649#issuecomment-636744298, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASTVHU3SI3AOKMQYKU766TRUNZ65ANCNFSM4NPU65ZQ .

-- I like: Like Like - The likeliest place on the web http://like-like.xenei.com LinkedIn: http://www.linkedin.com/in/claudewarren

pelwell commented 4 years ago

Does that mean you are using the dwc2 overlay?

Claudenw commented 4 years ago

I declare neither, so it looks like it is the dwc2 overlay by default for the pi zero. Sorry about mis-reporting the USB.

On Mon, Jun 1, 2020 at 1:19 PM Phil Elwell notifications@github.com wrote:

Does that mean you are using the dwc2 overlay?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/raspberrypi/linux/issues/3649#issuecomment-636827526, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASTVHV4AS3PGHCP7LJPSPLRUOMGHANCNFSM4NPU65ZQ .

-- I like: Like Like - The likeliest place on the web http://like-like.xenei.com LinkedIn: http://www.linkedin.com/in/claudewarren