Write commands are kept in the partition namespace

By programming data at different stages in the solid-state drive using partitioned namespaces and voltage targets, the problem of limited storage in SSD controllers is solved, improving performance and throughput and reducing power consumption.

CN113168374BActive Publication Date: 2024-10-18SANDISK TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201980079462.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-17
Publication Date
2024-10-18
Estimated Expiration
2039-12-17

AI Technical Summary

Technical Problem

Solid-state drive (SSD) controllers have limited internal storage, resulting in the need to reduce the number of parallel commands when processing write commands, affecting performance, throughput and efficiency, and increasing power consumption.

Method used

Fuzzy and fine programming of data using different stages of the partition namespace (ZNS) and voltage targets by writing data to erase blocks across multiple partitions and completing the write on the second retrieval, delay Complete write commands, reducing controller storage requirements.

Benefits of technology

Improves SSD performance and throughput, reduces power consumption, and reduces controller storage requirements, delays completion of write commands, and optimizes overall performance and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113168374B_ABST
    Figure CN113168374B_ABST
Patent Text Reader

Abstract

The present disclosure as a whole relates to a method of operating a storage device. A controller of the storage device retrieves data of a first command for a first time and performs a first programming pass of the data of the first command to a first page in a first erase block. Then, the controller retrieves data of a second command for a first time and performs a first programming pass of the data of the second command to a second page in the first erase block. Upon retrieving the second command, the controller completes processing of the first command by retrieving the data of the first command for a second time and writing the data of the first command to the first page by performing a second programming pass. The data of the first command is stored in a host device until the second programming pass is completed.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to U.S. Patent Application No. 16 / 696,830, filed on November 26, 2019, which claims the benefit of U.S. Provisional Patent Application Serial No. 62 / 868,792, filed on June 28, 2019, both of which are hereby incorporated herein by reference. Background Art Technical Field

[0004] Embodiments of the present disclosure relate generally to storage devices, such as solid-state drives (SSDs).

[0005] Description of Related Art

[0006] Storage devices such as SSDs can be used in computers in applications that require relatively low latency and high-capacity storage. For example, an SSD can exhibit lower latency than a hard disk drive (HDD), especially for random reads and writes. Typically, the controller of an SSD receives a command to read or write data from a host device. For a write command, the data associated with the command is then temporarily stored in an internal buffer or memory of the controller. Once the data associated with the command is stored in the internal memory of the controller, the controller sends a command completion entry to the host. At the same time, the data associated with the command is written to a medium or memory device in the background. Therefore, the data is stored in the internal memory of the controller for the entire duration of processing the write command.

[0007] However, SSD controllers have a limited amount of internal storage, which impacts the SSD in terms of both power and cost. If the controller's internal memory fills up completely, the controller may reduce the number of commands that are active in parallel or parse commands without pulling in the associated data. Therefore, temporarily storing data associated with commands in the controller's internal memory when sending command completion entries and when writing data to the media adversely affects overall SSD performance, throughput, and efficiency, and increases power consumed when processing commands.

[0008] Therefore, there is a need for a method of operating a memory device that improves the performance and throughput of the memory device while reducing the power consumed. Summary of the invention

[0009] The present disclosure as a whole relates to a method of operating a storage device. A controller of the storage device retrieves data of a first command for a first time and performs a first programming pass of the data of the first command to a first page in a first erase block. Then, the controller retrieves data of a second command for a first time and the controller performs a first programming pass of the data of the second command to a second page in the first erase block. Upon retrieving the second command, the controller completes processing of the first command by retrieving the data of the first command for a second time and writing the data of the first command to the first page by performing a second programming pass. The data of the first command is stored in a host device until the second programming pass is completed.

[0010] In one embodiment, a storage device includes a media unit and a controller coupled to the media unit, wherein the capacity of the media unit is divided into a plurality of partitions. The controller is configured to: retrieve a first command to write data to a first page in a first erase block of the media unit, the first erase block being disposed in a first partition of the plurality of partitions; retrieve a second command to write data to a second page in the first erase block; and upon retrieval of the second command, write data associated with the first command to the first page in the first erase block.

[0011] In another embodiment, a storage device includes a media unit. The capacity of the media unit is divided into a plurality of partitions. The storage device also includes a controller coupled to the media unit. The controller is configured to: perform a first programming pass of data associated with a first command to write the data portion to a first page in a first erase block of a first partition of the plurality of partitions; perform a first programming pass of data associated with a second command to write the data portion to a second page in the first erase block; and when performing the first programming pass of data associated with the second command, perform a second programming pass to write the data associated with the first command to the first page in the first erase block.

[0012] In yet another embodiment, a storage device includes a media unit and a controller coupled to the media unit, wherein the capacity of the media unit is divided into a plurality of partitions. The controller is configured to: retrieve a first command to write data to a first page in a first erase block of the storage device, the first erase block being disposed in a first partition of the plurality of partitions; write a portion of the data associated with the first command to the first page in the first erase block at a first voltage target applied for a first amount of time; retrieve a second command to write data to a second page in the first erase block; write a portion of the data associated with the second command to the second page in the first erase block at the first voltage target; and upon retrieval of the second command, write the data associated with the first command to the first page in the first erase block at a second voltage target applied for a second amount of time, the second amount of time being greater than the first amount of time. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Thus, a detailed understanding of the manner in which the above-described features of the present disclosure are understood, a more particular description of the present disclosure, the above brief overview, may be obtained by reference to the embodiments, some of which are illustrated in the accompanying drawings. It should be noted, however, that the drawings illustrate only typical embodiments of the present disclosure and are therefore not to be considered limiting of its scope, as the present disclosure may admit to other equally effective embodiments.

[0014] Figure 1 is a schematic block diagram illustrating a storage system according to one embodiment.

[0015] Figure 2 A storage system including a storage device coupled to a host device according to another embodiment is shown.

[0016] Figure 3 is a block diagram illustrating a method of operating a memory device to execute a read or write command according to one embodiment.

[0017] Figure 4A A partitioned namespace utilized in a storage device is shown according to one embodiment.

[0018] Figure 4B According to one embodiment, Figure 4A A state diagram of the partition namespace of a storage device.

[0019] Figure 5A A method for operating a storage device according to one embodiment is shown.

[0020] Figure 5B Shown is shown as in Figure 5A An example diagram of expected voltage distributions for first-pass programming and second-pass programming mentioned in the method of FIG.

[0021] Figure 6 A method for operating a storage device according to another embodiment is shown.

[0022] Figure 7 A method of operating a storage device during a power failure according to one embodiment is shown.

[0023] Figure 8 A method for operating a storage device that does not utilize ZNS during a garbage collection process according to another embodiment is shown.

[0024] To facilitate understanding, identical reference numerals have been used, where possible, to designate identical elements that are common to the figures. It is contemplated that elements disclosed in one embodiment may be beneficially utilized on other embodiments without specific recitation. DETAILED DESCRIPTION

[0025] Hereinafter, reference is made to the embodiments of the present disclosure. However, it should be understood that the present disclosure is not limited to the embodiments specifically described. On the contrary, any combination of the following features and elements (whether or not related to different embodiments) is considered to realize and practice the present disclosure. In addition, although the embodiments of the present disclosure can achieve advantages that are superior to other possible solutions and / or superior to the prior art, whether a specific advantage is achieved by a given embodiment is not a limitation to the present disclosure. Therefore, the following aspects, features, embodiments and advantages are merely illustrative, and are not considered to be elements or limitations of the appended claims, unless explicitly stated in the claims. Similarly, reference to "the present disclosure" should not be interpreted as a summary of any inventive subject matter disclosed herein, and should not be considered to be elements or limitations of the appended claims, unless explicitly stated in the claims.

[0026] The present disclosure as a whole relates to a method of operating a storage device. A controller of the storage device retrieves data of a first command for a first time and performs a first programming pass of the data of the first command to a first page in a first erase block. Then, the controller retrieves data of a second command for a first time and the controller performs a first programming pass of the data of the second command to a second page in the first erase block. Upon retrieving the second command, the controller completes processing of the first command by retrieving the data of the first command for a second time and writing the data of the first command to the first page by performing a second programming pass. The data of the first command is stored in a host device until the second programming pass is completed.

[0027] Figure 1 1 is a schematic block diagram illustrating a storage system 100 in accordance with one or more techniques of this disclosure, in which a storage device 106 can be used as a storage device for a host device 104. For example, the host device 104 can utilize a non-volatile media unit 110 included in the storage device 106 to store and retrieve data. The host device 104 includes a host DRAM 138. In some examples, the storage system 100 can include multiple storage devices, such as the storage device 106, that can operate as a storage array. For example, the storage system 100 can include multiple storage devices 106 that are configured as a redundant array of inexpensive / independent disks (RAID) that are collectively used as a mass storage device for the host device 104.

[0028] Storage system 100 includes a host device 104 that can store data to and / or retrieve data from one or more storage devices, such as storage device 106. Figure 1As shown, host device 104 can communicate with storage device 106 via interface 114. Host device 104 can include any of a variety of devices, including a computer server, a network attached storage (NAS) unit, a desktop computer, a notebook (i.e., laptop) computer, a tablet computer, a set-top box, a telephone handset such as a so-called "smart" phone, a so-called "smart" tablet computer, a television, a camera, a display device, a digital media player, a video game console, a video streaming device, etc.

[0029] The storage device 106 includes a controller 108, a non-volatile memory 110 (NVM 110), a power supply 111, a volatile memory 112, and an interface 114. The controller 108 includes an internal memory 120 or a buffer. In some examples, for clarity, the storage device 106 may include Figure 1 , additional components not shown in the figure. For example, the storage device 106 may include a printed board (PB) to which the components of the storage device 106 are mechanically attached, and the printed board includes conductive traces that electrically interconnect the components of the storage device 106, etc. In some examples, the physical size and connector configuration of the storage device 106 may conform to one or more standard form factors. Some exemplary standard form factors include, but are not limited to, a 3.5" data storage device (e.g., an HDD or SSD), a 2.5" data storage device, a 1.8" data storage device, a peripheral component interconnect (PCI), a PCI extension (PCI-X), a PCI Express (PCIe) (e.g., PCIe x1, x4, x8, x16, PCIe Mini Card, MiniPCI, etc.). In some examples, the storage device 106 can be directly coupled (e.g., directly soldered) to a motherboard of the host device 104.

[0030] The interface 114 of the storage device 106 may include one or both of a data bus for exchanging data with the host device 104 and a control bus for exchanging commands with the host device 104. The interface 114 may operate according to any suitable protocol. For example, the interface 114 may operate according to one or more of the following protocols: Advanced Technology Attachment (ATA) (e.g., Serial ATA (SATA) and Parallel ATA (PATA)), Fibre Channel Protocol (FCP), Small Computer System Interface (SCSI), Serial Attached SCSI (SAS), PCI and PCIe, Non-Volatile Memory Express (NVMe), OpenCAPI, GenZ, Cache Coherent Interface Accelerator (CCIX), Open Channel SSD (OCSSD), etc. The electrical connection (e.g., data bus, control bus, or both) of the interface 114 is electrically connected to the controller 108, thereby providing an electrical connection between the host device 104 and the controller 108, allowing data to be exchanged between the host device 104 and the controller 108. In some examples, the electrical connection of the interface 114 may also allow the storage device 106 to receive power from the host device 104. For example, Figure 1 As shown, power supply 111 may receive power from host device 104 via interface 114 .

[0031] The storage device 106 includes an NVM 110, which may include multiple media units or memory devices. The NVM 110 may be configured to store and / or retrieve data. For example, the media unit of the NVM 110 may receive data and receive a message from the controller 108 indicating that the memory device stores data. Similarly, the media unit of the NVM 110 may receive a message from the controller 108 indicating that the memory device retrieves data. In some examples, each of the media units may be referred to as a die. In some examples, a single physical chip may include multiple dies (i.e., multiple memory devices). In some examples, each memory device may be configured to store a relatively large amount of data (e.g., 128MB, 256MB, 512MB, 1GB, 2GB, 4GB, 8GB, 16GB, 32GB, 64GB, 128GB, 256GB, 512GB, 1TB, etc.).

[0032] In some examples, each media unit of NVM 110 may include any type of nonvolatile memory device, such as a flash memory device, a phase change memory (PCM) device, a resistive random access memory (ReRAM) device, a magnetoresistive random access memory (MRAM) device, a ferroelectric random access memory (F-RAM), a holographic memory device, and any other type of nonvolatile memory device.

[0033] NVM 110 may include multiple flash memory devices. Flash memory devices may include NAND or NOR-based flash memory devices, and data may be stored based on the charge contained in the floating gate of the transistor for each flash memory cell. In NAND flash memory devices, the flash memory devices may be divided into multiple blocks, which may be divided into multiple pages. Each block in a plurality of blocks within a particular memory device may include multiple NAND cells. The rows of NAND cells may be electrically connected using word lines to define pages in a plurality of pages. The corresponding cells in each of the plurality of pages may be electrically connected to the corresponding bit lines. In addition, the NAND flash memory device may be a 2D or 3D device, and may be a single-level cell (SLC), a multi-level cell (MLC), a three-level cell (TLC), or a four-level cell (QLC). The controller 108 may write data to the NAND flash memory device at a page level and read data from the NAND flash memory device, and erase data from the NAND flash memory device at a block level.

[0034] The storage device 106 includes a power supply 111 that can provide power to one or more components of the storage device 106. When operating in standard mode, the power supply 111 can use power provided by an external device such as a host device 104 to power one or more components. For example, the power supply 111 can use power received from the host device 104 via the interface 114 to power one or more components. In some examples, the power supply 111 may include one or more power storage components that are configured to supply power to one or more components when operating in a shutdown mode, such as when power is stopped from being received from an external device. In this way, the power supply 111 can be used as an onboard backup power supply. Some examples of one or more power storage components include, but are not limited to, capacitors, supercapacitors, batteries, and the like. In some examples, the amount of power that can be stored by one or more power storage components can be a function of the cost and / or size (e.g., area / volume) of the one or more power storage components. In other words, as the amount of power stored by the one or more power storage components increases, the cost and / or size of the one or more power storage components also increases.

[0035] Storage device 106 also includes volatile memory 112, which can be used by controller 108 to store information. Volatile memory 112 can include one or more volatile memory devices. In some examples, controller 108 can use volatile memory 112 as a cache. For example, controller 108 can store cached information in volatile memory 112 until the cached information is written to non-volatile memory 110. Figure 1As shown, the volatile memory 112 may consume power received from the power supply 111. Examples of the volatile memory 112 include, but are not limited to, random access memory (RAM), dynamic random access memory (DRAM), static RAM (SRAM), and synchronous dynamic RAM (SDRAM (e.g., DDR1, DDR2, DDR3, DDR3L, LPDDR3, DDR4, LPDDR4, etc.)).

[0036] The storage device 106 includes a controller 108 that can manage one or more operations of the storage device 106. For example, the controller 108 can manage reading data from the NVM 110 and / or writing data to the NVM 110. In some embodiments, when the storage device 106 receives a write command from the host device 104, the controller 108 can initiate a data storage command to store data to the NVM 110 and monitor the progress of the data storage command. The controller 108 can determine at least one operating characteristic of the storage system 100 and store the at least one operating characteristic to the NVM 110. In some embodiments, when the storage device 106 receives a write command from the host device 104, the controller 108 temporarily stores the data associated with the write command in the internal memory 120 before sending the data to the NVM 110.

[0037] Figure 2 2 shows a storage system 200 including a storage device 206 coupled to a host device 204 according to another embodiment. The storage system 200 may be Figure 1 A storage system 100, a host device 104 and a storage device 106.

[0038] Storage device 206 can send and receive commands and data from host device 204 and includes command processor 220. Command processor 220 may be Figure 1 The controller 108 in FIG. 10A. The command processor 220 may schedule memory device accesses (such as NAND accesses) and may perform a read of a memory device or media unit before a previously received command needs to be written to the same memory device. The command processor 220 is coupled to one or more memory devices 228 and command acquisition 222. The one or more memory devices 228 may be NAND non-volatile memory devices. The command acquisition 222 is coupled to a submission queue arbitration 224. The submission queue arbitration 224 is coupled to one or more submission queue head and tail pointers 226.

[0039] The host device 204 includes one or more host software applications 232 coupled to one or more processing units or CPU applications 234. In one embodiment, the software application 232 has a limited solid-state drive queue depth to derive a latency QoS for each user of the system 200. The host device 204 also includes an operating system (OS) or software application 240 that has no associated QoS. The CPU 234 is coupled to an interconnect 236 and a host DRAM 238. The host DRAM 238 can store submission queue data. The interconnect 236 is coupled to the storage device 206. The interconnect 236 can communicate with both the submission queue head and tail pointers 226 and the command fetch 222.

[0040] The CPU 234 generates one or more commands 216 to send to the storage device 206, and can send and receive commands from the storage device 206 via a command get signal 244. The CPU 234 can also send an interrupt or doorbell 218 to the storage device 206 to notify the storage device 206 of the one or more commands 216. The CPU 234 can limit the depth of the data queue submitted to the storage device 206. The queue depth (QD) is the maximum number of commands queued to the storage device 206, and the data-QD is the amount of data associated with the commands queued with the QD. In one embodiment, the data-QD 242 of the storage device 206 is equal to the bandwidth of the storage device 206. The data-QD 242 is limited to the highest level at which the storage device 206 can still maintain the desired latency QoS. The command processor 220 then processes the command received from the host device 204.

[0041] Figure 3 is a block diagram illustrating a method 300 of operating a storage device to execute a read or write command according to one embodiment. The method 300 may be used with a storage system 100 having a host device 104 and a storage device 106 including a controller 108. The method 300 may be used with a storage system 200 having a host device 204 and a storage device 206 including a command processor 220.

[0042] Method 300 begins at operation 350, where the host device writes a command as an entry into a submission queue. At operation 350, the host device may write one or more commands into the submission queue. The command may be a read command or a write command. The host device may include one or more submission queues.

[0043] In operation 352, the host device writes one or more updated submission queue tail pointers and rings a doorbell or sends an interrupt signal to notify or signal the storage device that a new command is ready for execution. The doorbell signal may be Figure 2The host may write an updated submission queue tail pointer and send a doorbell or interrupt signal for each of the submission queues if there is more than one submission queue. In operation 354, in response to receiving the doorbell or interrupt signal, the controller of the storage device obtains the command from one or more submission queues, and the controller receives the command.

[0044] In operation 356, the controller processes the command and writes or transfers the data associated with the command to the host device memory. The controller can process more than one command at a time. For example, processing the received first command may include writing a portion of the data associated with the first command to a memory device, such as a NAND memory device. The partial write may be a first pass programming of the data. Upon receiving a second command, the controller may partially write the second command and complete the write of the first command (i.e., a second pass programming).

[0045] In operation 358, once the command has been fully processed, the controller writes a completion entry corresponding to the executed command to the completion queue of the host device and moves or updates the CQ head pointer to point to the newly written completion entry.

[0046] In operation 360, the controller generates an interrupt signal or doorbell and sends it to the host device. The interrupt signal indicates that the command has been executed and the data associated with the command is available in the memory device. The interrupt signal further notifies the host device that the completion queue is ready to be read or processed.

[0047] In operation 362, the host device processes the completion entry. In operation 364, the host device writes the updated CQ head pointer to the storage device and rings a doorbell or sends an interrupt signal to the storage device to release the completion entry.

[0048] Figure 4A A zoned name space (ZNS) 402 view is shown for use in a storage device 400, according to one embodiment. The storage device 400 can present the ZNS 402 view to a host device. Figure 4B A state diagram 450 of a ZNS 402 for a storage device 400 is shown according to one embodiment. The storage device 400 may be Figure 1 The storage device 106 of the storage system 100 or Figure 2 The storage device 400 may include one or more ZNS 402, and each ZNS 402 may have a different size. In addition to the one or more partition namespaces 402, the storage device 400 may also include one or more regular namespaces. In addition, the ZNS 402 may be a zone block command (ZBC) for SAS and / or a zone device ATA command set (ZAC) for SATA.

[0049] In storage device 400, ZNS 402 is a quantity of NVM that can be formatted into logical blocks such that the capacity is divided into multiple partitions 406a-406n (collectively referred to as partitions 406). Each of partitions 406 includes multiple physical blocks or erase blocks (now shown) of media units or NVM 404, and each of the erase blocks is associated with multiple logical blocks (not shown). When controller 408 receives commands from, such as from a host device (not shown) or a submission queue of the host device, controller 408 can read data from and write data to the multiple logical blocks associated with the multiple erase blocks of ZNS 402. Each of the logical blocks is associated with a unique LBA or sector.

[0050] In one embodiment, NVM 404 is a NAND device. The NAND device includes one or more dies. Each of the one or more dies includes one or more planes. Each of the one or more planes includes one or more erase blocks. Each erase block in the one or more erase blocks includes one or more word lines (e.g., 256 word lines). Each word line in the one or more word lines can be addressed in one or more pages. For example, an MLC NAND die can use an upper page and a lower page to reach two bits in each cell of the entire word line (e.g., 16kB per page). In addition, each page can be accessed with a granularity equal to or less than a full page. The controller can frequently access a NAND with a user data granularity LBA size of 512 bytes. Therefore, as mentioned in the following description, a NAND position equals a granularity of 512 bytes. Therefore, the LBA size of two pages of an MCL NAND is 512 bytes and the page size is 16kB, which will result in approximately 16 NAND positions per word line. However, the NAND position size is not intended to be limiting and is only used as an example.

