DOC2000 - 96MB on a 650Mhz PIII - cannot doc_read_ecc
Pete Skelly
pete.skelly at astanetworks.com
Fri Mar 2 03:38:10 EST 2001
Looks like timing is in fact the problem. I multiplied the delay
in the routine DoC_Delay by 3, making this call last as long
as if my machine were a 200Mhz machine (which is probably closer to
what the Doc2000 drivers we're developed on), and was able to
successfully use nflt on the drive.
Although it looks like M-Systems doesn't publish the actual delays required,
they did indicate that there were in fact delays that had to be taken into
account.
Any idea on the real numbers for the delays. If one knew that, one could
write
proc-speed independent delay code (err, not sure whether I'm volunteering or
not)
Also, could this be related to some of the problems people are seeing with
larger
modules? Do the larger modules have greater delays for sending commands to
the chip,
or are they simply found in faster systems?
p
-----Original Message-----
From: Pete Skelly [mailto:pete.skelly at astanetworks.com]
Sent: Thursday, March 01, 2001 4:59 PM
To: 'mtd at infradead.org'
Subject: DOC2000 - 96MB on a 650Mhz PIII - cannot doc_read_ecc
I've been having trouble getting my 96MB DOC device to run on my system,
and have noticed a few others having similar problems in the archive.
I'm using the mtd drivers from the 2.4.1 kernel (no mods)
I threw a kernel debugger on the system, and set a breakpoint where the ECC
status
is read, and it returned 0x8a, 0x8e, 0x8a during the 3 reads of the ECC
status,
hence a failure.
Next, I stepped through the entire doc_read_ecc process, and reading the
ecc status returned 0x8a, 0x8e, 0x0a, a success.
This implies that there are some timing issues with either the larger DOC
chips
that are not addressed in the code, or there are timing issues caused by the
fact
that I'm running a PIII -650 system, which is a bit faster than most
embedded systems.
Anyone else come across anything like this. I'm going to do some more
sniffing around,
to see if I can determine exactly which 'Delay' is not long enough, but if
anyone has any
technical info on what timing issues might be suspect, your help would be
appreciated.
p
To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org
To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org
More information about the linux-mtd
mailing list