CN109947374B - Redundancy backup protection method for write errors in flash memory master control module - Google Patents
Redundancy backup protection method for write errors in flash memory master control module Download PDFInfo
- Publication number
- CN109947374B CN109947374B CN201910256477.9A CN201910256477A CN109947374B CN 109947374 B CN109947374 B CN 109947374B CN 201910256477 A CN201910256477 A CN 201910256477A CN 109947374 B CN109947374 B CN 109947374B
- Authority
- CN
- China
- Prior art keywords
- flash memory
- control module
- page data
- write
- redundancy backup
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
Abstract
The invention discloses a redundancy backup protection method for write errors in a flash memory main control module, which comprises the following steps: step one, configuring a redundancy backup manager in a flash memory main control module; step two, when the flash memory master control module writes page data, the redundancy backup manager calculates a plurality of written page data sets in real time and keeps the calculation result; step three, if the write-in instruction fails, the redundancy backup manager recalculates the page data written into the flash memory and the operation result of the step two to obtain the page data to be written which generates errors; and fourthly, the flash memory main control module re-initiates a writing instruction to the page data with the error, and writes the error page and the subsequent page. The invention provides a redundancy backup protection method for write errors in a flash memory main control module, which is used for configuring a redundancy backup manager, effectively saving write error processing time and improving the write efficiency of the flash memory main control module.
Description
Technical Field
The present invention relates to a storage technology, and in particular, to a redundancy backup protection method for write errors in a flash memory master control module.
Background
Flash memory is a non-volatile memory device that consists of blocks, each block being divided into a plurality of pages, each page having a plurality of columns combined.
As shown in fig. 3, when the conventional flash memory host device issues a read or write command operation, if a flash memory page write error occurs, the host fails to write data into one page and fails to write the entire write command, and at this time, the host needs to retry all the write commands and processes, and the host restarts the entire file write command and process, which wastes a lot of processing time and seriously affects the overall host operation performance.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a redundancy backup protection method for write errors in a flash memory main control module.
In order to achieve the purpose, the invention provides the following technical scheme: a redundancy backup protection method for write errors in a flash memory master control module comprises the following steps:
step one, configuring a redundancy backup manager in a flash memory master control module, and respectively connecting with a flash memory page data control register and a flash memory interface controller in the flash memory master control module;
step two, when the flash memory main control module writes page data, the redundancy backup manager performs operation on a plurality of written page data sets in real time and keeps operation results;
step three, if the write-in instruction fails, the redundancy backup manager recalculates the page data written into the flash memory and the operation result of the step two to obtain the page data to be written which generates errors;
step four: the flash memory main control module re-initiates a write-in instruction to the page data which generates the error, and writes in the error page and the subsequent pages.
Preferably, in the first step, a flash memory control physical layer and a plurality of flash memory storage components are further provided in the flash memory master control module, the flash memory control physical layer is connected to the flash memory interface controller, and the plurality of flash memory storage components are connected to the flash memory control physical layer.
Preferably, in the second step, the redundancy backup manager performs an exclusive or operation on the written page data sets.
Preferably, the recalculating in the third step is as follows: reading out the written page data again, and performing an exclusive-OR operation with the operation result of the second step in the redundancy backup manager to obtain the result as the page data with write error.
Compared with the prior art, the redundancy backup protection method for write errors in the flash memory main control module disclosed by the invention has the following beneficial effects: and configuring a redundancy backup manager, calculating the write-in page data in real time, and calculating the error page data after a write-in error occurs, so that the main control module can rewrite the calculated error page data without feeding back to the host to restart a complete write instruction, thereby greatly saving the processing time of the write instruction error at the flash memory end and effectively improving the write-in energy efficiency of the main control module.
Drawings
FIG. 1 is a block diagram of a memory master module in the prior art;
FIG. 2 is a block diagram of a memory master control module according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a write process of a memory master module in the prior art;
FIG. 4 is a schematic diagram of a write process under redundancy protection according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of step two in an embodiment of the present invention;
FIG. 6 is a schematic diagram of step three in an embodiment of the present invention;
FIG. 7 is a schematic representation of step four in an embodiment of the present invention;
FIG. 8 is a schematic diagram of step five in an embodiment of the present invention.
Detailed Description
The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the present invention.
As shown in fig. 2, the redundancy backup protection method for write errors in a flash memory master control module disclosed by the present invention is implemented based on a flash memory master control module, the flash memory master control module comprises a master control chip and a plurality of flash memory storage components, the master control chip comprises a flash memory storage control module and a flash memory control physical layer, the flash memory storage control module is connected with the plurality of flash memory storage components through the flash memory control physical layer to implement data write, the flash memory storage control module is respectively provided with a flash memory page data control register redundancy backup manager and a flash memory interface controller, wherein the redundancy backup manager is respectively connected with the flash memory page data control register and the flash memory interface controller, compared with the existing flash memory master control module (as shown in fig. 1), the flash memory master control module designed by the present invention is provided with a redundancy backup manager in many ways, and can perform xor operation on the written page data, meanwhile, when the write-in error occurs, the calculation is performed to obtain the write-in error page data.
As shown in fig. 4, the redundancy backup protection method for write errors in a flash memory master control module disclosed by the present invention specifically includes the following steps:
step one, a host end sends a write-in command to a flash memory main control module, and the flash memory main control module starts a write-in action;
step two, when the flash memory main control module writes page data, the redundancy back-up manager performs XOR operation on each page data in a plurality of written page data sets in real time and keeps an operation result;
if the write-in instruction fails, the redundancy backup manager performs exclusive OR operation on the page data written into the flash memory and the operation result of the step two to obtain page data to be written with errors;
step four: the flash memory main control module re-initiates a write-in instruction to the page data generating the error, and directly writes in the error page and the subsequent page;
step five: setting five pages of data as a group, clearing the content in the redundant backup manager after each group of page data is written, and restarting the calculation when the next group is written.
The invention is provided with the redundancy backup manager, the written page data is operated in real time, and the error page data is calculated after the written error occurs, so that the main control module can write again according to the calculated error page data without feeding back to the host to reinitiate the complete write command, thereby greatly saving the processing time of the written command error at the flash memory end and effectively improving the written energy efficiency of the main control module.
Therefore, the scope of the present invention should not be limited to the disclosure of the embodiments, but includes various alternatives and modifications without departing from the scope of the present invention, which is defined by the claims of the present patent application.
Claims (2)
1. A redundancy backup protection method for write errors in a flash memory master control module is characterized by comprising the following steps:
step one, configuring a redundancy backup manager in a flash memory master control module, and respectively connecting with a flash memory page data control register and a flash memory interface controller in the flash memory master control module;
step two, when the flash memory main control module writes page data, the redundancy back-up manager performs XOR operation on each page data in a plurality of written page data sets in real time and keeps an operation result;
if the write-in instruction fails, the redundancy backup manager performs exclusive OR operation on the page data written into the flash memory and the operation result of the step two to obtain page data to be written with errors;
step four: the flash memory main control module re-initiates a write-in instruction to the page data generating the error, and writes in the error page and the subsequent pages.
2. The redundancy backup protection method for write errors in a flash memory master control module according to claim 1, wherein: in the first step, the flash memory master control module is also internally provided with a flash memory control physical layer and a plurality of flash memory storage components, the flash memory control physical layer is connected with the flash memory interface controller, and the plurality of flash memory storage components are connected with the flash memory control physical layer.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910256477.9A CN109947374B (en) | 2019-04-01 | 2019-04-01 | Redundancy backup protection method for write errors in flash memory master control module |
PCT/CN2019/103907 WO2020199488A1 (en) | 2019-04-01 | 2019-09-02 | Redundancy protection method for write error in main control module of flash memory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910256477.9A CN109947374B (en) | 2019-04-01 | 2019-04-01 | Redundancy backup protection method for write errors in flash memory master control module |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109947374A CN109947374A (en) | 2019-06-28 |
CN109947374B true CN109947374B (en) | 2022-07-22 |
Family
ID=67012370
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910256477.9A Active CN109947374B (en) | 2019-04-01 | 2019-04-01 | Redundancy backup protection method for write errors in flash memory master control module |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109947374B (en) |
WO (1) | WO2020199488A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109947374B (en) * | 2019-04-01 | 2022-07-22 | 江苏华存电子科技有限公司 | Redundancy backup protection method for write errors in flash memory master control module |
CN114610542B (en) * | 2022-05-10 | 2023-03-14 | 深圳佰维存储科技股份有限公司 | Data recovery method and device, readable storage medium and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0508441A2 (en) * | 1991-04-11 | 1992-10-14 | Mitsubishi Denki Kabushiki Kaisha | Recording device having short data writing time |
TW200601030A (en) * | 2003-12-30 | 2006-01-01 | Sandisk Corp | Non-volatile memory and method with phased program failure handling |
CN101483067A (en) * | 2008-01-11 | 2009-07-15 | 群联电子股份有限公司 | Flash memory data writing method and flash memory controller |
CN101989217A (en) * | 2009-07-31 | 2011-03-23 | 慧帝科技(深圳)有限公司 | Data access method and data access system by using same |
CN108804344A (en) * | 2018-05-18 | 2018-11-13 | 记忆科技(深圳)有限公司 | The flash memory storage method and device of tape file system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9003259B2 (en) * | 2008-11-26 | 2015-04-07 | Red Hat, Inc. | Interleaved parallel redundancy check calculation for memory devices |
CN102279825B (en) * | 2011-04-02 | 2014-11-12 | 浪潮电子信息产业股份有限公司 | Intelligent DMA (Direct Memory Access) controller for solid-state hard disk controller |
CN109947374B (en) * | 2019-04-01 | 2022-07-22 | 江苏华存电子科技有限公司 | Redundancy backup protection method for write errors in flash memory master control module |
-
2019
- 2019-04-01 CN CN201910256477.9A patent/CN109947374B/en active Active
- 2019-09-02 WO PCT/CN2019/103907 patent/WO2020199488A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0508441A2 (en) * | 1991-04-11 | 1992-10-14 | Mitsubishi Denki Kabushiki Kaisha | Recording device having short data writing time |
TW200601030A (en) * | 2003-12-30 | 2006-01-01 | Sandisk Corp | Non-volatile memory and method with phased program failure handling |
CN101483067A (en) * | 2008-01-11 | 2009-07-15 | 群联电子股份有限公司 | Flash memory data writing method and flash memory controller |
CN101989217A (en) * | 2009-07-31 | 2011-03-23 | 慧帝科技(深圳)有限公司 | Data access method and data access system by using same |
CN108804344A (en) * | 2018-05-18 | 2018-11-13 | 记忆科技(深圳)有限公司 | The flash memory storage method and device of tape file system |
Also Published As
Publication number | Publication date |
---|---|
WO2020199488A1 (en) | 2020-10-08 |
CN109947374A (en) | 2019-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3015986B1 (en) | Access method and device for message-type memory module | |
US9703816B2 (en) | Method and system for forward reference logging in a persistent datastore | |
JP2010015197A (en) | Storage controller, data restoration device, and storage system | |
CN109582217A (en) | Data storage device and method for writing data into memory device | |
CN101656104B (en) | Flash memory storage system and data writing method thereof | |
US11157357B2 (en) | Operation methods of memory system and host, and computing system | |
US11521701B2 (en) | Memory controller with read error handling | |
CN109947374B (en) | Redundancy backup protection method for write errors in flash memory master control module | |
TWI693518B (en) | Data storage devices and methods for firmware failure prevention | |
KR20190117117A (en) | Data storage device and operating method thereof | |
CN108228382B (en) | Data recovery method for single-disk fault of EVENODD code | |
CN101000569A (en) | Method of correcting error code for multiple sector | |
WO2019136968A1 (en) | Method for protecting data array and restoring flash memory internal data | |
CN113722144B (en) | Data storage device and data processing method | |
CN109390027A (en) | decoding method and related flash memory controller and electronic device | |
US9754682B2 (en) | Implementing enhanced performance with read before write to phase change memory | |
JP4256307B2 (en) | Memory card | |
CN103065683A (en) | Memory system and method for recording/reproducing data thereof | |
JP2013069171A (en) | Memory system and control method thereof | |
CN110134322B (en) | Storage device using DRAM and related data processing method thereof | |
KR20180078426A (en) | Method for error corerction code of data storage device | |
CN112486419A (en) | Data storage method, device and recovery method based on RAID5 and solid state disk | |
TW202145243A (en) | Data storage device and data processing method | |
WO2019153682A1 (en) | Flash memory information error correction method | |
TWI750811B (en) | A data protection system for a memory, a data-writing protection method for a memory, and a data-reading protection method for a memory |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |