Extended address space for storage devices

By introducing extended address space and mirrored regions into solid-state storage devices, combined with FTL tables and SLC-type NVM storage media, the problems of insufficient address space management efficiency and scalability are solved, enabling efficient storage and low-latency access to important data.

CN115576867BActive Publication Date: 2026-11-27SHANGHAI YIXIN IND CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211289621.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-08-28
Filing Date
2018-09-14
Publication Date
2026-11-27
Estimated Expiration
2038-09-14

AI Technical Summary

Technical Problem

In existing technologies, solid-state storage devices suffer from insufficient address space management efficiency and scalability, making it impossible to effectively utilize extended address space to store important information such as SMART information and work logs, and also resulting in high data access latency.

Method used

By introducing an extended address space into solid-state storage devices, integrating the logical address space with the extended address space using an FTL table, and employing SLC-type NVM storage media as the extended and mirrored areas, combined with write commands to the extended and mirrored areas, dual storage and backup of data are achieved, reducing access latency.

Benefits of technology

It enables efficient storage management of important data such as SMART information and work logs, reduces access latency, and improves the scalability and reliability of storage devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115576867B_ABST
    Figure CN115576867B_ABST
Patent Text Reader

Abstract

An extended address space of a storage device is provided. A method of accessing the extended address space of the storage device is provided, comprising: obtaining a write-extended-zone command for accessing the extended address space; writing data corresponding to the write-extended-zone command to a first physical address; generating a write-mirrored-zone command according to the write-extended-zone command; writing data corresponding to the write-mirrored-zone command to a second physical address; and indicating that processing of the write-extended-zone command is completed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to storage devices, and more specifically, to the management and use of the extended address space of storage devices. Background Technology

[0002] Figure 1 A block diagram of a solid-state storage device (SSD) is shown. The SSD 102 is coupled to a host computer to provide storage capabilities. The host computer and the SSD 102 can be coupled in various ways, including but not limited to connections via SATA (Serial Advanced Technology Attachment), SCSI (Small Computer System Interface), SAS (Serial Attached SCSI), IDE (Integrated Drive Electronics), USB (Universal Serial Bus), PCIe (Peripheral Component Interconnect Express), NVMe (NVM Express), Ethernet, Fibre Channel, and wireless communication networks. The host computer can be an information processing device capable of communicating with the storage device via the above methods, such as a personal computer, tablet computer, server, laptop computer, network switch, router, cellular phone, or personal digital assistant. Storage device 102 includes interface 103, control unit 104, one or more NVM chips 105, and DRAM (Dynamic Random Access Memory) 110.

[0003] NAND flash memory, phase change memory, FeRAM (Ferroelectric RAM), MRAM (Magnetic Random Access Memory), and RRAM (Resistive Random Access Memory) are common types of NVM.

[0004] Interface 103 can be adapted to exchange data with the host via methods such as SATA, IDE, USB, PCIe, NVMe, SAS, Ethernet, and Fibre Channel.

[0005] The control unit 104 is used to control data transfer between the interface 103, the NVM chip 105, and the DRAM 110. It is also used for memory management, host logical address to flash physical address mapping, erase leveling, bad block management, etc. The control unit 104 can be implemented in various ways, including software, hardware, firmware, or a combination thereof. For example, the control unit 104 can be in the form of an FPGA (Field-programmable gate array), an ASIC (Application Specific Integrated Circuit), or a combination thereof. The control unit 104 may also include a processor or controller, in which software executes to manipulate the hardware of the control unit 104 to process I / O (Input / Output) commands. The control unit 104 can also be coupled to the DRAM 110 and can access the data in the DRAM 110. FTL tables and / or cached I / O command data can be stored in the DRAM.

[0006] The control unit 104 includes a flash interface controller (or media interface controller, flash channel controller), which is coupled to the NVM chip 105 and issues commands to the NVM chip 105 in accordance with the interface protocol of the NVM chip 105 to operate the NVM chip 105, and receives the command execution results output from the NVM chip 105. Known NVM chip interface protocols include "Toggle", "ONFI", etc.

[0007] A memory target is one or more logic units (LUNs) within a NAND flash memory package that share a common CE (Chip Enable) signal. A NAND flash memory package may include one or more dies. Typically, a logic unit corresponds to a single die. A logic unit may include multiple planes. Multiple planes within a logic unit can be accessed in parallel, while multiple logic units within a NAND flash memory chip can execute commands and report status independently of each other.

[0008] Data is typically stored and retrieved in pages on storage media, while data is erased in blocks. A block (also called a physical block) contains multiple pages. Pages on a storage medium (called physical pages) have a fixed size, such as 17664 bytes. Physical pages can also have other sizes.

[0009] In solid-state storage devices, the FTL (Flash Translation Layer) is used to maintain the mapping information from logical addresses to physical addresses. Logical addresses constitute the storage space of the solid-state storage device as perceived by upper-layer software such as the operating system. Physical addresses are the addresses used to access the physical storage units of the solid-state storage device. In related technologies, intermediate address formats can also be used for address mapping. For example, a logical address can be mapped to an intermediate address, and then the intermediate address can be further mapped to a physical address.

[0010] The table structure that stores the mapping information from logical addresses to physical addresses is called the FTL table. The FTL table is an important metadata in solid-state storage devices. Typically, the data items in the FTL table record the address mapping relationships in the solid-state storage device at the data page level.

[0011] The FTL table consists of multiple FTL table entries (or entries). In one case, each FTL table entry records the mapping between a logical page address and a physical page. In another case, each FTL table entry records the mapping between multiple consecutive logical page addresses and multiple consecutive physical pages. In yet another case, each FTL table entry records the mapping between logical block addresses and physical block addresses. And still another case, the FTL table records the mapping between logical block addresses and physical block addresses, and / or the mapping between logical page addresses and physical page addresses. Summary of the Invention

[0012] In addition to the storage space provided by the logical address, the storage device according to embodiments of this application also stores other data through an extended address space, such as metadata within the storage device and the storage device's working logs, based on industry-standard SMART (Self-Monitoring Analysis and Reporting Technology) information. Furthermore, by integrating the extended address space with the logical address space, a single address mapping mechanism is used to manage both the logical and extended address spaces.

[0013] According to a first aspect of this application, a method for accessing the extended address space of a storage device according to the first aspect of this application is provided, comprising: obtaining a write extension region command for accessing the extended address space;

[0014] Write the data corresponding to the write extended area command to the first physical address; generate a write mirror area command based on the write extended area command; write the data corresponding to the write mirror area command to the second physical address; and indicate that the write extended area command processing is complete.

[0015] According to the first method for accessing the extended address space of a storage device according to the first aspect of this application, a second method for accessing the extended address space of a storage device according to the first aspect of this application is provided, further comprising: obtaining a write command for accessing the logical address space; writing the data corresponding to the write command to a third physical address; and indicating that the write command processing is complete.

[0016] According to the second method for accessing the extended address space of a storage device according to the first aspect of this application, a third method for accessing the extended address space of a storage device according to the first aspect of this application is provided, wherein the extended address space and the logical address space are respectively mapped to the logical address area and the extended area of ​​the intermediate address space.

[0017] According to the third method for accessing the extended address space of a storage device according to the first aspect of this application, a fourth method for accessing the extended address space of a storage device according to the first aspect of this application is provided, wherein the address accessed by the write extended region command is mapped to the first address of the extended region; the second address is accessed by the write mirror command, the second address belonging to the mirror region of the intermediate address space; the second address is calculated based on the first address.

[0018] According to the third or fourth method for accessing the extended address space of a storage device according to the first aspect of this application, a fifth method for accessing the extended address space of a storage device according to the first aspect of this application is provided, wherein a write command accesses a third address, the third address belonging to the logical address area of ​​the intermediate address space.

[0019] According to the fourth or fifth method for accessing the extended address space of a storage device according to the first aspect of this application, a sixth method for accessing the extended address space of a storage device according to the first aspect of this application is provided, wherein in response to writing data corresponding to a write extended area command to a first physical address, the correspondence between the first address accessed by the write extended area command and the first physical address is recorded; and when writing data corresponding to a write mirror area command to a second physical address, the correspondence between the second address accessed by the write mirror area command and the second physical address is recorded.

[0020] According to one of the first to sixth methods for accessing the extended address space of a storage device according to the first aspect of this application, a seventh method for accessing the extended address space of a storage device according to the first aspect of this application is provided, wherein the data corresponding to the write mirror area command is the same as the data corresponding to the write extended area command.

[0021] According to one of the methods for accessing the extended address space of a storage device according to the fourth to sixth methods of the first aspect of this application, an eighth method for accessing the extended address space of a storage device according to the first aspect of this application is provided, wherein a physical address of a first type of storage medium is allocated to the address of the logical address region; a physical address of a second type of storage medium is allocated to the address of the extended region; and the second type of storage medium has a lower access latency than the first type of storage medium.

[0022] According to one of the methods for accessing the extended address space of a storage device according to the first to eighth aspects of the first aspect of this application, a method for accessing the extended address space of a storage device according to the first aspect of this application is provided, further comprising: in response to obtaining a write extended region command, allocating one or more cache units for the write extended region command; wherein the write extended region command is processed using the one or more cache units.

[0023] According to the ninth method for accessing the extended address space of a storage device according to the first aspect of this application, a tenth method for accessing the extended address space of a storage device according to the first aspect of this application is provided, further comprising: releasing the one or more second cache units in response to writing data corresponding to a write mirror area command to a second physical address.

[0024] The method for accessing the extended address space of a storage device according to the ninth or tenth method of the first aspect of this application provides a method for accessing the extended address space of a storage device according to the first aspect of this application, further comprising: allocating one or more cache units for the write command in response to obtaining a write command.

[0025] According to the methods for accessing the extended address space of a storage device according to the first to eleventh aspects of the first aspect of this application, a method for accessing the extended address space of a storage device according to the twelfth aspect of the first aspect of this application is provided, further comprising: obtaining a read extended region command for accessing the extended address space; obtaining a first physical address according to a first address of the read extended region command, and reading data from the first physical address; responding to an error in reading data from the first physical address; generating a read mirror region command; obtaining a second physical address according to a second address of the read mirror region command, and reading data from the second physical address; and using the data read from the second physical address as a response to the read extended region command.

[0026] According to a second aspect of this application, a method for accessing the extended address space of a first storage device according to the second aspect of this application is provided, comprising: obtaining a read extended region command for accessing the extended address space; obtaining a first physical address based on a first address of the read extended region command, and reading data from the first physical address; responding to an error in reading data from the first physical address; generating a read mirror region command; obtaining a second physical address based on a second address of the read mirror region command, and reading data from the second physical address; and using the data read from the second physical address as a response to the read extended region command.

[0027] According to the first method for accessing the extended address space of a storage device according to the second aspect of this application, a second method for accessing the extended address space of a storage device according to the second aspect of this application is provided, further comprising: obtaining a read command for accessing a logical address space; obtaining a third physical address from a third address of a write command; reading data from the third physical address; and using the data read from the third address as a response to the read command.

[0028] According to the second method for accessing the extended address space of a storage device according to the second aspect of this application, a third method for accessing the extended address space of a storage device according to the second aspect of this application is provided, wherein the extended address space and the logical address space are respectively mapped to the logical address area and the extended area of ​​the intermediate address space.

[0029] According to the third method for accessing the extended address space of a storage device according to the second aspect of this application, a fourth method for accessing the extended address space of a storage device according to the second aspect of this application is provided, wherein the address accessed by the read extended region command is mapped to the first address of the extended region; the second address is accessed by the read mirror command, the second address belonging to the mirror region of the intermediate address space; the second address is calculated based on the first address.

[0030] According to the third or fourth method for accessing the extended address space of a storage device according to the second aspect of this application, a fifth method for accessing the extended address space of a storage device according to the second aspect of this application is provided, wherein a read command accesses a third address, the third address belonging to the logical address area of ​​the intermediate address space.

[0031] According to the fourth or fifth method for accessing the extended address space of a storage device according to the second aspect of this application, a sixth method for accessing the extended address space of a storage device according to the second aspect of this application is provided, wherein in response to obtaining the read extended region command, a first physical address is obtained by querying the FTL table according to the first address accessed by the read extended region command; and in response to generating the read mirror region command, a second physical address is obtained by querying the FTL table according to the second address accessed by the read mirror region command.

[0032] According to the fifth method for accessing the extended address space of a storage device according to the second aspect of this application, a seventh method for accessing the extended address space of a storage device according to the second aspect of this application is provided, wherein the physical address corresponding to the third address of the logical address region comes from a first type of storage medium; the physical address corresponding to the address of the extended region comes from a second type of storage medium; and the second type of storage medium has a lower access latency than the first type of storage medium.

[0033] According to one of the methods for accessing the extended address space of a storage device according to the first to seventh aspects of the second aspect of this application, an eighth method for accessing the extended address space of a storage device according to the second aspect of this application is provided, further comprising: in response to obtaining a read extended region command, allocating one or more cache units for the read extended region command; wherein the read extended region command is processed using the one or more cache units.

[0034] According to the eighth method for accessing the extended address space of a storage device according to the second aspect of this application, a ninth method for accessing the extended address space of a storage device according to the second aspect of this application is provided, further comprising: releasing the one or more second cache units in response to data being read correctly from a first physical address.

[0035] According to the eighth method for accessing the extended address space of a storage device according to the second aspect of this application, a tenth method for accessing the extended address space of a storage device according to the second aspect of this application is provided, further comprising: releasing the one or more second cache units in response to the correct reading of data from a second physical address.

[0036] One of the methods for accessing the extended address space of a storage device according to the eighth to tenth aspects of the second aspect of this application provides a method for accessing the extended address space of a storage device according to the eleventh aspect of the second aspect of this application, further comprising: allocating one or more cache units for a read command in response to obtaining a read command.

[0037] According to a third aspect of this application, a first storage device according to the third aspect of this application is provided, including a control unit and an NVM storage medium; the control unit performs one of the methods for accessing the extended address space of the storage device according to the first aspect of this application and the method for accessing the extended space of the storage device according to the second aspect of this application. Attached Figure Description

[0038] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings.

[0039] Figure 1 This is a block diagram of a solid-state storage device in related technologies;

[0040] Figure 2A A schematic diagram illustrating address space mapping according to an embodiment of this application is shown;

[0041] Figure 2B A schematic diagram illustrating an address space mapping according to yet another embodiment of this application is shown;

[0042] Figure 3 This is a block diagram illustrating the processing of write extension area commands in a storage device according to an embodiment of this application;

[0043] Figure 4 This is a flowchart illustrating the process of writing the extended region command according to an embodiment of this application;

[0044] Figure 5 This is a block diagram illustrating the processing of read extension area commands by a storage device according to an embodiment of this application; and

[0045] Figure 6 This is a flowchart of processing the read extension area command according to an embodiment of this application. Detailed Implementation

[0046] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0047] Figure 2A A schematic diagram illustrating address space mapping according to an embodiment of this application is shown.

[0048] According to an embodiment of this application, the storage device provides a logical address space 210 to a host or user. The user accesses the logical address space 210 provided by the storage device based on the logical address.

[0049] The storage device maintains an LTA space 220. Elements of the LTA space are called LTA addresses. According to the FTL table of the storage device in this embodiment, the mapping relationship between LTA addresses and physical addresses is recorded.

[0050] LTA space comprises multiple zones. Figure 2A In this configuration, the LTA space 220 includes a logical address region 222, an extension region 224, and a mirror region 226. For example, the logical address space 210 is directly mapped to the logical address region 222 of the LTA space 220, thus the logical address space 210 and logical address region 222 have the same number of elements. Optionally, the elements of the logical address space 210 have the same values ​​as the corresponding elements of the logical address region 222.

[0051] The extended area 224 of the LTA space 220 is used to record other data of the storage device, such as SMART information, metadata within the storage device, and the storage device's working log. SMART information 212 is mapped to extended area 224, and the log area 214 is also mapped to extended area 224. The address space representing SMART information 212 and log area 214 is called the extended address space.

[0052] For example, when a host accesses SMART information, the storage device obtains the address of the corresponding extended area 224 based on the accessed SMART information. The log area 214 records the storage device's internal metadata and / or its operational log, and is used by the storage device's firmware. Optionally, the storage device also maintains a mapping from SMART information or log area 214 to extended area 224. Thus, the addresses of the SMART information and log area, and the address of extended area 224, can correspond to different data unit sizes. For example, SMART information is accessed byte-by-byte, the log area's data unit has a size of 512 bytes or 1KB, while the LTA address has a size of, for example, 4KB. Alternatively, the storage device's firmware can directly use the LTA address to access the storage device's internal metadata and / or its operational log, thus eliminating the need for address mapping from log area 214 to extended area 224. Optionally, the LTA address of extended area 224 is obtained by adding a specified offset (e.g., an offset equal to the logical address area size) to the address of the log area.

[0053] According to embodiments of this application, mirror region 226 provides a mirror or copy of extension region 224. The LTA address of mirror region 226 corresponds one-to-one with the LTA address of extension region 224. The LTA address of mirror region 226 is obtained by adding a specified offset (e.g., an offset equal to the size of the extension region) to, for example, the LTA address of extension region 224.

[0054] The host or storage device firmware that accesses SMART information, metadata within the storage device, or the storage device's working logs does not need to be aware of the storage in mirror area 226. Thus, only the extended area is used to access SMART information, metadata within the storage device, or the storage device's working logs, while the storage device's internal or underlying services use mirror area 226 to provide mirroring services for extended area 224.

[0055] Figure 2A In the LTA space 220, "0" indicates the starting address of the LTA space 220, and "LastLTA" indicates the ending address of the LTA space.

[0056] According to the storage device of this application embodiment, the LTA space is mapped to the physical storage space 230 provided by the NVM storage medium through the FTL (Flash Translation Layer) table. The address for accessing the NVM storage medium is referred to as the physical address.

[0057] The capacity of physical storage space 230 is typically larger than that of LTA space. The FTL (Flash Translation Layer) uses techniques such as garbage collection and wear leveling to manage the mapping from LTA space 220 to physical storage space 230 as needed.

[0058] Figure 2B A schematic diagram illustrating an address space mapping according to yet another embodiment of this application is shown.

[0059] same Figure 2A In comparison, Figure 2B In the illustrated embodiment, based on different regions of the LTA space, the FTL table maps the LTA space to different types of physical storage space provided by the NVM storage medium, or maps it to different types of NVM storage media. As an example, in... Figure 2B In this design, logical address area 222 of the LTA space is mapped to a TLC (Triple Level Cell) type NVM storage medium, while extension area 224 and mirror area 226 are mapped to an SLC (Single Level Cell) type NVM storage medium. TLC type NVM storage media has a lower cost per unit capacity, while SLC type NVM storage media offers higher reliability and lower access latency.

[0060] Alternatively, other types of storage media can be used to serve different regions of the LTA space. For example, logical address region 222 can be mapped to NAND flash memory, while extended region 224 and mirror region 226 can be mapped to byte-addressable non-volatile storage media.

[0061] Optionally, or further, the FTL (Flash Translation Layer) performs garbage collection and / or wear leveling on logical address region 222, extended region 224, and / or mirror region 226, respectively. Alternatively, the FTL performs garbage collection and / or wear leveling only on logical address region 222, without performing garbage collection and / or wear leveling on extended region 224 and mirror region 226.

[0062] Figure 3 This is a block diagram illustrating the processing of write extension area commands by a storage device according to an embodiment of this application.

[0063] Figure 3The control components shown include a host interface 310, a BU allocation unit 320, a command processing unit 330, a command completion unit 340, and a media interface 350 for accessing the NVM chip. The host interface 310, BU allocation unit 320, command processing unit 330, command completion unit 340, and media interface 350 can all be implemented by a CPU, dedicated hardware, or a combination thereof.

[0064] Commands to write to the extended area can originate from the host, such as commands to update SMART information, or from the firmware, such as access requests to update the storage device's metadata and / or working log. Commands from the host are received via host interface 310, which then provides these commands to the BU allocation unit. Access requests from the storage device firmware are also sent to the BU allocation unit for processing the write extended area commands. Host commands to write data to the extended area, or access requests to update the storage device's metadata and / or working log, are collectively referred to as write extended area commands. Commands provided by the host to the storage device to write data into the logical address space are called write commands.

[0065] According to embodiments of this application, the storage device includes a plurality of buffer units (BU) 362. The buffer units are used to hold data to be written to the storage device or data to be read from the storage device.

[0066] The BU allocation unit 320 manages the use of cache units and allocates cache units for write commands or write extension commands. For example, cache units have a specified size. One or more cache units are allocated for each write command or write extension command to hold the data to be written to the storage device.

[0067] Taking the write extension area command as an example, the write extension area command that has been allocated a cache unit is added to the command set 360. By setting the command set 360, the operations of the BU allocation unit 320 and the command processing unit 330 do not need to occur synchronously. After adding a write extension area command (or write command, write mirror area command) to the command set, the BU allocation unit continues to process other commands.

[0068] Command processing unit 330 obtains, for example, a write extension command from command set 360 and instructs media interface 350 to issue one or more programming operations to the NVM chip to store the data indicated by the write extension command in the NVM chip. Optionally, command processing unit 330 also allocates physical addresses for the data to be written to the NVM chip. As an example, command processing unit 330 allocates physical addresses of the NVM chip sequentially for the data in an append-only manner. Again, as an example, for the write extension command, command processing unit 330 allocates physical addresses of a specified region of the NVM chip (e.g., a physical address region configured in SLC mode) for the data, or allocates physical addresses of the SLC type storage medium for the data.

[0069] The media interface 350 provides the result of the programming operation of the NVM chip to the command completion unit 340. In response to the successful execution of the programming operation, the command completion unit 340 records the correspondence between the LTA address accessed by the command (write command, write extended area command, or write mirror area command) and the physical address accessed by the programming operation in the FTL table 364.

[0070] According to an embodiment of this application, the command completion unit 340 further identifies which region of the LTA space the LTA address accessed by the command (write command, write extended region command, or write mirror region command) corresponding to the completed programming operation is located in. If the command accesses the extended region of the LTA space (see...) Figure 2A , 2B The extension area 224) indicates that the command is a write extension area command, and the command completion unit 340 generates a write mirror area based on the write extension area command (see...). Figure 2A , 2B The command to write the mirror area (226) is generated and used to write the data from the write extension area command back into the mirror area. For example, the LTA address of the write extension area command is obtained by adding the size of the extension area to the LTA address of the write extension area command. The command completion unit 340 provides the write mirror area command to, for example, the BU allocation unit 320.

[0071] Optionally, in response to receiving a write mirror area command from the command completion unit 340, the BU allocation unit 320 reuses the cache unit previously allocated to the write extension area command, allocates the cache unit to the write mirror area command corresponding to the write extension area command, updates the LTA address of the write extension area command corresponding to the cache unit to the LTA address of the write mirror area command, and does not change the data to be written to the extension area recorded in the cache unit, so as to write the same data to the mirror area again.

[0072] Optionally, in response to the completion of the write extension area command processing, the command completion unit 340 instructs the release of the cache unit occupied by the write extension area command. The BU allocation unit then reallocates cache units for the write mirror area command corresponding to the write extension area command.

[0073] Optionally, command completion unit 340 generates a corresponding write mirror area command in response to the completion of the write extension area command processing, without going through BU allocation unit 320. Command completion unit 340 obtains the LTA address of the write mirror area command through the LTA address of the write extension area command, and uses the cache unit allocated to the write extension area command as the cache unit for the write mirror area command. The generated write mirror area command is also directly added to command set 360.

[0074] If the command completion unit 340 identifies that the LTA address accessed by the command (write command, write extended area command, or write mirror area command) corresponding to the completed programming operation is located in the mirror area, it means that the command is a write mirror area command. In response to the completion of the write mirror area command, the command completion unit 340 instructs the BU allocation unit 320 to release the data unit allocated to the write mirror area command.

[0075] If the command completion unit 340 identifies that the LTA address accessed by the command (write command, write extension area command, or write mirror area command) corresponding to the completed programming operation is located in the logical address area, it means that the command is a write command. In response to the completion of the write command processing, the command completion unit 340 instructs the BU allocation unit 320 to release the data unit allocated to the write command.

[0076] Therefore, for write extension area commands generated by the host or firmware, according to embodiments of this application, in addition to processing the write extension area command, a write mirror area command is also generated based on the write extension area command to write mirror data as a backup of the extension area to the mirror area. The FTL table records the correspondence between the LTA address and the physical address obtained from the write extension area command, and also records the correspondence between the LTA address and the physical address obtained from the write mirror area command. Furthermore, the LTA address of the extension area and the corresponding LTA address of the mirror area have a specified mapping relationship, so the LTA address of the mirror area can be obtained from the LTA address of the extension area. Therefore, in response to a failure to read data from the extension area, the storage device according to embodiments of this application obtains the corresponding mirror area address from the extension area address to be read, and reads data from the mirror area address as a response to the read extension area command.

[0077] According to embodiments of this application, the write command, write extended area command, and write mirror area command are processed in substantially the same way by the various components of the storage device, which also reduces the complexity of the storage device.

[0078] Optionally or further, if the command completion unit 340 identifies a failed programming operation, regardless of which area of ​​the LTA address space the write command corresponding to the programming operation accesses, the command completion unit 340 instructs the BU allocation unit 320 to reprocess the command corresponding to the programming operation. Optionally, the BU allocation unit reuses the cache unit allocated for the command corresponding to the programming operation.