[0051] When data is written to an erase block, one or more logical blocks are correspondingly updated within a partition 406 to track the location of the data within the NVM 404. Data may be written one partition 406 at a time until the partition 406 is full, or written to multiple partitions 406 such that multiple partitions 406 may be partially full. Similarly, when data is written to a particular partition 406, the data may be written to multiple erase blocks one block at a time in the order of NAND locations, page by page, or word line by word line, until moving to an adjacent block (i.e., writing to a first erase block until the first erase block is full before moving to a second erase block), or may be written to multiple erase blocks multiple blocks at a time in the order of NAND locations, page by page, or word line by word line to partially fill each block in a more parallel manner (i.e., writing to the first NAND location or page of each erase block before writing to the second NAND location or page of each erase block).

[0052] Each partition in the partitions 406 is associated with a partition start logical block address (ZSLBA). The ZSLBA is the first available LBA in the partitions 406. For example, the first partition 406a is associated with Z a SLBA is associated with the second partition 406b and Z b SLBA is associated with the third partition 406c and Z c SLBA is associated with the fourth partition 406d and Z d SLBA is associated, and the nth partition 406n (ie, the last partition) is associated with Z n Each partition 406 is identified by its ZSLBA and is configured to receive sequential writes (ie, data is written to NVM 110 in the order in which the write commands are received).

[0053] When data is written to a partition 406, a write pointer 410 is advanced or updated to point to or indicate the next available block in the partition 406 to which the data is written, so as to track the next write start point (i.e., the completion point of the previous write is equal to the start point of the subsequent write). Thus, the write pointer 410 indicates where the subsequent write to the partition 406 will begin. Subsequent write commands are "partition append" commands, in which the data associated with the subsequent write command is appended to the partition 406 at the location indicated by the write pointer 410 as the next start point. An ordered list of LBAs within the partition 406 may be stored for write ordering. Each partition 406 may have its own write pointer 410. Thus, when a write command is received, the partition is identified by its ZSLBA, and the write pointer 410 determines the location at which to begin writing the data within the identified partition.

[0054] Figure 4B Shown for Figure 4A 4. A state diagram 450 of the ZNS 402 is shown. In the state diagram 450, each partition may be in a different state, such as empty, active, full, or offline. When a partition is empty, the partition contains no data (i.e., no erase blocks in the partition currently store data) and the write pointer is located at ZSLBA (i.e., WP=0). Once a write is scheduled to the partition or a partition open command is issued by the host, the empty partition will switch to an open and active partition. A partition management (ZM) command may be used to move a partition between a partition open and partition closed state (both are active states). If a partition is active, the partition includes open blocks that can be written to and a description of the recommended time in the active state may be provided to the host. The controller may include a ZM.

[0055] The term "write" includes programming user data on 0 or more word lines in an erase block, erasing, and / or partially filled word lines in an erase block when the user data does not fill all available word lines. The term "write" may also include closing a partition due to internal drive processing needs (open block data retention issues because bit errors accumulate faster on open erase blocks), the storage device 400 closing a partition due to resource limitations (like too many open partitions to track or defective conditions that have been discovered, etc.), or the host device closing a partition due to issues such as no more data to send to the drive, computer shutdown, error handling on the host, limited host resources for tracking, etc.

[0056] Active partitions can be open or closed. An open partition is an empty partition or partially filled partition that is ready to be written and has currently allocated resources. Data received from a host device using a write command or a partition attach command can be programmed into an open erase block that is not currently filled with previous data. New data pulled in from a host device or valid data being relocated can be written to an open partition. Valid data can be moved from one partition (e.g., the first partition 402a) to another partition (e.g., the third partition 402c) for garbage collection purposes. A closed partition is an empty partition or partially filled partition that is not currently receiving writes from the host continuously. The partition moving from an open state to a closed state allows the controller 408 to reallocate resources to other tasks. These tasks may include, but are not limited to, other open partitions, other conventional non-partitioned areas, or other controller needs.

[0057] In both open and closed partitions, the write pointer points to a location in the partition between the ZSLBA and the end of the last LBA of the partition (i.e., WP>0). An active partition can switch between open and closed states as specified by the ZM, or when a write is scheduled to the partition. In addition, the ZM can reset the active partition to clear or erase the data stored in the partition, causing the partition to switch back to an empty partition. Once the active partition is full, the partition switches to a full state. A full partition is a partition that is completely filled with data and has no more available blocks for writing data (i.e., WP=partition capacity (ZCAP)). Read commands for data stored in a full partition can still be executed.

[0058] The ZM can reset a full partition, thereby scheduling the erasure of the data stored in the partition so that the partition switches back to an empty partition. If a full partition is reset, the data of the partition may not be immediately cleared, although the partition may be marked as an empty partition available for writing. However, the reset partition must be erased before switching to the active partition. The partition can be erased at any time between the ZM reset and the ZM open. An offline partition is a partition to which data cannot be written. An offline partition can be in a full state, an empty state, or a partially full state without being in an active state.

[0059] Since resetting the partition can clear the data stored in the partition or schedule the erasure of the data stored in the partition, the need for garbage collection of each erase block is eliminated, thereby improving the overall garbage collection process of the storage device 400. Storage device 400 can mark one or more erase blocks for erasure. When a new partition is to be formed and storage device 400 estimates that ZM is open, then one or more erase blocks marked for erasure can be erased. Storage device 400 can also determine and create the physical support of the partition when erasing the erase block. Therefore, once the new partition is opened and the erase block is selected to form the partition, the erase block will be erased. In addition, each time the partition is reset, the LBA of the partition 406 and the new order of the write pointer 410 can be selected, so that the partition 406 can tolerate receiving commands in a sequential manner. Optionally, the write pointer 410 can be closed so that the command can be written as any starting LBA indicated by the command.

[0060] See again Figure 4A , when the controller 408 initiates or pulls in a write command, the controller 408 may select an empty partition 406 to write the data associated with the command, and the empty partition 406 switches to the active partition 406. As used herein, the controller 408 initiating or pulling in a write command includes receiving a write command or directly accessing memory (DMA) to read the write command. The write command may be a command to write new data, or a command to move valid data to another partition for garbage collection purposes. The controller 408 is configured to DMA read or pull in new commands from a submission queue populated by a host device.

[0061] In the empty partition 406 that has just been switched to the active partition 406, data is written to the partition 406 starting at ZSLBA because the write pointer 410 indicates the logical block associated with ZSLBA as the first available logical block. The data can be written to one or more erase blocks or NAND locations that have been allocated for the physical location of the partition 406. After the data associated with the write command is written to the partition 406, the write pointer 410 is updated to point to the next available block in the partition 406 to track the next write start point (i.e., the completion point of the first write). Alternatively, the controller 408 can select an active partition for writing data. In the active partition, the data is written to the logical block indicated by the write pointer 410 as the next available block.

[0062] In some embodiments, a NAND location may be equal to a word line. In such embodiments, if a write command is smaller than a word line, the controller may optionally aggregate several write commands in another memory location such as a DRAM or SRAM before programming a complete word line consisting of multiple write commands. A write command longer than a word line will be able to program a complete word line and fill it with some of the data, and the excess data beyond the word line will be used to fill the next word line. However, a NAND location is not limited to being equal to a word line, and may have a size larger or smaller than a word line. For example, in some embodiments, a NAND location may be equal to the size of a page.

[0063] For example, the controller 408 may receive, pull in, or DMA read a first write command or a first partition append command to the third partition 406c. The host sequentially identifies which logical block of the partition 406 is used to write the data associated with the first command. The data associated with the first command is then written to the first or next one or more available LBAs in the third partition 406c as indicated by the write pointer 410, and the write pointer 410 is advanced or updated to point to the next available LBA (i.e., WP>0) available for host writing. If the controller 408 receives a second write command or pulls the second write command into the third partition 406c, the data associated with the second write command is written to the next one or more available LBAs of the third partition 406c identified by the write pointer 410. Once the data associated with the second command is written to the third partition 406c, the write pointer 410 is advanced or updated again to point to the next available LBA available for host writing. Resetting the third partition 406c moves the write pointer 410 back to Z c SLBA (ie, WP=0), and the third partition 406c switches to an empty partition.

[0064] Figure 5A A method 500 for operating a storage device according to one embodiment is shown. Figure 5BAn example graph 550 showing expected voltage distributions for a first programming pass (ie, "fuzzy" programming) and a second programming pass (ie, "fine" programming) as mentioned in method 500 is shown. Method 500 may be used with a controller 108. Figure 1 The storage system 100 or the storage system including the command processor 220 Figure 2 The method 500 may be implemented using a storage device that utilizes a ZNS (such as the ZNS 402 of FIG. 4 ).

[0065] In operation 502, a first command is retrieved to write data to a first page or a first NAND location in a first erase block, data associated with the first command is pulled in, DMA read, or transferred to a storage device for the first time from a host device, and the first command is partially processed. The first erase block may be located in a first partition. The first erase block is disposed within a media unit such as a NAND memory device. In one embodiment, the media unit is a QLC NAND media unit. Partially processing the first command may include reading the data associated with the first command, and partially writing or performing a first pass programming on the data associated with the first command to a first page or a first NAND location in the first erase block (i.e., "fuzzy" programming of the data). The partial writing of the data is performed at a first voltage target applied to each cell of the first page or the first NAND location for a first amount of time. The controller may optionally discard the data associated with the first command.

[0066] In one embodiment, the reason for the fuzzy-fine programming and interleaved programming of the NAND page sequence is the high voltage applied during the fuzzy state, which causes high interference on adjacent pages. Maintaining the fuzzy programming voltage on both NAND pages in the future means that the lower voltage fine programming step will not interfere with the adjacent pages and the data of these adjacent pages. Therefore, the most recently completed fine programming page is only slightly affected by the fine programming of the ongoing fine programming step. Similarly, the same NAND page is two pages away from the page that has experienced the fuzzy programming voltage.

[0067] Because the data associated with the first command is only partially written to the first page (or first NAND location) or is completely discarded, in some implementations, the data may be unreadable. In addition, although the data may be partially written, the first command is incomplete and the data is stored in the host device rather than in the controller. Although data may pass through the controller's internal memory between retrieving the first command and writing the portion of the data associated with the first command to the first erase block, the data is not stored in the controller memory for the duration of processing the first command.

[0068] In operation 504, a second command is retrieved to write data to a second page or second NAND location in the first erase block, data associated with the second command is pulled in, DMA read, or transferred to the storage device for the first time from the host device, and the second command is partially processed. Partially processing the second command may include reading the data associated with the second command, and partially writing or performing a first pass programming on the data associated with the second command to the second page or second NAND location in the first erase block (i.e., "fuzzy" programming of the data). The partial writing of the data is performed at the first voltage target. In one embodiment, the second command may be written to a second erase block of the media unit. The controller may optionally discard the data associated with the second command.

[0069] In operation 506, when the second command is retrieved, the processing of the first command is completed by pulling in, DMA reading or transferring the data associated with the first command for a second time and writing the data associated with the first command to the first page or first NAND location in the first erase block. Writing the data associated with the first command when the second command is retrieved is performed at a second voltage target greater than the first voltage target and is a second programming pass of the data (i.e., "fine" programming of the data). The second voltage target is applied to each cell of the first page or first NAND location for a second amount of time greater than the first amount of time. Retrieving the second command triggers a complete write of the data associated with the first command (i.e., the writing of the data associated with the first command is not completed until the storage device receives the second command). Therefore, the first command is kept "hijacked" (i.e., not completed, only partially completed and / or suspended) until the second command is retrieved. Keeping the first command "hijacked" can also include withholding or delaying a write completion entry or notification from the host device. Once the processing of the first command is completed, the data can be read from the media unit.

[0070] After writing the data associated with the first command to the first page or first NAND location in the first erase block, the controller signals completion of the first command. The controller may signal completion of the first command by writing a first completion entry corresponding to the first command to a completion queue, updating the tail of the completion queue to point to the first completion entry, and ringing a doorbell to the host device. The method 500 may then be repeated one or more times as subsequent commands are received from the host device.

[0071] Figure 5BAn example graph 550 showing expected voltage distributions for a first programming pass (i.e., "fuzzy" programming) and a second programming pass (i.e., "fine" programming) is shown. As shown, the fuzzy state 552 of programming applies large voltage pulses to program cells of a page or NAND location, while the fine state 554 applies smaller, more precise voltage pulses to program cells of a page or NAND location. The voltages of the fuzzy state 552 may not be well controlled for the final distribution of voltage states. Such lack of precision is due to the large speed variation that the fuzzy programming state causes the voltage distribution to traverse. The voltages of the fine state 554 are applied more precisely so that the voltage state is completed in a precisely controlled state. To achieve a precisely controlled state, slower programming steps with smaller voltage increments are applied, and the dielectric circuit may apply additional sensing of intermediate states and / or final states during these fine voltage programming steps.

[0072] The above method describes an embodiment in which the data associated with the host write command is large enough to fill a page or a NAND location (i.e., the data associated with the host command is equal to one page size or one NAND location size). However, in an embodiment in which the host write command is too small to fill a page or a NAND location (i.e., the data associated with the host command is less than one page size or one NAND location size) or is too large for one page or one NAND location (i.e., the data associated with the host command is greater than one page size or one NAND location size), the above method still applies.

[0073] In embodiments where the data associated with a host write command is too large to fill a page or NAND location, the data associated with the host write command is first broken down into a page size or NAND location size. In embodiments where the data associated with a host write command is too small to fill a page or NAND location, more than one host command may be required to fill a page or NAND location, and multiple host write commands may be aggregated to fill a page or NAND location. In addition, host write commands that are too small to fill a page or NAND location may be optionally merged. Merging write commands is an independent decision made by the storage device that is available, and the storage device may consider queue depth when choosing whether to merge write commands.

[0074] Figure 6 A method 600 for operating a storage device according to another embodiment is shown. The method 600 may be used with Figure 1 The storage device 106 or Figure 2 Method 600 may be implemented using a storage device that utilizes a ZNS (such as ZNS 402 of FIG. 4 ).

[0075] In operation 602, a first command to write data to a first page or a first NAND location in a first erase block is retrieved by a controller of the storage device, and the data associated with the first command is pulled in, DMA read, or transferred for the first time. The first erase block may be located in a first partition. In one embodiment, from a host device such as Figure 1 The host device 104 or Figure 2 The host device 204 retrieves the first command. In another embodiment, data associated with the first command is retrieved from another erase block for garbage collection purposes. The first erase block is disposed within a media unit or media, such as a NAND media unit. In one embodiment, the media unit is a QLC NAND media unit. Retrieving the first command includes performing a first read of the data associated with the first command from the host device.

[0076] In operation 604, data associated with a first command is partially written to a first page or first NAND location in a first erase block at a first voltage target. A first voltage level is applied to each cell of the first page or first NAND location for a first amount of time. The partial writing of data may be a "fuzzy" write or programming, such as Figure 5B The partial write may be a first pass programming of the data. The controller may optionally discard data associated with the first command.

[0077] Since the data associated with the first command is only partially written to the first erase block or is discarded, the data is unreadable. In addition, although the data is partially written, the first command is incomplete and the data is still stored in the host device rather than in the controller. Although the data may pass through the internal memory of the controller between retrieving the first command and writing the portion of the data associated with the first command to the first erase block, the data is not stored in the controller memory during the duration of processing the first command.

[0078] In operation 606, a second command to write data to a second page or a second NAND location in the first erase block is retrieved by the controller, and the data associated with the second command to write the data is pulled in, DMA read, or transferred for the first time, similar to operation 602. Retrieving the second command includes performing a first read of the data associated with the second command from the host device. In one embodiment, the data is read from the host device such as Figure 1 The host device 104 or Figure 2 The host device 204 retrieves the second command. In another embodiment, data associated with the second command is retrieved from another erase block for garbage collection purposes.

[0079] In operation 608, the data portion associated with the second command is written to a second page or second NAND location in the first erase block at the first voltage target, similar to operation 604. In one embodiment, the second command may be written to a second erase block of the media unit. The controller may optionally discard the data associated with the second command.

[0080] In operation 610, when the second command is retrieved in operation 606, the data associated with the first command is pulled in, DMA read or transferred a second time and written to the first page or first NAND location in the first erase block at the second voltage target. The second voltage target is applied to each cell of the first page or first NAND location for a second amount of time greater than the first amount of time. The writing of the data at the second voltage target may be a "fine" write, such as Figure 5B The writing of data at the second voltage target may be a second programming pass of the data. Writing the data associated with the first command at the second voltage target includes performing a second read of the data associated with the first command from the host device.

[0081] After writing the data at the second voltage target, the data may be read from the storage device. Retrieving the second command triggers a complete write of the data associated with the first command (i.e., the write of the data associated with the first command is not completed until the storage device receives the second command). Thus, the first command is held "hijacked" (i.e., not completed, only partially completed, and / or suspended) until the second command is received.

[0082] In operation 612, the controller optionally signals completion of the first command. The controller signals completion of the first command to the command received from the host device. The controller may signal completion of the first command by writing a first completion entry corresponding to the first command to a completion queue, updating the tail of the completion queue to point to the first completion entry, and ringing a doorbell to the host device. Unlike conventional methods, the first completion entry is written to the completion queue after the writing of data associated with the first command has been completely processed (i.e., processing of the command is now not performed in the background).

[0083] If the data associated with the first command is retrieved for garbage collection purposes, the controller does not signal completion of the first command. Thus, when the data associated with the first command is retrieved for garbage collection purposes, the first command is not suspended or remains "hijacked" from the perspective of the host device.

[0084] When more commands are received, method 600 continues in the same manner. For example, a third command that writes data to a third page or a third NAND location in a first erase block (or a different erase block) may be retrieved, and the data associated with the third command may be pulled in, DMA read, or transmitted for the first time after writing the first completion entry corresponding to the first write command. Then, the data portion associated with the third command may be written to a third page or a third NAND location in the first erase block or may be discarded. When the third command is retrieved, the data associated with the second command may be pulled in, DMA read, or transmitted for the second time, and may be written to a second page or a second NAND location in the first erase block at a second voltage target. The controller may signal the completion of the second command by writing a second completion entry corresponding to the second command to a completion queue, updating the tail of the completion queue to point to the second completion entry, and ringing a doorbell to the host device.

[0085] Thus, once a new command is retrieved, the new command portion is written to a new page or new NAND location at a first voltage target, and the previously retrieved command is written to a different page or different NAND location at a second voltage target. In other words, a first pass of programming of the new command is performed, and a second pass of programming of the previously received command is performed.

[0086] The above method describes an embodiment in which the data associated with the host write command is large enough to fill a page or a NAND location (i.e., the data associated with the host command is equal to one page size or one NAND location size). However, in an embodiment in which the host write command is too small to fill a page or a NAND location (i.e., the data associated with the host command is less than one page size or one NAND location size) or is too large for one page or one NAND location (i.e., the data associated with the host command is greater than one page size or one NAND location size), the above method still applies.

[0087] In embodiments where the data associated with a host write command is too large to fill a page or NAND location, the data associated with the host write command is first broken down into a page size or NAND location size. In embodiments where the data associated with a host write command is too small to fill a page or NAND location, more than one host command may be required to fill a page or NAND location, and multiple host write commands may be aggregated to fill a page or NAND location. In addition, host write commands that are too small to fill a page or NAND location may be optionally merged. Merging write commands is an independent decision made by the storage device that is available, and the storage device may consider queue depth when choosing whether to merge write commands.

[0088] Figure 7A method 700 for operating a storage device during a power failure according to one embodiment is shown. The method 700 may be used with a controller 108. Figure 1 The storage system 100 or the storage system including the command processor 220 Figure 2 Method 700 may be implemented using a storage device that utilizes ZNS (such as ZNS 402 of FIG. 4 ). In addition, method 700 may be implemented using a storage device that does not utilize ZNS.

[0089] In operation 702, a first command is retrieved to write data to a first page or a first NAND location in a first erase block, data associated with the first command is pulled in or DMA read for the first time, and the first command is partially processed. The first erase block may be located in a first partition. The first erase block is disposed within a media unit or media, such as a NAND media unit. In one embodiment, the media unit is a QLC NAND media unit. Partially processing the first command may include reading the data associated with the first command and partially writing or performing a first programming pass on the data associated with the first command to a first page in the first erase block (i.e., "fuzzy" programming of the data), such as Figure 5B The controller may optionally discard data associated with the first command.

[0090] In operation 704, the storage device holds the first command "hijacked" (i.e., not completed, only partially completed, and / or suspended) and waits for a second pull or DMA read of data associated with the first command to complete processing of the first command until a second command is received. In operation 706, a power loss or power failure notification is received. The power loss notification is received prior to receiving, pulling, or DMA reading the second command.

