linux-mips
[Top] [All Lists]

RE: kernel panic in cfi

To: "'Jan Pedersen'" <jan.pedersen@glaze.dk>, <linux-mips@linux-mips.org>
Subject: RE: kernel panic in cfi
From: "Jan Pedersen" <jan.pedersen@glaze.dk>
Date: Tue, 20 Sep 2005 23:28:16 +0200
In-reply-to: <20050920210204.8AE6537646C@rocket.glaze.se>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Thread-index: AcW+Jo3MWUJuk0tiTkq8LQW1898n2gAA2ILA
Patch attached.

> 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.

Attachment: cfi_workaround-jp-2.4.31-1.0.tar.gz
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>