From: "Jan Pedersen" <jan.pedersen@glaze.dk>
To: "'Jan Pedersen'" <jan.pedersen@glaze.dk>, <linux-mips@linux-mips.org>
Subject: RE: kernel panic in cfi
Date: Tue, 20 Sep 2005 23:28:16 +0200 [thread overview]
Message-ID: <20050920212815.9B33D37646C@rocket.glaze.se> (raw)
In-Reply-To: <20050920210204.8AE6537646C@rocket.glaze.se>
[-- Attachment #1: Type: text/plain, Size: 796 bytes --]
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 #2: cfi_workaround-jp-2.4.31-1.0.tar.gz --]
[-- Type: application/octet-stream, Size: 1393 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: "Jan Pedersen" <jan.pedersen@glaze.dk>
To: 'Jan Pedersen' <jan.pedersen@glaze.dk>, linux-mips@linux-mips.org
Subject: RE: kernel panic in cfi
Date: Tue, 20 Sep 2005 23:28:16 +0200 [thread overview]
Message-ID: <20050920212815.9B33D37646C@rocket.glaze.se> (raw)
Message-ID: <20050920212816.DJKM8NuFGiScSugg7ZSvqsPciKOQIwABJNhFRiPVuK0@z> (raw)
In-Reply-To: <20050920210204.8AE6537646C@rocket.glaze.se>
[-- Attachment #1: Type: text/plain, Size: 796 bytes --]
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 #2: cfi_workaround-jp-2.4.31-1.0.tar.gz --]
[-- Type: application/octet-stream, Size: 1393 bytes --]
next prev parent reply other threads:[~2005-09-20 21:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2005-09-20 21:28 ` Jan Pedersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050920212815.9B33D37646C@rocket.glaze.se \
--to=jan.pedersen@glaze.dk \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox