-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mmc0 Timeout waiting for hardware interrupt #2802
Comments
The SD controller was in the middle of writing 192 contiguous sectors close to the end of the card (around the 60GB mark) when it appears to have stalled. The driver waited 10 seconds for the operation to complete before timing out. I'd be interested in seeing any other crash logs you have, to see if the position on the card is a common factor. |
Is possible that in case the controller on the sd card does wear-leveling that the timeout isn't sufficient? |
It's happened many times while writing closer to the start of the card too (e.g. during package upgrades) |
I'm sorry this issue has gone quiet, but I ran out of things to suggest. Your logs do indeed show failures writing to other parts of the card. I'm reluctant to blame a faulty card, but so far this is a one-off report. I can't believe that any kind of internal maintenance operation by a card would make it unresponsive for 10 seconds - imagine if you were trying to record a video to it.
|
@btory Is it possible to simplify this scenario to something like this: |
@pelwell @lategoodbye |
Tried increasing the timeout (10 -> 30 seconds) and it still times out. |
Thanks for testing. I don't think this is a power issue. According to the dump this seems to be related to #2810 Could you please try to pass "brcm,force-pio" to the sdhost overlay if this have any influence to the rsync or the dd scenario? |
No difference with |
Try with the
which will result in the |
|
Yesterday i was able to produce a "Timeout waiting for hardware interrupt" with the dd scenario within a few seconds. Test setup: Raspberry Pi 3 B+, linux-next, Aarch64 defconfig, Samsung EVO+ 32 GB |
Tested rsync scenario with underclocked SD and at 20MHz and lower the timeouts do not occur at all. Tested a bunch of times to be sure. |
@btory Does this workaround for an apparently similar issue help at all? |
I have the same issue with a sandisk 16GB card. |
Been getting the above error randomly for a few months but haven't been able to reliably reproduce until now. Rootfs always gets unmounted when it occurs.
Interestingly this only occurs with a 64gb Samsung EVO microSD card. The card passes read-write tests and I haven't had and issues with it in other devices so I don't believe that there is anything wrong with it. I cloned the contents to another cheap 64gb microSD card and that one works perfectly with no errors.
To reproduce
I can reproduce by doing a full system backup with rsync to the same card:
rsync -aAXvH --delete --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /mnt/p3
After a few seconds the command fails due to MMC errors.
Expected behaviour
No MMC errors and rootfs stays mounted
Actual behaviour
MMC errors immediately followed by rootfs getting unmounted
System
Model: 3 B+
OS: Arch Linux ARM
Firmware:
1f3414729f43ef3b977a910a0d811a759562e1cf (clean) (release)
Kernel: Raspberry Pi
Linux rpi 4.14.87-1-ARCH #1 SMP Wed Dec 12 00:59:49 UTC 2018 armv7l GNU/Linux
Linux rpi 4.19.13-1-ARCH #1 SMP Wed Jan 9 18:02:38 DST 2019 armv7l GNU/Linux
Issue present with both of these versions
Logs
https://pastebin.com/raw/kJnyZX8P
The text was updated successfully, but these errors were encountered: