Dual-port solid-state storage device and data processing method thereof

By designing a dual-port solid-state storage device in the solid-state storage device and using the transaction layer module and the CPU subsystem to process the data packets of the PCIe port, the problem of insufficient reliability of the solid-state storage device in the existing technology is solved and more efficient data processing is achieved. and storage management.

CN110377221BActive Publication Date: 2024-10-01MEMBLAZE TECH BEIJING
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201810332910.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-04-13
Publication Date
2024-10-01
Estimated Expiration
2038-04-13

AI Technical Summary

Technical Problem

Existing solid-state storage devices have shortcomings in improving reliability, especially the lack of effective solutions in multi-port connectivity and data processing.

Method used

A dual-port solid-state storage device is designed, including a control component and a non-volatile memory chip coupled to the control component, using a transaction layer module, a CPU subsystem, a PCIe physical layer module and a data link layer module, through two PCIe ports Coupled to the host respectively, achieve independent access and shared access to the namespace, and maintain priorities and access permissions.

Benefits of technology

It improves the reliability and data processing efficiency of solid-state storage devices, ensures that each PCIe port independently accesses the memory space of the storage device, and processes IO commands and transport layer data packets through the CPU subsystem, improving the stability and security of the system. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110377221B_ABST
    Figure CN110377221B_ABST
Patent Text Reader

Abstract

The present application provides a dual-port solid-state storage device and a data processing method thereof. The dual-port solid-state storage device includes a control component and a non-volatile storage chip coupled to the control component, wherein the control component includes a transaction layer module, a first CPU subsystem, a first PCIe physical layer module, and a second PCIe physical layer module; each PCIe physical layer module is used to couple the control component to a PCIe port of the dual-port solid-state storage device; the transaction layer module is coupled to the first CPU subsystem, the first CPU subsystem processes transport layer data packets from the first PCIe port and the second PCIe port obtained from the transaction layer module, obtains IO commands from the transport layer data packets, and accesses the non-volatile storage chip according to the obtained IO commands.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of storage devices, and in particular to a dual-port solid-state storage device and a data processing method thereof. Background Art

[0002] Figure 1 The block diagram of the solid-state storage device is shown. The solid-state storage device 102 is coupled to the host to provide storage capacity for the host. The host and the solid-state storage device 102 can be coupled in a variety of ways, including but not limited to connecting the host and the solid-state storage device 102 through, for example, 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, PCIe), NVMe (NVM Express), Ethernet, Fiber Channel, wireless communication network, etc. The host can be an information processing device that can communicate with the storage device in the above manner, such as a personal computer, a tablet computer, a server, a portable computer, a network switch, a router, a cellular phone, a personal digital assistant, etc. The storage device 102 includes an interface 103 , a control component 104 , one or more NVM chips 105 , and a DRAM (Dynamic Random Access Memory) 110 .

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

[0004] The interface 103 may be adapted to exchange data with the host via, for example, SATA, IDE, USB, PCIE, NVMe, SAS, Ethernet, Fibre Channel, etc.

[0005] The control component 104 is used to control data transmission between the interface 103, the NVM chip 105 and the DRAM 110, and is also used for storage management, mapping of host logical addresses to flash physical addresses, erase leveling, bad block management, etc. The control component 104 can be implemented in a variety of ways, such as software, hardware, firmware, or a combination thereof. For example, the control component 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 component 104 can also include a processor or a controller, in which software is executed to manipulate the hardware of the control component 104 to process IO (Input / Output) commands. The control component 104 can also be coupled to the DRAM 110 and can access the data of the DRAM 110. The data of the FTL table and / or cached IO commands can be stored in the DRAM.

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

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

[0008] The table structure storing the mapping information from logical address to physical address is called FTL table. FTL table is an important metadata in solid-state storage device. Usually, the data items of FTL table record the address mapping relationship in the solid-state storage device in units of data page.

[0009] The NVMe protocol also defines a namespace (NS). A namespace of size n is a set of logical blocks with logical block addresses from 0 to n-1. A namespace can be uniquely identified by a namespace ID (NSID). Namespaces can be shared between hosts / NVMe controllers. A host can access different namespaces through a single NVMe controller. Different hosts can also access the same namespace through multiple NVMe controllers.

[0010] The PCIe protocol defines the communication mechanism between devices. The NVMe protocol (also see Chapter 3 of "NVM Express Revision 1.2" (hereinafter referred to as NVMe protocol), November 3, 2014) defines the mechanism for accessing non-volatile storage devices. PCIe devices provide memory space. A host coupled to a PCIe device can access the memory space of the PCIe device.

[0011] To improve reliability, some PCIe devices need to provide two PCIe ports. Each PCIe port can be coupled to a host or other devices, and the complete PCIe device can be accessed through each PCIe port. Summary of the invention

[0012] A PCIe device having two or more PCIe ports needs to be provided.

