Method of table management of memory device, memory controller of memory device, memory device, and electronic device

By adopting a table error correction program and a fault-tolerant disk array protection mechanism in the memory controller, the complexity of table error management in flash memory is solved, and the operating efficiency and data protection capabilities of the memory device are improved.

CN118692544APending Publication Date: 2024-09-24SILICON MOTION INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311223094.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-23
Filing Date
2023-09-21
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

It is difficult in the prior art to effectively manage table errors of flash memory in memory devices, resulting in increased processing time when unexpected events occur, and a lack of appropriate solutions to prevent errors.

Method used

Using a table error correction procedure, the fault-tolerant disk array protection mechanism is used to perform error correction on the internal management table of the memory device in the memory controller, and the appropriate fault-tolerant disk array is selected by searching backward and forward for parity identifiers. The protection pages are decoded to generate recovery table pages, reducing the processing burden of unexpected power outage recovery.

Benefits of technology

Without introducing side effects, the operating efficiency of the memory device is improved, the processing time is reduced, the protection of heterogeneous tables is enhanced, and the problem of processing the memory device under unexpected events is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118692544A
    Figure CN118692544A
Patent Text Reader

Abstract

The invention relates to a method for table management of a memory device in a predetermined communication architecture by means of table error correction, a memory controller of the memory device, the memory device and an electronic device. The method includes performing, with the memory controller, a table error correction procedure to manage at least one table for internal management of the memory device, for example, when any error of any table page occurs, searching a first parity identifier backward and a second parity identifier forward; selecting a page next to the page in which the first co-location identifier is stored as a first page, selecting a page in which the second co-location identifier is stored as a last page, and preparing at least one group of pages in the plurality of fault-tolerant disk arrays for decoding; and performing a fault-tolerant disk array decoding operation on the at least one group of pages to generate a recovery table page to replace any one of the pages.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to memory control, and more particularly to a method and a related device for performing table management of a memory device in a predetermined communication architecture by means of table error correction. Background Art

[0002] The memory device may include a flash memory for storing data, and the access management for the flash memory is quite complex. For example, the memory device may be a memory card, a solid state drive (SSD), or an embedded storage device (e.g., an embedded storage device that complies with the universal flash storage (UFS) specification). The memory device can be used to store different files (e.g., system files and user files) in the host's file system. Since some files may be frequently accessed, some data may become invalid data, and more storage space may need to be released for further use. During the access of these files, some of the internal management information of multiple types may change accordingly. Since the multiple types of internal management information may change in different ways, their management is also quite complex, which increases the processing time of the related processing. When any unexpected event (e.g., power failure and management information failure) occurs, more processing is required to prevent errors, which further increases the processing time. There is no appropriate solution in the related art, therefore, an innovative method and related architecture are needed to solve these problems without introducing side effects or in a way that is unlikely to introduce side effects. Summary of the invention

[0003] Therefore, an object of the present invention is to provide a method and related device for performing table management of a memory device in a predetermined communication architecture (eg, a universal flash storage communication architecture) by means of table error correction, so as to solve the above-mentioned problem.

[0004] Another object of the present invention is to provide a method and related device for performing table management of a memory device in a predetermined communication architecture (such as a universal flash storage communication architecture) by means of table error correction, so as to utilize a table fault-tolerant disk array protection mechanism to properly protect heterogeneous tables.

[0005] At least one embodiment of the present invention provides a method for performing table management of a memory device in a predetermined communication architecture by means of table error correction, wherein the method can be applied to a memory controller of the memory device, the memory device can include a memory controller and a non-volatile memory, the non-volatile memory can include at least one non-volatile memory element (e.g., one or more non-volatile memory elements), and the at least one non-volatile memory element can include a plurality of blocks. The method can include: using the memory controller to perform a table error correction procedure to manage at least one table for internal management of the memory device, wherein the at least one table is stored in at least one table block among the plurality of blocks, and is stored in the at least one table block by means of fault-tolerant RAID protection. For example, the table error correction procedure may include: in response to the occurrence of any error in any table page of an existing table RAID protection group among a plurality of existing table RAID protection groups, searching for a first parity identifier backward relative to any table page, and searching for a second parity identifier forward relative to any table page; selecting a next page of a first parity page storing the first parity identifier as a first RAID protection page among a plurality of RAID protection pages of the existing table RAID protection group, selecting a second parity page storing the second parity identifier as a last RAID protection page among a plurality of RAID protection pages, and preparing at least one set of RAID protection pages among the plurality of RAID protection pages for decoding; and performing an RAID decoding operation on the at least one set of RAID protection pages to generate a recovery table page as a replacement for any table page.

[0006] In addition to the above method, the present invention also provides a memory controller of a memory device, wherein the memory device includes a memory controller and a non-volatile memory, the non-volatile memory may include at least one non-volatile memory element (e.g., one or more non-volatile memory elements), and the at least one non-volatile memory element may include a plurality of blocks. In addition, the memory controller includes a processing circuit, wherein the processing circuit is used to control the memory controller according to a plurality of host commands from a host device to allow the host device to access the non-volatile memory through the memory controller, and to perform table management of the memory device in a predetermined communication architecture by means of table error correction. For example, the memory controller may perform a table error correction procedure to manage at least one table for internal management of the memory device, wherein the at least one table is stored in at least one table block among the plurality of blocks, and is stored in the at least one table block by means of fault-tolerant disk array protection. The table error correction procedure may include: in response to the occurrence of any error in any table page of an existing table RAID protection group among a plurality of existing table RAID protection groups, searching for a first parity identifier backward relative to any table page, and searching for a second parity identifier forward relative to any table page; selecting a next page of a first parity page storing the first parity identifier as a first RAID protection page among a plurality of RAID protection pages of the existing table RAID protection group, selecting a second parity page storing the second parity identifier as a last RAID protection page among a plurality of RAID protection pages, and preparing at least one set of RAID protection pages among the plurality of RAID protection pages for decoding; and performing an RAID decoding operation on the at least one set of RAID protection pages to generate a recovery table page as a replacement for any table page.

[0007] In addition to the above method, the present invention also provides a memory device including the above memory controller, wherein the memory device includes: a non-volatile memory for storing information; and a memory controller coupled to the non-volatile memory and used to control the operation of the memory device.

[0008] In addition to the above method, the present invention also provides an electronic device including the above memory device, wherein the electronic device further includes a host device coupled to the memory device. The host device may include: at least one processor for controlling the operation of the host device; and a power supply circuit coupled to the at least one processor and used to provide power to the at least one processor and the memory device. In addition, the memory device provides storage space for the host device.

[0009] According to some embodiments, the device may include at least a portion (e.g., a portion or all) of an electronic device. For example, the device may include a memory controller in a memory device. For another example, the device may include a memory device. For another example, the device may include an electronic device.

[0010] According to some embodiments, a memory device may store data for a host device, wherein some of the stored data may need to be updated. To correct the problems of the related art, it is suggested that the memory device may operate according to at least one control scheme (e.g., one or more control schemes) of the method, in particular, determining a first update table page count of at least one first update table page protected by a parity page at a first time point, and at this time, writing the corresponding fault-tolerant disk array parity to the parity page to immediately start protecting the at least one first update table page without waiting for an unprotected table page count of an unprotected table page (e.g., a table page not protected by any parity page) to reach a predetermined unprotected table page count threshold.