[0079] Figure 4 This is a flowchart of the process of writing the extension area command according to an embodiment of this application.

[0080] The storage device obtains a write extension command (410). The write extension command comes from, for example, host updates SMART information, or firmware updates the storage device's metadata and / or the storage device's working log.

[0081] One or more buffer units (420) are allocated for write extension commands to temporarily hold the data to be written by the write extension command. For example, by Figure 3 The BU allocation unit 320 shown allocates cache units for write extension commands. Optionally, if the number of available cache units in the storage device is insufficient to accommodate the data to be written by the write extension command, processing of the write extension command is suspended until a sufficient number of cache units are available to allocate to the write extension command.

[0082] Add the write extension command that has allocated cache units to the command set (e.g., Figure 3 The command set 360)(430).

[0083] The command processing unit (e.g., periodically or in response to the addition of commands to a command set) Figure 3 The command processing unit 330 retrieves commands from the command set and, based on the commands, sends programming operations (440) to the NVM chip. Optionally, the command processing unit assigns a physical address to the data unit of the command retrieved from the command set and indicates, for example, a media interface (see...). Figure 3 The media interface 350 sends a programming operation to the NVM chip to write data from the cache unit to the allocated physical address of the NVM chip. Optionally, the command processing unit also identifies which region of the LTA space the command obtained from the command set accesses. For commands accessing the extended region or mirror region, a physical address of the specified region is allocated. The specified region is, for example, a storage medium such as an SLC-type NVM chip, non-volatile memory, phase-change memory, resistive random access memory, etc. For commands accessing the logical address region, a physical address such as that of a TLC-type NVM chip is allocated.

[0084] In response to the completion of one or more programming operations corresponding to a write extension command, the FTL table (450) is updated. The FTL table records the mapping between the LTA address of the extension accessed by the write extension command and the physical address allocated for the programming operation. In some cases, the write extension command accesses multiple LTA addresses (e.g., each LTA address corresponds to one of the cache units), and the FTL table also records the mapping between each LTA address of the write extension command and its physical address.

[0085] Based on whether the LTA address accessed by the command is located in the extended region or the mirror region (460), it can be identified whether the command is a write extended region command, a write command, or a write mirror region command. Understandably, Figure 5 For clarity, the term "write extension area command" is used in the description of steps 410-460. For example, command processing unit 330 or command completion unit 340 identifies whether a command is a write command, a write extension area command, or a write mirror area command by, for example, recognizing the value of the LTA address accessed by the command or an identifier carried in the command.

[0086] In step 460, for the write extension command, a corresponding write mirror region command is generated to copy the data written to the extension region to the mirror region. The generated write mirror region command indicates the same cache unit as the write extension command and indicates the address to write the data of the cache unit to the mirror region. The corresponding mirror region address (480) is obtained by adding, for example, a specified offset value to the extension region address. Then, returning to step 430, the generated write mirror region command is added to the command set by referencing the step of adding the write extension command to the command set.

[0087] In step 460, for a write mirror area command, or alternatively, for a write command, in response to the write mirror area command or the completion of the write command processing, the cache unit allocated to it is released (470).

[0088] Figure 5 This is a block diagram illustrating the processing of read extension area commands by a storage device according to an embodiment of this application.

[0089] Figure 5 The control components shown include a host interface 510, a BU allocation unit 520, an address translation unit 525, a command processing unit 530, a command completion unit 540, and a media interface 550, all of which can be implemented by a CPU, dedicated hardware, or a combination thereof.

[0090] Commands to read the extended area can come from the host, such as commands to access SMART information, or from the firmware, such as access requests to access the storage device's metadata and / or the storage device's working logs.

[0091] Commands are received from the host via host interface 510, and host interface 510 provides these host commands to BU allocation unit 520. Access requests from the storage device firmware are also sent to BU allocation unit 520 for processing of read extension area commands. Host commands to read data from the extension area or access requests to retrieve storage device metadata and / or storage device working logs are collectively referred to as read extension area commands. Commands provided by the host to the storage device to retrieve data from the logical address space are called read commands.

[0092] The storage device includes multiple buffer units (BUs) 562. The BU allocation unit 520 manages the use of buffer units and allocates buffer units for read commands or read extension commands.

[0093] The read extension area command indicates the LTA address to be accessed. Optionally, to read SMART information, storage device metadata, and / or storage device working logs, the LTA address to be accessed is also obtained based on the object being read. When processing the read extension area command, the address translation unit 525 queries the FTL table 564 to convert the LTA address to a physical address. Similarly, to process the read mirror area address, the address translation unit 525 also converts the LTA address to a physical address. To process a read command, optionally, the LTA address is obtained based on the logical address indicated by the read command, and the LTA address is converted to a physical address by the address translation unit 525. In some cases, the logical address is the same as the LTA address.

[0094] Continue reading Figure 5 For example, a read extension command that has been allocated a cache unit and obtained the corresponding physical address is added to command set 560.

[0095] Command processing unit 530 obtains, for example, a read extension area command from command set 560, and issues one or more read operations to NVM chip according to physical address instruction media interface 550 to read the data indicated by the read extension area command from NVM chip. The data read from NVM chip is cached in the cache unit allocated to the read extension area command.