[0013] The purpose of the present application is to provide a dual-port solid-state storage device and a data processing method thereof, so as to improve the reliability of the solid-state storage device.

[0014] According to a first aspect of the present application, a dual-port solid-state storage device according to the first aspect of the present application is provided, comprising a control component and a non-volatile storage chip coupled to the control component, wherein the control component comprises a transaction layer module, a first CPU subsystem, a first PCIe physical layer module, and a second PCIe physical layer module; each PCIe physical layer module is used to couple the control component to a PCIe port of the dual-port solid-state storage device; the transaction layer module is coupled to the first CPU subsystem, the first CPU subsystem processes transport layer data packets from the first PCIe port and the second PCIe port obtained from the transaction layer module, obtains IO commands from the transport layer data packets, and accesses the non-volatile storage chip according to the obtained IO commands.

[0015] According to the first dual-port solid-state storage device of the first aspect of the present application, a second dual-port solid-state storage device according to the first aspect of the present application is provided, wherein the control component includes a first number of transaction layer modules; the control component also includes a first number of data link layer modules, and each transaction layer module is coupled to the corresponding data link layer module.

[0016] According to the first or second dual-port solid-state storage device of the first aspect of the present application, a third dual-port solid-state storage device according to the first aspect of the present application is provided, wherein the solid-state storage device includes a flash translation layer table; the first CPU subsystem accesses the flash translation layer table to respond to IO requests for accessing the solid-state storage device from the first PCIe port and the second PCIe port.

[0017] According to the dual-port solid-state storage device of any one of the first to third items of the first aspect of the present application, there is provided a fourth dual-port solid-state storage device according to the first aspect of the present application, wherein the first CPU subsystem maintains multiple namespaces.

[0018] According to the fourth dual-port solid-state storage device of the first aspect of the present application, a fifth dual-port solid-state storage device according to the first aspect of the present application is provided, wherein a first host coupled to the solid-state hard disk through a first PCIe port and / or a second host coupled to the solid-state hard disk through a second PCIe port has exclusive access or shared access to one or more namespaces.

[0019] According to the fifth dual-port solid-state storage device of the first aspect of the present application, a sixth dual-port solid-state storage device according to the first aspect of the present application is provided, wherein the first CPU subsystem records the access rights of each host to each namespace, and processes or rejects IO requests from the host received through the PCIe port based on the access rights.

[0020] According to the dual-port solid-state storage device of any one of the first to sixth items of the first aspect of the present application, there is provided a seventh dual-port solid-state storage device according to the first aspect of the present application, wherein the first CPU subsystem maintains priority for transport layer data packets from different PCIe ports.

[0021] According to the dual-port solid-state storage device of any one of the first to seventh items of the first aspect of the present application, an eighth dual-port solid-state storage device according to the first aspect of the present application is provided, wherein the first CPU subsystem also records which PCIe port the transport layer data packet comes from, and sends the processing result of the transport layer data packet through the PCIe port from which it comes.

[0022] According to the first dual-port solid-state storage device of the first aspect of the present application, there is provided a ninth dual-port solid-state storage device according to the first aspect of the present application, wherein the transaction layer module is further coupled to the controller register access module.

[0023] According to the ninth dual-port solid-state storage device of the first aspect of the present application, there is provided a tenth dual-port solid-state storage device according to the first aspect of the present application, wherein the transaction layer module converts a received request for accessing the memory space of the PCIe device into a controller register access request and forwards it to the controller register access module.

[0024] According to the ninth or tenth dual-port solid-state storage device of the first aspect of the present application, there is provided an eleventh dual-port solid-state storage device according to the first aspect of the present application, wherein the controller register access module accesses the memory space of the first PCIe device based on a request for accessing the memory space of the PCIe device coming from the first PCIe port, and accesses the memory space of the second PCIe device based on a request for accessing the memory space of the PCIe device coming from the second PCIe port, and the memory space of the first PCIe device and the memory space of the second PCIe device are independent of each other.

[0025] According to the eleventh dual-port solid-state storage device of the first aspect of the present application, there is provided a twelfth dual-port solid-state storage device according to the first aspect of the present application, wherein the controller register access module maintains the memory space of all PCIe devices and indicates through which PCIe port the processing result of the controller register access request is provided to the host.

[0026] According to a dual-port solid-state storage device of any one of the ninth to twelfth items of the first aspect of the present application, there is provided a thirteenth dual-port solid-state storage device according to the first aspect of the present application, wherein, for a request to access the memory space of a PCIe device that cannot be processed by a controller register access module, the transaction layer module sends it to the first CPU subsystem.

[0027] According to the ninth dual-port solid-state storage device of the first aspect of the present application, a fourteenth dual-port solid-state storage device according to the first aspect of the present application is provided, wherein the controller register access module accesses the first NVMe controller register according to a request from the first PCIe port to access the memory space of the PCIe device, and the controller register access module accesses the first NVMe controller register according to a request from the second PCIe port to access the memory space of the PCIe device.