[0011] The method and related apparatus of the present invention can ensure that the memory device can operate properly under different circumstances. For example, when no further table update of the first table is required at a first time point, the memory device (such as a memory controller) can write the fault-tolerant disk array parity to the parity page to immediately start protecting the at least one first update table page at this time, so as to reduce the processing burden of unexpected power failure recovery and thus increase overall performance. In addition, the method and related apparatus of the present invention can solve the problems encountered by the prior art without introducing side effects or in a manner that is unlikely to introduce side effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a schematic diagram of an electronic device according to an embodiment of the present invention.

[0013] Figure 2 It is a schematic diagram of a table processing control scheme according to an embodiment of the present invention.

[0014] Figure 3 FIG. 4 is a schematic diagram of a first meter protection control scheme according to an embodiment of the present invention.

[0015] Figure 4 FIG. 4 is a schematic diagram of a second meter protection control scheme according to an embodiment of the present invention.

[0016] Figure 5 A variable page group table protection control scheme is provided for a method of performing table management of a memory device in a predetermined communication architecture by using table error correction according to an embodiment of the present invention.

[0017] Figure 6According to an embodiment of the present invention Figure 5 Some implementation details of the variable page group table protection control scheme are shown.

[0018] Figure 7 A dynamic table protection control scheme of the method according to an embodiment of the present invention.

[0019] Figure 8 A system-wide garbage collection control scheme of the method according to an embodiment of the present invention.

[0020] Fig. 9 The invention provides an error correction control scheme for the method according to an embodiment of the invention.

[0021] Fig.10 FIG. 4 is a schematic diagram of a workflow of the method according to an embodiment of the present invention.

[0022]

Explanation of symbols

[0023] 10: Electronic devices

[0024] 50: Host device

[0025] 52: Processor

[0026] 54: Power supply circuit

[0027] 58,118: Transmission interface circuit

[0028] 100: memory device

[0029] 110: memory controller

[0030] 112: Microprocessor

[0031] 112C: Program code

[0032] 112M: Read-only memory

[0033] 115: Fault-tolerant disk array circuit

[0034] 116: Random Access Memory

[0035] 116T: Temporary logical to physical address mapping table

[0036] 117T: Temporary physical to logical address mapping table

[0037] 118C: Universal Flash Storage Controller

[0038] 118M:M physical layer circuit

[0039] 118U: Standardized communication protocol circuit

[0040] 120: Non-volatile memory

[0041] 120T: Global logical to physical address mapping table

[0042] 122-1~122-N: Non-volatile memory element

[0043] 220: Active block

[0044] 227T: Physical to logical address mapping table

[0045] S11~S14,S20~S22,S23A,S23B,S24A,S24B,S25,S31~S36,S41~S43: Steps DETAILED DESCRIPTION

[0046] Figure 1 1 is a schematic diagram of an electronic device 10 according to an embodiment of the present invention, wherein the electronic device 10 may include a host device 50 and a memory device 100. The host device 50 may include at least one processor (e.g., one or more processors; which may be collectively referred to as a processor 52), a power supply circuit 54, and a transmission interface circuit 58, wherein the processor 52 and the transmission interface circuit 58 may be coupled to each other through a bus, and may be coupled to the power supply circuit 54 to obtain power. The processor 52 may be used to control the operation of the host device 50, and the power supply circuit 54 may be used to provide power to the processor 52, the transmission interface circuit 58, and the memory device 100, and output one or more driving voltages to the memory device 100. The memory device 100 may be used to provide storage space for the host device 50, and may obtain one or more driving voltages from the host device 50 as a power supply for the memory device 100. Examples of the host device 50 may include, but are not limited to: a multi-function mobile phone, a tablet computer, a wearable device, and a personal computer, such as a desktop computer and a notebook computer. Examples of the memory device 100 may include, but are not limited to, portable memory devices (e.g., memory cards conforming to SD / MMC, CF, MS or XD specifications, solid state drives (SSDs), and different types of embedded memory devices (e.g., embedded memory devices conforming to universal flash storage (UFS) specifications or embedded multi media card (eMMC) specifications). According to the present embodiment, the memory device 100 may include a controller, such as a memory controller 110, and may further include a non-volatile memory 120 (for simplicity, the non-volatile memory 120 is not shown in FIG. 1 ). Figure 11, wherein the memory controller 110 is used to access the non-volatile memory 120, and the non-volatile memory 120 is used to store information. The non-volatile memory 120 may include at least one non-volatile memory element (e.g., one or more non-volatile memory elements), such as a plurality of non-volatile memory elements 122-1, 122-2, ..., and 122-N (for simplicity, the non-volatile memory elements 122-1, 122-2, ..., and 122-N are referred to as "NV memory" in FIG. 1 ). Figure 1 , respectively, as “NV memory elements” in the figure), where “N” may represent a positive integer greater than 1. For example, the non-volatile memory 120 may be a flash memory, and the plurality of non-volatile memory elements 122-1, 122-2, . . . , and 122-N may be a plurality of flash memory chips or a plurality of flash memory dies, but the present invention is not limited thereto.

[0047] like Figure 1 As shown, the memory controller 110 may include a processing circuit (e.g., a microprocessor 112), a storage unit (e.g., a read-only memory (ROM) 112M; for the sake of simplicity, it is labeled as "ROM"), a control logic circuit 114, a redundant array of independent disks (RAID) circuit 115, a random access memory 116 (random access memory, RAM; for the sake of simplicity, it is labeled as "RAM", for example, it can be implemented by a static random access memory (SRAM), but the present invention is not limited thereto) and a transmission interface circuit 118, wherein at least a portion (e.g., a portion or all) of the above components may be coupled to each other via a bus. The random access memory 116 may be used to provide an internal storage space for the memory controller 110 (e.g., it may temporarily store information). In addition, the read-only memory 112M of the present embodiment is used to store the program code 112C, and the microprocessor 112 is used to execute the program code 112C to control the access of the non-volatile memory 120. It should be noted that the program code 112C can also be stored in the random access memory 116 or any type of memory. In addition, the control logic circuit 114 can be used to control the non-volatile memory 120, and the fault-tolerant disk array circuit 115 can perform fault-tolerant disk array encoding and fault-tolerant disk array decoding to protect data for a physical page group and / or perform error correction, but the present invention is not limited to this. According to some embodiments, the memory controller 110 may further include an error correction code (ECC) circuit (not shown). Figure 1), and an ECC circuit may be used to perform ECC encoding and ECC decoding to protect data and / or perform error correction for any of a plurality of sub-storage units within a physical page. For example, the plurality of sub-storage units may have the same size, such as a predetermined size that is smaller than the size of the physical page.