[0091] In operation 708, the storage device may optionally fuzzily program the dummy data to a second page or second NAND location of the first erase block, and pull in or DMA read the data associated with the first command a second time to complete processing of the first command. The second pull in or DMA read of the data associated with the first command enables the storage device to complete writing of the data associated with the first command so that the data can be read from the media unit, as described above in methods 500 and 600. Once processing of the first command is complete, the data can be read from the media unit. A write completion notification can then be returned to the host, which sends a message notifying that the storage device can read the data at the next power-on.

[0092] Alternatively, upon receiving the power loss notification, the storage device may not have completed the first command. In such an embodiment, the second pull-in or DMA read of the data associated with the first command is not completed, and the programming of the data is in an incomplete state. If the storage device fails to complete the first command, the data associated with the first command may be unreadable or invalid at the next boot. When the interface specification is applied to each SSD, incomplete writes will be handled. In the case of NVMe, the write will be incomplete and the data does not need to be readable.

[0093] Methods 500, 600, and 700 may each be implemented separately using a storage device that does not utilize ZNS. However, a storage device that does not utilize ZNS may move valid data from a first erase block to a second erase block for garbage collection purposes. Figure 8 A method 900 for operating a storage device that does not utilize ZNS during a garbage collection process is shown according to another embodiment. Figure 1 The storage device 106 or Figure 2 The storage device 206 is used together.

[0094] In operation 802, a first garbage collection (GC) command is received to rewrite valid data to a first page or a first NAND location in a first erase block, valid data associated with the first GC command is pulled in or DMA read for the first time, and the first GC command is partially processed. The first erase block is disposed within a media unit or media, such as a NAND media unit. In one embodiment, the media unit is a QLC NAND media unit. Partially processing the first GC command may include reading the valid data associated with the first GC command, and partially writing or performing a first pass programming on the valid data associated with the first GC command to the first page or the first NAND location in the first erase block (i.e., "fuzzy" programming of the data), such as Figure 5B The controller may optionally discard valid data associated with the first GC command.

[0095] In operation 804, the valid data associated with the first GC command is pulled in or DMA read a second time to complete processing of the first GC reclaim command, and the valid data associated with the first GC command is rewritten to the first page or first NAND location in the first erase block without waiting for receipt of the second GC command. The rewriting of the valid data associated with the first GC command is performed at a second voltage level greater than the first voltage level and is a second programming pass of the data (i.e., "fine" programming of the data), as shown in FIG. Figure 5BThe second voltage level is a target voltage level for processing the command. The second programming of the valid data associated with the first GC command can be performed in the background while the storage device processes other commands. Therefore, the storage device does not keep the first GC command "hijacked". Once the processing of the first GC command is completed, the valid data can be read again from the media unit.

[0096] The above method describes an embodiment in which the data associated with the host write command is large enough to fill a page or a NAND location (i.e., the data associated with the host command is equal to one page size or one NAND location size). However, in an embodiment in which the host write command is too small to fill a page or a NAND location (i.e., the data associated with the host command is less than one page size or one NAND location size) or is too large for one page or one NAND location (i.e., the data associated with the host command is greater than one page size or one NAND location size), the above method still applies.

[0097] In embodiments where the data associated with a host write command is too large to fill a page or NAND location, the data associated with the host write command is first broken down into a page size or NAND location size. In embodiments where the data associated with a host write command is too small to fill a page or NAND location, more than one host command may be required to fill a page or NAND location, and multiple host write commands may be aggregated to fill a page or NAND location. In addition, host write commands that are too small to fill a page or NAND location may be optionally merged. Merging write commands is an independent decision made by the storage device that is available, and the storage device may consider queue depth when choosing whether to merge write commands.

[0098] By performing a first pass programming of the data associated with the first command to partially write the data associated with the first command to the erase block and then performing a second pass programming of the data associated with the first command upon receiving the second command, the data associated with the first command can be stored in the host device until the writing of the data is completed. In this way, the volatile memory space of the controller, such as DRAM and / or SRAM, saves space. By storing the data in the host device rather than in the internal memory of the controller when processing the command, the overall SSD performance, throughput and efficiency are improved. In addition, the power consumed when processing the command is reduced, which in turn reduces the cost associated with the controller.

[0099] In one embodiment, a storage device includes a media unit and a controller coupled to the media unit, wherein the capacity of the media unit is divided into a plurality of partitions. The controller is configured to: retrieve a first command to write data to a first page in a first erase block of the media unit, the first erase block being disposed in a first partition of the plurality of partitions; retrieve a second command to write data to a second page in the first erase block; and upon retrieval of the second command, write data associated with the first command to the first page in the first erase block.

[0100] Data associated with the first command may be stored in the host device until the data associated with the first command is written to the first page upon receipt of the second command. The controller may be further configured to: prior to retrieving the second command, write a portion of the data associated with the first command to a first page in a first erase block under a first voltage target applied for a first amount of time, wherein the data associated with the first command is written to the first page under a second voltage target applied for a second amount of time greater than the first amount of time; and signal completion of the first command after writing the data associated with the first command to the first page. The controller may be further configured to: after signaling completion of the first command, retrieve a third command that writes data to a third page in the first erase block; upon retrieving the third command, write the data associated with the second command to a second page in the first erase block; and signal completion of the second command.

[0101] The controller may be further configured to: before retrieving the third command, write a portion of the data associated with the second command to a second page in the first erase block under a first voltage target applied for a first amount of time, wherein the data associated with the second command is written to the second page under a second voltage target applied for a second amount of time greater than the first amount of time; and signal completion of the second command after writing the data associated with the second command to the second page. The controller may be further configured to: after signaling completion of the second command, retrieve a fourth command that writes data to a fourth page in the first erase block; when the fourth command is retrieved, write the data associated with the third command to a third page in the first erase block; and signal completion of the third command.

[0102] In another embodiment, a storage device includes a media unit. The capacity of the media unit is divided into a plurality of partitions. The storage device also includes a controller coupled to the media unit. The controller is configured to: perform a first programming pass of data associated with a first command to write the data portion to a first page in a first erase block of a first partition of the plurality of partitions; perform a first programming pass of data associated with a second command to write the data portion to a second page in the first erase block; and when performing the first programming pass of data associated with the second command, perform a second programming pass to write the data associated with the first command to the first page in the first erase block.

[0103] The data associated with the first command may be stored in the host device until the data associated with the first command is written to the first page when a second programming pass is performed. The first programming pass may be performed at a first voltage target applied for a first amount of time, and the second programming pass may be performed at a second voltage target applied for a second amount of time greater than the first amount of time. The controller may be further configured to: after the second programming pass of the data associated with the first command is completed, signal the completion of the first command.

[0104] The controller may be further configured to: after writing the first completion entry, retrieve a third command to write data to a third page in the first erase block; perform a first programming pass of the data associated with the third command to write the data portion to the third page in the first erase block; and upon retrieving the third command, perform a second programming pass to write the data associated with the second command to the second page in the first erase block. The controller may be further configured to: after writing the data associated with the second command to the second page, signal completion of the second command. The data associated with the second command may be stored in the host device until the data associated with the second command is written to the second page when performing the second programming pass.