[0028] According to the first or ninth dual-port solid-state storage device of the first aspect of the present application, there is provided a fifteenth dual-port solid-state storage device according to the first aspect of the present application, wherein the first CPU subsystem includes a first CPU and a second CPU, and the first CPU and the second CPU are both coupled to a transaction layer module.

[0029] According to the fifteenth dual-port solid-state storage device of the first aspect of the present application, there is provided a sixteenth dual-port solid-state storage device according to the first aspect of the present application, wherein the first CPU is associated with a first PCIe port, the second CPU is associated with a second PCIe port, and the transaction layer module provides transport layer data packets from different PCIe ports to the CPU associated with the PCIe port.

[0030] According to the fifteenth dual-port solid-state storage device of the first aspect of the present application, there is provided a seventeenth dual-port solid-state storage device according to the first aspect of the present application, wherein the transaction layer module provides the transport layer data packet from any PCIe port to either the first CPU or the second CPU.

[0031] According to the seventeenth dual-port solid-state storage device of the first aspect of the present application, there is provided an eighteenth dual-port solid-state storage device according to the first aspect of the present application, wherein the first CPU and the second CPU run the same or different programs to process transport layer data packets provided by the transaction layer module.

[0032] According to the dual-port solid-state storage device of any one of items 15 to 18 of the first aspect of the present application, there is provided a nineteenth dual-port solid-state storage device according to the first aspect of the present application, wherein the transaction layer module sends the processing result of the transport layer data packet from the CPU to the data link layer module corresponding to the CPU from which the processing result comes.

[0033] According to the dual-port solid-state storage device of any one of items 15 to 19 of the first aspect of the present application, there is provided a twentieth dual-port solid-state storage device according to the first aspect of the present application, wherein the first CPU and the second CPU access the same flash translation layer table.

[0034] According to the dual-port solid-state storage device of any one of items 15 to 20 of the first aspect of the present application, there is provided a twenty-first dual-port solid-state storage device according to the first aspect of the present application, wherein both the first CPU and the second CPU maintain multiple namespaces.

[0035] According to the twenty-first dual-port solid-state storage device of the first aspect of the present application, there is provided a twenty-second dual-port solid-state storage device according to the first aspect of the present application, wherein a host coupled to the solid-state hard disk via a PCIe port has exclusive access or shared access to one or more namespaces.

[0036] According to the twenty-second dual-port solid-state storage device of the first aspect of the present application, a twenty-third dual-port solid-state storage device according to the first aspect of the present application is provided, wherein the first CPU and the second CPU process or reject access requests received through the PCIe port based on the host's access rights to each namespace.

[0037] A dual-port solid-state storage device according to any one of items 15 to 23 of the first aspect of the present application, a twenty-fourth dual-port solid-state storage device according to the first aspect of the present application is provided, wherein the CPU accesses the memory space of the first PCIe device based on a request for accessing the memory space of the PCIe device coming from the first PCIe port, and accesses the memory space of the second PCIe device based on a request for accessing the memory space of the PCIe device coming from the second PCIe port, and the memory space of the first PCIe device and the memory space of the second PCIe device are independent of each other.

[0038] A dual-port solid-state storage device according to any one of items 15 to 23 of the first aspect of the present application provides a twenty-fifth dual-port solid-state storage device according to the first aspect of the present application, wherein the CPU accesses the memory space of the first PCIe device based on a request for accessing the memory space of the PCIe device coming from the first PCIe port, and accesses the memory space of the first PCIe device based on a request for accessing the memory space of the PCIe device coming from the second PCIe port.

[0039] According to the second aspect of the present application, a data processing method for a first dual-port solid-state storage device according to the second aspect of the present application is provided, wherein, based on an IO command coming from a first PCIe port, the processing result of the IO command is sent through the first PCIe port; based on an IO command coming from a second PCIe port, the processing result of the IO command is sent through the second PCIe port.

[0040] According to the data processing method of the first dual-port solid-state storage device according to the second aspect of the present application, a data processing method of the second dual-port solid-state storage device according to the second aspect of the present application is provided, wherein the first IO command and the second IO command have the same address space range that can access the storage device.

[0041] According to the data processing method of the first or second dual-port solid-state storage device of the second aspect of the present application, a data processing method of the third dual-port solid-state storage device of the second aspect of the present application is provided, wherein the same flash translation layer table is used to process the first IO command and the second IO command.

[0042] According to the data processing method of a dual-port solid-state storage device of any one of the first to third items of the second aspect of the present application, a data processing method of a fourth dual-port solid-state storage device according to the second aspect of the present application is provided, wherein the first IO command and the second IO command are processed by the same CPU, the CPU records the PCIe port from which the IO command comes, and sends the processing result of the IO command through the PCIe port from which the IO command comes.

[0043] According to the data processing method of a dual-port solid-state storage device of any one of the first to fourth items of the second aspect of the present application, there is provided a data processing method of a fifth dual-port solid-state storage device according to the second aspect of the present application, wherein, based on the transport layer data packet coming from the first PCIe port, the transport layer data packet is provided to the first CPU associated with the first PCIe port; based on the transport layer data packet coming from the second PCIe port, the transport layer data packet is provided to the second CPU associated with the second PCIe port.

[0044] A data processing method for a dual-port solid-state storage device according to any one of the first to fifth items of the second aspect of the present application is provided, wherein the memory space of the first PCIe device is accessed based on a request for accessing the memory space of the PCIe device coming from the first PCIe port; the memory space of the second PCIe device is accessed based on a request for accessing the memory space of the PCIe device coming from the second PCIe port; and the memory space of the first PCIe device and the memory space of the second PCIe device are independent of each other.

[0045] According to the data processing method of a dual-port solid-state storage device of any one of the first to fifth items of the second aspect of the present application, there is provided a data processing method of a seventh dual-port solid-state storage device according to the second aspect of the present application, wherein the first NVMe controller register is accessed based on a request from a first PCIe port to access the memory space of a PCIe device, and the first NVMe controller register is accessed based on a request from a second PCIe port to access the memory space of a PCIe device.

[0046] According to the data processing method of a dual-port solid-state storage device of any one of the first to fourth items of the second aspect of the present application, there is provided a data processing method of an eighth dual-port solid-state storage device according to the second aspect of the present application, wherein a transport layer data packet from any PCIe port is provided to any one of the first CPU or the second CPU. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For those skilled in the art, other drawings can also be obtained based on these drawings.

[0048] Figure 1 A block diagram of a solid-state storage device is shown.

[0049] Figure 2 A block diagram of a control component of a storage device according to an embodiment of the present application is shown.

[0050] Figure 3 A block diagram of a control component of a storage device according to another embodiment of the present application is shown.

[0051] Figure 4 A block diagram of a control component of a storage device according to another embodiment of the present application is shown.

[0052] Figure 5 A block diagram of a control component of a storage device according to yet another embodiment of the present application is shown. DETAILED DESCRIPTION

[0053] The following is a clear and complete description of the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0054] Embodiment 1