[0048] The transmission interface circuit 118 may include a plurality of sub-circuits, and the plurality of sub-circuits may interact with each other to communicate. The transmission interface circuit 118 may comply with one or more communication specifications among different communication specifications (e.g., Serial Advanced Technology Attachment (SATA) specification, Universal Serial Bus (USB) specification, Peripheral Component Interconnect Express (PCIe) specification, embedded multimedia card specification, or universal flash storage specification), and may enable the memory device 100 to communicate with the host device 50 (e.g., the transmission interface circuit 58) according to the one or more communication specifications. Similarly, the transmission interface circuit 58 may comply with the one or more communication specifications, and may enable the host device 50 to communicate with the memory device 100 (e.g., the transmission interface circuit 118) according to the one or more communication specifications. For example, the multiple sub-circuits of the transmission interface circuit 118 may include a universal flash storage controller 118C (labeled as a "UFS controller" for simplicity), a standardized communication protocol (Unified Protocol, commonly referred to as UniPro) circuit 118U (labeled as a "UniPro circuit" for simplicity), and a physical layer (physical layer, PHY) circuit (for example, an M physical layer (M-PHY) circuit 118M that complies with the relevant specifications of the MIPI Alliance), and the transmission interface circuit 58 can be implemented as having a circuit architecture similar to or the same as the circuit architecture of the transmission interface circuit 118 (for example, multiple corresponding sub-circuits), but the present invention is not limited to this.

[0049] In the present embodiment, the host device 50 can indirectly access the non-volatile memory 120 in the memory device 100 by transmitting a plurality of host commands and corresponding logical addresses to the memory controller 110. The memory controller 110 receives the plurality of host commands and corresponding logical addresses, and converts the plurality of host commands into a plurality of memory operation commands (which may be referred to as operation commands), and then uses the plurality of operation commands to control the non-volatile memory 120 to read or write / program the memory cells or data pages of the corresponding physical addresses in the non-volatile memory 120, etc., wherein the physical addresses may be related to the logical addresses. For example, the memory controller 110 may generate or update at least one logical-to-physical (L2P) address mapping table to manage the relationship between the physical addresses and the logical addresses, wherein the non-volatile memory 120 may store a global logical-to-physical address mapping table 120T for the memory controller 110 to control the memory device 100 to access the data in the non-volatile memory 120, but the present invention is not limited thereto. In addition, the memory controller 110 may generate or update at least one physical-to-logical (P2L) address mapping table (e.g., a temporary physical-to-logical address mapping table 117T). For example, when necessary, the memory controller 110 may refer to the temporary physical-to-logical address mapping table 117T to perform certain internal management operations (e.g., garbage collection (GC) operations).

[0050] For better understanding, the global logical-to-physical address mapping table 120T may be located in a predetermined region (e.g., a system region) within the non-volatile memory element 122-1, but the present invention is not limited thereto. For example, the global logical-to-physical address mapping table 120T may be divided into a plurality of local logical-to-physical address mapping tables, and the plurality of local logical-to-physical address mapping tables may be stored in one or more non-volatile memory elements of the non-volatile memory elements 122-1, 122-2, and 122-N, and in particular, may be stored in the non-volatile memory elements 122-1, 122-2, and 122-N, respectively. When necessary, the memory controller 110 may load at least a portion (e.g., a portion or all) of the global logical-to-physical address mapping table 120T into the random access memory 116 or other memory. For example, the memory controller 110 may load a local logical-to-physical address mapping table (e.g., a first local logical-to-physical address mapping table) from the multiple local logical-to-physical address mapping tables into the random access memory 116 as a temporary logical-to-physical address mapping table 116T for accessing data in the non-volatile memory 120 according to the local logical-to-physical address mapping table stored as the temporary logical-to-physical address mapping table 116T, but the present invention is not limited to this.

[0051] The memory area of ​​the random access memory 116 may include a plurality of sub-areas for temporarily storing different information (e.g., buffered data, a temporary logical-to-physical address mapping table 116T, and a temporary physical-to-logical address mapping table 117T), and at least a portion (e.g., a portion or all) of the plurality of sub-areas of the memory area may be considered as a data buffer. For example, the sub-area for temporarily storing the buffered data may be considered as a data buffer, but the present invention is not limited thereto. According to some embodiments, the entire memory area, such as the plurality of sub-areas for temporarily storing the buffered data, the temporary logical-to-physical address mapping table 116T, and the temporary physical-to-logical address mapping table 117T may be considered as a data buffer.

[0052] In addition, the at least one non-volatile memory element (e.g., one or more non-volatile memory elements, such as {122-1, 122-2, ..., 122-N}) may include a plurality of blocks, wherein the minimum unit for the memory controller 110 to perform a data erase operation on the non-volatile memory 120 is a block, and the minimum unit for the memory controller 110 to perform a data write operation on the non-volatile memory 120 is a page, but the present invention is not limited thereto. For example, any non-volatile memory element 122-n (the symbol "n" may represent any integer in the interval [1, N]) among the non-volatile memory elements 122-1, 122-2, ..., and 122-N may include a plurality of blocks, and a block within the plurality of blocks may include and record a specific number of pages, wherein the memory controller 110 may access a certain page of a certain block within the plurality of blocks according to a block address and a page address.

[0053] According to some embodiments, the memory controller 110 may monitor valid page counts of at least a portion (e.g., a portion or all) of the plurality of blocks, respectively, for use in subsequent processing (e.g., garbage collection operations). For data reception, the memory controller 110 may configure at least one block (e.g., one or more blocks) among the plurality of blocks of at least one non-volatile memory element (e.g., one or more non-volatile memory elements, such as {122-1, 122-2, ..., 122-NE}) in the non-volatile memory 120 as at least one active block (e.g., one or more active blocks), and use the at least one active block to receive and store data (e.g., host-write data) from the host device 50. For example, the data (e.g., host write data, such as data written to the non-volatile memory 120) may include a plurality of sets of partial data, and the at least one active block may include a first active block, wherein the temporary physical-to-logical address mapping table 117T may correspond to the first active block, and in particular, may store relevant mapping information for indicating the physical-to-logical address mapping relationship for the first active block. In addition, the memory controller 110 may maintain (e.g., generate or update) the temporary physical-to-logical address mapping table 117T for relevant internal management.

