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
regular warnings mmc1 timeout waiting for hardware cmd interrupt
#1556
Comments
Adding |
I have added |
Same for me, leaving the sd card slot empty is causing same entry |
You're using a Debian image that is built with the upstream kernel instead of the RPT maintained kernel. It doesn't have any of the optional DT overlays like sd_poll_once so adding that config.txt line does nothing. |
thank you for the explanation of why the warning does not disappear. where can I find an image with the RPT maintained kernel? I downloaded the image from "Debian Tested Images". |
https://www.raspberrypi.org/software/operating-systems/#raspberry-pi-os-32-bit 😉 If you want to use Debian, then that's something you'll need to ask the Debian maintainers about. The source for the RPT maintained kernel is at https://github.com/raspberrypi/linux |
FYI there is a patch being upstreamed that provides a workaround to a hitherto unknown (to us) feature of the BCM2711 SDHCI controller. The size of an internal counter limits the ratio between the source clock and the SD bus clock that can be used safely. A 100kHz SD clock is apparently too slow with a 500MHz source clock, and a clock that slow is used if the card doesn't respond at 400kHz, which would be the case if no card is present. |
@pelwell - I guess the comment above is not for this bug? |
Not exactly since it is for the EMMC2/SD controller, but it might be related since they are both Arasan cores. |
I dunno much about DeviceTree, but maybe you can replicate whatever https://github.com/raspberrypi/linux/blob/rpi-5.10.y/arch/arm/boot/dts/bcm2711-rpi-4-b.dts#L627 is doing if you build your own kernel and/or dtb? 🤷 Or maybe you just need to wait for Debian to update their images with a kernel that supports this setting? |
We're trying to fix this issue in upstream Linux. Here's the explanation on what's happening: http://archive.lwn.net:8080/linux-kernel/CAOGqxeWzjn70A_gP4Eh_ZLW0H3KkE_wA7QzeGRqU1u7xtJr-+Q@mail.gmail.com/ There will hopefully be a fix available soon. |
i have the impression that the bug that |
@vianpl The upstream email thread is interesting, but it neglects the fact that the EMMC2 block has its own clock, independent of the core, that is set to 100MHz. |
I with to return to the original issue, the repeated mmc1 warning: |
@andrewufrank As I mentioned before, if you're using an OS which isn't Raspberry Pi OS (available at https://www.raspberrypi.org/software/ ) then you'll need to ask whoever develops that distro to pull in whatever patches / fixes you're interested in. |
@lurch I understood your information, but I had the impression the project here is exactly to build OS which are not Raspberry Pi OS. The OS I use is, as much as I understand, built using the software from this page, thus asking the question here seems approriate. It is build with debootstrap and loads raspberry-firmware to go on to build a vanilla debian. |
has this issue been addressed? I am getting same message repeated. |
I can confirm. Currently seeing the same thing.
Puc |
A patch appeared in Linux 5.10.61 that may resolve this problem: raspberrypi/linux@2566c1d |
Hello pelwell, good stuff! This is how I resolved the issue, dtparam=sd_poll_once puc. |
I tried this, did not resolve issue for me. |
The most simple method I could get rid of those annoying messages was to put an SD card into a slot after booting from the USB drive. |
|
Put it in config.txt, but without spaces ( |
Is this the right place for my bug report?
Using a Debian installation from [https://raspi.debian.net/daily-images/] specifically [https://raspi.debian.net/daily/raspi_4_bullseye.img.xz] which uses the firmware from here, I hope the report is appropriate. I have not seen a similar error reported.
I have followed the advice to fix distributed images to boot from USB (thank you for the help!). I have to use the
bullseye
distribution, because the older ones do not allow dual monitor displays.bullseye
does. once a desktop is installed, the warning is not visible and does not disturb; so far I have not seen a negative impact on the system.Describe the bug
I get approximately every 10 seconds a warning:
mmc1 warning timeout waiting for hardware cmd interrupt
.I have no SD card insterted (start on SSD with USB bridge).
There shoul not be a warning (which interrupts using the system badly - is there a method to switch it off?)
To reproduce
I have added to the image downloaded the
reset_raspberrypi
module in the initramfs as per advice to achieve booting from an SSD.Expected behaviour
boot without repeated warnings
Actual behaviour
regular warnings
System
Raspi 4,
Linux romont 5.10.0-5-arm64 #1 SMP Debian 5.10.24-1 (2021-03-19) aarch64 GNU/Linux
if you need more information, please indicate how to obtain it.
The text was updated successfully, but these errors were encountered: