System and method for detecting and correcting mapping table errors in a non-volatile memory system
Abstract
A system and method is disclosed for detecting and correcting for errors in mapping table information stored in volatile memory of a non-volatile memory system. The method may include checking for mapping entry errors when retrieving mapping data for the non-volatile memory from a volatile memory cache. When an error is discovered, the method includes the processor generating a set of candidate mapping entries each having a different single bit difference from the mapping entry discovered to have an error. Each candidate is tested against one or more mapping data accuracy tests and, when one of the candidates is found to be a correct mapping entry based on the one or more tests, the original mapping table entry with the determined defect is replaced with the successful candidate mapping entry.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 0.
Claims (7)
- Claim 1Independent Claim
A method of managing mapping data in a non-communication volatile memory system, the non-volatile memory system having a controller in communication with a volatile memory and a non-volatile memory, wherein the method comprises the controller: generating a mapping entry for a piece of data, the mapping entry mapping a logical address for the piece of data to a physical location in non-volatile memory containing the piece of data; generating error correction data for the mapping entry; storing the mapping and the error correction data in the volatile memory; when the mapping entry is accessed from the volatile memory: regenerating the error correction data for the mapping entry; comparing the regenerated error correction data to the error correction data previously stored in the volatile memory; when the regenerated error correction data does not match the error correction data stored in the volatile memory: inverting one or more of a plurality of bits of the mapping entry to create a revised mapping entry; applying multiple predetermined tests in a predetermined order to the revised mapping entry, wherein the multiple predetermined tests comprises: comparing error correction data of the revised mapping entry to error correction data of the mapping entry; and examining address mapping fields of the revised mapping entry to determine whether a value of each address mapping field falls within a valid range of values; determining if the revised mapping entry correctly identifies the physical location of the piece of data based on the application of the multiple predetermined tests; and replacing the mapping entry with the revised mapping entry in the volatile memory when the revised mapping entry is determined to correctly identify the physical location of the piece of data.
- Claim 2Depends on #1
The method of claim 1 , wherein inverting one or more of the plurality of bits comprises inverting only one of the plurality of bits.
- Claim 3Depends on #2
The method of claim 2 , further comprising: when the revised mapping entry is determined not to correctly identify the physical location of the piece of data, inverting a different one of the plurality of bits of the mapping entry to create a subsequent revised mapping entry, determining if the subsequent revised mapping entry correctly identifies the physical location and replacing the mapping entry in volatile memory with the subsequent revised mapping entry when the subsequent revised mapping entry correctly identifies the physical location.
- Claim 4Depends on #1
The method of claim 1 , wherein the multiple predetermined tests further comprises: verifying that a physical address identified by the revised mapping entry is associated with a valid programmed block in the non-volatile memory.
- Claim 5Depends on #1
The method of claim 1 , wherein generating error correction data comprises generating parity information using an exclusive OR (XOR) operation.
- Claim 6Depends on #5
The method of claim 5 , wherein the generating parity information comprises generating a single bit checksum of the piece of data.
- Claim 7Independent Claim
A non-volatile memory system comprising: a non-volatile memory; a volatile memory; and a controller in communication with the volatile memory and the non-volatile memory, the controller configured to: detect whether an error is present when accessing a mapping table entry and associated error correction data from the volatile memory; and when the error is detected; invert one or more bits in the mapping table entry to create a revised mapping table entry; apply multiple predetermined tests in a predetermined order to the revised mapping table entry, wherein to apply the multiple predetermined tests the controller is configured to: compare error correction data of the revised mapping table entry to error correction data of the mapping table entry; and examine address mapping fields
Technical Overview & Description
BACKGROUND Non-volatile memory systems, such as solid state drives (SSDs) including NAND flash memory, are commonly used in electronic systems ranging from consumer products to enterprise-level computer systems. Controllers in some SSDs often manage high throughput data traffic between one or more hosts and the multiple non-volatile memory die in the SSD. Additionally, modern high-performance storage devices such as the SSDs mentioned above often include a volatile dynamic random access memory (DRAM) cache used to store mapping tables, executable firmware code, and other data. This cache is often susceptible to bit flips, and as such needs protection. One approach for handling bit flips in data is to provide end to end error protection for any type of data that is read from or written to DRAM. The end to end protection includes specialty hardware positioned in the data path that can detect and correct errors in real time. In some memory controller architectures, the specialty hardware, sometimes referred to as an error correction code (ECC) engine, may not be included in the data path used to access and store mapping table data. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1A is a block diagram of an example non-volatile memory system. FIG. 1B is a block diagram illustrating an exemplary storage module. FIG. 1C is a block diagram illustrating a hierarchical storage system. FIG. 2A is a block diagram illustrating exemplary components of a multi-processor controller of a non-volatile memory system. FIG. 2B is a block diagram illustrating exemplary components of a non-volatile memory of a non-volatile memory storage system. FIG. 3 illustrates an example mapping table and mapping table entry format for use in the non-volatile memory system of FIGS. 2A-2B . FIG. 4 is a flow diagram of a process for detecting and correcting for mapping table entry errors in a cached mappi
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (9)
| Patent | Title | Year | Citations |
|---|