On Friday 15 June 2007, Pierre Ossman wrote:
> David Brownell wrote:
> > 
> > It starts "off", and needs to be turned "on".  Reasons to leave it
> > off include performance (I measured over 30% slower with CRCs on while
> > writing a 120+ MB SD partition), and of course the fact that the CRC
> > stuff is the very newest feature in the code (thanks Jan!), and is not
> > yet as trustworthy (viz. the intermittent bug I noted).
> > 
> 
> Any CRC bugs should surface rather quickly, so that shouldn't be an isse.

Surfaced != fixed.  The issue is that resolving them isn't all that
straightforward.  There's that one issue I surfaced, for example; it
turns up some nasty recovery issues wholly unrelated to CRCs.


> Performance might be though, but do people really feel that those 30% is worth
> losing CRC? I sure wouldn't feel comfortable with that.

If *you* want CRCs, then don't use the "use_crc=n" module option.
The stack is usable without them; most hardware isn't glitchey
enough to need them as more than a safety blanket.

Eventually, performance tuning should reduce that penalty, but
until then the option is certainly in the "must have" category
for at least developers.


> > That seems like a fantasy to me.  We don't know in advance how those
> > types will be defined (or if they even will be!), so there's no way
> > we can know whether or not new types will need to be defined.
> > ...
> 
> From experience, I'd say it's likely that formats are reused. Looking at 
> native
> mode, we originally had R1, R1b, R2 and R3. Yet we are now able to support R4
> through R7 using the components already defined.

You had to define new types, and update the code to use them.
It was nice of the spec writers to make that easy for you, but
you can't rely on that happening every time.


It seems like the new SDHC stuff has only one significant change
affecting SPI:  there are now two requests which return a status
byte plus four data bytes.  One uses the previously defined R3
response type.  The other uses a newly defined R7 type.

So it seems like that particular issue can be addressed by morphing
the current MMC_RSP_SPI_OCR code into an MMC_RSP_SPI_4BYTE type,
along the lines of what you were talking about.


> > Well, the R1_STATE bits of the mapping.
> > 
> 
> All mappings. The host driver shouldn't lie to the core.

Mappings aren't lies though.  It's more like translation:  you
can say something in French or in English, and get across the
same core meaning.  To get certain details you'll want the
original language ... but that doesn't mean the translation
was a lie.

That said, I'd be glad to eventually see those R1 mappings
begone, when the core stops needing them.

- Dave


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to