From neversetsun@ustc.edu Fri Mar 28 07:00:07 2008
Received: from smtp.ustc.edu.cn ([202.38.64.16] helo=ustc.edu.cn)
	by stoneboat.aleph1.co.uk with smtp (Exim 4.63)
	(envelope-from <neversetsun@ustc.edu>) id 1Jf8Z6-0001F9-GH
	for yaffs@lists.aleph1.co.uk; Fri, 28 Mar 2008 07:00:04 +0000
Received: (eyou send program); Fri, 28 Mar 2008 15:00:07 +0800
Message-ID: <406687607.04700@ustc.edu.cn>
X-EYOUMAIL-SMTPAUTH: shizheng@mail.ustc.edu.cn
Received: from unknown (HELO [127.0.0.1]) (211.86.159.143)
	by 202.38.64.8 with SMTP; Fri, 28 Mar 2008 15:00:07 +0800
Message-ID: <47EC975F.60805@ustc.edu>
Date: Fri, 28 Mar 2008 14:59:43 +0800
From: shizheng <neversetsun@ustc.edu>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
To: yaffs@lists.aleph1.co.uk
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: 7bit
X-SA-Exim-Connect-IP: 202.38.64.16
X-SA-Exim-Mail-From: neversetsun@ustc.edu
X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on
	stoneboat.aleph1.co.uk
X-Spam-Level: 
X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,
	MSGID_FROM_MTA_HEADER,SPF_HELO_PASS autolearn=no version=3.2.3
X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000)
X-SA-Exim-Scanned: Yes (on stoneboat.aleph1.co.uk)
Cc: Charles Manning <manningc2@actrix.gen.nz>
Subject: [Yaffs] Questions about the situations that need
	yaffs_HandleChunkError
X-BeenThere: yaffs@lists.aleph1.co.uk
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Discussion of YAFFS NAND flash filesystem <yaffs.lists.aleph1.co.uk>
List-Unsubscribe: <http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs>, 
	<mailto:yaffs-request@lists.aleph1.co.uk?subject=unsubscribe>
List-Archive: <http://lists.aleph1.co.uk/lurker/list/yaffs.html>
List-Post: <mailto:yaffs@lists.aleph1.co.uk>
List-Help: <mailto:yaffs-request@lists.aleph1.co.uk?subject=help>
List-Subscribe: <http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs>,
	<mailto:yaffs-request@lists.aleph1.co.uk?subject=subscribe>
X-List-Received-Date: Fri, 28 Mar 2008 07:00:08 -0000

Hi:
In yaffs_ReadCHunkWithTagsFromNAND, yaffs_HandleChunkError is
called when (tags && tags->eccResult > YAFFS_ECC_RESULT_NO_ERROR).
But if data is read with ecc fixed but tags is read with
YAFFS_ECC_RESULT_NO_ERROR, there is no handling.

There maybe something wrong with page cells of NAND chip such
as a bit flip. I think the block where such a page lives
should also be gcPrioritised, since when a second bit flip occurs,
the ecc mechanism won't fix the error any more.

Or the data bit-flip is not as important as a tags bit-flip?


best wishes, shizheng




