Bug 9024

Summary: Device nodes not created by tifm module so can't mount detected devices
Product: Drivers Reporter: Pablo Yaggi (pyaggi)
Component: Flash/Memory Technology DevicesAssignee: David Woodhouse (dwmw2)
Status: RESOLVED OBSOLETE    
Severity: normal CC: akkzilla, alan, kmaraas, patrick, protasnb, yyyeer.bo
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.23-0.rc6 Subsystem:
Regression: No Bisected commit-id:

Description Pablo Yaggi 2007-09-15 08:49:59 UTC
Distribution: Mandriva Cooker
Hardware Environment: Sony Vaio VGN-FZ19N
Problem Description:
I'm trying tifm in a new vaio VGN-FZ19VN, and this 
still happen in kernel 2.6.23-0.rc6, i insert two cards
one Stick and one SD and device nodes are not created.
(Firewire device is not recognized either but thats another
issue...)

dmesg |grep tifm (output)
tifm_core: MemoryStick card detected in socket 0:0
tifm_core: MMC/SD card detected in socket 0:1

lspci -xxx (output)

09:03.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
00: 4c 10 39 80 07 00 10 02 00 00 07 06 20 a8 82 00
10: 00 00 30 fc a0 00 00 02 09 0a 0d b0 00 00 00 88
20: 00 f0 ff 8b 00 00 00 90 00 f0 ff 93 00 60 00 00
30: fc 60 00 00 00 64 00 00 fc 64 00 00 05 01 c0 05
40: 4d 10 05 90 01 00 00 00 00 00 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 60 d0 44 08 19 00 c0 84 00 00 0f 00 22 1b 12 01
90: c0 00 64 60 00 00 00 00 00 00 00 00 00 00 00 00
a0: 01 00 12 fe 00 00 c0 00 00 00 00 00 00 00 00 00
b0: 00 00 00 08 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 27 1e 56 3e 09 98 01 72 00 00 00 00 00 00 00 00

09:03.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller
00: 4c 10 3a 80 16 01 10 02 00 10 00 0c 10 20 80 00
10: 00 20 30 fc 00 40 30 fc 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 4d 10 05 90
30: 00 00 00 00 44 00 00 00 00 00 00 00 0a 02 03 04
40: 00 00 00 00 01 00 42 fe 00 80 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 00
f0: 00 88 00 00 82 10 00 00 4d 10 05 90 00 00 00 00

09:03.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)
00: 4c 10 3b 80 06 01 10 02 00 00 80 01 10 39 80 00
10: 00 10 30 fc 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 4d 10 05 90
30: 00 00 00 00 44 00 00 00 00 00 00 00 07 03 07 04
40: 00 00 00 00 01 00 02 7e 00 00 00 00 44 00 00 00
50: 4d 10 05 90 05 01 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


lspci -vvnn (output)

09:03.0 CardBus bridge [0607]: Texas Instruments PCIxx12 Cardbus Controller [104c:8039]
	Subsystem: Sony Corporation Unknown device [104d:9005]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 168, Cache Line Size: 128 bytes
	Interrupt: pin A routed to IRQ 17
	Region 0: Memory at fc300000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=09, secondary=0a, subordinate=0d, sec-latency=176
	Memory window 0: 88000000-8bfff000 (prefetchable)
	Memory window 1: 90000000-93fff000
	I/O window 0: 00006000-000060ff
	I/O window 1: 00006400-000064ff
	BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ PostWrite+
	16-bit legacy interface ports at 0001

09:03.1 FireWire (IEEE 1394) [0c00]: Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller [104c:803a] (prog-if 10 [OHCI])
	Subsystem: Sony Corporation Unknown device [104d:9005]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 32 (750ns min, 1000ns max), Cache Line Size: 64 bytes
	Interrupt: pin B routed to IRQ 16
	Region 0: Memory at fc302000 (32-bit, non-prefetchable) [size=2K]
	Region 1: Memory at fc304000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [44] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=55mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME+

09:03.2 Mass storage controller [0180]: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD) [104c:803b]
	Subsystem: Sony Corporation Unknown device [104d:9005]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 57 (1750ns min, 1000ns max), Cache Line Size: 64 bytes
	Interrupt: pin C routed to IRQ 18
	Region 0: Memory at fc301000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [44] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Comment 1 Pablo Yaggi 2007-09-15 16:02:50 UTC
Sorry i reallize /dev/mmcblk??? are being created, but not inmediatly, after a while whence i introduced the card /dev/mmcblk0 show up, then after some time /dev/mmcblk0p1 did, and after a while /dev/mmcblk0p2 did, and so on to p3.
I think thats because i have 3 partitions in my card, but when i try to do fdisk /dev/mmcblk0 i get this:

Unable to read /dev/mmcblk0

and

dmesg |tail -10
mmcblk0: error 1 transferring data
end_request: I/O error, dev mmcblk0, sector 0
Buffer I/O error on device mmcblk0, logical block 0
end_request: I/O error, dev mmcblk0, sector 8
Buffer I/O error on device mmcblk0, logical block 1
end_request: I/O error, dev mmcblk0, sector 16
Buffer I/O error on device mmcblk0, logical block 2
end_request: I/O error, dev mmcblk0, sector 24
mmcblk0: error 1 transferring data
end_request: I/O error, dev mmcblk0, sector 0

Inserting a 128Mb MemoryStick (non pro) creates no device nodes at
all.
Comment 2 Pablo Yaggi 2007-09-22 08:59:28 UTC
I tried a 1G Memory Stick Pro and it didn't work either
Comment 3 Patrick 2007-12-24 20:13:18 UTC
Same problem on a lenovo X61 with the kernel version 2.6.24-2-generic (Ubuntu). With a 8Gb SDHC card.
Comment 4 Patrick 2007-12-24 20:38:21 UTC
It's working now even after mounting/umounting the SD card several time also after I reboot. I will try to reproduce the problem and post more details.
Comment 5 Natalie Protasevich 2008-02-11 20:17:25 UTC
Patric, any update on this problem please. Is this still working for you now?
Comment 6 Kjartan Maraas 2008-12-03 12:58:44 UTC
I've filed a similar bug about device nodes not being created for fedora earlier this year and still see it with their latest kernel which is 2.6.28-rc6+. Here's the link:

https://bugzilla.redhat.com/show_bug.cgi?id=441218

Description of problem:

My SD Card reader doesn't work other than printing a line in the log every time
I insert/remove a card:

Apr  7 09:58:58 localhost kernel: tifm0 : demand removing card from socket 0:1
Apr  7 09:58:59 localhost kernel: tifm_core: MMC/SD card detected in socket 0:1

So it looks like /dev/mmcblk0p1 or an equivalent should be created when the card
is inserted?

lspci output:

04:06.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader
(SD/MMC/MS/MS PRO/xD)
	Subsystem: Hewlett-Packard Company Unknown device 30ad
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR- INTx-
	Latency: 64 (1750ns min, 1000ns max), Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 18
	Region 0: Memory at f4201000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [44] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME+
	Kernel driver in use: tifm_7xx1
	Kernel modules: tifm_7xx1
00: 4c 10 3b 80 06 00 10 02 00 00 80 01 10 40 80 00
10: 00 10 20 f4 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 3c 10 ad 30
30: 00 00 00 00 44 00 00 00 00 00 00 00 0b 01 07 04
40: 00 00 00 00 01 00 02 7e 00 80 00 00 00 00 00 00
50: 3c 10 ad 30 05 01 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00