Power-off data protection in the memory subsystem

By using data structures in the memory subsystem to restore data and delay updating logical block mapping information, the problem of data loss caused by power outages during the data programming process in the memory subsystem is solved, and the reliability and efficiency of the system are improved.

CN113031856BActive Publication Date: 2024-09-06MICRON TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011547542.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-12-24
Filing Date
2020-12-24
Publication Date
2024-09-06
Estimated Expiration
2040-12-24

AI Technical Summary

Technical Problem

In the memory subsystem, data is lost due to power outage during the programming process. The existing technology relies on additional capacitors to provide power to complete program operations, but this increases hardware costs and reduces system reliability.

Method used

Data is restored by using data structures in the source block of the cache memory in the memory subsystem, lazily updating the logical block mapping information before the data is written from the cache memory to the high-density storage area, ensuring that all pages are programmed after The source block data is then erased to protect the data in the event of a power outage.

Benefits of technology

It effectively avoids data damage and loss due to power outages, reduces dependence on additional capacitors, and improves the reliability and efficiency of the memory subsystem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113031856B_ABST
    Figure CN113031856B_ABST
Patent Text Reader

Abstract

The present application relates to power-off data protection in a memory subsystem. A media management operation is performed, i.e., a write request to program data to a memory device of a memory subsystem, the media management operation writing data from a source block of a cache memory to a set of pages of a destination block of a storage area of ​​the memory subsystem at a higher data density than the cache memory. An entry of a first data structure identifying a page count corresponding to the source block of the cache memory is generated. Upon determining that data is written to the set of pages of the destination block of the storage area, the entry is updated to identify a reduced page count corresponding to the source block, wherein when the reduced page count satisfies a condition, the data is erased from the source block. A second entry of a second data structure containing information mapping a logical block to the source block of the cache memory is also updated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate generally to memory subsystems, and more particularly, to power-off data protection in memory subsystems. Background Art

[0002] The memory subsystem may include one or more memory devices that store data. The memory devices may be, for example, non-volatile memory devices and volatile memory devices. In general, the host system may utilize the memory subsystem to store data at the memory devices and retrieve data from the memory devices. Summary of the invention

[0003] In one aspect, the present application provides a method comprising: performing a media management operation by a processing device to write data from a source block of a cache memory to a set of pages of a destination block of a storage area of ​​a memory subsystem having a higher data density than the cache memory; generating an entry of a first data structure identifying a page count corresponding to the source block of the cache memory; determining a set of pages of a destination block of the storage area to which the data is written; updating the entry to identify a reduced page count corresponding to the source block, wherein when the reduced page count satisfies a condition, erasing data from the source block; and updating a second entry of a second data structure including information mapping a logical block to the source block of the cache memory.

[0004] In another aspect, the present application further provides a non-transitory computer-readable medium comprising instructions, which, when executed by a processing device, cause the processing device to perform operations comprising: performing media management operations by the processing device to write data from a source block of a cache memory to a set of pages of a destination block of a storage area of ​​a memory subsystem having a higher data density than the cache memory; determining a set of pages of a destination block of the storage area to which the data is written; and erasing data from the source block.

[0005] In yet another aspect, the present application further provides a system comprising: a memory device; and a processing device operatively coupled to the memory device to perform operations comprising: receiving a write request to program data to the memory device; generating an intermediate entry of a data structure, the intermediate entry comprising a pointer identifying a write buffer associated with the intermediate write operation corresponding to the write request; receiving a read request to read data from the memory device; performing a lookup operation on the data structure to identify the intermediate entry; using the pointer to locate the write buffer associated with the intermediate write operation; copying the write buffer to a read buffer associated with the read request; and using the read buffer to execute the read request. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] The present disclosure will be more fully understood from the detailed description given below and the accompanying drawings of various embodiments of the present disclosure. However, the drawings should not be considered to limit the present disclosure to specific embodiments, but are only for explanation and understanding.

[0007] Figure 1 An example computing system including a memory subsystem according to some embodiments of the present disclosure is described.

[0008] Figure 2 is a flow chart of an example method for managing data structures in conjunction with garbage collection operations associated with a memory subsystem in accordance with some embodiments.

[0009] Figure 3 An example source block data structure managed by a data protection component of a memory subsystem according to some embodiments is illustrated.

[0010] Figure 4 An example data protection component that manages data structures in conjunction with garbage collection operations in accordance with some embodiments is described.

[0011] Figure 5 is a flow chart of an example method for managing data structures in conjunction with garbage collection operations associated with a memory subsystem in accordance with some embodiments.

[0012] Figure 6 is a block diagram of an example computer system in which embodiments of the present disclosure may operate. DETAILED DESCRIPTION

[0013] Aspects of the present disclosure are directed to data power loss protection in a memory subsystem. The memory subsystem may be a storage device, a memory module, or a mixture of a storage device and a memory module. Figure 1 Examples of storage devices and memory modules are described. In general, a host system may utilize a memory subsystem that includes one or more components, such as memory devices that store data. The host system may provide data to be stored at the memory subsystem and may request retrieval of data from the memory subsystem.

[0014] The memory subsystem may include a plurality of memory components having one or more memory cell arrays, such as a low-density storage device having a single-level cell (SLC) or a high-density storage device having a multi-level cell (MLC), a triple-level cell (TLC), or a quad-level cell (QLC). The host system may write data to a low-density storage location (e.g., an SLC cache) of the memory subsystem, which includes a plurality of reserved data blocks that are typically configured to store host data on a first-in, first-out basis. Conventionally, a garbage collection operation may be performed to relocate all host data stored in the SLC cache to a high-density mass storage device referred to as an XLC (e.g., MLC / TLC / QLC) storage area (e.g., having a 256GB storage size). The garbage collection operation includes a process of relocating data from one or more source data blocks (e.g., a static SLC cache) to one or more destination data blocks (e.g., an XLC storage device), with the intended purpose of data consolidation to free up storage resources of the static SLC cache for subsequent erase and new write processing. During the execution of the garbage collection operation, host data may be copied from one or more NAND locations corresponding to the SLC cache to another NAND location corresponding to a higher density storage area (e.g., an XLC storage device). During this process, a word line (e.g., a portion of a memory cell of a higher density storage device) is programmed with data. Each word line (also referred to as a "memory cell portion") contains a plurality of sub-blocks containing a plurality of pages (e.g., a lower page (LP), an upper page (UP), and an extra page (XP)), wherein one or more lower and upper pages are coupled to each other. The word line is not fully programmed until all pages of the word line have been programmed. Thus, if a power outage is experienced during the programming of the upper page or the extra page, the coupled lower and upper pages on the word line may be damaged, causing data loss. Conventionally, to address the example of a power outage during word line programming, capacitors are used to store and provide additional power to enable the last program operation associated with the word line to be completed. However, this causes additional hardware and associated device costs. Additionally, the use of capacitors to manage power-off issues reduces the reliability of the memory subsystem due to life cycle issues and limitations associated with capacitors.

[0015] Aspects of the present disclosure address the above and other deficiencies by having a memory subsystem that implements and manages a data structure capable of recovering data using data stored in source blocks of a cache memory of a memory component in the event of a power-off event during programming of a portion of a memory cell (e.g., a word line). During programming of data written by a host system into the memory component, the data is stored in one or more source blocks (e.g., SLC blocks of the cache memory). A memory subsystem memory controller maintains a data structure that includes mapping information (also referred to as a "logical to physical (L2P) mapping data structure") between addresses of source blocks in a cache memory corresponding to a series of logical addresses of a logical block of a memory device and physical addresses of memory cells of the memory device.

[0016] When the cache memory reaches capacity (e.g., is full), a media management operation (e.g., a reclamation or garbage collection process) is initiated to move data from the cache memory to a destination block (e.g., an XLC block such as a TLC block or an MLC block) of a higher density storage area of ​​the memory subsystem. The memory controller determines to program an entire word line (e.g., all pages of a word line) before erasing the source block from the data cache. Additionally, the memory controller delays updating of an L2P mapping data structure with updated source block address information until after determining that the entire word line has been programmed.

[0017] Advantageously, rather than updating the cache memory (i.e., erasing data from source blocks in the cache memory) and the L2P mapping data structure (i.e., updating source block address information) after a page programming operation is completed, the memory controller delays updating until after it is determined that the entire word line is "safe" (i.e., all pages of a destination block (e.g., a TLC block) of a high-density storage device have been programmed). Advantageously, this results in protection against data corruption and loss due to asynchronous power-off events occurring during programming of the destination block. In addition, after a power-off event, a power-on rebuild process can be performed to recover data from a saved (i.e., unerased) source block (e.g., an SLC block) to complete the interrupted program operation and store the data properly in the destination block (e.g., a TLC block). This rebuild from the cache memory can be performed without the risk of erasing the source block data before the destination block is fully programmed. Advantages of the present disclosure further include, but are not limited to, protection against destination block data loss by avoiding the use of additional power-off capacitors to provide stored power to complete program operations in the event of a power outage as used in conventional systems.

[0018] Figure 1An example computing system 100 is illustrated that includes a memory subsystem 110 according to some embodiments of the present disclosure. Memory subsystem 110 may include media such as one or more volatile memory devices (e.g., memory device 140), one or more non-volatile memory devices (e.g., memory device 130), or a combination of these.

[0019] The memory subsystem 110 may be a storage device, a memory module, or a mixture of a storage device and a memory module. Examples of storage devices include solid-state drives (SSDs), flash drives, universal serial bus (USB) flash drives, embedded multimedia controller (eMMC) drives, universal flash storage (UFS) drives, secure digital (SD) cards, and hard disk drives (HDDs). Examples of memory modules include dual in-line memory modules (DIMMs), small outline DIMMs (SO-DIMMs), and various types of non-volatile dual in-line memory modules (NVDIMMs).

[0020] The computing system 100 may be a computing device such as a desktop computer, a laptop computer, a network server, a mobile device, a vehicle (e.g., an airplane, a drone, a train, a car, or other transportation), a device with Internet of Things (IoT) capabilities, an embedded computer (e.g., an embedded computer included in a vehicle, industrial equipment, or a networked commercial device), or such a computing device that includes a memory and a processing device.

