Bug 722509
Summary: | SD card write errors | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Pavel Emelyanov <xemul> |
Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 15 | CC: | fabrice, gansalmon, iam, itamar, jonathan, jon.vanalten, kernel-maint, madhu.chinakonda, me, stuart |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | kernel-2.6.41.1-1.fc15 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-11-17 23:29:27 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Pavel Emelyanov
2011-07-15 14:45:39 UTC
Same problem here on a Thinkpad X220, with kernel-2.6.40.3-0.fc15.x86_64. It looks very similar to what's described here: http://comments.gmane.org/gmane.linux.kernel.mmc/8690 this workaround works for me : https://bugs.launchpad.net/ubuntu/+source/linux/+bug/773524/comments/13 and the upstream bug report: https://lkml.org/lkml/2011/7/11/381 (In reply to comment #2) > this workaround works for me : > https://bugs.launchpad.net/ubuntu/+source/linux/+bug/773524/comments/13 > > and the upstream bug report: > https://lkml.org/lkml/2011/7/11/381 That thread lead to commit 15bed0f2fa8e1d7db201692532c210a7823d2d21 which is in 3.1-rc2, which has a kernel built for f16 here: http://koji.fedoraproject.org/koji/buildinfo?buildID=259670 which is also queued for updates-testing. Could you please test that kernel? > Could you please test that kernel?
Doesn't work :( Only the workaround with the bunch of setpci-s helps.
(In reply to comment #4) > > Could you please test that kernel? > > Doesn't work :( Only the workaround with the bunch of setpci-s helps. Are you seeing the new message? "MMC controller base frequency changed to 50Mhz." (In reply to comment #5) > Are you seeing the new message? > "MMC controller base frequency changed to 50Mhz." I don't see this message, and I confirm comment #4. *** Bug 728616 has been marked as a duplicate of this bug. *** OK, I can confirm that if I run the commands found here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/773524/comments/13 then the Ricoh SD card reader in my x220 works fine. That same set of commands should be performed by the PCI quirk, but it isn't registering for some reason. I'll look into this. Ok, so here is what is happening on the x220. The PCI quirk that was added to fix this issue does get called, however it first checks to see if the proprietary MMC controller is disabled already (either by BIOS or possibly by some previous boot). If so, then it just returns immediately, which means that we never get to the e823 part of the quirk to lower the clock frequency. I moved the e823 check above the MMC disable, and things seem to be working rather well. I'll create a kernel with that patch shortly. For those of you still seeing this, the following scratch build has the change I described in comment #9 in it. Please test with this kernel once it completes: http://koji.fedoraproject.org/koji/taskinfo?taskID=3406947 The patch itself has been sent upstream: http://article.gmane.org/gmane.linux.kernel/1199650 Now running kernel from build posted above, on Thinkpad X220 with affected internal SD device. Works a charm, it seems. Thanks! Thanks for testing! I've added the patch and this should be in the next F15 kernel build. kernel-2.6.40.7-0.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/kernel-2.6.40.7-0.fc15 Package kernel-2.6.40.7-0.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing kernel-2.6.40.7-0.fc15' as soon as you are able to, then reboot. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-14513 then log in and leave karma (feedback). kernel-2.6.40.7-3.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/kernel-2.6.40.7-3.fc15 kernel-2.6.40.8-2.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/kernel-2.6.40.8-2.fc15 kernel-2.6.40.8-4.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/kernel-2.6.40.8-4.fc15 Hello. I have Lenovo Thinkpad X220 and I have some issues with the cardreader. My cardreader is Ricoh Co Ltd MMC/SD Host Controller (rev 07), not rev 04 as others have on this laptop. This issue can be fixed for me using debug_quirks=0x40 or a bunch of setpci's mentioned in comment #8. In the first message Pavel can mount the card but if I put a card to the cardreader I got: mmc0: error -110 whilst initialising SD card or mmc0: error -84 whilst initialising SD card I hope we'll see the fix soon. Sorry for my bad English. Oh, sorry, just found that my cardreader is e822 with ID [1180:e822], not e823. Should I make another bug and not to write here? kernel-2.6.41.1-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/kernel-2.6.41.1-1.fc15 kernel-2.6.41.1-1.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. |