Weird MMC errors: 1 of 2 - bad ocr value

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alex Dubov
Date: Wednesday, March 14, 2007 - 7:44 am

Recently, I've obtained a bug report concerning an MMC card. Two problems are described, both
sporadic.
Problem 1: illegal ocr value is returned. You may notice, in the non-working case, obviously
incorrect ocr value (0xffffffff) is returned. The card won't work after this, unless reinserted.
What, to your opinion, shall we do about it?

---- Normal case - everything works: ----------
Mar 14 09:15:39 Tirion kernel: mmc0: starting CMD1 arg 00300000 flags 00000061
Mar 14 09:15:39 Tirion kernel: tifm_sd tifm_sd0:1: executing opcode 0x1, arg: 0x300000, mask: 
0x1340
Mar 14 09:15:39 Tirion kernel: tifm_sd tifm_sd0:1: host event: host_status 1001, flags 0
Mar 14 09:15:39 Tirion kernel: mmc0: req done (CMD1): 0/0/0: 00ff8000 00000000 00000000 00000000
Mar 14 09:15:39 Tirion kernel: mmc0: starting CMD1 arg 00300000 flags 00000061
Mar 14 09:15:39 Tirion kernel: tifm_sd tifm_sd0:1: executing opcode 0x1, arg: 0x300000, mask: 
0x1340
Mar 14 09:15:39 Tirion kernel: tifm_sd tifm_sd0:1: host event: host_status 1001, flags 0
Mar 14 09:15:39 Tirion kernel: mmc0: req done (CMD1): 0/0/0: 00ff8000 00000000 00000000 00000000
Mar 14 09:15:39 Tirion kernel: mmc0: starting CMD1 arg 00300000 flags 00000061
Mar 14 09:15:39 Tirion kernel: tifm_sd tifm_sd0:1: executing opcode 0x1, arg: 0x300000, mask: 
0x1340
Mar 14 09:15:39 Tirion kernel: tifm_sd tifm_sd0:1: host event: host_status 1, flags 0
Mar 14 09:15:39 Tirion kernel: mmc0: req done (CMD1): 0/0/0: 80ff8000 00000000 00000000 00000000
Mar 14 09:15:39 Tirion kernel: mmc0: starting CMD2 arg 00000000 flags 00000067
Mar 14 09:15:39 Tirion kernel: tifm_sd tifm_sd0:1: executing opcode 0x2, arg: 0x0, mask: 0x1240
Mar 14 09:15:39 Tirion kernel: tifm_sd tifm_sd0:1: host event: host_status 1, flags 0
Mar 14 09:15:39 Tirion kernel: mmc0: req done (CMD2): 0/0/0: 06000131 364d2020 20011d43 332479ad
-------------------


------- Error case: OCR value is bad, card is left in bad state and won't work: ---------
Mar 14 09:15:24 Tirion kernel: mmc0: starting CMD1 arg 00300000 flags 00000061
Mar 14 09:15:24 Tirion kernel: tifm_sd tifm_sd0:1: executing opcode 0x1, arg: 0x300000, mask: 
0x1340
Mar 14 09:15:24 Tirion kernel: tifm_sd tifm_sd0:1: host event: host_status 1001, flags 0
Mar 14 09:15:24 Tirion kernel: mmc0: req done (CMD1): 0/0/0: 00ff8000 00000000 00000000 00000000
Mar 14 09:15:24 Tirion kernel: mmc0: starting CMD1 arg 00300000 flags 00000061
Mar 14 09:15:24 Tirion kernel: tifm_sd tifm_sd0:1: executing opcode 0x1, arg: 0x300000, mask: 
0x1340
Mar 14 09:15:24 Tirion kernel: tifm_sd tifm_sd0:1: host event: host_status 1, flags 0
Mar 14 09:15:24 Tirion kernel: mmc0: req done (CMD1): 0/0/0: ffffffff 00000000 00000000 00000000
Mar 14 09:15:24 Tirion kernel: mmc0: starting CMD2 arg 00000000 flags 00000067
Mar 14 09:15:24 Tirion kernel: tifm_sd tifm_sd0:1: executing opcode 0x2, arg: 0x0, mask: 0x1240
Mar 14 09:15:24 Tirion kernel: tifm_sd tifm_sd0:1: host event: host_status 80, flags 0
Mar 14 09:15:24 Tirion kernel: mmc0: req done (CMD2): 1/0/0: 00000000 00000000 00000000 00000000
---------------------


 
____________________________________________________________________________________
Don't get soaked.  Take a quick peek at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6.20] tifm_7xx1/mmc not working, Andreas Steinmetz, (Wed Feb 7, 3:20 pm)
Re: [2.6.20] tifm_7xx1/mmc not working, Pierre Ossman, (Wed Feb 7, 10:59 pm)
Re: [2.6.20] tifm_7xx1/mmc not working, Alex Dubov, (Thu Feb 8, 4:35 pm)
Re: [2.6.20] tifm_7xx1/mmc not working, Andreas Steinmetz, (Fri Feb 9, 5:27 am)
Recent and not-so problems with tifm_sd driver, Alex Dubov, (Fri Feb 9, 8:14 am)
Re: Recent and not-so problems with tifm_sd driver, Pierre Ossman, (Fri Feb 9, 12:10 pm)
Re: Recent and not-so problems with tifm_sd driver, Alex Dubov, (Sat Feb 10, 9:47 pm)
Re: Recent and not-so problems with tifm_sd driver, Pierre Ossman, (Sun Feb 11, 11:15 am)
Re: Recent and not-so problems with tifm_sd driver, Alex Dubov, (Mon Feb 12, 4:53 am)
Re: Recent and not-so problems with tifm_sd driver - one more, Andreas Steinmetz, (Mon Feb 12, 6:21 am)
Re: Recent and not-so problems with tifm_sd driver, Pierre Ossman, (Mon Feb 12, 6:49 am)
Re: Recent and not-so problems with tifm_sd driver, Alex Dubov, (Mon Feb 12, 5:44 pm)
Re: Recent and not-so problems with tifm_sd driver, Alex Dubov, (Tue Feb 13, 7:40 am)
[mmc] incorrect behavior on resume, Alex Dubov, (Sat Feb 17, 8:16 am)
Re: Recent and not-so problems with tifm_sd driver, Pierre Ossman, (Sat Feb 17, 4:14 pm)
Re: [mmc] incorrect behavior on resume, Pierre Ossman, (Sat Feb 17, 4:35 pm)
Re: Recent and not-so problems with tifm_sd driver, Pierre Ossman, (Sat Feb 17, 4:51 pm)
Re: [mmc] incorrect behavior on resume, Pavel Machek, (Sat Feb 17, 5:29 pm)
Re: [mmc] incorrect behavior on resume, Alex Dubov, (Sat Feb 17, 6:46 pm)
Re: Recent and not-so problems with tifm_sd driver, Alex Dubov, (Sat Feb 17, 9:59 pm)
Re: [mmc] incorrect behavior on resume, Russell King, (Sat Feb 17, 11:53 pm)
Re: Recent and not-so problems with tifm_sd driver, Pierre Ossman, (Sun Feb 18, 1:13 am)
Re: [mmc] incorrect behavior on resume, Alex Dubov, (Sun Feb 18, 5:18 am)
Re: Recent and not-so problems with tifm_sd driver, Alex Dubov, (Sun Feb 18, 7:19 am)
Re: Recent and not-so problems with tifm_sd driver, Pierre Ossman, (Sun Feb 18, 8:10 am)
Re: Recent and not-so problems with tifm_sd driver, Alex Dubov, (Sun Feb 18, 4:48 pm)
Re: Recent and not-so problems with tifm_sd driver, Pierre Ossman, (Mon Feb 19, 12:06 am)
Re: Recent and not-so problems with tifm_sd driver, Alex Dubov, (Mon Feb 19, 5:09 am)
Re: Recent and not-so problems with tifm_sd driver, Pierre Ossman, (Mon Feb 19, 5:34 am)
Re: Recent and not-so problems with tifm_sd driver, Alex Dubov, (Mon Feb 19, 6:30 pm)
Re: Recent and not-so problems with tifm_sd driver, Pierre Ossman, (Tue Feb 20, 12:03 am)
Weird MMC errors: 1 of 2 - bad ocr value, Alex Dubov, (Wed Mar 14, 7:44 am)
Re: Weird MMC errors: 1 of 2 - bad ocr value, Pierre Ossman, (Sun Apr 8, 12:41 pm)