Created attachment 64902 [details]
Hello Kernel Hackers,
when inserting an sd card in the internal slot I get IO errors, when trying to partition with gparted I got a kernel panic.
lspci reports the sd card reader as
0d:00.0 System peripheral: Ricoh Co Ltd Device e823 (rev 05)
attached you find the log generated.
From which kernel version is this a regression? Was 2.6.39 OK?
It is a regression of the 3.0.0-rc6-mainline Kernel. With the current Kernel 2.6.39 of Arch Linux I've had no Problems.
Thanks for the report.
Does reverting the below commit help? It added some PCI quirks for your chip, and was merged in 3.0-rc5:
If it doesn't help, I can't think of anything else obvious -- it would be great if you could try a bisect between 2.6.39 final and 3.0-rc6.
Oh, yeah -- you could also just disable CONFIG_MMC_RICOH_MMC, assuming it is currently =y on your system. Does that help?
See also this Ubuntu thread:
first of all thanks for your help.
I'm finish with some of your tips:
The tip of comment #4 doesen't work. I've got the error message that the config wasn't able to load. Also the cardreader doesn't work.
The other thing I've done was the bisection thing. The result is this commit:
a3c7778f8153b9e4eceea6738973280b9e63c618 is the first bad commit
Author: Andrei Warkentin <firstname.lastname@example.org>
Date: Mon Apr 11 16:13:42 2011 -0500
mmc: sdhci: R1B command handling + MMC_CAP_ERASE.
ERASE command needs R1B response, so fix R1B-type command
handling for SDHCI controller. For non-DAT commands using a busy
response, the cmd->cmd_timeout_ms (in ms) field is used for timeout
Based on patch by Chuanxiao Dong <email@example.com>
Signed-off-by: Andrei Warkentin <firstname.lastname@example.org>
Signed-off-by: Chris Ball <email@example.com>
:040000 040000 900ad3058ed393172ff7e68a2240a5404c28bfbb bb4a8b4bd336b0a53b8f90ebc37d16929e5ccfd4 M drivers
I hope I can help to resolve this problem.
Please could you retry with 3.1-rc1? We've added a patch to slow down the MMC clock rate on your chipset, which has fixed IO errors on other machines.
.. and if you want to try applying the patch separately, it is:
Created attachment 68302 [details]
On Kernel 3.1-rc1 the reader doesn't work at all. See the attached log for details.
Created attachment 68662 [details]
kernelpanic after login
now I've got another kernelpanic from the cardreader, but today it was directly after login. A card was in the readed and it tried to mount it I think. I was the first time.
I'm using the kernel 3.0-Arch.
On Sunday, August 28, 2011, Chris Ball wrote:
> Hi Rafael,
> On Sun, Aug 28 2011, Rafael J. Wysocki wrote:
> > This message has been generated automatically as a part of a report
> > of regressions introduced between 2.6.39 and 3.0.
> > The following bug entry is on the current list of known regressions
> > introduced between 2.6.39 and 3.0. Please verify if it still should
> > be listed and let the tracking team know (either way).
> > Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=38922
> > Subject : Lenovo T420 (Sandy Bridge) Crashes on SD Card gpt partition
> > writing and io errors on insert
> > Submitter : Peter Vollmer <firstname.lastname@example.org>
> > Date : 2011-07-07 17:33 (53 days old)
> Yes, still present.
Bug #42568 - ThinkPad T520 I/O errors during accessing SD card with internal reader
might be related, but I think I had this with 2.6.39 as well. I am not completely sure tough, since I didn´t note kernel version of older saved log excerpts.
If this is still present in modern kernels please update the bug