NVMe hard disk hot-swap system and method based on Feiteng server
By designing an NVMe hard disk hot-swap system on the Feiteng server, the communication connection between the central processor and the logic device is used to realize the hot-swap of the NVMe hard disk, which solves the problem that the Feiteng server does not support the hot-swap of NVMe SSD and expands the scope of application. And improve the reliability of the system.
Patent Information
- Application Number
- CN202410955491.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-17
AI Technical Summary
Feiteng servers do not support the NVMe SSD hot-swappable function, which limits its application scope.
A Feiteng server-based NVMe hard drive hot-swapping system is designed. Through the communication connection of the central processor, logic devices and connectors, the hot-swapping of NVMe hard drives is realized, and the presence detection pin and the PCIe controller are used to generate interrupt reports. text, adjust the hard disk link, and complete the hot swap operation.
The hot-swappable function of NVMe hard drives is realized, which expands the application scope of Feiteng servers and improves the reliability and maintainability of the system.
Smart Images

Figure CN118503179B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a NVMe hard disk hot-swap system and method based on a Feiteng server. Background Art
[0002] A server is a long-term running device. It is necessary to insert or remove modules and boards into or out of the system without turning off the system power without affecting the normal operation of the server system, so as to improve the system's reliability, rapid maintainability, redundancy and timely disaster recovery capabilities. In particular, the structural design of the hard disk is convenient for plugging and replacing. The rapid development of informatization has promoted the development of NVMe (Non-Volatile Memory Express) SSD (Solid State Drive). NVMe SSD transmits data faster, has lower latency, and has higher IOPS (Input / Output Operations Per Second) capabilities. In related technologies, Feiteng server is a domestic server that does not support the hot-swap function of NVMe SSD, which limits the application of Feiteng server. Summary of the invention
[0003] The purpose of the present invention is to provide an NVMe hard disk hot-swap system and method based on Feiteng server to realize hot-swap of NVMe hard disk and expand the application scope of Feiteng server.
[0004] The present invention provides an NVMe hard disk hot-swap system based on Feiteng server, the system comprising: a central processing unit, a first logic device, a first connector, a second connector, a second logic device and a hard disk connector which are sequentially connected in communication; the second connector is also connected to the hard disk connector; the central processing unit comprises a plurality of Dies, each Die corresponds to four in-place detection pins, each in-place detection pin corresponds to a PCIe controller, each Die corresponds to a PCIe X16 module, and at least one target PCIe X16 module to be used for hot-swap processing is connected to the second connector; the second logic device is used to identify whether an NVMe hard disk is inserted or removed from the hard disk connector to obtain an identification result; the level state of a first signal output by the second logic device is switched according to the identification result, and the first signal after the level state is switched is sent to the first logic device through the second connector and the first connector in sequence;
[0005] The first logic device is used to perform level conversion on the first signal after the level state is switched, so as to switch the level state of the detection signal output by the target presence detection pin; the target PCIe controller corresponding to the target presence detection pin is used to generate a target interrupt message after monitoring that the level state of the detection signal is switched, so as to adjust the PCIe link corresponding to the NVMe hard disk; the first logic device is also used to delay a preset time after receiving the first signal after the level state is switched, switch the level state of the second signal output by the first logic device, and send the second signal after the level state is switched to the hard disk connector through the first connector and the second connector in sequence, so as to determine that the hot plug or hot pull of the NVMe hard disk is successful.
[0006] Furthermore, the second logic device is used to switch the high-level first signal output by the second logic device to a low-level first signal when it is recognized that the hard disk connector is inserted into the NVMe hard disk; the low-level first signal is sent to the first logic device through the second connector and the first connector in sequence; the first logic device is used to perform level conversion on the low-level first signal, and switch the high-level detection signal output by the target presence detection pin to a low-level detection signal; the target PCIe controller is used to generate a first interrupt message to establish a PCIe link corresponding to the NVMe hard disk after monitoring that the target presence detection pin outputs a low-level detection signal; the first logic device is also used to delay a preset time after receiving the low-level first signal, switch the output low-level second signal to a high-level second signal, and send the high-level second signal to the hard disk connector through the first connector and the second connector in sequence to determine that the hot plugging of the NVMe hard disk is successful.
[0007] Furthermore, the second logic device is used to switch the low-level first signal to the high-level first signal when it is identified that the hard disk connector is unplugged from the NVMe hard disk, and send the switched high-level first signal to the first logic device through the second connector and the first connector in sequence; the first logic device is used to perform level conversion on the high-level first signal, and switch the low-level detection signal output by the target presence detection pin to a high-level detection signal; the target PCIe controller is used to generate a second interrupt message to disconnect the PCIe link corresponding to the NVMe hard disk after monitoring that the target presence detection pin outputs a high-level detection signal; the first logic device is also used to delay a preset time after receiving the switched high-level first signal, switch the output high-level second signal to a low-level second signal, and send the low-level second signal to the hard disk connector through the first connector and the second connector in sequence to determine that the hot pull of the NVMe hard disk is successful.
[0008] Further, for each target PCIe X16 module, the target PCIe X16 is configured into a group of X16 interfaces, or configured into two groups of X8 interfaces, or configured into a group of X8 interfaces and two groups of X4 interfaces, or configured into four groups of X4 interfaces.
[0009] Further, if the target PCIe X16 is configured as a group of X16 interfaces, a first PCIe controller corresponding to an NVMe hard disk connected to the X16 interface is turned on, and hot plugging or hot unplugging of an NVMe hard disk is completed based on a first presence detection pin corresponding to the first PCIe controller; if the target PCIe X16 is configured as two groups of X8 interfaces, a first PCIe controller and a second PCIe controller corresponding to two NVMe hard disks respectively connected to the two groups of X8 interfaces are turned on, and hot plugging or hot unplugging of two NVMe hard disks is completed based on a first presence detection pin corresponding to the first PCIe controller and a second presence detection pin corresponding to the second PCIe controller;
[0010] If the target PCIe X16 is configured as a group of X8 interfaces and two groups of X4 interfaces, the first PCIe controller, the second PCIe controller and the third PCIe controller corresponding to the three NVMe hard disks respectively connected to the X8 interface and each group of X4 interfaces are turned on, and based on the first presence detection pin corresponding to the first PCIe controller, the second presence detection pin corresponding to the second PCIe controller, and the third presence detection pin corresponding to the third PCIe controller, the hot plug or hot pull of the three NVMe hard disks is completed; if the target PCIe X16 is configured as four groups of X4 interfaces, the first PCIe controller, the second PCIe controller, the third PCIe controller and the fourth PCIe controller corresponding to the four NVMe hard disks respectively connected to each group of X4 interfaces are turned on, and based on the first presence detection pin corresponding to the first PCIe controller, the second presence detection pin corresponding to the second PCIe controller, the third presence detection pin corresponding to the third PCIe controller, and the fourth presence detection pin corresponding to the fourth PCIe controller, the hot plug or hot pull of the four NVMe hard disks is completed.
[0011] Furthermore, the system also includes: a baseboard management controller and an expansion chip; the baseboard management controller is respectively communicated with the first logic device, the second logic device and the first connector; the expansion chip is respectively connected to the second connector and the hard disk connector; the second logic device is also connected to the status indicator light; the baseboard management controller is used to obtain the in-place status information of the NVMe hard disk through the first connector, the second connector and the expansion chip in sequence; according to the in-place status information, the display status of the status indicator light is controlled through the second logic device.
[0012] Furthermore, the baseboard management controller is also used to: when the in-place status information indicates that the NVMe hard disk is in place, light up the status indicator light through the second logic device; display the first information through the display interface to indicate that the NVMe hard disk is in place.
[0013] Furthermore, the baseboard management controller is also used to: when the in-place status information indicates that the NVMe hard disk is not in place, turn off the status indicator light through the second logic device; and display the second information through the display interface to indicate that the NVMe hard disk is not in place.
[0014] Furthermore, there are multiple CPUs.
[0015] The present invention provides an NVMe hard disk hot-swap method based on a Feiteng server, and the method includes: a second logic device identifies whether an NVMe hard disk is inserted or unplugged in a hard disk connector to obtain an identification result; according to the identification result, a level state of a first signal output by the second logic device is switched, and the first signal after the level state is switched is sent to the first logic device through the second connector and the first connector in sequence; the first logic device performs level conversion on the first signal after the level state is switched to switch the level state of a detection signal output by a target presence detection pin; when a target PCIe controller corresponding to the target presence detection pin detects that the level state of the detection signal is switched, generates a target interrupt message to adjust the PCIe link corresponding to the NVMe hard disk; when the first logic device receives the first signal after the level state is switched, the first logic device delays a preset time, switches the level state of a second signal output by the first logic device, and determines that the hot-plugging or hot-pulling of the NVMe hard disk is successful.
[0016] The present invention provides a Feiteng server-based NVMe hard disk hot-swap system and method, the system includes: a central processing unit, a first logic device, a first connector, a second connector, a second logic device and a hard disk connector that are sequentially connected in communication; the second connector is also connected to the hard disk connector; the central processing unit includes a plurality of Dies, each Die corresponds to four in-place detection pins, each in-place detection pin corresponds to a PCIe controller, each Die corresponds to a PCIe X16 module, and at least one target PCIe to be used for hot-swap processing The X16 module is connected to the second connector; the second logic device is used to identify whether the NVMe hard disk is inserted or removed from the hard disk connector to obtain an identification result; the level state of the first signal output by the second logic device is switched according to the identification result, and the first signal after the level state is switched is sent to the first logic device through the second connector and the first connector in sequence; the first logic device is used to perform level conversion on the first signal after the level state is switched to switch the level state of the detection signal output by the target in-place detection pin; the target PCIe controller corresponding to the target in-place detection pin is used to generate a target interrupt message when it is detected that the level state of the detection signal is switched to adjust the PCIe link corresponding to the NVMe hard disk; the first logic device is also used to delay a preset time after receiving the first signal after the level state is switched, switch the level state of the second signal output by the first logic device, and send the second signal after the level state is switched to the hard disk connector through the first connector and the second connector in sequence to determine that the hot plug or hot pull of the NVMe hard disk is successful. In this system, each Die in the central processing unit corresponds to four in-place detection pins. The target PCIe controller can generate a target interrupt message according to the change in the level state of the detection signal output by the target in-place detection pin to adjust the PCIe link corresponding to the NVMe hard drive, thereby realizing hot plugging of the NVMe hard drive and expanding the application scope of Feiteng servers. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A structural schematic diagram of an NVMe hard disk hot-swap system based on a Feiteng server provided in an embodiment of the present invention;
[0019] Figure 2 A schematic diagram of the structure of another NVMe hard disk hot-swap system based on a Feiteng server provided in an embodiment of the present invention;
[0020] Figure 3 A schematic diagram of the structure of another NVMe hard disk hot-swap system based on a Feiteng server provided in an embodiment of the present invention;
[0021] Figure 4 A flowchart of a NVMe hard disk hot-swap method based on a Feiteng server is provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0022] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] At present, Feiteng servers do not support the NVMe SSD hot-swap function, which limits the application of Feiteng servers. Based on this, an embodiment of the present invention provides an NVMe hard disk hot-swap system and method based on Feiteng servers, which can be applied to applications that need to implement NVMe SSD hot-swap based on Feiteng servers.
[0024] To facilitate understanding of this embodiment, firstly, an NVMe hard disk hot-swap system based on a Feiteng server disclosed in an embodiment of the present invention is introduced. Figure 1 As shown, the system includes: a central processing unit 10, a first logic device 11, a first connector 12, a second connector 13, a second logic device 14 and a hard disk connector 15 which are communicatively connected in sequence; the second connector 13 is also connected to the hard disk connector 15; the central processing unit 10 includes a plurality of Dies, each Die corresponds to four in-place detection pins, each in-place detection pin corresponds to a PCIe controller, each Die corresponds to a PCIe X16 module, and at least one target PCIe X16 module to be used for hot-plug processing is connected to the second connector 13.
[0025] The central processing unit 10 may also be referred to as a CPU (Central Processing Unit), which is the computing and control core of the computer system and the final execution unit for information processing and program execution. The first logic device 11 and the second logic device 14 are usually CPLD (Complex Programmable Logic Device), which is a digital integrated circuit used to construct logic functions according to their own needs; the first connector 12 and the second connector 13 can be MCIO (Mini Cool Edge IO, multi-channel input and output) connectors, which is a structural technology that merges multiple physical channels into a high-speed data stream; the hard disk connector 15 is usually a U.2 interface connector, and an NVMe (Non-Volatile Memory express, non-volatile memory host controller interface specification) hard disk can be inserted into the hard disk connector 15; the central processing unit 10, the first logic device 11, and the first connector 12 are usually arranged on the motherboard MB (MotherBoard); the second connector 13, the second logic device 14 and the hard disk connector 15 are usually arranged on the backplane BP (BackPlate), and the backplane BP can support NVMe hard disks, and the NVMe hard disk can be understood as a hard disk using the NVMe protocol specification.
[0026] The above-mentioned central processor 10 may include multiple Dies. For example, taking the Feiteng S5000C processor as an example, the Feiteng S5000C processor may include 4 Dies; each Die corresponds to four peu_presnt_n pins (corresponding to the above-mentioned in-place detection pins), each Die has a PCIe X16 module, and there are also a C2C multiplexing module and an X1 PCIe module. Only the PCIeX16 module involves hot-swappable applications; the above-mentioned target PCIe X16 module represents a PCIe X16 module among multiple PCIe X16 modules that needs to be hot-swapped, and the number of the target PCIe X16 modules can be one or more; the target PCIe X16 module can be connected to the backplane BP through the second connector 13.
[0027] The second logic device 14 is used to identify whether the NVMe hard disk is inserted or removed from the hard disk connector 15, and obtain an identification result; according to the identification result, the level state of the first signal output by the second logic device 14 is switched, and the first signal after the level state is switched is sent to the first logic device 11 through the second connector 13 and the first connector 12 in sequence;
[0028] Taking the second logic device 14 as a CPLD as an example, the above-mentioned first signal can be a signal output by the NVMe_PRSNT_N signal pin of the CPLD, and the NVMe_PRSNT_N signal pin can be used to determine whether an NVMe hard disk is connected to the hard disk connector 15; in actual implementation, when the NVMe hard disk is inserted or unplugged in the hard disk connector 15, the second logic device 14 can identify the process, and can switch the level state of the signal output by the NVMe_PRSNT_N signal pin of the CPLD according to the identification result. For example, when the NVMe hard disk is not inserted, the signal output by the NVMe_PRSNT_N signal pin is a high level, and when the NVMe hard disk is inserted, the signal output by the NVMe_PRSNT_N signal pin is switched to a low level, etc.; the first signal after switching the level state can be sent to the first logic device 11 through the second connector 13 and the first connector 12 in sequence.
[0029] The first logic device 11 is used to perform level conversion on the first signal after the level state is switched, so as to switch the level state of the detection signal output by the target presence detection pin;
[0030] The above-mentioned target presence detection pin can be one or more of the four presence detection pins corresponding to the target Die, and the target Die is the Die corresponding to the target PCIe X16 module; in actual implementation, when the first logic device 11 receives the first signal after the switching level state, it is usually necessary to perform level conversion on the first signal after the switching level state to convert it into another level output to ensure that the signal can be correctly processed and transmitted. In this embodiment, the first logic device 11 can output the detection signal through the target presence detection pin. When the first logic device 11 performs level conversion on the first signal after the switching level state, the level state of the detection signal output by the target presence detection pin will usually change.
[0031] The target PCIe controller corresponding to the target presence detection pin is used to generate a target interrupt message to adjust the PCIe link corresponding to the NVMe hard disk when the level state of the detection signal is detected to be switched;
[0032] The above-mentioned target interrupt message can be an MSI (Message Signaled Interrupt, an internal interrupt signal mechanism) interrupt message or an INT (Interrupt) interrupt message, etc. In actual implementation, when the target PCIe controller detects that the level state of the detection signal output by the target in-place detection pin is switched, it can generate a corresponding target interrupt message to adjust the PCIe link corresponding to the NVMe hard disk. For example, if an NVMe hard disk is inserted into the hard disk connector 15, the PCIe link corresponding to the NVMe hard disk can be established; if the NVMe hard disk is unplugged from the hard disk connector 15, the PCIe link corresponding to the NVMe hard disk can be disconnected.
[0033] The first logic device 11 is also used to delay a preset time after receiving the first signal after switching the level state, switch the level state of the second signal output by the first logic device 11, and send the second signal after switching the level state to the hard disk connector 15 through the first connector 12 and the second connector 13 in sequence to determine that the hot plug or hot pull of the NVMe hard disk is successful.
[0034] The above-mentioned preset time can be set according to actual needs, such as 100ms, etc.; taking the first logic device 11 as a CPLD as an example, the above-mentioned second signal can be a signal output by the PCIe_RST_N signal pin of the CPLD, and the level state of the second signal can be used to indicate whether the adjustment of the PCIe link corresponding to the NVMe hard disk is completed. For example, if the level state of the second signal is pulled high, it indicates that the PCIe link corresponding to the NVMe hard disk is established; if the level state of the second signal is pulled low, it indicates that the PCIe link corresponding to the NVMe hard disk is disconnected, and the NVMe hard disk removal state is completed.
[0035] The above-mentioned NVMe hard disk hot-swap system based on Feiteng server includes: a central processor 10, a first logic device 11, a first connector 12, a second connector 13, a second logic device 14 and a hard disk connector 15 which are sequentially connected in communication; the second connector 13 is also connected to the hard disk connector 15; the central processor 10 includes a plurality of Dies, each Die corresponds to four in-place detection pins, each in-place detection pin corresponds to a PCIe controller, each Die corresponds to a PCIe X16 module, and at least one target PCIe to be used for hot-swap processing The X16 module is connected to the second connector 13; the second logic device 14 is used to identify whether the NVMe hard disk is inserted or removed from the hard disk connector 15 to obtain an identification result; the level state of the first signal output by the second logic device 14 is switched according to the identification result, and the first signal after the level state is switched is sent to the first logic device 11 through the second connector 13 and the first connector 12 in sequence; the first logic device 11 is used to perform level conversion on the first signal after the level state is switched to switch the level state of the detection signal output by the target in-place detection pin; the target PCIe controller corresponding to the target in-place detection pin is used to generate a target interrupt message when it is detected that the level state of the detection signal is switched to adjust the PCIe link corresponding to the NVMe hard disk; the first logic device 11 is also used to delay a preset time after receiving the first signal after the level state is switched, switch the level state of the second signal output by the first logic device 11, and send the second signal after the level state is switched to the hard disk connector 15 through the first connector 12 and the second connector 13 in sequence to determine that the hot plug or hot pull of the NVMe hard disk is successful. In this system, each Die in the central processor 10 corresponds to four in-place detection pins. The target PCIe controller can generate a target interrupt message according to the change in the level state of the detection signal output by the target in-place detection pin to adjust the PCIe link corresponding to the NVMe hard disk, thereby realizing hot plugging of the NVMe hard disk and expanding the application scope of Feiteng servers.
[0036] Furthermore, the second logic device 14 is used to switch the high-level first signal output by the second logic device 14 to a low-level first signal when it is recognized that the hard disk connector 15 is inserted into the NVMe hard disk; the low-level first signal is sent to the first logic device 11 through the second connector 13 and the first connector 12 in sequence; the first logic device 11 is used to perform level conversion on the low-level first signal, and switch the high-level detection signal output by the target presence detection pin to a low-level detection signal; the target PCIe controller is used to generate a first interrupt message to establish a PCIe link corresponding to the NVMe hard disk after monitoring that the target presence detection pin outputs a low-level detection signal; the first logic device 11 is also used to delay a preset time after receiving the low-level first signal, switch the output low-level second signal to a high-level second signal, and send the high-level second signal to the hard disk connector 15 through the first connector 12 and the second connector 13 in sequence to determine that the hot plugging of the NVMe hard disk is successful.
[0037] After booting, when there is no NVMe hard disk, in a normal state, the pin corresponding to the first signal has a pull-up resistor and is high level, the detection signal output by the target presence detection pin is high level, and the second signal is set low by the first logic device 11; when the hard disk connector 15 is inserted into the NVMe hard disk, the second logic device 14 identifies whether the hard disk is a SATA (Serial Advanced Technology Attachment, an interface standard for computer hard disks) hard disk, SAS (Serial Attached SCSI, serial connection small computer system interface) hard disk or NVMe hard disk. If it is identified that the inserted hard disk is an NVMe hard disk, the high-level first signal output by the second logic device 14 is pulled down to obtain a low-level first signal; the low-level first signal is sent to the first connector 12 through the sideband signal of the second connector 13, and then the low-level first signal is sent to the first logic device 11 through the first connector 12. After the first logic device 11 performs level conversion, the high-level detection signal output by the target presence detection pin is switched to a low-level detection signal; when the target PCIe controller detects that the detection signal output by the target presence detection pin changes from high to low, Construct the first interrupt message, determine whether the NVMe hard disk is in place, establish a PCIe link, configure the inserted NVMe hard disk, load the NVME driver, and the storage software notices that a new NVMe hard disk has been added. The PCIe specification states that the second signal should be pulled high 100ms after the NVMe hard disk is powered on. Therefore, after determining that the first signal changes from high to low, the first logic device 11 delays 100ms and pulls up the second signal to obtain a high-level second signal. The high-level second signal is sent to the hard disk connector 15 through the first connector 12 and the second connector 13 in sequence. The entire PCIe reset state is completed, that is, the link establishment process after the NVMe hard disk is inserted is completed.
[0038] Furthermore, the second logic device 14 is used to switch the low-level first signal to a high-level first signal when it is identified that the hard disk connector 15 is unplugged from the NVMe hard disk, and send the switched high-level first signal to the first logic device 11 through the second connector 13 and the first connector 12 in sequence; the first logic device 11 is used to perform level conversion on the high-level first signal, and switch the low-level detection signal output by the target presence detection pin to a high-level detection signal; the target PCIe controller is used to generate a second interrupt message to disconnect the PCIe link corresponding to the NVMe hard disk after monitoring that the target presence detection pin outputs a high-level detection signal; the first logic device 11 is also used to delay a preset time after receiving the switched high-level first signal, switch the output high-level second signal to a low-level second signal, and send the low-level second signal to the hard disk connector 15 through the first connector 12 and the second connector 13 in sequence to determine that the hot pull of the NVMe hard disk is successful.
[0039] After booting, when the NVMe hard disk is in place, in a normal state, the first signal is low level and the second signal is high level; when the NVMe hard disk is unplugged, the second logic device 14 pulls up the output first signal to obtain a high level first signal; the high level first signal is sent to the first connector 12 through the sideband signal of the second connector 13, and then the high level first signal is sent to the first logic device 11 through the first connector 12, and after the first logic device 11 performs level conversion, the low level detection signal output by the target in-place detection pin is switched to a high level detection signal; when the target PCIe controller monitors After detecting that the detection signal output by the target presence detection pin changes from low to high, a second interrupt message is constructed to determine that the device is not in place, the target PCIe controller uninstalls the NVMe hard disk, removes the NVMe hard disk, and the storage software senses that the NVMe hard disk has been uninstalled, the PCIe link is disconnected, and the NVMe hard disk information cannot be queried; after determining that the first signal changes from low to high, the first logic device 11 delays 100ms and pulls down the second signal, the entire NVMe hard disk removal state is completed, the NVMe hard disk is successfully unplugged, and this NVMe hard disk no longer exists in the system, and the storage space does not have the capacity of this NVMEe hard disk.
[0040] Further, for each target PCIe X16 module, the target PCIe X16 is configured into a group of X16 interfaces, or configured into two groups of X8 interfaces, or configured into a group of X8 interfaces and two groups of X4 interfaces, or configured into four groups of X4 interfaces.
[0041] In actual implementation, each target PCIe X16 module can be split into X16, X8X8, X8X4X4, X4X4X4X4; as shown in Table 1, each Die corresponds to four in-place detection pins, namely peu_presnt_0_n, peu_presnt_1_n, peu_presnt_2_n, peu_presnt_3_n, corresponding to four PCIe controllers, namely C0, C1, C2, and C3.
[0042] Table 1
[0043]
[0044] Further, if the target PCIe X16 is configured as a group of X16 interfaces, a first PCIe controller corresponding to an NVMe hard disk connected to the X16 interface is turned on, and hot plugging or hot unplugging of an NVMe hard disk is completed based on a first presence detection pin corresponding to the first PCIe controller;
[0045] In actual implementation, the target PCIe X16 module can perform hot-swap of any X16, X8, and X4 devices, as shown in Table 1. If the target PCIe X16 module is configured as a group of X16 interfaces, the first PCIe controller C0 corresponding to an NVMe hard disk connected to this group of X16 interfaces is turned on, and a signal from the corresponding first in-place detection pin peu_presnt_0_n can realize the hot-swap function of this NVMe hard disk.
[0046] If the target PCIe X16 is configured as two groups of X8 interfaces, the first PCIe controller and the second PCIe controller corresponding to the two NVMe hard disks respectively connected to the two groups of X8 interfaces are turned on, and based on the first in-position detection pin corresponding to the first PCIe controller and the second in-position detection pin corresponding to the second PCIe controller, hot plugging or hot unplugging of the two NVMe hard disks is completed;
[0047] As shown in Table 1, if the target PCIe X16 module is configured into two groups of X8 interfaces, the first PCIe controller C0 and the second PCIe controller C1 corresponding to the two NVMe hard disks connected to the two groups of X8 interfaces are turned on, and the corresponding first presence detection pin peu_presnt_0_n and the second presence detection pin peu_presnt_1_n signals can realize the hot-swap function of the two NVMe hard disks.
[0048] If the target PCIe X16 is configured as a group of X8 interfaces and two groups of X4 interfaces, the first PCIe controller, the second PCIe controller and the third PCIe controller corresponding to the three NVMe hard disks respectively connected to the X8 interface and each group of X4 interfaces are turned on, and based on the first in-position detection pin corresponding to the first PCIe controller, the second in-position detection pin corresponding to the second PCIe controller, and the third in-position detection pin corresponding to the third PCIe controller, the hot plugging or hot unplugging of the three NVMe hard disks is completed;
[0049] As shown in Table 1, if the target PCIe X16 module is configured as a group of X8 interfaces and two groups of X4 interfaces, the first PCIe controller C0, the second PCIe controller C1 and the third PCIe controller C2 corresponding to the three NVMe hard disks connected to the group of X8 interfaces and the two groups of X4 interfaces are turned on, corresponding to the first presence detection pin peu_presnt_0_n, the second presence detection pin peu_presnt_1_n and the third presence detection pin peu_presnt_2_n three signals, based on these three signals, the hot-swap function of the three NVMe hard disks can be realized.
[0050] If the target PCIe X16 is configured as four groups of X4 interfaces, the first PCIe controller, the second PCIe controller, the third PCIe controller and the fourth PCIe controller corresponding to the four NVMe hard disks connected to each group of X4 interfaces are turned on, and based on the first presence detection pin corresponding to the first PCIe controller, the second presence detection pin corresponding to the second PCIe controller, the third presence detection pin corresponding to the third PCIe controller, and the fourth presence detection pin corresponding to the fourth PCIe controller, hot plugging or hot unplugging of the four NVMe hard disks is completed.
[0051] As shown in Table 1, if the target PCIe X16 module is configured as four groups of X4 interfaces, the first PCIe controller C0, the second PCIe controller C1, the third PCIe controller C2 and the fourth PCIe controller C3 corresponding to the four NVMe hard disks connected to the four groups of X4 interfaces are all turned on, corresponding to the first in-place detection pin peu_presnt_0_n, the second in-place detection pin peu_presnt_1_n, the third in-place detection pin peu_presnt_2_n and the fourth in-place detection pin peu_presnt_3_n. Based on these four signals, the hot-swap function of the four NVMe hard disks can be realized. The above applications benefit from the fact that the X16 controller can also be used as X8 or X4.
[0052] Further, such as Figure 2Another structural diagram of an NVMe hard disk hot-swap system based on a Feiteng server is shown, the system also includes: a baseboard management controller 16 and an expansion chip 17; the baseboard management controller 16 is respectively communicated with the first logic device 11, the second logic device 14 and the first connector 12; the expansion chip 17 is respectively connected to the second connector 13 and the hard disk connector 15; the second logic device 14 is also connected to the status indicator light; the baseboard management controller 16 is used to obtain the in-place status information of the NVMe hard disk through the first connector 12, the second connector 13 and the expansion chip 17 in sequence; according to the in-place status information, the display status of the status indicator light is controlled through the second logic device 14.
[0053] The above-mentioned baseboard management controller 16 can be called BMC (Board Management Controller), which is a controller that provides intelligent management for the motherboard based on the IPMI (Intelligent Platform Management Interface) technical design specification. The above-mentioned expansion chip 17 can be an I2C expansion chip, and the I2C expansion chip can support the expansion of input and output through the I2C interface. The above-mentioned status indicator light may include ACT LED and StatusLED, wherein the ACT LED is used to indicate the operation behavior of the NVMe hard disk, for example, the ACT LED lights up to indicate that the NVMe hard disk is inserted, and the ACT LED lights off to indicate that the NVMe hard disk is unplugged; the Status LED is used to indicate the in-place status of the NVMe hard disk, for example, the Status LED lights up to indicate that the NVMe hard disk is in place, and the Status LED lights off to indicate that the NVMe hard disk is not in place.
[0054] In actual implementation, the operation of the central processing unit 10 is based on the hot-swap process of the operating system, so that the NVMe hard disk can be identified under the system, and the newly inserted NVMe hard disk can be quickly used during normal operation of the server. However, when the display interface of the baseboard management controller 16 displays the device, the SMBus polling of the baseboard management controller 16 is required to know that one group of SMBus of the baseboard management controller 16 is connected to the hard disk connector 15 through the first connector 12, the second connector 13 and the expansion chip 17 respectively to obtain the information of the NVMe hard disk, such as whether it is in place, model, capacity and other information; another group of SMBus of the baseboard management controller 16 is connected to the second logic device 14 through a low-speed interface to control the display status of the status indicator light.
[0055] Furthermore, the baseboard management controller 16 is also used to: when the in-place status information indicates that the NVMe hard disk is in place, light up the status indicator light through the second logic device 14; display the first information through the display interface to indicate that the NVMe hard disk is in place.
[0056] When the NVMe hard drive is inserted, the baseboard management controller 16 checks the status of the NVMe hard drive through SMBus polling. When it is found that the hard drive interface changes from a diskless state to a disk-present state, the display interface of the baseboard management controller 16 will display the first information to indicate that the NVMe hard drive is in place. At the same time, the status indicator lights up through the second logic device 14, such as lighting up the ACT LED and the Status LED.
[0057] Furthermore, the baseboard management controller 16 is also used to: when the in-place status information indicates that the NVMe hard disk is not in place, turn off the status indicator light through the second logic device 14; display the second information through the display interface to indicate that the NVMe hard disk is not in place.
[0058] When the NVMe hard disk is unplugged, the baseboard management controller 16 checks the non-position state of the NVMe hard disk through SMBus polling. When it is found that the hard disk interface changes from the disk state to the diskless state, the display interface of the baseboard management controller 16 will display the second information to indicate that the NVMe hard disk is not in place. At the same time, the status indicator light is turned off through the second logic device 14, such as turning off the ACT LED and the Status LED.
[0059] Furthermore, there are multiple central processing units 10. Specifically, the number of central processing units 10 can be set according to actual needs, for example, it can be two, etc. For example, the Feiteng S5000C dual-core server includes two CPUs.
[0060] For easier understanding, see Figure 3 Another structural diagram of a Feiteng server-based NVMe hard disk hot-swap system is shown, which includes CPU0 (corresponding to the above-mentioned central processor 10), CPLD1 (corresponding to the above-mentioned first logic device 11), BMC (corresponding to the above-mentioned baseboard management controller 16), MCIO1 (corresponding to the above-mentioned first connector 12), MCIO2 (corresponding to the above-mentioned second connector 13), CPLD2 (corresponding to the above-mentioned second logic device 14), U.2 (corresponding to the above-mentioned hard disk connector 15) and I2C expansion chip (corresponding to the above-mentioned expansion chip 17), wherein CPU0, CPLD1, BMC and MCIO1 are arranged on the motherboard MB, and MCIO2, CPLD2, U.2 and I2C expansion chip are arranged on the backplane BP. The CPU0 can be a Feiteng S5000C processor, etc., and the above-mentioned I2C expansion chip can be a 9546 chip, etc.
[0061] In one implementation, the PCIe X16 module corresponding to the group of Dies to be connected to the NVMe hard disk is split into X4X4X4X4, and the PCIe controller is configured as PCIe controller C0, PCIe controller C1, PCIe controller C2 and PCIe controller C3 in software. The four presnt_n pins corresponding to the Die correspond to PCIe controller C0, PCIe controller C1, PCIe controller C2 and PCIe controller C3 respectively, and the corresponding relationship is shown in Table 1.
[0062] The PCIe X16 module that needs to be hot-swapped is connected to the backplane BP through MCIO2. Each PCIe X4 corresponds to an NVMe hard disk, a set of NVMe_PRSNT_N signals and a set of PCIe_RST_N signals. The NVMe_PRSNT_N itself has a pull-up resistor and is high in the normal state. Each set of NVMe_PRSNT_N signal and PCIe_RST_N signal is connected to CPLD1. After booting, when there is no NVMe hard disk, NVMe_PRSNT_N is high, and PCIe_RST_N is set low by CPLD. When the NVMe hard disk is inserted, when CPLD2 recognizes that an NVMe hard disk is inserted, the NVMe_PRSNT_N signal is pulled low, and the pulled-down NVMe_PRSNT_N signal is sent to MCIO1 through the sideband signal of MCIO2, and then sent to CPLD1 through MCIO1. CPLD1 sends it to CPU0 after level conversion. After the PCIe controller monitors that the corresponding peu_presnt_X_n changes from high to low, the PCIe controller constructs the first interrupt message, determines that the NVMe hard disk is in place, PCIe establishes a link, configures the NVMe hard disk, loads the NVMe driver, and the storage software notices that a new NVMe hard disk has been added. The PCIe specification states that PCIe_reset_N should be pulled high 100ms after the NVMe hard disk is powered on. After CPLD1 determines that NVMe_PRSNT_N changes from high to low, it delays 100ms and pulls up the PCIe_RST_N signal. The entire PCIe reset state is completed, the NVMe hard drive is hot-plugged successfully, and the system can recognize this NVMe hard drive and can be used normally.
[0063] The process of unplugging the disk is similar. After booting, when the NVMe hard disk is in place, the NVMe_PRSNT_N state is low and the PCIe_RST_N state is high. When the NVMe hard disk is unplugged, NVMe_PRSNT_N is pulled high, and the pulled-up NVMe_PRSNT_N signal is sent to MCIO1 through the sideband signal of MCIO2, and then sent to CPLD1 through MCIO1. CPLD1 is sent to CPU0 after level conversion. After the PCIe controller monitors the corresponding peu_presnt_X_n from low to high, the PCIe controller The controller constructs the second interrupt message, determines that the NVMe hard disk is not in place, the PCIe controller uninstalls the NVMe hard disk, removes the NVMe hard disk, and the storage software senses that the NVMe hard disk has been uninstalled, the PCIe link is disconnected, and the information of the NVMe hard disk cannot be queried; after CPLD1 determines that NVMe_PRSNT_N changes from low to high, it delays 100ms and pulls down the PCIe_RST_N signal. The entire PCIe device removal status is completed, the NVMe hard disk is successfully unplugged, and the NVMe hard disk no longer exists in the system, and the storage space does not have the capacity of this NVMe hard disk.
[0064] In the above-mentioned Feiteng server-based NVMe hard disk hot-swap system, the central processing unit provides a PCIe hot-swap in-place detection pin (presnt_n). According to the change of the presnt_n pin level, the PCIe controller inside the central processing unit can generate a corresponding MSI or INT interrupt to realize the hot-swap of the NVMe hard disk.
[0065] For example, the Feiteng S5000C dual-core server contains two CPUs, such as CPU0 and CPU1. CPU0 and CPU1 can share Figure 3 The CPLD1 and BMC in the Feiteng S5000C dual-channel server have four MCIO interfaces, each of which supports X8 PCIe. Each machine CPU directly outputs 8 NVMe hard drives. When the form of the MCIO interface is different, the number of NVMe hard drives that can be connected is also different.
[0066] In this embodiment, in addition to connecting the PCIe high-speed signal, MCIO1 and MCIO2 also have the definition of sideband signals, which can connect up to 16 miscellaneous line signals. The clock signal required by the NVMe hard disk, PCIe RST, the NVMe hard disk presence signal, and the SMBus connected to the NVMe hard disk are all connected to the corresponding sideband signal pins.
[0067] The Feiteng S5000C domestic processor has a large number of PCIe, and the X16 PCIe rate reaches the PCIe 5.0 standard. The DDR memory (Double Data Rate, a memory name) is also the most advanced DDR5 memory, which ranks among the most advanced computing industries. The PCIe connected to the MCIO connector also provides more scenarios for server applications, one of which is to connect to the hard disk backplane and support NVMe SSD application scenarios. Supporting NVMe SSD in cloud computing, hyper-convergence and AI servers has become a necessary condition, so the function of supporting NVMe SSD hot-swap brings more opportunities to Feiteng servers.
[0068] The Feiteng S5000C dual-core server supports the NVMe SSD hot-swap function, which brings more opportunities to Feiteng servers. Compared with HDD (Hard Disk Drive) and other SSD (Solid State Disk), NVMe SSD transmits data faster, has lower latency, and has higher IOPS capabilities. It is more widely used in the Internet industry and AI reasoning training.
[0069] The embodiment of the present invention also provides a NVMe hard disk hot-swap method based on Feiteng server, such as Figure 4 As shown, the method comprises the following steps:
[0070] Step S402, the second logic device identifies whether the NVMe hard disk is inserted or removed from the hard disk connector to obtain an identification result; according to the identification result, the level state of the first signal output by the second logic device is switched, and the first signal after the level state is switched is sent to the first logic device through the second connector and the first connector in sequence;
[0071] Step S404, the first logic device performs level conversion on the first signal after the level state is switched, so as to switch the level state of the detection signal output by the target presence detection pin;
[0072] Step S406, the target PCIe controller corresponding to the target presence detection pin generates a target interrupt message to adjust the PCIe link corresponding to the NVMe hard disk after detecting that the level state of the detection signal is switched;
[0073] Step S408, after receiving the first signal after switching the level state, the first logic device delays a preset time, switches the level state of the second signal output by the first logic device, and determines that the hot plug or hot pull of the NVMe hard disk is successful.
[0074] In the above-mentioned NVMe hard disk hot-swap method based on Feiteng server, each Die in the central processing unit corresponds to four in-place detection pins. The target PCIe controller can generate a target interrupt message according to the change in the level state of the detection signal output by the target in-place detection pin to adjust the PCIe link corresponding to the NVMe hard disk, thereby realizing the hot-swap of the NVMe hard disk and expanding the application scope of the Feiteng server.
[0075] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An NVMe hard disk hot-swap system based on Feiteng server, characterized in that: The system comprises: a central processing unit, a first logic device, a first connector, a second connector, a second logic device and a hard disk connector which are sequentially connected in communication; the second connector is also connected to the hard disk connector; the central processing unit comprises a plurality of Dies, each Die corresponds to four in-place detection pins, each of the in-place detection pins corresponds to a PCIe controller, each Die corresponds to a PCIe X16 module, and at least one target PCIe X16 module to be used for hot-swap processing is connected to the second connector; The second logic device is used to identify whether an NVMe hard disk is inserted into or removed from the hard disk connector to obtain an identification result; the level state of the first signal output by the second logic device is switched according to the identification result, and the first signal after the level state is switched is sent to the first logic device through the second connector and the first connector in sequence; The first logic device is used to perform level conversion on the first signal after the level state is switched, so as to switch the level state of the detection signal output by the target presence detection pin; The target PCIe controller corresponding to the target presence detection pin is used to generate a target interrupt message to adjust the PCIe link corresponding to the NVMe hard disk when it detects that the level state of the detection signal is switched; The first logic device is also used to delay a preset time after receiving the first signal after the level state is switched, switch the level state of the second signal output by the first logic device, and send the second signal after the level state is switched to the hard disk connector through the first connector and the second connector in sequence, so as to determine that the hot plug or hot pull of the NVMe hard disk is successful; The second logic device is used for switching the high-level first signal output by the second logic device to a low-level first signal when recognizing that the hard disk connector is inserted into the NVMe hard disk; and sending the low-level first signal to the first logic device through the second connector and the first connector in sequence; The first logic device is used to perform level conversion on the low-level first signal, switching the high-level detection signal output by the target presence detection pin to a low-level detection signal; The target PCIe controller is used to generate a first interrupt message to establish a PCIe link corresponding to the NVMe hard disk after monitoring that the target presence detection pin outputs the low-level detection signal; The first logic device is also used for delaying the preset time after receiving the low-level first signal, switching the output low-level second signal to a high-level second signal, and sending the high-level second signal to the hard disk connector through the first connector and the second connector in sequence, so as to determine that the hot plugging of the NVMe hard disk is successful; The second logic device is used for switching the low-level first signal to a high-level first signal when it is recognized that the hard disk connector is unplugged from the NVMe hard disk, and sending the switched high-level first signal to the first logic device through the second connector and the first connector in sequence; The first logic device is used to perform level conversion on the high-level first signal, and switch the low-level detection signal output by the target presence detection pin to a high-level detection signal; The target PCIe controller is used to generate a second interrupt message to disconnect the PCIe link corresponding to the NVMe hard disk after monitoring that the target presence detection pin outputs the high-level detection signal; The first logic device is also used to delay the preset time after receiving the switched high-level first signal, switch the output high-level second signal to a low-level second signal, and send the low-level second signal to the hard disk connector through the first connector and the second connector in sequence to determine that the hot pull of the NVMe hard disk is successful.
2. The system according to claim 1, characterized in that For each of the target PCIe X16 modules, the target PCIe X16 is configured as a group of X16 interfaces, or configured as two groups of X8 interfaces, or configured as a group of X8 interfaces and two groups of X4 interfaces, or configured as four groups of X4 interfaces.
3. The system according to claim 2, characterized in that If the target PCIe X16 is configured as a group of the X16 interfaces, a first PCIe controller corresponding to an NVMe hard disk connected to the X16 interface is turned on, and hot plugging or hot unplugging of the NVMe hard disk is completed based on a first presence detection pin corresponding to the first PCIe controller; If the target PCIe X16 is configured as two groups of X8 interfaces, the first PCIe controller and the second PCIe controller corresponding to the two NVMe hard disks respectively connected to the two groups of X8 interfaces are turned on, and based on the first in-position detection pin corresponding to the first PCIe controller and the second in-position detection pin corresponding to the second PCIe controller, the hot plug or hot pull of the two NVMe hard disks is completed; If the target PCIe X16 is configured as a group of X8 interfaces and two groups of X4 interfaces, the first PCIe controller, the second PCIe controller and the third PCIe controller corresponding to the three NVMe hard disks respectively connected to the X8 interface and each group of the X4 interfaces are turned on, and based on the first in-position detection pin corresponding to the first PCIe controller, the second in-position detection pin corresponding to the second PCIe controller, and the third in-position detection pin corresponding to the third PCIe controller, the hot plugging or hot unplugging of the three NVMe hard disks is completed; If the target PCIe X16 is configured as four groups of X4 interfaces, the first PCIe controller, the second PCIe controller, the third PCIe controller and the fourth PCIe controller corresponding to the four NVMe hard disks respectively connected to each group of the X4 interfaces are turned on, and based on the first presence detection pin corresponding to the first PCIe controller, the second presence detection pin corresponding to the second PCIe controller, the third presence detection pin corresponding to the third PCIe controller, and the fourth presence detection pin corresponding to the fourth PCIe controller, the hot plugging or hot unplugging of the four NVMe hard disks is completed.
4. The system according to claim 1, characterized in that The system further comprises: a baseboard management controller and an expansion chip; the baseboard management controller is respectively connected to the first logic device, the second logic device and the first connector in communication; the expansion chip is respectively connected to the second connector and the hard disk connector; the second logic device is also connected to the status indicator light; The baseboard management controller is used to obtain the in-place status information of the NVMe hard disk through the first connector, the second connector and the expansion chip in sequence; and control the display status of the status indicator light through the second logic device according to the in-place status information.
5. The system according to claim 4, characterized in that The baseboard management controller is also used for: When the in-place status information indicates that the NVMe hard disk is in place, lighting up the status indicator light through the second logic device; The first information is displayed through the display interface to indicate that the NVMe hard disk is in place.
6. The system according to claim 4, characterized in that The baseboard management controller is also used for: When the in-place status information indicates that the NVMe hard disk is not in place, turning off the status indicator light through the second logic device; The second information is displayed through the display interface to indicate that the NVMe hard disk is not in place.
7. The system according to claim 1, characterized in that There are multiple central processing units.
8. A NVMe hard disk hot-swap method based on Feiteng server, characterized in that: The method comprises: The second logic device identifies whether the NVMe hard disk is inserted or removed from the hard disk connector to obtain an identification result; according to the identification result, the level state of the first signal output by the second logic device is switched, and the first signal after the level state is switched is sent to the first logic device through the second connector and the first connector in sequence; The first logic device performs level conversion on the first signal after the level state is switched, so as to switch the level state of the detection signal output by the target presence detection pin; The target PCIe controller corresponding to the target presence detection pin generates a target interrupt message to adjust the PCIe link corresponding to the NVMe hard disk after monitoring that the level state of the detection signal is switched; After receiving the first signal after switching the level state, the first logic device delays a preset time, switches the level state of the second signal output by the first logic device, and determines that the hot plug or hot pull of the NVMe hard disk is successful; When the second logic device recognizes that the hard disk connector is inserted into the NVMe hard disk, the high-level first signal output by the second logic device is switched to a low-level first signal; and the low-level first signal is sent to the first logic device through the second connector and the first connector in sequence; The first logic device performs level conversion on the low-level first signal, switching the high-level detection signal output by the target presence detection pin to a low-level detection signal; The target PCIe controller generates a first interrupt message to establish a PCIe link corresponding to the NVMe hard disk after monitoring that the target presence detection pin outputs the low-level detection signal; After receiving the low-level first signal, the first logic device delays the preset time, switches the output low-level second signal to a high-level second signal, and sends the high-level second signal to the hard disk connector through the first connector and the second connector in sequence, to determine that the hot plugging of the NVMe hard disk is successful; When the second logic device recognizes that the hard disk connector is unplugged from the NVMe hard disk, the low-level first signal is switched to a high-level first signal, and the switched high-level first signal is sent to the first logic device through the second connector and the first connector in sequence; The first logic device performs level conversion on the high-level first signal, switching the low-level detection signal output by the target presence detection pin to a high-level detection signal; The target PCIe controller generates a second interrupt message to disconnect the PCIe link corresponding to the NVMe hard disk after monitoring that the target presence detection pin outputs the high-level detection signal; After receiving the switched high-level first signal, the first logic device delays the preset time, switches the output high-level second signal to a low-level second signal, and sends the low-level second signal to the hard disk connector through the first connector and the second connector in sequence, to determine that the hot pull of the NVMe hard disk is successful.