[0096] For example, for a read extended area command, the physical address found from the FTL is the physical address of a specified area of ​​the NVM chip (e.g., a physical address area configured as SLC mode), or the physical address of an SLC type storage medium.

[0097] The media interface 550 provides the result of the read operation of the NVM chip to the command completion unit 540. In response to the successful execution of the read operation, the command completion unit 540 instructs the BU allocation unit 520 to release the cache unit allocated for the command corresponding to the read operation (read command, read extended area command, or read mirror area command).

[0098] In response to a read operation failure, the command completion unit 540 further identifies which region of the LTA space the command (read command, read extended region command, or read mirror region command) accessed by the completed read operation is located in, and performs different subsequent processing. If the command accesses the extended region of the LTA space (see...), then... Figure 2A , 2B The extension area 224 indicates that the command is a read extension area command, and the command completion unit 540 generates a read mirror area based on the read extension area command (see...). Figure 2A , 2B The command to read the mirror area (226) is used to re-attempt reading the data to be read by the read extended area command from the mirror area. For example, the LTA address of the read extended area command is obtained by adding the size of the extended area to the LTA address of the read extended area command. The command completion unit 540 provides the read mirror area command to the BU allocation unit 520 for processing.

[0099] Optionally, the BU allocation unit 320 reuses the cache unit previously allocated to the read extended area command, allocates the reused cache unit to the read mirror area command corresponding to the same read extended area command, and updates the LTA address of the read extended area command corresponding to the cache unit to the LTA address of the read mirror area command.

[0100] Optionally, in response to a read extension area command failure, command completion unit 540 instructs the release of the cache unit occupied by the read extension area command. BU allocation unit 520 then reallocates cache units for the read mirror area command corresponding to the read extension area command. BU allocation unit 520 also instructs address translation unit 525 to obtain the physical address of the LTA address corresponding to the read mirror area command.

[0101] Optionally, in response to a failure to process the read extended area command, command completion unit 540 generates a mirror area LTA address corresponding to the extended area LTA address based on the LTA address of the read extended area command, and directly instructs address translation unit 525 to obtain the physical address based on the mirror area LTA address. Command completion unit 540 directly generates a read mirror area command based on the mirror area LTA address and the corresponding physical address, and adds it to command set 560, without going through BU allocation unit 520.

[0102] If the command completion unit 540 identifies that the LTA address accessed by the command (read command, read extended area command, or read mirror area command) corresponding to the completed read operation is located in the mirror area, it means that the command is a read mirror area command. In response to the failure of the read mirror area command processing, optionally, the host or firmware that generated the corresponding read extended area command is indicated to indicate that the read extended area command processing failed.

[0103] Therefore, if the read operation corresponding to the read extended area command generated by the host or firmware fails, according to the embodiments of this application, a read mirror area command is generated based on the read extended area command to read the mirror data as a backup of the extended area from the mirror area as a response to the read extended area command.

[0104] Optionally, for read commands generated by the host or firmware, if the corresponding read operation fails, other error handling procedures are also executed. For example, the command processing unit 530 instructs the media interface to initiate a read-retry command or the error decoding unit to initiate a software decoding process; the command completion unit 540 initiates a data recovery process using mechanisms such as RAID. Optionally, for read extension area commands or read mirror area commands, if the corresponding read operation fails, the aforementioned other error handling procedures are also executed.

[0105] Figure 6 This is a flowchart of processing the read extension area command according to an embodiment of this application.

[0106] The storage device obtains a read extension command (610). The read extension command comes from, for example, host access SMART information, or firmware reading the storage device's metadata and / or the storage device's working log.

[0107] One or more buffer units (620) are allocated for read extension region commands to temporarily hold data read from the NVM chip in response to read extension region commands. For example, by Figure 3 The BU allocation unit 320 shown is a cache unit for reading extended area commands.

[0108] Based on the LTA address indicated by the read extension area command, the corresponding physical address (630) is obtained through, for example, the FTL table.

[0109] Add read extension commands that have been allocated cache units to the command set (e.g., Figure 3 The command set 360)(640). The read extension area command in the command set carries the LTA address to be accessed and the physical address corresponding to the LTA address.

[0110] The command processing unit (e.g., periodically or in response to the addition of commands to a command set) Figure 3 The command processing unit 330) retrieves commands from the command set and sends a read operation (650) to the NVM chip according to the commands.

[0111] In response to the completion of one or more read operations corresponding to a read extension command, the system checks whether the read data is correct (660). For example, it checks whether the read data is correct by performing error correction decoding on the read data. If the read data is correct (no errors exist, or it can be correctly corrected), the read data is used as the processing result of the read extension command (675). One or more buffer units allocated to the read extension command are also released.

[0112] In step 660, if the read data cannot be correctly decoded to obtain the correct data, the system further identifies whether the LTA address accessed by the command is located in the extended region or the mirror region (670) to determine whether the command is a read command, a read extended region command, or a read mirror region command. Understandably, Figure 6 In this context, steps 610-660 and 675 also apply to processing read commands that read the logical address space. Step 670 requires identifying, for example, the value of the LTA address accessed by the command or an identifier carried in the command to determine whether the command is a read command, a read extended area command, or a read mirror area command.

[0113] In step 680, for a read extended region command, a corresponding read mirror region command is generated to attempt to obtain the correct data to be read by the read extended region command. Based on the LTA address of the read extended region command, the LTA address of the mirror region is obtained, for example, by adding the size of the extended region. Next, the process returns to step 630 to obtain the physical address corresponding to the LTA address of the mirror region for the newly generated read mirror region command, and continues with subsequent steps such as step 640.

[0114] In step 670, if the command is identified as a read mirror area step, then proceed to step 690 for error handling. For example, the requester of the read extended area command is informed that the data is corrupted and unrecoverable. One or more cache units allocated to the read extended area command are also released. Optionally, in step 690, a series of further data recovery procedures are implemented.

[0115] Understandably, although based on Figure 3 and Figure 5 In the embodiments, the host interface, BU allocation unit, command processing unit, command completion unit, media interface, and / or address translation unit each perform corresponding operations. These operations can be performed by different components or by one or more program segments running on the CPU.

[0116] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application. Clearly, those skilled in the art can make various alterations and variations to this application without departing from its spirit and scope. Thus, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method for accessing the extended address space of a storage device, characterized in that, include: Obtain a write extension command to access the extended address space, wherein the extended address space is different from the logical address space; wherein the logical address space is provided by the storage device to the host or user; Write the data corresponding to the write extension area command to the first physical address, and record the correspondence between the LTA address accessed by the write extension area command and the first physical address in the FTL table; Generate a write mirror area command based on the write extended area command; The data corresponding to the write mirror area command is written to the second physical address, and the correspondence between the LTA address accessed by the write mirror area command and the second physical address is recorded in the FTL table; and The write extension command has been completed. The FTL table records the mapping relationship between LTA addresses and physical addresses; the elements of the LTA space are called LTA addresses; the LTA space is the storage space maintained by the storage device; the LTA space includes a logical address area, an extended area, and a mirror area; the logical address space is directly mapped to the logical address area; the extended address space is directly mapped to the extended area; the mirror area provides a mirror or copy of the extended area.

2. The method according to claim 1, characterized in that, Also includes: Obtain the write command to access the logical address space; Write the data corresponding to the write command to the third physical address, and record the correspondence between the LTA address accessed by the write command and the third physical address in the FTL table; as well as The write command has been completed.

3. The method according to claim 2, characterized in that, in The extended address space is mapped to an extended region of the LTA address space; wherein the firmware of the storage device directly accesses the extended region based on the LTA address.

4. The method according to any one of claims 1-3, characterized in that, in In response to the command to obtain the write extension region, the address accessing the extended address space is mapped to the first LTA address of the extension region, and a corresponding first physical address is allocated to the first LTA address indicated by the write extension region command; The second LTA address is calculated based on the first LTA address, the write mirror area command is generated based on the second LTA address, and a corresponding second physical address is allocated to the second LTA address, wherein the second LTA address belongs to the mirror area of ​​the LTA address space.

5. The method according to claim 4, characterized in that, in The second LTA address indicated by the write mirror area command is obtained by adding the specified offset to the first LTA address indicated by the write extended area command.

6. The method according to claim 3 or 5, characterized in that, in The logical address space is mapped to the logical address area of ​​the LTA space; wherein, according to the FTL table, the logical address area is mapped to the first type of storage medium and the extension area is mapped to the second type of storage medium, wherein the second type of storage medium has a lower access latency than the first type of storage medium.

7. A method for accessing the extended address space of a storage device, comprising: Obtain a read extended region command to access the extended address space, wherein the extended address space is different from the logical address space; wherein the logical address space is provided to the host or user; The first physical address is obtained by querying the FTL table based on the first address of the read extension area command, and the data is read from the first physical address; In response to an error reading data from the first physical address; Generate a command to read the image area; The second physical address is obtained by querying the FTL table based on the second address of the read mirror area command, and data is read from the second physical address; The data read from the second physical address will be used as a response to the read extension area command; The FTL table records the mapping relationship between LTA addresses and physical addresses; the elements of the LTA space are called LTA addresses; the LTA space is the storage space maintained by the storage device; the LTA space includes a logical address area, an extended area, and a mirror area; the logical address space is directly mapped to the logical address area; the extended address space is directly mapped to the extended area; the mirror area provides a mirror or copy of the extended area.

8. The method according to claim 7, wherein In response to a read extended region command, one or more cache units are allocated for the read extended region command; wherein the read mirror region command is processed using the one or more cache units.

9. The method according to claim 8, characterized in that, Also includes: In response to a read operation failure corresponding to a read extension command, the cache unit allocated to the read extension command is reused, the reused cache unit is allocated to the read mirror region command corresponding to the read extension command, and the LTA address of the read extension command corresponding to the cache unit is updated to the LTA address indicated by the read mirror region command.

10. A storage device, comprising a control unit and an NVM storage medium; The control unit performs the method according to any one of claims 1-9.

Citation Information

Patent Citations

  • Storage device and its control method

    JP2004139503A

  • Memory controller, nonvolatile memory system, and operating method thereof

    US20180052768A1