[0021] The computing system 100 may include a host system 120 coupled to one or more memory subsystems 110. In some embodiments, the host system 120 is coupled to memory subsystems 110 of different types. Figure 1 An example of a host system 120 coupled to one memory subsystem 110 is illustrated. As used herein, "coupled to" or "coupled with" generally refers to a connection between components, which may be an indirect communication connection or a direct communication connection (e.g., without intervening components), whether wired or wireless, including connections such as electrical connections, optical connections, magnetic connections, etc.

[0022] The host system 120 may include a processor chipset and a software stack executed by the processor chipset. The processor chipset may include one or more cores, one or more caches, a memory controller (e.g., an NVDIMM controller), and a storage protocol controller (e.g., a PCIe controller, a SATA controller). The host system 120 uses, for example, the memory subsystem 110 to write data to the memory subsystem 110 and read data from the memory subsystem 110.

[0023] The host system 120 may be coupled to the memory subsystem 110 via a physical host interface. Examples of the physical host interface include, but are not limited to, a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCIe) interface, a Universal Serial Bus (USB) interface, a Fibre Channel, a Serial Attached SCSI (SAS), a Double Data Rate (DDR) memory bus, a Small Computer System Interface (SCSI), a Dual In-line Memory Module (DIMM) interface (e.g., a DIMM socket interface supporting Double Data Rate (DDR)), etc. The physical host interface may be used to transfer data between the host system 120 and the memory subsystem 110. When the memory subsystem 110 is coupled to the host system 120 through a PCIe interface, the host system 120 may further utilize an NVM Express (NVMe) interface to access components (e.g., the memory device 130). The physical host interface may provide an interface for transferring control, address, data, and other signals between the memory subsystem 110 and the host system 120. Figure 1 Memory subsystem 110 is illustrated as an example. In general, host system 120 can access multiple memory subsystems via the same communication connection, multiple separate communication connections, and / or a combination of communication connections.

[0024] The memory devices 130, 140 may include any combination of different types of non-volatile memory devices and / or volatile memory devices. Volatile memory devices (e.g., memory device 140) may be, but are not limited to, random access memory (RAM), such as dynamic random access memory (DRAM) and synchronous dynamic random access memory (SDRAM).

[0025] Some examples of non-volatile memory devices (e.g., memory device 130) include NAND-type flash memory and write-in-place memory, such as a three-dimensional cross-point ("3D cross-point") memory device, which is a cross-point array of non-volatile memory cells. The cross-point array of non-volatile memory can perform bit storage based on changes in body resistance in conjunction with a stackable cross-grid data access array. In addition, in contrast to many flash-based memories, cross-point non-volatile memory can perform write-in-place operations, where non-volatile memory cells can be programmed without pre-erasing the non-volatile memory cells. NAND-type flash memory includes, for example, two-dimensional NAND (2D NAND) and three-dimensional NAND (3D NAND).

[0026] Each of the memory devices 130 may include one or more memory cell arrays. One type of memory cell, for example, a single-level cell (SLC) may store one bit per cell. Other types of memory cells, such as multi-level cells (MLC), three-level cells (TLC), and four-level cells (QLC) may store multiple bits per cell. In some embodiments, each of the memory devices 130 may include one or more memory cell arrays, such as SLC, MLC, TLC, QLC, or any combination of these. In some embodiments, a particular memory device may include an SLC portion of a memory cell as well as an MLC portion, a TLC portion, or a QLC portion. The memory cells of the memory device 130 may be grouped into pages, which may refer to a logical unit of a memory device for storing data. For some types of memory (e.g., NAND), pages may be grouped to form blocks.

[0027] Although nonvolatile memory components such as a 3D cross-point array of nonvolatile memory cells and NAND-type flash memory (e.g., 2D NAND, 3D NAND) are described, the memory device 130 may be based on any other type of nonvolatile memory, such as read-only memory (ROM), phase-change memory (PCM), select memory, other chalcogenide-based memories, ferroelectric transistor random access memory (FeTRAM), ferroelectric random access memory (FeRAM), magnetic random access memory (MRAM), spin transfer torque (STT)-MRAM, conductive bridging RAM (CBRAM), resistive random access memory (RRAM), oxide-based RRAM (OxRAM), NOR flash memory, and electrically erasable programmable read-only memory (EEPROM).

[0028] The memory subsystem controller 115 (or simply controller 115) can communicate with the memory device 130 to perform operations, such as reading data, writing data, or erasing data and other such operations at the memory device 130. The memory subsystem controller 115 may include hardware, such as one or more integrated circuits and / or discrete components, buffer memory, or a combination thereof. The hardware may include digital circuitry with dedicated (i.e., hard-coded) logic to perform the operations described herein. The memory subsystem controller 115 may be a microcontroller, dedicated logic circuitry (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or other suitable processor.

[0029] The memory subsystem controller 115 may include a processor 117 (e.g., a processing device) configured to execute instructions stored in a local memory 119. In the illustrated example, the local memory 119 of the memory subsystem controller 115 includes an embedded memory configured to store instructions for executing various processes, operations, logic flows, and routines that control the operation of the memory subsystem 110, including handling communications between the memory subsystem 110 and the host system 120.

[0030] In some embodiments, local memory 119 may include memory registers that store memory pointers, fetched data, etc. Local memory 119 may also include read-only memory (ROM) for storing microcode. Figure 1 The example memory subsystem 110 in FIG. 1 has been illustrated as including a memory subsystem controller 115, but in another embodiment of the present disclosure, the memory subsystem 110 does not include a memory subsystem controller 115 and may actually rely on external control (e.g., provided by an external host or by a processor or controller separate from the memory subsystem).

[0031] In general, the memory subsystem controller 115 may receive commands or operations from the host system 120, and may convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory device 130. The memory subsystem controller 115 may be responsible for other operations such as wear leveling operations, media management operations such as garbage collection operations, error detection and error correction code (ECC) operations, encryption operations, cache operations, and address translation between logical block addresses (e.g., logical block addresses (LBA), name space) and physical block addresses (e.g., physical block addresses) associated with the memory device 130. The memory subsystem controller 115 may further include a host interface circuit system to communicate with the host system 120 via a physical host interface. The host interface circuit system may convert commands received from the host system into command instructions to access the memory device 130, and convert responses associated with the memory device 130 into information for the host system 120.

[0032] The memory subsystem 110 may also include additional circuitry or components not illustrated. In some embodiments, the memory subsystem 110 may include a cache or buffer (e.g., DRAM) and address circuitry (e.g., row decoders and column decoders) that may receive addresses from the memory subsystem controller 115 and decode the addresses to access the memory device 130.

[0033] In some embodiments, the memory device 130 includes a local media controller 135 that operates in conjunction with the memory subsystem controller 115 to perform operations on one or more memory cells of the memory device 130. An external controller (e.g., the memory subsystem controller 115) may externally manage the memory device 130 (e.g., perform media management operations on the memory device 130). In some embodiments, the memory device 130 is a managed memory device, which is a raw memory device combined with a local controller (e.g., the local controller 135) to perform media management within the same memory device package. An example of a managed memory device is a managed NAND (MNAND) device.

[0034] The memory subsystem 110 includes a data protection component 113 that can be used to manage data written by the host system 120 during a media management operation (e.g., a garbage collection or recycling process), wherein data is written from a source block (e.g., an SLC block) of a cache memory of the memory subsystem to a destination block (e.g., a TLC block) of a high-density storage area of ​​the memory subsystem. The data protection component 113 also manages a data structure (also referred to as an "L2P mapping data structure") that includes mapping information that associates a logical address with a physical address (also referred to as a source block address) of a source block of the memory subsystem. The data protection component 113 determines that a portion of memory cells (e.g., all pages of a word line) that have been written to the destination block during a garbage collection operation before erasing the written data from the source block of the cache memory. In so doing, the data protection component 113 enables a data recovery process to be performed using the data of the saved source block in the event of a power failure event that occurs before the portion of the memory cells is fully programmed. The data protection component 113 further delays updating of the L2P mapping data structure with a new source block address until after it is determined that the portion of the memory cells has been fully programmed as part of the media management operation (e.g., a garbage collection operation). In some embodiments, the memory subsystem controller 115 includes at least a portion of the data protection component 113. For example, the memory subsystem controller 115 may include a processor 117 (processing device) configured to execute instructions stored in the local memory 119 for performing the operations described herein. In some embodiments, the data protection component 113 is part of the host system 120, an application, or an operating system. In the same or alternative embodiments, portions of the data protection component 113 are part of the host system 120, while other portions of the data protection component 113 are executed at the memory subsystem controller 115.

[0035] Figure 2is a flow chart of an example method 200 for managing data stored in one or more entries of a source block and L2P map data structure in conjunction with media management operations (e.g., garbage collection operations) according to some embodiments. The method 200 may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, a dedicated logic, a programmable logic, a microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, the method 200 is performed by Figure 1 The data protection component 113 of is executed. Although shown in a specific order or sequence, the order of the processes may be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes may be performed in a different order, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every example. Other process flows are possible.

[0036] like Figure 2 , at operation 210, processing logic performs a media management operation to write data from a source block of a cache memory to a set of pages of a destination block of a storage area of ​​a memory subsystem at a higher density than the cache memory. In one embodiment, the source block may be an SLC block and the higher density storage area of ​​the memory subsystem may be a TLC block. In one embodiment, the source block may be a one-bit memory between multiple pages that are not coupled as part of a memory cell (e.g., a word line). In one embodiment, the media management operation includes a garbage collection or reclamation process that may be initiated in response to determining that the cache memory has reached capacity or a threshold level. In one embodiment, in response to determining that the page of the destination block to be written to is an LP / UP page, a physical to logical (P2L) page may be updated, and if the P2L page is full, then the data stored in the source block of the cache memory may be written to the destination block (i.e., a media management flow may be initiated and executed, including sending a reclamation write request to a back end of the memory subsystem).

[0037] At operation 220, processing logic generates an entry of a first data structure identifying a page count corresponding to a source block of the cache memory. In one embodiment, the first data structure includes information related to the source block of the cache memory. For example, the first data structure may include a table that includes one or more entries related to the source block of the cache that can be used to manage host write data and media management processing (e.g., garbage collection processing). The first data structure may include an entry that identifies a source block number, a first value counter such as a page count (e.g., the number of pages to be moved or written from the source block to the destination block), and a second value counter such as a program erase count (PEC) (e.g., a version identifier). In one embodiment, an entry is generated that includes a source block number corresponding to a source block storing host write data, a page count associated with the source block, and a program erase count. An example of the first data structure 300 is shown at Figure 3 In. Figure 3 As shown in , entries associated with multiple source blocks of cache memory (e.g., multiple SLC blocks storing host write data to be moved or written to a destination block of a memory subsystem) may be maintained and updated. In one embodiment, the entry associated with the source block may include the current PEC in the first data structure (e.g., source block table) to indicate that the source block is not released and reused. In one embodiment, each entry may include a count value corresponding to a page count from the source block. In one embodiment, the source block page count decreases due to each page programmed to the destination block, and when the source block page count satisfies a condition (e.g., equal to zero), the current source block is safe to erase, and a switch may be performed to the next source block in the source block data structure 300.

[0038] In operation 230, processing logic determines the set of pages of the destination block of the storage region to which the data is written. In one embodiment, determining that the data has been written to all pages (e.g., a set of pages) indicates that the write operation of a portion of the memory cells (e.g., an entire word line) is complete. In one embodiment, the processing device can determine that the data has been written to all pages of the destination block by determining that programming of the last extra page (XP) of the word line is complete, thereby indicating that the word line is safe.

[0039] In operation 240, processing logic updates the entry to identify a reduced page count corresponding to the source block, wherein the data is erased from the source block when the reduced page count satisfies a condition. In one embodiment, the condition is satisfied when the page count associated with the source block is equal to zero. In one embodiment, upon determining that the page count satisfies the condition (e.g., the page count is equal to zero), processing logic may release the source block and erase the data in view of confirming that the word line is safe. In one embodiment, processing logic maintains the data in the source block (i.e., does not erase the data) until after determining that the word line is safe (i.e., in operation 230).

[0040] In operation 250, processing logic updates a second entry of a second data structure containing information mapping the logical block to a source block of the cache memory. In one embodiment, the second data structure is an L2P mapping data structure containing an entry (also referred to as a "second entry") that maps the logical block to an address of the source block of the cache memory. In one embodiment, in contrast to conventional systems, the previous mapping (e.g., logical block address to physical block address of the source block) is maintained in the L2P mapping data structure (e.g., table) until after the entire word line is determined to be safe in operation 230. Advantageously, if a power failure event occurs before operation 230, a data recovery operation may be performed to recover data to be written to the destination block using data saved (i.e., not erased) in the source block and the L2P mapping information saved in the L2P mapping data structure. In one embodiment, data is protected from being corrupted during a garbage collection process (e.g., writing data from a source block to a destination block) by determining that the data on the destination block is safe before erasing the data on the source block. In one embodiment, by retaining the data on the source block until the destination block is fully programmed, a power-on rebuild process may be performed to recover the data in response to a power-off event that occurs during the garbage collection process.

[0041] Figure 4 An example first data structure 400 (ie, source block data structure) and a second data structure 420 (ie, L2P mapping data structure) managed by the data protection component 113 according to an embodiment are illustrated. Figure 4 , the data protection component 113 is configured to receive a write request from the host system 120. The write request includes an instruction to perform a write operation to program data to a physical destination block 472 of a physical page of a higher density storage area 470 of the memory subsystem. The write request identifies a logical block address associated with one or more logical blocks of the memory subsystem. The data protection component 113 employs a data structure 420 to convert the logical block address to a corresponding source block address (e.g., Figure 4 4. The first data structure 400 is maintained in a cache memory 450 (e.g., an SLC storage device) and includes information associated with one or more source blocks. A garbage collection process may be performed to write host data from the source blocks to a destination block 472 of a higher density storage area 470 (e.g., a TLC storage device).

[0042] In one embodiment, source block data structure 400 may be used to record source block numbers and program error counts (PECs) during a garbage collection process. In one embodiment, if a logical block is overwritten during a garbage collection process, the source block number in L2P mapping data structure 420 changes so that the source block number and PEC do not match the source block number and PEC stored in source block data structure 400. In one embodiment, a page count from a source block is used to associate physical to logical (P2L) mapping information.

[0043] In one embodiment, the L2P mapping data structure 420 may include standard entries and intermediate entries. The standard entries may be associated with memory locations that are not involved in a write request that is in process or in progress. The standard entries (also referred to as "standard L2P entries") may include mapping translation information associated with a logical address to a physical address of a source block, including a logical block address header, a plan number of the logical block address header, a logical unit number (LUN), and physical block address information (e.g., page and block identifiers).

[0044] An intermediate entry is an entry in the L2P mapping data structure that identifies the address of a write buffer that stores data associated with an intermediate or in-progress write operation during the pendency of the write operation (e.g., before the write operation has completed and the corresponding data has been written to the destination physical location of the memory subsystem). In one embodiment, the intermediate entry includes a pointer (e.g., a tag or other identifier that corresponds to the address of the write buffer 452 that stores the data associated with the intermediate write operation). In one embodiment, the pointer may include a system-managed tag (also referred to as a "systag") that has one or more additional bits that can be used to store information identifying the intermediate write operation. In one embodiment, the pointer identifies the address of the write buffer in the cache that stores the data associated with the intermediate write operation.

[0045] In one embodiment, upon receiving a write request, processing logic may check whether a corresponding entry in the L2P mapping data structure is a standard entry or an intermediate entry (i.e., associated with an intermediate write operation). In one embodiment, processing logic may identify that the entry corresponding to the write request is a standard entry, generate an intermediate entry, and store the intermediate entry in the data structure. In one embodiment, processing logic may identify that the entry corresponding to the write request is an intermediate entry (e.g., the entry is associated with another intermediate write operation), and processing logic may replace a pointer to the current intermediate entry with an updated pointer associated with the received write request.

[0046] In one embodiment, the data protection component 113 may monitor the intermediate write operation corresponding to the write request during the pendency of the write operation based on the intermediate entry 422 in the data structure 420. In one embodiment, the intermediate entry 422 may include a pointer or other identifier that identifies an address in the cache 450 of the write buffer 452 associated with the intermediate write operation. In one embodiment, the pointer is a system management tag (or "systag") number that includes one or more bits to identify the location of the write buffer containing data associated with the intermediate write operation.

[0047] In one embodiment, the physical block address entry stored in the data structure 420 may identify the physical block address as "pending" to signal to the data protection component 413 that the data has not yet been written to the physical memory device of the memory subsystem. Figure 4 , a pointer table (or other data structure) may be stored in cache 450 and include pointer information associated with each intermediate write operation. In one embodiment, if after a write operation is completed, data protection component 113 determines that the pointer stored in intermediate entry 422 does not match the pointer information stored in the pointer table, then data protection component 113 determines that the logical block has been overwritten.

[0048] In one embodiment, the data protection component 113 delays updating the source block data structure 400 and the L2P mapping data structure 420 until after programming of the entire portion of the destination block (e.g., the lower page, upper page, and extra page of the word line) 474 is completed. In one embodiment, the data protection component 113 saves the data in the source block data structure 400 and the L2P mapping data structure 420 to enable data recovery processing in the event of a power failure that occurs while the garbage collection process is in progress but has not yet completed (e.g., during UP / XP programming).

[0049] Figure 5 is a flow chart of an example method 500 for managing a data structure to save data in conjunction with a host write operation and a garbage collection operation for performing a data recovery process in response to a power failure event that occurs during a garbage collection operation, according to some embodiments. The method 500 may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, a dedicated logic, a programmable logic, a microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, the method 500 is performed by Figure 1 In one embodiment, the operations of method 500 may be combined with Figure 2230 is performed. In one embodiment, method 500 involves managing source block data structures and L2P mapping data structures in conjunction with the execution of garbage collection operations to move or write host write data from source blocks (e.g., SLC blocks) of cache memory to portions (e.g., all pages of a word line) of destination blocks (e.g., TLC blocks) of a high-density storage area of ​​a memory subsystem. Although shown in a particular order or sequence, the order of the processes may be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes may be performed in a different order, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every example. Other process flows are possible.

[0050] like Figure 5 , at operation 510, processing logic determines a last extra page of data (e.g., data written by a host to a memory subsystem) to be written from a first source block to a destination block of a high density storage area. In one embodiment, determining the last extra page of the destination block indicates that all pages of a word line have been programmed and the word line is “safe.” In one embodiment, data is written from the first source block to the destination block as part of a garbage collection operation performed.

[0051] In operation 520, processing logic accesses the L2P mapping data structure to identify an entry corresponding to the logical block and the first source block. In operation 525, processing logic determines whether the entry is an intermediate entry (e.g., associated with an intermediate or ongoing write operation). If the entry is an intermediate entry, then process 500 continues to operation 570, as described in more detail below. If the entry is a standard entry, then the process continues to operation 530.

[0052] In operation 530, processing logic identifies a first source block from the L2P table. In operation 540, processing logic identifies a second source block from a source block data structure. In one embodiment, the source block data structure (e.g., Figure 3 and Figure 4 The example source block data structure shown in ) contains entries associated with source blocks of the cache memory.

[0053] In operation 545, processing logic determines whether information associated with the first source block and the second source block address matches. If the first source block information and the second source block information do not match, then method 500 proceeds to operation 570. In one embodiment, if the block number of the first source block does not match the block number of the second source block, then processing logic determines that the L2P mapping is changed before confirming that the word line is "safe", and processing logic discards or removes the "pending" state of the mapping. In one embodiment, if the block number of the first source block and the block number of the second source block match, but the PEC does not match, then processing logic determines that the logic block has been rewritten and the first source block has been reused with a mapping to the same logic block. In one embodiment, processing logic increases the PEC and discards the pending mapping to the previous source block.

[0054] In operation 545, processing logic may determine that the mapping is valid by determining that the block number and PEC of the first source block stored in the L2P mapping data structure matches the block number and PEC of the second source block stored in the source block data structure, and method 500 proceeds to operation 550. In operation 550, processing logic decreases the valid page count of the second source block in the source block data structure. In operation, processing logic updates the L2P mapping data structure with the updated mapping for the new source block. In one embodiment, processing logic may increase the valid page count number associated with the new source block.

[0055] In operation 570, processing logic decrements the page count of the second source block in the source block data structure. In operation 580, processing logic may check to determine whether the page count of the second source block satisfies a condition. In one embodiment, the condition is satisfied when the page count reaches or equals zero, thereby indicating that the second source block is safe to erase.

[0056] In operation 590, processing logic executes an instruction to erase the second source block. In one embodiment, by erasing the data of the second source block (e.g., from a cache memory of the memory subsystem) at this stage of method 500 (e.g., after determining that the word lines are closed and safe), processing logic preserves the data in the second source block pending a data recovery operation in response to a power failure event occurring during a garbage collection operation (e.g., before writing data from the second source block to all pages of the word lines of the destination block).

[0057] Figure 6 An example machine of a computer system 600 is illustrated in which a set of instructions for causing the machine to perform any one or more of the methodologies discussed herein may be executed. In some embodiments, the computer system 600 may correspond to a host system (e.g., Figure 1 host system 120) or can be used to perform operations of the controller (e.g., execute an operating system to perform operations corresponding to Figure 1The host system includes, is coupled to, or utilizes a memory subsystem (e.g., Figure 1 In some embodiments, the machine may be connected (e.g., using a network) to other machines in a LAN, an intranet, an extranet, and / or the Internet. The machine may operate in the capacity of a server or a client machine in a client-server network environment, or in the capacity of a peer machine in a peer-to-peer (or distributed) network environment, or as a server or a client machine in a cloud computing infrastructure or environment.

[0058] The machine may be a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a cellular phone, a network appliance, a server, a network router, a switch or a bridge, a digital or non-digital circuit system, or any machine capable of executing a set of instructions (sequential or otherwise) that specify actions to be performed by the machine. In addition, while a single machine is described, the term "machine" should also be construed to include any collection of machines that individually or collectively execute one (or more) sets of instructions to perform any one or more of the methodologies discussed herein.

[0059] The example computer system 600 includes a processing device 602, a main memory 604 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM), such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM)), etc.), a static memory 606 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage system 618, which communicate with each other via a bus 630.