[0105] In yet another embodiment, a storage device includes a media unit and a controller coupled to the media unit, wherein the capacity of the media unit is divided into a plurality of partitions. The controller is configured to: retrieve a first command to write data to a first page in a first erase block of the storage device, the first erase block being disposed in a first partition of the plurality of partitions; write a portion of the data associated with the first command to the first page in the first erase block at a first voltage target applied for a first amount of time; retrieve a second command to write data to a second page in the first erase block; write a portion of the data associated with the second command to the second page in the first erase block at the first voltage target; and upon retrieval of the second command, write the data associated with the first command to the first page in the first erase block at a second voltage target applied for a second amount of time, the second amount of time being greater than the first amount of time.

[0106] Data associated with the first command may be stored in the host device until the data associated with the first command is written at the second voltage target. The controller may be further configured to: after writing the data associated with the first command to the first page, signal completion of the first command; retrieve a third command to write data to a third page in the first erase block; upon retrieving the third command, write a portion of the data associated with the third command to the third page in the first erase block at the first voltage target; write the data associated with the second command to the second page in the first erase block at the second voltage target; and signal completion of the second command.

[0107] The data associated with the second command may be stored in the host device until the data associated with the second command is written at the second voltage target. The controller may be further configured to: after writing the second completion entry corresponding to the second write command, retrieve a fourth command to write data to a fourth page in the first erase block; upon retrieving the fourth command, write a portion of the data associated with the fourth command to the fourth page in the first erase block at the first voltage target; write the data associated with the third command to the third page in the first erase block at the second voltage target; and signal completion of the third command.

[0108] While the foregoing is directed to embodiments of the present disclosure, other and further embodiments of the present disclosure may be envisaged without departing from the basic scope of the present disclosure, and the scope of the present disclosure is determined by the appended claims.

Claims

1. A storage device comprising: a media unit, wherein the capacity of the media unit is divided into a plurality of partitions; and a controller coupled to the media unit, the controller being configured to: retrieving a first command to write data to a first page in a first erase block of the media unit, the first erase block being disposed in a first partition of the plurality of partitions; retrieving a second command to write data to a second page in the first erase block; upon retrieving the second command, writing the data associated with the first command to the first page in the first erase block; as well as Prior to receiving the second command, the data portion associated with the first command is written to the first page in the first erase block under a first voltage target applied for a first amount of time, wherein the data associated with the first command is written to the first page under a second voltage target applied for a second amount of time greater than the first amount of time. 2 . The storage device of claim 1 , wherein the data associated with the first command is stored in a host device until the data associated with the first command is written to the first page upon receipt of the second command.

3. The storage device according to claim 1 , wherein the controller is further configured to: After writing the data associated with the first command to the first page, completion of the first command is signaled.

4. The storage device according to claim 3, wherein the controller is further configured to: after signaling said completion of said first command, retrieving a third command to write data to a third page in said first erase block; upon retrieving the third command, writing the data associated with the second command to the second page in the first erase block; as well as Completion of the second command is signaled.

5. The storage device according to claim 4, wherein the controller is further configured to: prior to retrieving the third command, writing the data portion associated with the second command to the second page in the first erase block at a first voltage target applied for a first amount of time, wherein the data associated with the second command is written to the second page at a second voltage target applied for a second amount of time greater than the first amount of time; and After writing the data associated with the second command to the second page, completion of the second command is signaled. 6 . The memory device of claim 5 , wherein the data associated with the second command is stored in a host device until the data associated with the second command is written to the second page at the second voltage target.

7. The storage device according to claim 5, wherein the controller is further configured to: After writing the second completion entry, retrieving a fourth command to write data to a fourth page in the first erase block; upon retrieving the fourth command, writing the data associated with the third command to the third page in the first erase block; and Completion of the third command is signaled.

8. A storage device comprising: a media unit, wherein the capacity of the media unit is divided into a plurality of partitions; and a controller coupled to the media unit, the controller being configured to: performing a first programming pass of data associated with a first command to write the data portion to a first page in a first erase block of a first partition of the plurality of partitions; performing the first programming pass of data associated with a second command to write the data portion to a second page in the first erase block; as well as When performing the first programming pass of the data associated with the second command, performing a second programming pass to write the data associated with the first command to the first page in the first erase block, Wherein the first programming pass is performed at a first voltage target applied for a first amount of time, and the second programming pass is performed at a second voltage target applied for a second amount of time greater than the first amount of time. 9 . The memory device of claim 8 , wherein the data associated with the first command is stored in a host device until the data associated with the first command is written to the first page when the second programming pass is performed.

10. The storage device according to claim 8, wherein the controller is further configured to: After the second programming pass of the data associated with the first command is completed, completion of the first command is signaled.

11. The storage device according to claim 10, wherein the controller is further configured to: retrieving a third command to write data to a third page in the first erase block; performing the first programming pass of data associated with the third command to write the data portion to the third page in the first erase block; and Upon retrieving the third command, the second programming pass is performed to write the data associated with the second command to the second page in the first erase block.

12. The storage device according to claim 11, wherein the controller is further configured to: After writing the data associated with the second command to the second page, completion of the second command is signaled. 13 . The memory device of claim 11 , wherein the data associated with the second command is stored in a host device until the data associated with the second command is written to the second page when the second programming pass is performed.

14. A storage device comprising: a media unit, wherein the capacity of the media unit is divided into a plurality of partitions; and a controller coupled to the media unit, the controller being configured to: retrieving a first command to write data to a first page in a first erase block of the media unit, the first erase block being disposed in a first partition of the plurality of partitions; writing the data portion associated with the first command to the first page in the first erase block under a first voltage target applied for a first amount of time; retrieving a second command to write data to a second page in the first erase block; writing the data portion associated with the second command to the second page in the first erase block at the first voltage target; as well as Upon retrieval of the second command, the data associated with the first command is written to the first page in the first erase block at a second voltage target applied for a second amount of time, the second amount of time being greater than the first amount of time. 15 . The storage device of claim 14 , wherein the data associated with the first command is stored in a host device until the data associated with the first command is written at the second voltage target.

16. The storage device of claim 14, wherein the controller is further configured to: writing a first completion entry corresponding to the first command after writing the data associated with the first command to the first page; After writing the first completion entry corresponding to the first command, retrieving a third command to write data to a third page in the first erase block; and The data portion associated with the third command is written to the third page in the first erase block at the first voltage target.

17. The storage device of claim 16, wherein the controller is further configured to: upon retrieving the third command, writing the data associated with the second command to the second page in the first erase block at the second voltage target; and Completion of the second command is signaled. 18 . The storage device of claim 17 , wherein the data associated with the second command is stored in a host device until the data associated with the second command is written at the second voltage target.

19. The storage device of claim 17, wherein the controller is further configured to: after writing a second completion entry corresponding to the second command, retrieving a fourth command to write data to a fourth page in the first erase block; writing the data portion associated with the fourth command to the fourth page in the first erase block at the first voltage target; upon retrieving the fourth command, writing the data associated with the third command to the third page in the first erase block at the second voltage target; as well as Completion of the third command is signaled.

Citation Information

Patent Citations

  • Hold of Write Commands in Zoned Namespaces

    US20200409601A1

  • Block grouping method in SSD

    CN104298465A

  • Method and system for managing and processing metadata of storage equipment

    CN104461391A