Linux MIPS Architecture development
 help / color / mirror / Atom feed
* kernel panic in cfi
@ 2005-09-20 21:02 Jan Pedersen
  2005-09-20 21:02 ` Jan Pedersen
  2005-09-20 21:28 ` Jan Pedersen
  0 siblings, 2 replies; 4+ messages in thread
From: Jan Pedersen @ 2005-09-20 21:02 UTC (permalink / raw)
  To: linux-mips

For any of you who are using flash with the cfi driver, this may be of your
interrest:

When using the cfi (common flash interface) driver, every word written to
the flash chips is followed by a operation complete poll. This poll is
intended to have a timeout of 1 ms. However this timeout is calculated by
HZ/1000, which happends to be 0 because HZ < 1000. The result of this is
that there will be just one poll for operation complete. If this single poll
fails, the kernel panics. I have not had the time to investigate this panic
further. Instead, I have made a workaround that increases this timeout to HZ
(1 second). 1 second is far more than needed, but is preferred over a panic.

The patch is available at http://www.jp-embedded.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-09-20 21:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-20 21:02 kernel panic in cfi Jan Pedersen
2005-09-20 21:02 ` Jan Pedersen
2005-09-20 21:28 ` Jan Pedersen
2005-09-20 21:28   ` Jan Pedersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox