Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 369503 - sdhci-pci is broken on kernels kernel > 2.6.36 (2.6.37-gentoo-r4, 2.6.38-gentoo-r4, 2.6.37.6)
Summary: sdhci-pci is broken on kernels kernel > 2.6.36 (2.6.37-gentoo-r4, 2.6.38-gent...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-31 13:15 UTC by vm666
Modified: 2011-12-11 18:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg from 2.6.38 and 2.6.38 kernel w/ MMC debug (dmesg.tar.bz2,111.01 KB, application/octet-stream)
2011-07-13 21:15 UTC, vm666
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vm666 2011-05-31 13:15:06 UTC
My HP Pavilion DV7 2170EF laptop has a JMicron SD reader. Until kernel 2.6.36-gentoo-r8, everything was fine. 
Since 2.6.37-gentoo-r4, it returns invalid data. If the SD card is not write protected, the FAT file system is corrupted on umount most of the time. The problem remains on 2.6.38-gentoo-r4 or vanilla kernel 2.6.37.6.

lspci -v gives this:

06:00.1 System peripheral: JMicron Technology Corp. SD/MMC Host Controller
Subsystem: Hewlett-Packard Company Device 3624
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at d6000b00 (32-bit, non-prefetchable) [size=256]
Capabilities: [a4] Power Management version 3
Capabilities: [80] Express Endpoint, MSI 00
Capabilities: [94] MSI: Enable- Count=1/1 Maskable- 64bit-
Kernel driver in use: sdhci-pci
Kernel modules: sdhci-pci

06:00.2 SD Host controller: JMicron Technology Corp. Standard SD Host Controller (prog-if 01)
Subsystem: Hewlett-Packard Company Device 3624
Flags: fast devsel, IRQ 16
Memory at d6000a00 (32-bit, non-prefetchable) [size=256]
Capabilities: [a4] Power Management version 3
Capabilities: [80] Express Endpoint, MSI 00
Capabilities: [94] MSI: Enable- Count=1/1 Maskable- 64bit-
Kernel modules: sdhci-pci

See https://forums.gentoo.org/viewtopic-t-878603-highlight-.html
A similar problem is reported on an Acer laptop with a JMicron SD/MMC controller too.
Comment 1 vm666 2011-06-06 01:14:03 UTC
Broken on 2.6.39 too.
What data can I provide to help debugging?
Comment 2 Mike Pagano gentoo-dev 2011-06-06 16:25:21 UTC
We would probably like to see dmesg output during mount and unmount on both a working and non working kernel
Comment 3 vm666 2011-07-13 21:15:32 UTC
Created attachment 280023 [details]
dmesg from 2.6.38 and 2.6.38 kernel w/ MMC debug

I recompiled two kernels with the MMC debug option on.
I plugged a SD card, mounted it (read only), ran ls -R on it, then a sum on the files, then unmounted it.
The sum were different, of course, as the driver is broken in 2.6.38.
Comment 4 vm666 2011-07-19 21:47:26 UTC
2.6.39 appears broken too.
Comment 5 vm666 2011-12-05 17:50:36 UTC
The driver appears to be fixed in 3.0.x kernels.
Comment 6 Mike Pagano gentoo-dev 2011-12-11 18:50:42 UTC
That's good news. We will not be releasing any fixes for <2.6.39, so I am closing as fixed.