[0060] Processing device 602 represents one or more general purpose processing devices, such as a microprocessor, a central processing unit, or the like. More specifically, the processing device may be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor implementing other instruction sets, or a processor implementing a combination of instruction sets. Processing device 602 may also be one or more special purpose processing devices, such as an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), a network processor, or the like. Processing device 602 is configured to execute instructions 626 for performing the operations and steps discussed herein. Computer system 600 may further include a network interface device 608 to communicate via a network 620.

[0061] The data storage system 618 may include a machine-readable storage medium 624 (also referred to as a computer-readable medium) on which is stored one or more sets of instructions 626 or software embodying any one or more of the methodologies or functions described herein. The instructions 626 may also reside, completely or at least partially, within the main memory 604 and / or within the processing device 602 during execution thereof by the computer system 600, the main memory 604 and the processing device 602 also constituting machine-readable storage media. The machine-readable storage medium 624, the data storage system 618, and / or the main memory 604 may correspond to Figure 1 Memory subsystem 110.

[0062] In one embodiment, instructions 626 include implementing instructions corresponding to a data protection component (e.g., Figure 1 The machine-readable storage medium 624 is shown as a single medium in the example embodiment, but the term "machine-readable storage medium" should be considered to include a single medium or multiple media storing one or more sets of instructions. The term "machine-readable storage medium" should also be considered to include any medium capable of storing or encoding a set of instructions for execution by a machine and causing the machine to perform any one or more of the methods of the present disclosure. Therefore, the term "machine-readable storage medium" should be considered to include, but not limited to, solid-state memory, optical media, and magnetic media.

[0063] Some portions of the previous detailed description have been presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means by which those skilled in the data processing arts most effectively convey the substance of their work to others skilled in the art. An algorithm is here and generally considered to be a self-consistent sequence of operations that leads to a desired result. An operation is one that requires physical manipulation of physical quantities. Typically (but not necessarily), these quantities take the form of electrical or magnetic signals capable of being stored, combined, compared, and otherwise manipulated. At times, it has proven convenient, primarily for common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.

[0064] It should be borne in mind, however, that all of these and similar terms should be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. The present disclosure may be directed to the actions and processes of a computer system or similar electronic computing device that manipulates and transforms data represented as physical (electronic) quantities within a computer system's registers and memories into other data similarly represented as physical quantities within the computer system's memories or registers or other such information storage systems.

[0065] The present disclosure also relates to an apparatus for performing the operations described herein. This apparatus may be specially constructed for the desired purpose, or it may comprise a general purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a computer-readable storage medium, such as, but not limited to, any type of disk (including floppy disks, optical disks, CD-ROMs, and magnetic optical disks), read-only memory (ROM), random access memory (RAM), EPROM, EEPROM, magnetic or optical cards, or any type of medium suitable for storing electronic instructions, each coupled to a computer system bus.

[0066] The algorithms and displays presented herein are not inherently related to any particular computer or other device. Various general purpose systems may be used with programs according to the teachings herein, or it may prove convenient to construct more specialized devices to perform the methods. The structures of a variety of these systems will be presented as set forth in the description below. In addition, the present disclosure is described without reference to any particular programming language. It will be appreciated that a variety of programming languages ​​may be used to implement the teachings of the present disclosure as described herein.

[0067] The present disclosure may be provided as a computer program product or software, which may include a machine-readable medium having instructions stored thereon, which instructions may be used to program a computer system (or other electronic device) to perform a process according to the present disclosure. A machine-readable medium includes any mechanism for storing information in a form readable by a machine (e.g., a computer). In some embodiments, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., computer) readable storage medium, such as a read-only memory ("ROM"), a random access memory ("RAM"), a magnetic disk storage medium, an optical storage medium, a flash memory component, etc.

[0068] In the foregoing description, embodiments of the present disclosure have been described with reference to specific example embodiments thereof. It will be apparent that various modifications may be made to the present disclosure without departing from the broader spirit and scope of the embodiments of the present disclosure as set forth in the appended claims. Therefore, the description and drawings should be viewed in an illustrative sense rather than a restrictive sense.

Claims

1. A method comprising: executing, by a processing device, a media management operation to write data from a source block of a cache memory to a set of pages of a destination block of a storage area of ​​a memory subsystem having a higher data density than the cache memory; generating an entry of a first data structure identifying a page count corresponding to the source block of the cache memory; determining the set of pages of the destination block of the storage area to which the data is to be written; updating the entry to identify a decremented page count corresponding to the source block, wherein when the decremented page count satisfies a condition, erasing the data from the source block; and A second entry of a second data structure including information mapping a logical block to the source block of the cache memory is updated.

2. The method of claim 1 , wherein the first data structure comprises a source block list including information identifying a plurality of source blocks for storing host write data to be written to one or more destination blocks as part of the media management operation.

3. The method of claim 1, wherein the second data structure comprises a logical-to-physical (L2P) block address map including the information mapping the logical block to the source block of the cache memory.

4. The method according to claim 1, further comprising: identifying a power outage event associated with the destination block of the storage area; and A data recovery operation is performed using the data stored in the source block to complete the write to the destination block. 5 . The method of claim 1 , wherein the set of pages of the destination block of the storage area comprises a plurality of pages corresponding to word lines of the memory subsystem.

6. The method according to claim 1, further comprising: determining that the reduced page count satisfies the condition, wherein the condition is satisfied when the reduced page count is equal to zero; and The data is erased from the source block.

7. The method of claim 1, wherein updating the second entry of the second data structure comprises replacing the mapping for the source block with an updated mapping for a different source block.

8. A non-transitory computer-readable medium comprising instructions that, when executed by a processing device, cause the processing device to perform operations comprising: executing, by a processing device, a media management operation to write data from a source block of a cache memory to a set of pages of a destination block of a storage area of ​​a memory subsystem having a higher data density than the cache memory; determining the set of pages of the destination block of the storage area to which the data is to be written; and The data is erased from the source block.

9. The non-transitory computer-readable medium of claim 8, wherein the set of pages comprises one or more lower pages, upper pages, and additional pages corresponding to word lines of the destination block.

10. The non-transitory computer-readable medium of claim 8, the operations further comprising: In response to determining that the data is written to the set of pages of the destination block, information identifying the source block is erased from a data structure containing a mapping between logical blocks and the source blocks.

11. The non-transitory computer-readable medium of claim 8, the operations further comprising: prior to erasing the data from the source block, identifying a power failure event associated with the destination block of the storage area; and A data recovery operation is performed using the data stored in the source block to complete the write to the destination block.

12. The non-transitory computer-readable medium of claim 8, the operations further comprising: decrementing a page count value associated with the source block to produce a decremented page count value; and It is determined that the decremented page count value satisfies a condition, wherein the condition is satisfied when the decremented page count is equal to zero.

13. The non-transitory computer-readable medium of claim 8, the operations further comprising: A plurality of entries of a source block list are managed, the source block list including information identifying a plurality of source blocks for storing host write data to be written to one or more destination blocks as part of the media management operation.

14. A system comprising: Memory device; and a processing device operatively coupled to the memory device to perform operations comprising: receiving a write request to program data to the memory device; generating an intermediate entry of a data structure, the intermediate entry comprising a pointer identifying a write buffer associated with an intermediate write operation corresponding to the write request; receiving a read request to read the data from the memory device; performing a lookup operation on the data structure to identify the intermediate entry; using the pointer to locate the write buffer associated with the intermediate write operation; copying the write buffer to a read buffer associated with the read request; and The read request is performed using the read buffer.

15. The system of claim 14, wherein the data structure includes a source block list including information identifying a plurality of source blocks for storing host write data to be written to one or more destination blocks as part of a media management operation.

16. The system of claim 14, wherein the data structure comprises a logical-to-physical (L2P) block address map including information mapping a logical block address to a source block of the cache memory.

17. The system of claim 14, the operations further comprising: identifying a power outage event associated with a destination block of a storage area; and A data recovery operation is performed using the data stored in the source block to complete the write to the destination block.

18. The system of claim 17, wherein the set of pages of the destination block of the storage area comprises a plurality of pages corresponding to word lines of a memory subsystem.

19. The system of claim 17, the operations further comprising: determining that a reduced page count satisfies a condition, wherein the condition is satisfied when the reduced page count is equal to zero; and The data is erased from the source block.

20. The system of claim 14, wherein updating the intermediate entry of the data structure comprises replacing a mapping for a source block with an updated mapping for a different source block.