[0055] Figure 2 The block diagram of the control component of the storage device according to the embodiment of the present application is shown. The storage device provides two PCIe ports (not shown), each of which can be coupled to the same (such as Figure 2 The control unit includes a PCIe PHY module (210, 212), a data link layer module (220, 222), a transaction layer module (230, 232) and a CPU subsystem 260. The CPU subsystem 260 includes one or more CPUs.

[0056] The PCIe PHY module 210 is coupled to the data link layer module 220, and the data link layer module 220 is coupled to the transaction layer module 230. The PCIe PHY module 212 is coupled to the data link layer module 222, and the data link layer module 222 is coupled to the transaction layer module 232. The CPU subsystem 260 is coupled to the transaction layer module 230 and the transaction layer module 232, and is also coupled to the NVM chip 105 and the DRAM 110. Optionally, the CPU subsystem is also coupled to the FTL table, and converts the logical address to be accessed by the host into a physical address by accessing the FTL table.

[0057] The PCIe PHY modules (210, 212) are used to process the PCIe underlying protocol (such as the physical layer). The data link layer modules (220, 222) are used to process the PCIe data link layer protocol, and the transaction layer modules (230, 232) are used to process the PCIe transaction layer protocol. For example, the transaction layer modules (230, 232) send TLPs (transport layer packets, Transaction Layer Packets) to the CPU subsystem 260, and the CPU subsystem 260 processes the TLPs.

[0058] The PCIe PHY module (210), the data link layer module (220) and the transaction layer module (230) are used to process data transmission to and from PCIe port 1; the PCIe PHY module (212), the data link layer module (222) and the transaction layer module (232) are used to process data transmission to and from PCIe port 2.

[0059] The transaction layer module (230) and the transaction layer module (232) are respectively coupled to the CPU subsystem 260, and provide the TLP from the PCIe port 1 or the PCIe port 2 to the CPU subsystem 260, and encapsulate the data in the CPU to be sent through the PCIe port 1 or the PCIe port 2 into TLP, and send it through the PCIe port 1 or the PCIe port 2.

[0060] The CPU subsystem 260 receives TLPs from the transaction layer modules (230, 232), obtains IO commands from the TLPs, and accesses the NVM chip according to the obtained IO commands, so that the CPU subsystem 260 processes data from PCIe port 1 and PCIe port 2. The IO commands in the TLPs from PCIe port 1 and PCIe port 2 can access the same address space range of the storage device.

[0061] The CPU subsystem 260 is coupled to the FTL table. For requests from PCIe port 1 and PCIe port 2 to access the storage device, the CPU subsystem 260 accesses the same FTL table to respond to the access request, so that the requests to access the storage device through PCIe port 1 and PCIe port 2 can access the complete storage space of the storage device and are prohibited from accessing the namespace to which they do not have access rights.

[0062] As another example, the CPU subsystem 260 maintains multiple namespaces. One or more of the namespaces are accessed by a host coupled through PCIe port 1 or PCIe port 2. A host coupled through PCIe port 1 or PCIe port 2 can have exclusive access or shared access to one or more namespaces. The CPU subsystem 260 records the access rights of each host to each namespace, and processes access requests received through PCIe port 1 or PCIe port 2 according to the access rights, so that requests to access storage devices through PCIe port 1 and PCIe port 2 can access the namespaces of storage devices to which they have access rights, and are prohibited from accessing namespaces to which they do not have access rights.

[0063] As yet another example, the CPU subsystem 260 maintains priority and / or provides quality of service for TLPs from different PCIe ports. For example, PCIe port 1 may be preferentially served by processing 1 TLP from PCIe port 2 for every 2 TLPs from PCIe port 1.

[0064] For the received TLP, the CPU subsystem 260 also records which PCIe port or transaction layer module (230, 232) the TLP comes from, and returns the processing result of the TLP to the host through the transaction layer module (230, 232) and PCIe port from which it comes.

[0065] Optionally, the CPU subsystem 260 includes multiple CPUs, one of which is used to process TLPs provided by the transaction layer module, while the other one or more CPUs are used to process other tasks of the storage device, such as accessing the NVM chip.

[0066] Embodiment 2

[0067] Figure 3 A block diagram of a control component of a storage device according to another embodiment of the present application is shown. The storage device provides two PCIe ports (not shown), each of which can be coupled to the same (such as Figure 3 Each PCIe port is coupled to a PCIe PHY module (210, 212). The control component includes a PCIe PHY module (210, 212), a data link layer module (220, 222), a transaction layer module (330), and a CPU subsystem 260. The control component of the storage device is also coupled to the DRAM and NVM chips. Figure 3 Not shown.

[0068] The PCIe PHY module 210 is coupled to the data link layer module 220, and the PCIe PHY module 212 is coupled to the data link layer module 222. The transaction layer module 330 is coupled to the data link layer module 220 and the data link layer module 222, respectively, and processes data from the PCIe port 1 and the PCIe port 2. The transaction layer module 330 extracts TLPs from the PCIe port 1 and the PCIe port 2. The transaction layer module 330 is coupled to the CPU subsystem 260. As an example, the transaction layer module (330) marks in the TLP whether it comes from the PCIe port 1 or the PCIe port 2, and provides the marked TLP to the CPU subsystem 260. As another example, the transaction layer module (330) identifies whether the TLP comes from the PCIe port 1 or the PCIe port 2 through different interfaces, and the CPU subsystem 260 identifies the PCIe port from which the TLP is received or the port from which the TLP is to be sent according to which interface the TLP is received or sent.

[0069] Embodiment 3

[0070] Figure 4 A block diagram of a control component of a storage device according to another embodiment of the present application is shown. The storage device provides two PCIe ports (not shown), each of which can be coupled to the same (such as Figure 4 Each PCIe port is coupled to a PCIe PHY module (210, 212). The control component includes a PCIe PHY module (210, 212), a data link layer module (220, 222), a transaction layer module (430) and a CPU subsystem 260.

[0071] The PCIe PHY module 210 is coupled to the data link layer module 220, and the PCIe PHY module 212 is coupled to the data link layer module 222. The transaction layer module 430 is coupled to the data link layer module 220 and the data link layer module 222, respectively, and processes data from the PCIe port 1 and the PCIe port 2. The transaction layer module 430 extracts TLPs from the PCIe port 1 and the PCIe port 2. The transaction layer module 430 is coupled to the CPU subsystem 260. The transaction layer module 430 is also coupled to the controller register access module.

[0072] The transaction layer module 430 also converts the received request for accessing the memory space of the PCIe device into a controller register access request including an access type, a memory space address, and / or access data (for a memory space read request, the access data is not included; for a memory space write request, the access data is included), and forwards it to the controller register access module. The controller register access module determines the type and meaning of the controller register access request according to the memory space address, and provides different processing methods for the controller register access request.

[0073] For example, in the NVMe 1.2 version protocol, PCIe registers MLBAR and MUBAR define a memory space for providing NVMe controller registers, and the lower 4KB of the address space is used for attribute / control registers. When the doorbell register or the device vendor-specific register is to be accessed, the controller register access module writes the access request to the storage location corresponding to the memory space address of the memory according to the memory space address or reads data from the storage location corresponding to the memory space address of the memory and returns it to the host through the transaction layer module 430.

[0074] In one example, the same PCIe device is presented through PCIe port 1 and PCIe port 2. In another example, different PCIe devices are presented through PCIe port 1 and PCIe port 2, each having an independent memory space. Figure 4 In the embodiment of the present invention, a single controller register access module maintains the memory space of two (or more) PCIe devices. The controller register access module accesses the memory space of different PCIe devices according to the requests for accessing the memory space of the PCIe devices coming from different PCIe ports, and instructs the transaction layer module 430 to provide the response to the controller register access request to the host through the PCIe port from .

[0075] Optionally, the controller register access module accesses different NVMe controller registers according to requests for accessing the memory space of the PCIe device coming from different PCIe ports.

[0076] Optionally, for requests to access the memory space of the PCIe device that cannot be processed by the controller register, the transaction layer module 430 sends it to the CPU subsystem 260 for processing.

[0077] Embodiment 4

[0078] Figure 5A block diagram of a control component of a storage device according to yet another embodiment of the present application is shown. The storage device provides two PCIe ports (not shown), each of which can be coupled to the same (such as Figure 5 The control unit includes a PCIe PHY module (210, 212), a data link layer module (220, 222), a transaction layer module (530), and a CPU 560 and a CPU 562. The PCIe PHY module 210 is coupled to the data link layer module 220, and the PCIe PHY module 212 is coupled to the data link layer module 222. The transaction layer module 530 is coupled to the data link layer module 220 and the data link layer module 222, respectively, and processes data from the PCIe port 1 and the PCIe port 2. The transaction layer module 530 extracts TLPs from the PCIe port 1 and the PCIe port 2. The transaction layer module 530 is coupled to the CPU 560 and the CPU 562. The transaction layer module 530 is also coupled to the controller register access module.

[0079] The transaction layer module 530 provides the TLP from the PCIe port 1 to the CPU 560 for processing, and provides the TLP from the PCIe port 2 to the CPU 562 for processing. For example, the CPU 560 and the CPU 562 run the same or different programs to process the TLP provided by the transaction layer module 530, so that when one of the CPU 560 and the CPU 562 fails, the operation of the other CPU is not affected, so that the PCIe port 1 and the PCIe port 2 back up each other, thereby improving the reliability of the storage device.

[0080] The transaction layer module 530 sends the TLP response from the CPU 560 or the TLP sent to the host through the link layer module 220 so that it is provided to the host via PCIe port 1; and sends the TLP response from the CPU 562 or the TLP sent to the host through the link layer module 222 so that it is provided to the host via PCIe port 2.

[0081] CPU 560 and CPU 562 are each coupled to the FTL table. For requests from PCIe port 1 and PCIe port 2 to access the storage device, CPU 560 and CPU 562 both access the same FTL table to respond to the access request, so that the storage space of the complete storage device can be accessed through the requests from PCIe port 1 and PCIe port 2 to access the storage device.

[0082] As another example, CPU 560 and CPU 562 maintain multiple namespaces. One or more of the namespaces are accessed by a host coupled through PCIe port 1 or PCIe port 2. The host coupled through PCIe port 1 or PCIe port 2 can have exclusive access or shared access to one or more namespaces. CPU 560 and CPU 562 process access requests received through PCIe port 1 or PCIe port 2 according to the host's access rights to each namespace, so that requests to access storage devices through PCIe port 1 and PCIe port 2 can access the namespaces of storage devices to which they have access rights, and are prohibited from accessing namespaces to which they do not have access rights.

[0083] Optionally, the transaction layer module 530 provides both the TLPs from the PCIe port 1 and the PCIe port 2 to the CPU 560 or the CPU 562 .

[0084] Optionally, in addition to CPU 560 and CPU 562, the control component of the storage device includes one or more other CPUs. These other one or more CPUs are used to process other tasks of the storage device, such as accessing the NVM chip. Optionally, the control component also includes a third CPU and a fourth CPU other than CPU 560 and CPU 562, which are respectively coupled to the transaction layer processing module 530. The transaction layer processing module 530 provides the TLP for accessing the memory space of the PCIe device to the third CPU or the fourth CPU, and provides the TLP from PCIe port 1 to the third CPU for accessing the memory space of the first PCIe device; and provides the TLP from PCIe port 2 to the fourth CPU for accessing the memory space of the second PCIe device. Still optionally, the transaction layer processing module 530 extracts a message with a specified format from the TLP for accessing the memory space of the PCIe device, and provides the message to the third CPU or the fourth CPU according to the PCIe port from which it comes, thereby sharing the burden of the third CPU or the fourth CPU extracting the message of the specified format from the TLP. Still optionally, a single CPU processes the tasks of the first CPU and the second CPU, and the transaction layer processing module 530 provides TLPs from PCIe port 1 and PCIe port 2 accessing the memory space of the PCIe device to the same CPU for accessing the memory space of the same or different PCIe devices.

[0085] The embodiment of the present application also provides a data processing method of the dual-port solid-state storage device according to the above embodiment.

[0086] It should be understood that each block of the block diagram and the flow chart and the combination of blocks of the block diagram and the flow chart can be implemented by various means including computer program instructions, respectively. These computer program instructions can be loaded onto a general-purpose computer, a special-purpose computer or other programmable data control device to produce a machine, so that the instructions executed on the computer or other programmable data control device create a device for implementing the functions specified in one or more flow chart blocks.

[0087] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data control device to function in a particular manner, so that the instructions stored in the computer readable memory can be used to manufacture an article of manufacture including computer readable instructions for implementing the functions specified in one or more flowchart blocks. The computer program instructions may also be loaded onto a computer or other programmable data control device to cause a series of operations to be performed on the computer or other programmable data control device, thereby producing a computer-implemented process, and the instructions executed on the computer or other programmable data control device provide operations for implementing the functions specified in one or more flowchart blocks.

[0088] Thus, the blocks of the block diagrams and flow charts support a combination of means for performing a specified function, a combination of operations for performing a specified function, and a combination of program instruction means for performing a specified function. It should also be understood that each block of the block diagrams and flow charts and the combination of blocks of the block diagrams and flow charts can be implemented by a hardware-based special-purpose computer system that performs the specified function or operation, or by a combination of special-purpose hardware and computer instructions.

[0089] Although the present invention has been described with reference to examples, this is for illustrative purposes only and is not intended to limit the present application, and changes, additions and / or deletions to the embodiments may be made without departing from the scope of the present application.

[0090] Those skilled in the art to which these embodiments relate and who benefit from the teachings presented in the above description and associated drawings will recognize many modifications and other embodiments of the present application described herein. Therefore, it should be understood that the present application is not limited to the specific embodiments disclosed, and modifications and other embodiments are intended to be included within the scope of the appended claims. Although specific terms are employed herein, they are used only in a general and descriptive sense and are not used for the purpose of limitation.

Claims

1. A dual-port solid-state storage device, comprising a control component and a non-volatile storage chip coupled to the control component, characterized in that: The dual-port solid-state storage device provides two PCIe ports, and the control component includes a transaction layer module, a first CPU subsystem, a first PCIe physical layer module, and a second PCIe physical layer module; Each of the PCIe physical layer modules is used to couple the control component to a PCIe port of a dual-port solid-state storage device; The transaction layer module is coupled to the first CPU subsystem, the first CPU subsystem processes the transport layer data packets from the first PCIe port and the second PCIe port obtained from the transaction layer module, obtains the IO command from the transport layer data packet, and accesses the non-volatile storage chip according to the obtained IO command; The first CPU subsystem is coupled to the FTL table. For IO requests from each PCIe port to access the storage device, the first CPU subsystem accesses the same FTL table to respond to the access request, so that the request to access the storage device through each PCIe port can access the storage space of the complete storage device.

2. The dual-port solid-state storage device according to claim 1, characterized in that: The control component includes a first number of transaction layer modules; The control component also includes a first number of data link layer modules, each transaction layer module is coupled to a corresponding data link layer module.

3. The dual-port solid-state storage device according to claim 1 or 2, characterized in that: The first CPU subsystem maintains multiple namespaces.

4. The dual-port solid-state storage device according to claim 3, characterized in that: A first host coupled to access the solid state drive through the first PCIe port and / or a second host coupled to access the solid state drive through the second PCIe port has exclusive access or shared access to one or more namespaces.

5. The dual-port solid-state storage device according to claim 4, characterized in that: The first CPU subsystem records the access rights of each host to each namespace, and processes or rejects the IO request from the host received through the PCIe port according to the access rights.

6. The dual-port solid-state storage device according to claim 1 or 2, characterized in that: The first CPU subsystem maintains priorities for transport layer packets from different PCIe ports.

7. The dual-port solid-state storage device according to claim 1 or 2, characterized in that: The first CPU subsystem also records which PCIe port the transport layer data packet comes from, and sends the processing result of the transport layer data packet through the PCIe port from which it comes.

8. The dual-port solid-state storage device according to claim 1, characterized in that: The transaction layer module is also coupled to the controller register access module.

9. The dual-port solid-state storage device according to claim 8, characterized in that: The transaction layer module converts the received request for accessing the memory space of the PCIe device into a controller register access request and forwards it to the controller register access module.

10. The dual-port solid-state storage device according to claim 8, characterized in that: The controller register access module accesses the memory space of the first PCIe device based on a request for accessing the memory space of the PCIe device coming from the first PCIe port, and accesses the memory space of the second PCIe device based on a request for accessing the memory space of the PCIe device coming from the second PCIe port. The memory space of the first PCIe device and the memory space of the second PCIe device are independent of each other.

11. The dual-port solid-state storage device according to claim 10, characterized in that: The controller register access module maintains the memory space of all PCIe devices and indicates which PCIe port the processing result of the controller register access request is provided to the host through.

12. The dual-port solid-state storage device according to claim 8, characterized in that: For requests for accessing the memory space of the PCIe device that cannot be processed by the controller register access module, the transaction layer module sends the requests to the first CPU subsystem.

13. The dual-port solid-state storage device according to claim 8, characterized in that: The controller register access module accesses the first NVMe controller register according to a request from the first PCIe port to access the memory space of the PCIe device, and the controller register access module accesses the first NVMe controller register according to a request from the second PCIe port to access the memory space of the PCIe device.

14. The dual-port solid-state storage device according to claim 8, characterized in that: The first CPU subsystem includes a first CPU and a second CPU, and both the first CPU and the second CPU are coupled to the transaction layer module.

15. The dual-port solid-state storage device according to claim 14, characterized in that: The first CPU is associated with the first PCIe port, the second CPU is associated with the second PCIe port, and the transaction layer module provides transport layer data packets from different PCIe ports to the CPUs associated with the PCIe ports.

16. The dual-port solid-state storage device according to claim 14, characterized in that: The transaction layer module provides the transport layer data packet from any PCIe port to any one of the first CPU or the second CPU.

17. The dual-port solid-state storage device according to claim 16, characterized in that: The first CPU and the second CPU run the same or different programs to process the transport layer data packets provided by the transaction layer module.

18. The dual-port solid-state storage device according to claim 16, characterized in that: The transaction layer module sends the processing result of the transport layer data packet from the CPU to the data link layer module corresponding to the CPU from which the processing result comes.

19. The dual-port solid-state storage device according to claim 14, characterized in that: The first CPU and the second CPU access the same flash translation layer table.

20. The dual-port solid-state storage device according to claim 14, characterized in that: The first CPU and the second CPU both maintain multiple namespaces.

21. The dual-port solid-state storage device according to claim 20, characterized in that: A host coupled to the SSD via a PCIe port has exclusive access or shared access to one or more namespaces.

22. The dual-port solid-state storage device according to claim 21, characterized in that: The first CPU and the second CPU process or reject access requests received through the PCIe port according to the host's access rights to each namespace.

23. The dual-port solid-state storage device according to claim 14, characterized in that: The CPU accesses the memory space of the first PCIe device based on a request for accessing the memory space of the PCIe device coming from the first PCIe port, and accesses the memory space of the second PCIe device based on a request for accessing the memory space of the PCIe device coming from the second PCIe port. The memory space of the first PCIe device and the memory space of the second PCIe device are independent of each other.

24. The dual-port solid-state storage device according to claim 14, characterized in that: The CPU accesses the memory space of the first PCIe device according to a request for accessing the memory space of the PCIe device from the first PCIe port, and accesses the memory space of the first PCIe device according to a request for accessing the memory space of the PCIe device from the second PCIe port.

25. A data processing method for a dual-port solid-state storage device, characterized in that: A dual-port solid-state storage device according to any one of claims 1 to 24; According to the IO command coming from the first PCIe port, the processing result of the IO command is sent through the first PCIe port; according to the IO command coming from the second PCIe port, the processing result of the IO command is sent through the second PCIe port.

26. The data processing method of the dual-port solid-state storage device according to claim 25, characterized in that: The first IO command and the second IO command may access the same address space range of the storage device.

27. The data processing method of the dual-port solid-state storage device according to claim 25 or 26, characterized in that: The first IO command and the second IO command are processed using the same flash translation layer table.

28. The data processing method of the dual-port solid-state storage device according to claim 25 or 26, characterized in that: The first IO command and the second IO command are processed by the same CPU, the CPU records the PCIe port from which the IO command comes, and sends the processing result of the IO command through the PCIe port from which the IO command comes.

29. The data processing method of the dual-port solid-state storage device according to claim 25 or 26, characterized in that: According to the transport layer data packet coming from the first PCIe port, the transport layer data packet is provided to the first CPU associated with the first PCIe port; according to the transport layer data packet coming from the second PCIe port, the transport layer data packet is provided to the second CPU associated with the second PCIe port.

30. The data processing method of the dual-port solid-state storage device according to claim 25 or 26, characterized in that: accessing the memory space of the first PCIe device in response to a request for accessing the memory space of the PCIe device coming from the first PCIe port; accessing the memory space of the second PCIe device in response to the request for accessing the memory space of the PCIe device coming from the second PCIe port; The memory space of the first PCIe device is independent of the memory space of the second PCIe device.

31. The data processing method of the dual-port solid-state storage device according to claim 25 or 26, characterized in that: The first NVMe controller register is accessed according to a request from a first PCIe port to access a memory space of a PCIe device, and the first NVMe controller register is accessed according to a request from a second PCIe port to access a memory space of a PCIe device.

32. The data processing method of the dual-port solid-state storage device according to claim 25 or 26, characterized in that: A transport layer data packet from any PCIe port is provided to any one of the first CPU or the second CPU.