[0054] Figure 2Schematic diagram of a table processing control scheme according to an embodiment of the present invention. During the period of receiving and storing data from the host device 50 (e.g., host write data, such as data written to the non-volatile memory 120), the memory controller 110 can use the first active block (e.g., active block 220) to receive and store one or more sets of partial data among the plurality of sets of partial data, and record the relevant mapping information (e.g., physical to logical table entry) in the temporary physical to logical address mapping table 117 corresponding to the active block 220 (for simplicity, in Figure 2 The memory controller 110 may further include a physical-to-logical table entry (labeled as “P2L table” in the table) for indicating a physical-to-logical address mapping relationship for the active block 220. The physical-to-logical address mapping relationship indicated by the physical-to-logical table entry may include a physical-to-logical address mapping relationship between a logical address and a physical address, wherein the host device 50 writes the one or more sets of partial data to the logical address, and the physical address indicates the location where the one or more sets of partial data are stored in the active block 220. When a first predetermined criterion is met (e.g., the active block 220 is completely programmed), the memory controller 110 may perform a set of table processing operations, and the set of table processing operations may include:

[0055] (1) A first table processing operation: According to the temporary physical to logical address mapping table 117T corresponding to the active block 220 (for simplicity, in Figure 2 to update the global logical to physical address mapping table 120T (for brevity, in Figure 2 In particular, according to the physical to logical table entries in the temporary physical to logical address mapping table 117T (for simplicity, in Figure 2 to update certain logic-to-physical table entries in the global logic-to-physical address mapping table 120T (for brevity, in Figure 2 , marked as “L2P item” in the figure, for indicating the logical to physical address mapping relationship for the active block 220;

[0056] (2) A second table processing operation: storing the temporary physical-to-logical address mapping table 117T (e.g., the physical-to-logical table entries therein) in the non-volatile memory 12 to generate or update a first physical-to-logical address mapping table (e.g., the physical-to-logical address mapping table 227T; for simplicity, the first physical-to-logical address mapping table 227T is described in detail in the following sections). Figure 2 For example, the above-mentioned subsequent operations are performed by writing all physical-to-logical table entries recorded in the temporary physical-to-logical address mapping table 117T into the physical-to-logical address mapping table 227T, wherein the physical-to-logical address mapping table 227T can be regarded as a backup version of the temporary physical-to-logical address mapping table 117T; and

[0057] (3) a third table processing operation: after performing the first table processing operation (e.g., updating the global logical-to-physical address mapping table 120T according to the temporary physical-to-logical address mapping table 117T) and the second table processing operation (e.g., storing the temporary physical-to-logical address mapping table 117T in the non-volatile memory 120), clearing the temporary physical-to-logical address mapping table 117T (e.g., the physical-to-logical table entries therein) to reuse the corresponding storage space in the temporary physical-to-logical address mapping table 117T and / or the random access memory 116;

[0058] However, the present invention is not limited thereto. According to some embodiments, the first table processing item may include loading a local logical-to-physical address mapping table (e.g., the first local logical-to-physical address mapping table) in the global logical-to-physical address mapping table 120T into the random access memory 116 as the temporary logical-to-physical address mapping table 116T, updating one or more logical-to-physical table entries in the temporary logical-to-physical address mapping table 116T to indicate one or more logical-to-physical address mapping relationships among the logical-to-physical address mapping relationships for the active block 220, and updating the global logical-to-physical address mapping table 120T (e.g., the local logical-to-physical address mapping table therein) according to the temporary logical-to-physical address mapping table 116T.

[0059] After any one of the at least one active blocks (e.g., active block 220) is completely programmed, the memory device 100 (e.g., memory controller 110) may close any of the active blocks to make the active blocks become inactive blocks, and select a blank block (e.g., an erased block) as a replacement for the active blocks for subsequent data reception corresponding to the active blocks. In addition, the subsequent processing may include performing a garbage collection process to write valid data from all data in the inactive blocks to another blank block (e.g., another erased block), but the present invention is not limited thereto.

[0060] According to some embodiments, since the physical-to-logical address mapping relationship indicated by the physical-to-logical table entry in the at least one physical-to-logical address mapping table (e.g., the temporary physical-to-logical address mapping table 117T or the physical-to-logical address mapping table 227T) and the logical-to-physical address mapping relationship indicated by the related logical-to-physical table entry in the logical-to-physical address mapping table 120T should be inverse address mapping relationships, the memory controller 110 may determine the latest mapping information (e.g., physical address) carried by the logical-to-physical table entry in the logical-to-physical address mapping table 120T according to the latest mapping information (e.g., logical address) carried by the physical-to-logical table entry in the at least one physical-to-logical address mapping table. In addition, the memory controller 110 may perform a table management procedure to manage at least one table for internal management of the memory device 100, and the at least one table may be stored in at least one table block among the plurality of blocks. For example, the at least one table may include at least one address mapping table. The memory controller 110 may receive a set of first commands from the host device 50 through the transmission interface circuit 118, and perform a table management program to update the at least one address mapping table accordingly, wherein the set of first commands may respectively indicate a request to write a set of first data. Since some previous table contents of the at least one table may need to be updated in response to some internal operations of the memory device 100, the memory controller 110 may write the updated table contents into one or more new table pages of the at least one table block, and mark the one or more previous table pages storing the previous table contents as invalid pages. The one or more new table pages may be regarded as one or more subsequent table pages in the at least one table. For example, the one or more subsequent table pages may be blank pages after the one or more previous table pages. Since the one or more new table pages may be used to store updated table contents, the one or more table pages may be referred to as updated table pages.

[0061] According to some embodiments, the at least one table may be stored in a plurality of physical pages in the at least one table block, and in particular, may be protected in at least one table fault-tolerant disk array protection group including a portion (e.g., a portion or all) of the plurality of physical pages, wherein any one of the at least one table fault-tolerant disk array protection groups may be used as an example of a physical page group.

[0062] Figure 3 1 is a schematic diagram of a first table protection control scheme according to an embodiment of the present invention. When updating a first table among the at least one table, the memory controller 110 may write multiple pages in the at least one table block to generate the following Figure 3In the writing sequence starting from the upper left corner and arranged row by row as indicated by the dotted arrows, in particular, the updated table content of the first table may be written into a new table page, and a RAID parity code (which may be referred to as RAID parity for simplicity) of the updated table content may be written into a parity page for protecting the updated table content using RAID parity, so as to generate a table RAID protection group with two pages for protecting the updated table content using the RAID parity stored in the parity page (i.e., the last page of the two pages). For example, the RAID parity stored in the parity page may be equal to the updated table content stored in the new table page, but the present invention is not limited thereto. Therefore, the memory controller 110 may write the updated table content into the multiple new table pages of the at least one table block, and write the FTA parity of the updated table content stored in the multiple new table pages into the corresponding parity pages respectively, so as to generate multiple table FTA protection groups to respectively protect the updated table content, wherein the ratio of the parity page count in the table FTA protection group to the total page count in one embodiment of the present invention is equal to (1 / 2).

[0063] Figure 4 FIG. 1 is a schematic diagram of a second table protection control scheme according to an embodiment of the present invention. During the update of the first table, the memory controller 110 may write multiple pages into the at least one table block to generate the following Figure 4 In the writing sequence starting from the upper left corner and arranged row by row as shown by the dotted arrows, in particular, the updated table content can be written into the 7 new table pages of the at least one table block respectively, and the fault-tolerant disk array parity of the updated table content stored in the 7 new table pages is written into a corresponding parity page after the 7 new table pages to generate a table fault-tolerant disk array protection group with 8 pages, so as to protect the updated table content by using the fault-tolerant disk array parity stored in the corresponding parity page (that is, the last page of the 8 pages). For example, the memory controller 110 can use the fault-tolerant disk array circuit 115 to perform fault-tolerant disk array encoding on the updated table content corresponding to the 7 new table pages to generate fault-tolerant disk array parity. Figure 3 Compared with the embodiment shown in FIG. 1 , the ratio of the parity page count to the total page count in the table fault-tolerant RAID protection group in this embodiment is equal to (1 / 8).

[0064] For better understanding, regarding whether to start protecting a new table page, a table page that has not been protected by any parity page may be referred to as an unprotected table page. When the unprotected table page count of the unprotected table page reaches a predetermined unprotected table page count threshold M1, the memory controller 110 may write the fault-tolerant disk array parity of the updated table content stored in the new table page to the corresponding parity page after the new table page to generate a table fault-tolerant disk array protection group having M pages, for protecting the updated table content by the fault-tolerant disk array parity stored in the corresponding parity page (e.g., the last page of the M pages), wherein M1=(M-1), and "M" may be a positive integer greater than 1. For example, according to Figure 3 The first table protection control scheme shown is used to operate the memory controller 110 and set the predetermined unprotected table page count threshold M1 to a first fixed value. In the case of M=2, M1=(2-1)=1. For another example, Figure 4 The second table protection control scheme is shown to operate the memory controller 110 and set the predetermined unprotected table page count threshold M1 to a second fixed value. In the case of M=8, M1=(8-1)=7.

[0065] Figure 5 A variable-page-group table protection control scheme for a method of performing table management of a memory device 100 in a predetermined communication architecture by using table error correction according to an embodiment of the present invention. Figure 3 as well as Figure 4 Compared to the embodiment shown in FIG. 1 , the ratio (1 / M) of the parity page count to the total page count in the table fault-tolerant RAID protection group in the present embodiment is variable as a result of operating according to the variable page group table protection control scheme, wherein the ratio (1 / M) may be referred to as the parity ratio (1 / M). During the update of the first table, the memory controller 110 may write a plurality of pages to the at least one table block to generate the following: Figure 51 and 2. The writing sequence starting from the upper left corner and arranged row by row as shown by the dashed arrows in FIG. 1 , in particular, writing one or more table pages and writing a parity page when necessary to generate a table RAID protection group having M pages. Since the memory controller 110 operating according to the variable page group table protection control scheme can immediately write the parity page to protect the one or more table pages without waiting for the unprotected table page count of the unprotected page to reach any fixed value, the parity ratio (1 / M) will not remain unchanged. For example, the memory controller 110 can utilize the RAID circuit 115 to RAID-encode the updated table content corresponding to the (M-1) new table pages to generate RAID parity. Therefore, the parity ratio (1 / M) of one RAID protection group may be different from the parity ratio (1 / M) of another RAID protection group.

[0066] According to some embodiments, the non-volatile memory devices 122-1, 122-2, ..., and 122-N may include at least two memory devices 122-1 and 122-2 (e.g., chips #0 and #1, or bare dies #0 and #1), and any non-volatile memory device 122-n in the non-volatile memory devices 122-1, 122-2, ..., and 122-N may include a plurality of planes, such as plane #0 and #1, wherein any one of the plurality of planes of the non-volatile memory device 122-n may include its own blocks #0, #1, etc. In addition, the memory controller 110 may combine a plurality of corresponding blocks #0, #1, etc. in all planes of all non-volatile memory devices into a plurality of superblocks #0, #1, etc. The memory controller 110 can access (e.g., read or write) the multiple groups of corresponding blocks #0, #1, etc. in super blocks #0, #1 according to multiple physical block addresses (PBA), and in particular, can access the corresponding pages in super blocks #0, #1 according to multiple physical block addresses and related physical page addresses (PPA). Figures 3 to 5 In any of the embodiments, pages in the same row may represent a group of corresponding pages accessed using the same physical block address and the same physical page address, but the invention is not limited thereto. For the sake of brevity, similar contents of these embodiments will not be described in detail again.

[0067] Figure 6 According to an embodiment of the present invention Figure 5Some implementation details of the variable page group table protection control scheme are shown. During the update of the first table, the memory controller 110 may store metadata, such as a fault-tolerant disk array index and a parity identifier, in the pages (e.g., table pages and parity pages) of the at least one table block for respectively identifying the pages in subsequent processing. For example, the memory controller 110 may respectively set the RAID indexes of the four table pages of the previous RAID protection group to {0x00, 0x01, 0x02, 0x03}, and set the parity identifier of the parity page of the previous RAID protection group to 0xFF; the memory controller 110 may respectively set the RAID indexes of the seven table pages of the current RAID protection group to {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06}, and set the parity identifier of the parity page of the current RAID protection group to 0xFF; and the rest may be deduced in the same manner.

[0068] Figure 7 The dynamic table protection control scheme of the method according to an embodiment of the present invention is shown. For example, before executing step S11, the memory controller 110 may set the initial value of the table page count TPGCNT to 0, increment the table page count TPGCNT by 1 after executing step S11 (marked as "TPGCNT++" for simplicity), and reset the table page count TPGCNT to 0 after executing step S14, wherein the table page count TPGCNT may be used to indicate an unprotected table page count. In addition, the parameter memory controller 110 may be operated according to the parameter M_target to limit the respective page counts {M} of all table fault-tolerant disk array protection groups to be less than or equal to the parameter M_target, wherein the parameter M_target may be equal to a predetermined value (e.g., a fixed value).

[0069] In step S11, the memory controller 110 may write the table page carrying the RAID index into the non-volatile memory 120 as a new table page. In particular, the latest table content (e.g., updated table content) and the RAID index may be written or stored into the new table page, wherein the RAID index may be equal to the current table page count TPGCNT (i.e., the current value of the table page count TPGCNT when step S11 is executed). Figure 5 and Figure 6 The new table page in the table fault-tolerant RAID protection group of the variable page group table protection control scheme shown can be used as an example of the new table page in step S11.

[0070] In step S12, the memory controller 110 may check whether the table page count TPGCNT reaches the difference (M_target-1) between the parameter M_target and 1 (for simplicity, in Figure 7 Marked as "TPGCNT==(M_target-1)?"), if yes, go to step S14; if no, go to step S13.

[0071] In step S13 , the memory controller 110 may check whether the next update of the table is needed at this time (ie, the time point of executing step S13 ), and if so, proceed to step S11 ; if not, proceed to step S14 .

[0072] In step S14, the memory controller 110 may write the parity page carrying the RAID parity corresponding to the unprotected table page and the parity identifier into the non-volatile memory 120 as a new parity page. In particular, the RAID parity and the parity identifier may be written or stored into the new parity page. For example, the memory controller 110 may utilize the RAID circuit 115 to perform RAID encoding on the table content of the unprotected table page to generate the RAID parity, but the present invention is not limited thereto. For another example, when TPGCNT=1 (which indicates that the unprotected table page includes a single unprotected table page) at this time (i.e., the time point of executing step S14), the memory controller 110 may utilize the table content of the single unprotected table page as the RAID parity of the table content for storage in the new parity page.

[0073] For a better understanding, this method can be Figure 7 The process is illustrated in the flowchart, but the present invention is not limited thereto. According to some embodiments, one or more steps may be performed in Figure 7 Add, delete or modify the workflow shown.

[0074] According to some embodiments, the memory controller 110 may utilize the fault-tolerant disk array circuit 115 to perform at least one bitwise exclusive-OR (XOR) operation on the table content to generate at least one exclusive-OR result as fault-tolerant disk array parity according to the table content. For example, the memory controller 110 may utilize the first table content of the first unprotected table page as the first fault-tolerant disk array parity of the first table content, utilize the fault-tolerant disk array circuit 115 to perform a first exclusive-OR operation on the second table content of the second unprotected table page and the first fault-tolerant disk array parity to generate the second fault-tolerant disk array parity of the second table content, utilize the fault-tolerant disk array circuit 115 to perform a second exclusive-OR operation on the third table content of the third unprotected table page and the second fault-tolerant disk array parity to generate the third fault-tolerant disk array parity of the third table content, and so on. For the sake of brevity, similar contents of these embodiments will not be described in detail again.

[0075] Figure 8 The system area garbage collection control scheme of the method according to an embodiment of the present invention is as follows. For example, after some table contents of at least one table become invalid due to a table update operation, the memory controller 110 may perform a system area garbage collection procedure on the system area, in particular, discard multiple invalid table pages containing invalid table contents, and remove the invalid table pages from the existing table fault-tolerant disk array protection group (e.g. Figure 5 and Figure 6 The variable page group table protection control scheme shown in the figure obtains multiple valid table pages containing valid table contents, stores the valid table contents of the multiple valid table pages in a destination page as a new table page, and writes new fault-tolerant disk array co-locations into the new co-location pages to generate multiple new table fault-tolerant disk array protection groups. Due to performing the system area garbage collection process one or more times, the average of the related co-location ratio (1 / M) may decrease to automatically approach and eventually reach a target co-location ratio (1 / M_target). For example, the destination page and the new co-location page may be as follows Figure 4As shown, when M_target=8, the target parity ratio (1 / M_target) may be equal to (1 / 8), but the present invention is not limited thereto. According to some embodiments, the parameter M_target may be equal to any positive integer of some other positive integers greater than 2, and the target parity ratio (1 / M_target) may be changed accordingly. In addition, before executing step S21, the memory controller 110 may set the initial value of the table page count TPGCNT to 0, and after executing step S22, increase the table page count TPGCNT by 1 (marked as "TPGCNT++" for simplicity), and after executing step S24, reset the table page count TPGCNT to 0, wherein the table page count TPGCNT may be used to indicate an unprotected table page count.

[0076] In step S20, the memory controller 110 may determine whether any garbage collection of the system area should be performed. If so, the process proceeds to step S21 to start garbage collection. If not, Figure 8 The illustrated workflow ends. In particular, based on a spare block count of a spare region (e.g., the number of spare blocks in the spare region) in the non-volatile memory 120, the memory controller 110 may determine whether to execute a portion of the workflow starting from step S21. During the updating of the at least one table, the memory controller 110 may use at least one spare block in the spare region as at least one new table block for storing the latest updated table content. Since the at least one spare block may become the at least one new table block as at least one new member among the at least one table block, the spare block count may be reduced accordingly. For example, when the spare block count is less than a predetermined spare block count (which may indicate that the remaining spare blocks are insufficient), the memory controller 110 may determine that garbage collection of the system area should be performed to release more storage space, and thus enter step S21. After the garbage collection is completed, the spare block count may increase to become greater than the predetermined spare block count again. For another example, when the spare block count is greater than or equal to a predetermined spare block count (which indicates that the remaining spare blocks are sufficient), the memory controller 110 may determine that garbage collection of the system area should not be performed.

[0077] In step S21, the memory controller 110 may read a valid table page among a plurality of table pages of the existing table fault-tolerant RAID protection group from the non-volatile memory 120, and in particular, read the valid table content of the valid table page from the non-volatile memory 120, wherein the valid table page is one of the plurality of valid table pages, and the valid table content is one of the valid table contents. Figure 5 and Figure 6The new table page in the table RAID protection group of the variable page group table protection control scheme shown can be used as an example of the plurality of table pages mentioned in step S21. Since metadata (such as RAID index and parity identifier) ​​may have been stored in the pages of the existing table RAID protection group, the memory controller 110 can identify the table page and parity page in the existing table RAID protection group to obtain the valid table page from the plurality of table pages.

[0078] In step S22, the memory controller 110 may write the table page carrying the valid table content of the valid table page and the new corresponding fault-tolerant disk array index into the non-volatile memory 120 as a new table page in the destination page. In particular, the valid table content and the new corresponding fault-tolerant disk array index are written or stored in the new table page, and the valid table page is marked as invalid, wherein the new corresponding fault-tolerant disk array may be equal to the current TPGCNT (i.e., the current value of the table page count TPGCNT when step S22 is executed). For example, the destination page may be as follows: Figure 4 As shown, the target parity ratio (1 / M_target) may be equal to (1 / 8).

[0079] In step S23A, the memory controller 110 may determine whether the table page count TPGCNT reaches the difference between the parameter M_target and 1 (M_target-1) (for simplicity, in Figure 8 Marked as "TPGCNT==(M_target-1)?"), if yes, it indicates that there are (M_target-1) unprotected table pages at this time (that is, when step S23A is executed), and enters step S24A; if no, enters step S23B.

[0080] In step S23B, the memory controller 110 may determine whether a predetermined garbage collection time has been exceeded, and if so, proceed to step S24B; if not, proceed to step S25. For example, the memory controller 110 may perform a system area garbage collection process in the background and limit the time of each execution to the predetermined garbage collection time to prevent delays in foreground operations (e.g., errors in the host device 50 accessing data in the non-volatile memory 120).

[0081] In step S24A, the memory controller 110 may write the parity page carrying the FRA parity corresponding to the (M_target-1) unprotected table pages and the parity identifier into the non-volatile memory 120 as a new parity page, and in particular, write or store the FRA parity and the parity identifier into the new parity page. For example, the memory controller 110 may utilize the FRA circuit 115 to perform FRA encoding on the table contents of the (M_target-1) unprotected table pages to generate the FRA parity.

[0082] In step S24B, the memory controller 110 may write the parity page of the RAID parity corresponding to the unprotected table page and the parity identifier into the non-volatile memory 120 as a new parity page, and in particular, write or store the RAID parity and the parity identifier into the new parity page. For example, the memory controller 110 may utilize the RAID circuit 115 to perform RAID encoding on the table content of the unprotected table page to generate RAID parity, but the present invention is not limited thereto. For another example, when TPGCNT=1 (which indicates that the unprotected table page includes a single unprotected table page) at this time (i.e., the time point of executing step S24B), the memory controller 110 may utilize the table content of the single unprotected table page as the RAID parity of the table content for storage into the new parity page.

[0083] In step S25, the memory controller 110 may check whether the next system area garbage collection operation is required at this time (ie, the time point of executing step S25), and if so, proceed to step S21; if not, Figure 8 The illustrated workflow ends. For example, the memory controller 110 may determine whether all valid table contents of the plurality of valid table pages have been written to the destination page. If all valid table contents of the plurality of valid table pages have been written to the destination page, the memory controller 110 may determine that no additional system area garbage collection operation is required at this time; otherwise, the memory controller 110 may determine that the next system area garbage collection operation is required at this time.

[0084] For a better understanding, this method can be Figure 8 The process is illustrated in the flowchart, but the present invention is not limited thereto. According to some embodiments, one or more steps may be performed in Figure 8The memory controller 110 may add, delete or modify the workflow shown in the figure. For example, after obtaining the judgment result of "No" in step S25, the memory controller 110 may selectively perform an erase procedure to release more storage space. In particular, the memory controller 110 may determine whether to perform the erase procedure based on whether there is no foreground operation. If there is no foreground operation, the memory controller 110 may perform an erase procedure to erase one or more invalid table blocks (e.g., table blocks without valid table pages); otherwise, the memory controller 110 may prevent the erase procedure from being performed. For the sake of brevity, similar contents of these embodiments will not be repeated in detail.

[0085] According to certain embodiments, the spare area may be divided into a first spare area and a second spare area, and the memory controller 110 may utilize at least one first spare block in the first spare area as the at least one new table block, and utilize at least one second spare block in the second spare area as at least one data block for storing user data, but the present invention is not limited thereto.

[0086] Fig. 9 This is an error correction control scheme of the method according to an embodiment of the present invention. When any error occurs in any table page of an existing table fault-tolerant disk array protection group in the existing table fault-tolerant disk array protection group, the memory controller 110 can determine the starting position and the ending position of the existing table fault-tolerant disk array protection group (for example, the position of the first table page of the existing table fault-tolerant disk array protection group and the position of the co-located page of the existing table fault-tolerant disk array protection group), and correct the error to recover the table page. The table page with an error can be called an error table page. For example, the error table page can be page Y, where "Y" can be an integer to indicate the position of the error table page along the writing order of the pages in the above-mentioned at least one table block. The memory controller 110 can change the position parameters A and B. In particular, the position parameter A can be decremented by 1 after executing step S32 (for simplicity, in Fig. 9 and increments the position parameter B by 1 after executing step S34 (for simplicity, Fig. 9 After executing the loop including step S32 and step S33 one or more times, the memory controller 110 may use the result value of the position parameter A plus 1 (i.e. (A+1)) to indicate the position of the first table page of the current table fault-tolerant disk array protection group along the writing order. After executing the loop including step S34 and step S35 one or more times, the memory controller 110 may use the result value of the position parameter B to indicate the position of the co-located page of the current table fault-tolerant disk array protection group along the writing order.

[0087] In step S31 , the memory controller 110 may set initial values ​​of both location parameters A and B to Y, where “A” and “B” may be integers.

[0088] In step S32 , the memory controller 110 may read a backward page from the non-volatile memory 120 to try to search for the parity identifier (eg, 0xFF). At this time (eg, the time point of executing step S32 ), the backward page may represent page (A- 1 ).

[0089] In step S33 , the memory controller 110 may check whether the parity identifier is found. If so, the process goes to step S34 ; if not, the process goes to step S32 .

[0090] In step S34, the memory controller 110 may read a forward page from the non-volatile memory 120 to try to search for the parity identifier (eg, 0xFF). At this time (eg, the time point of executing step S34), the forward page may represent page (B+1).

[0091] In step S35 , the memory controller 110 may check whether the parity identifier is found. If so, the process goes to step S36 ; if not, the process goes to step S34 .

[0092] In step S36 , the memory controller 110 may decode the existing RAID protection group from page (A+1) to page B except page Y to recover page Y.

[0093] For a better understanding, this method can be Fig. 9 The process is illustrated in the flowchart, but the present invention is not limited thereto. According to some embodiments, one or more steps may be performed in Fig. 9 Add, delete or modify the workflow shown.

[0094] According to some embodiments, the memory controller 110 may operate according to the error correction control scheme to correct any error of the at least one table (e.g., the first table) regardless of whether the memory controller 110 has processed any portion of the at least one table (e.g., the first table) according to the system-wide garbage collection control scheme. For example, the first table may represent a small portion (e.g., a portion or all) of the global logical-to-physical address mapping table 120, such as a first local logical-to-physical address mapping table within the global logical-to-physical address mapping table 120, but the present invention is not limited thereto. For another example, the first table may represent the physical-to-logical address mapping table 227T. In some examples, the first table may represent a valid page count table, and the memory controller 110 may respectively record the valid page counts (e.g., the number of valid pages) of at least a portion of the plurality of blocks in the valid page count table. In particular, the memory controller 110 may configure a plurality of data blocks among the plurality of blocks in a data area within the non-volatile memory 120 for storing user data, system data, etc., and may record respective valid page counts of the plurality of data blocks in a valid page count table. For the sake of brevity, similar contents of the embodiments are not described in detail again.

[0095] Fig.10 is a schematic diagram of the working process of the method according to an embodiment of the present invention. The memory controller 110 may Figure 5The memory controller 110 is operated according to the variable page group table protection control scheme to perform a table management procedure to enable the at least one table to be stored in the at least one table block by RAID protection, in particular, to generate an existing table RAID protection group in the at least one table block, and selectively operates according to the system area garbage collection control scheme to perform a system area garbage collection procedure on the existing table RAID protection group to make the average of the parity ratio (1 / M) approach or reach the target parity ratio (1 / M_target), and further operates according to the error correction control scheme to perform a table error correction procedure to correct one or more errors of the at least one table. In addition, regardless of whether the memory controller 110 operates according to the variable page group table protection control scheme or the system area garbage collection control scheme, the memory controller can configure the table page to carry the corresponding RAID index (e.g., 0x00 or 0x01), and configure the parity page to carry the parity identifier (e.g., 0xFF). When any error occurs in any table page of an existing table RAID protection group among the plurality of existing table RAID protection groups currently stored in the at least one table block, the memory controller 110 may determine the start position and the end position of the existing table RAID protection group according to the RAID index and / or the parity identifier. For example, any table page with an error may represent Fig. 9 The error table page (eg, page Y) mentioned in the illustrated embodiment.

[0096] In step S41, in response to the occurrence of an error in an error table page (e.g., page Y) of an existing table fault-tolerant RAID protection group among the plurality of existing table fault-tolerant RAID protection groups, the memory controller 110 may search for a first parity identifier (e.g., 0xFF) backward relative to the error table page, and search for a second parity identifier (e.g., 0xFF) forward relative to the error table page. For example, during the period of searching for the first parity identifier backward relative to the error table page, the memory controller 110 may search for the first parity identifier in a backward direction along the writing sequence of pages in the at least one table block relative to the error table page. In addition, during the period of searching for the second parity identifier forward relative to the error table page, the memory controller 110 may search for the second parity identifier in a forward direction along the writing sequence relative to the error table page.

[0097] In step S42, the memory controller 110 may select a next page of a first parity page storing the first identifier as the first RAID protection page among the plurality of RAID protection pages of the existing RAID protection group, select a second parity page storing the second parity identifier as the last RAID protection page among the plurality of RAID protection pages, and prepare at least one set of RAID protection pages among the plurality of RAID protection pages for decoding. For example, the memory controller 110 may prepare the at least one set of RAID protection pages in a buffer (such as the above-mentioned data buffer), but the present invention is not limited thereto. For another example, the memory controller 110 may prepare the at least one set of RAID protection pages by transmitting the at least one set of RAID protection pages to the RAID circuit 115 for decoding by the RAID circuit 115.

[0098] In step S43, the memory controller 110 may utilize the RAID circuit 115 to perform a decoding operation (e.g., RAID decoding operation) on the at least one set of RAID protection pages to generate a recovered table page as a replacement for the error table page. For example, the at least one set of RAID protection pages does not include an error table page, but the present invention is not limited thereto. According to some embodiments, the memory controller 110 may prepare all of the RAID protection pages in the plurality of RAID protection pages in step S42 without utilizing the error table page in step S43.

[0099] According to the present embodiment, the existing table fault-tolerant disk array protection group can provide at least one fault-tolerant disk array protection page with error correction capability. For example, the at least one fault-tolerant disk array protection page can include a single fault-tolerant disk array protection page, and the at least one group of fault-tolerant disk array protection pages can include a first fault-tolerant disk array protection page, a last fault-tolerant disk array protection page, and any intermediate fault-tolerant disk array protection page between the first fault-tolerant disk array protection page and the last fault-tolerant disk array protection page except the error table page, but the present invention is not limited thereto. For another example, the at least one fault-tolerant disk array protection page can include more than one fault-tolerant disk array protection page.

[0100] For a better understanding, this method can be Fig.10 The process is illustrated in the flowchart, but the present invention is not limited thereto. According to some embodiments, one or more steps may be performed in Fig.10For example, the operations of searching for the first co-location identifier and searching for the second co-location identifier in step S41 may include the operations of the loop including steps S32 and S33 and the operations of the loop including steps S34 and S35, respectively, the operation of step S42 may include the operation of preparing the page to be decoded in step S36, and the operation of step S43 may include the operation of step S36.

[0101] According to some embodiments, the at least one address mapping table may include at least one logical to physical address mapping table (e.g., global logical to physical address mapping table 120T) and at least one physical to logical address mapping table (e.g., physical to logical address mapping table 227T). For the sake of brevity, similar contents of these embodiments will not be described in detail again.

[0102] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the present invention.

Claims

1. A method for performing table management of a memory device in a predetermined communication architecture by means of table error correction, the method being applied to a memory controller of the memory device, the memory device comprising the memory controller and a non-volatile memory, the non-volatile memory comprising at least one non-volatile memory element, the at least one non-volatile memory element comprising a plurality of blocks, the method comprising: The memory controller is used to perform a table error correction procedure to manage at least one table for internal management of the memory device, wherein the at least one table is stored in at least one table block among the plurality of blocks and is stored in the at least one table block by fault-tolerant disk array protection, and the table error correction procedure includes: In response to an occurrence of any error in any table page of an existing table fault-tolerant disk array protection group among a plurality of existing table fault-tolerant disk array protection groups, searching backward for a first parity identifier relative to the any table page, and searching forward for a second parity identifier relative to the any table page; selecting a next page of a first parity page storing the first parity identifier as a first RAID protection page among a plurality of RAID protection pages of the existing table RAID protection group, selecting a second parity page storing the second parity identifier as a last RAID protection page among the plurality of RAID protection pages, and preparing at least one set of RAID protection pages among the plurality of RAID protection pages for decoding; as well as A fault-tolerant RAID decoding operation is performed on the at least one set of fault-tolerant RAID protection pages to generate a recovery table page as a replacement for any of the table pages.

2. The method according to claim 1, characterized in that The at least one table includes at least one address mapping table. The memory controller is used to receive a set of first commands from a host device through a transmission interface circuit of the memory controller, and to perform a table management program to correspondingly update the at least one address mapping table, wherein the set of first commands respectively indicate a request to write a set of first data; and the memory controller is used to perform the table management program to enable the at least one table to be stored in the at least one table block through the protection of the fault-tolerant disk array, and to perform the table error correction program to correct one or more errors of the at least one table.

3. The method according to claim 2, characterized in that The at least one address mapping table includes at least one logical to physical address mapping table.

4. The method according to claim 2, characterized in that The at least one address mapping table includes at least one physical to logical address mapping table.

5. The method according to claim 2, characterized in that The at least one address mapping table includes at least one logical to physical address mapping table and at least one physical to logical address mapping table.

6. The method according to claim 1, characterized in that The step of searching backwards for the first co-location identifier relative to the any table page further comprises: searching the first parity identifier in a backward direction along a writing order of the plurality of pages in the at least one table block relative to the any one table page; The step of searching forward for the second co-location identifier relative to any one of the table pages further comprises: The second parity identifier is searched for in a forward direction along the writing sequence relative to any one of the table pages.

7. The method according to claim 1, characterized in that The prior art table FTA protection group provides error correction capability for at least one FTA protection page.

8. The method according to claim 7, characterized in that The at least one fault-tolerant disk array protection page includes a single fault-tolerant disk array protection page; and the at least one group of fault-tolerant disk array protection pages includes the first fault-tolerant disk array protection page, the last fault-tolerant disk array protection page, and any intermediate fault-tolerant disk array protection page between the first fault-tolerant disk array protection page and the last fault-tolerant disk array protection page except the any table page.

9. The method according to claim 1, characterized in that The at least one set of fault-tolerant RAID protection pages does not include any table page.

10. A memory controller of a memory device, the memory device comprising the memory controller and a non-volatile memory, the non-volatile memory comprising at least one non-volatile memory element, the at least one non-volatile memory element comprising a plurality of blocks, the memory controller comprising: a processing circuit for controlling the memory controller according to a plurality of host commands from a host device to allow the host device to access the non-volatile memory through the memory controller, wherein the processing circuit is used to perform table management of the memory device in a predetermined communication framework by means of table error correction; The memory controller performs a table error correction procedure to manage at least one table for internal management of the memory device, the at least one table is stored in at least one table block among the plurality of blocks, and is stored in the at least one table block by fault-tolerant disk array protection, and the table error correction procedure includes: In response to an occurrence of any error in any table page of an existing table fault-tolerant disk array protection group among a plurality of existing table fault-tolerant disk array protection groups, searching backward for a first parity identifier relative to the any table page, and searching forward for a second parity identifier relative to the any table page; selecting a next page of a first parity page storing the first parity identifier as a first RAID protection page among a plurality of RAID protection pages of the existing table RAID protection group, selecting a second parity page storing the second parity identifier as a last RAID protection page among the plurality of RAID protection pages, and preparing at least one set of RAID protection pages among the plurality of RAID protection pages for decoding; as well as A fault-tolerant RAID decoding operation is performed on the at least one set of fault-tolerant RAID protection pages to generate a recovery table page as a replacement for any of the table pages.

11. The memory controller according to claim 10, wherein: The at least one table includes at least one address mapping table; and the memory controller further includes: a transmission interface circuit for communicating with the host device; wherein the memory controller is used to receive a set of first commands from the host device through the transmission interface circuit of the memory controller, and perform a table management program to correspondingly update the at least one address mapping table, wherein the set of first commands respectively indicate a request to write a set of first data; The memory controller is used for executing the table management procedure to enable the at least one table to be stored in the at least one table block through the fault-tolerant disk array protection, and executing the table error correction procedure to correct one or more errors of the at least one table.

12. A memory device comprising the memory controller according to claim 10, the memory device comprising: The non-volatile memory is used to store information; and The memory controller is coupled to the non-volatile memory and is used to control the operation of the memory device.

13. An electronic device comprising the memory device of claim 12, and further comprising: The host device is coupled to the memory device, wherein the host device includes: at least one processor for controlling the operation of the host device; as well as a power supply circuit coupled to the at least one processor and configured to provide power to the at least one processor and the memory device; The memory device provides storage space for the host device.