public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: Alex Samoutin <samoutin@hotbox.ru>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Fw: corrupt my NAND flash device
Date: Fri, 25 Apr 2003 15:01:34 +0200	[thread overview]
Message-ID: <20030425130134.GC27144@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <000d01c30a8e$ebd08150$1a00a8c0@itc.intrinsyc.com>

On Thu, 24 April 2003 11:25:43 -0700, Alex Samoutin wrote:
> 
> It is nothing wrong with JFFS2 itself. It was a low level problem.  For
> example we have empty flash with 100 erase blocks. We wrote File1 and
> occupied blocks 0-39. Then we deleted this file and start writing File2.
> This new file will be written to blocks 40-79. And now we have two processes
> working.. Process one (GC) is erasing block 0-39, process 2 is writing new
> file to blocks 40-79. Both of them are working at the same time (at least in
> case of JFFS2). I sow it. From blocks point of view all Ok. One set of
> blocks is erasing and absolutely different set of block is writing. But we
> have only one NAND chip. When we want to write something to NAND we have to
> send writing command, then provide some command parameters (like address)
> and then send data itself. And if locking mechanism doesn't work properly we
> can get situation when , for example, one process send command to write and
> then second process start sending something to chip which will be
> interpreted as address for writing but this address will be incorrect, of
> cause. As I mentioned NAND driver (nand.c) has lock mechanism to prevent
> this situation. But it doesn't work in my case. I don't know why - the code
> look Ok. A added some additional locks and it solved this problem.

Ah, sorry for me misinterpreting you original post. I thought, you had
found a problem in yaffs.

Do you have a patch for this? Even if it is ugly and slow, correct
code is better than broken one.

Jörn

-- 
But this is not to say that the main benefit of Linux and other GPL
software is lower-cost. Control is the main benefit--cost is secondary.
-- Bruce Perens

  reply	other threads:[~2003-04-25 13:01 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-22 20:03 Fw: corrupt my NAND flash device Alex Samoutin
2003-04-22 20:26 ` Jörn Engel
2003-04-22 20:59   ` Jörn Engel
2003-04-23 20:45 ` Charles Manning
2003-04-24 18:25   ` Alex Samoutin
2003-04-25 13:01     ` Jörn Engel [this message]
2003-04-25 22:23       ` Alex Samoutin
2003-04-25 23:10         ` Thayne Harbaugh
2003-04-26 10:23           ` Jörn Engel
2003-04-28 15:02             ` Thayne Harbaugh
2003-04-28 21:14               ` Charles Manning
2003-04-28 22:59                 ` Thomas Gleixner
2003-04-29  1:23                   ` Charles Manning
2003-04-29  8:03                     ` Thomas Gleixner
2003-04-29 19:37                       ` Charles Manning
2003-04-29 22:04                         ` Thomas Gleixner
2003-04-30 16:54           ` Alex Samoutin
2003-04-30 18:13             ` Thomas Gleixner
2003-07-02 17:43               ` Alex Samoutin
2003-07-02 17:53                 ` Jasmine Strong
2003-07-02 20:10                   ` Alex Samoutin
2003-07-04  1:43                   ` David Woodhouse
2003-07-03  5:44                 ` Stephan Linke
2003-07-05 15:15                   ` Thomas Gleixner
2003-07-07  9:27                     ` Stephan Linke
2003-07-07 13:48                       ` Thomas Gleixner
2003-07-08  7:50                         ` David Woodhouse
2003-04-26 10:18         ` Jörn Engel
2003-04-28  8:57           ` Thomas Gleixner
  -- strict thread matches above, loose matches on Subject: below --
2003-08-18 11:36 Eugeny Mints
2003-04-22  7:05 Paul Wong

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=20030425130134.GC27144@wohnheim.fh-wedel.de \
    --to=joern@wohnheim.fh-wedel.de \
    --cc=linux-mtd@lists.infradead.org \
    --cc=samoutin@hotbox.ru \
    /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