lategoodbye / rpi-zero

Linux kernel source tree
Other
22 stars 3 forks source link

sdhost: Random timeouts on Raspberry Pi 3 #30

Open lategoodbye opened 6 years ago

lategoodbye commented 6 years ago

There has been reports that under some conditions sdhost lock ups can occur: https://github.com/raspberrypi/linux/issues/2392 https://patchwork.kernel.org/patch/10219145/ https://bugzilla.opensuse.org/show_bug.cgi?id=1070872

lategoodbye commented 6 years ago

Seems to be related: https://bugzilla.redhat.com/show_bug.cgi?id=1619081

lategoodbye commented 5 years ago

Possibly related: https://bugzilla.redhat.com/show_bug.cgi?id=1607872

The complete source code is here: https://github.com/Ognian/sdmon

lategoodbye commented 5 years ago

A first patch series to fight this issue is here: https://marc.info/?l=linux-mmc&m=154200766325468&w=2

lategoodbye commented 5 years ago

Patch series has been applied.

lategoodbye commented 5 years ago

It looks like some of the fixes caused a regression: https://www.spinics.net/linux/fedora/fedora-arm/msg12930.html

lategoodbye commented 5 years ago

It seems that i've been able to reproduce this issue during boot for the following combination: Raspberry Pi 2 + U-Boot 2017-rc1 + Linux 5.3-rc6 (multi_v7_defconfig + cpufreq) + Raspbian Wheezy 2015-02-16 + Samsung EVO+ 16 GB

lategoodbye commented 5 years ago

I've found out that 37fefadee8bb665ae337a15aa635dabff9f66ade causes lockups in the timeout worker, but it's not the root cause of the hardware timeout. Nevertheless a revert is necessary.