Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755473AbbGUOnI (ORCPT ); Tue, 21 Jul 2015 10:43:08 -0400 Received: from mailout.micron.com ([137.201.242.129]:19280 "EHLO mailout.micron.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753084AbbGUOnG convert rfc822-to-8bit (ORCPT ); Tue, 21 Jul 2015 10:43:06 -0400 From: =?iso-2022-jp?B?QmVhbiBIdW8gGyRCcDlJTElMGyhCIChiZWFuaHVvKQ==?= To: "linux-kernel@vger.kernel.org" , "linux-mtd@lists.infradead.org" Subject: enhance ONFI table reliability/stable Thread-Topic: enhance ONFI table reliability/stable Thread-Index: AdDDw3oyFBeoa2IyQty2ejBtWPMbmQ== Date: Tue, 21 Jul 2015 14:42:34 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.167.84.5] X-TM-AS-Product-Ver: SMEX-11.0.0.4179-8.000.1202-21692.003 X-TM-AS-Result: No--1.616400-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No x-mt-checkinternalsenderrule: True Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1064 Lines: 24 Hi, Recently, I faced some case about ONFI table reliability, now it used CRC. If there is bit flips in ONFI parameter pages, parameter backup page will be taken. For latest linux,default read three copys. chip->cmdfunc(mtd, NAND_CMD_PARAM, 0, -1); for (i = 0; i < 3; i++) { for (j = 0; j < sizeof(*p); j++) ((uint8_t *)p)[j] = chip->read_byte(mtd); if (onfi_crc16(ONFI_CRC_BASE, (uint8_t *)p, 254) == le16_to_cpu(p->crc)) { break; } } However ,with technoogy improvement,for TLC and new generatin MLC,I think, three copys of Parameter tables is not powerful enough.my question is that if there is a good method to protect and corrent parameter page. For example,we can use linux software BCH ecc. Any suggections and input be welcomed,if you having any concerns about this,don't free tell me. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/