A VMD function startup method and related components
After CPLD is detected and confirmed that the device to be tested is an NVME hard disk, the VMD function is activated, which solves the error problem caused by default opening when connecting the NVME hard disk, and improves the reliability and efficiency of the device.
Patent Information
- Application Number
- CN202211034412.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-26
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2042-08-26
AI Technical Summary
In the prior art, when the NVME hard disk is connected to the server, the VMD function is turned on by default may cause errors in non-NVME hard disk devices.
CPLD detects whether the device to be tested is an NVME hard disk, and obtains the address information of its corresponding CPU after confirmation, and sends a signal to the controller to start the VMD function, ensuring that the VMD function is only enabled when the device to be tested is an NVME hard disk.
It avoids errors caused by default startup of VMD functions by non-NVME hard disk devices, which improves the reliability and efficiency of device usage.
Smart Images

Figure CN115407941B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of hard disk management, and in particular to a VMD function startup method and related components thereof. Background Art
[0002] When an NVME (Non Volatile Memory Host Controller Interface Specification) hard drive is deployed in a server, it is necessary to enable the VMD (Volume Management Device) function in the server's CPU (Central Processing Unit) corresponding to the NVME disk to implement functions such as hot upgrades and hot replacements for the NVME hard drive. The prior art generally sets the VMD functions corresponding to the commonly used interface types of NVME hard drives on the market to the default enabled state. For example, current NVME hard drives typically use PCIE-X4 ports, so the VMD function corresponding to the PCIE-X4 port is set to the default enabled state. However, when the device connected to the port is not an NVME hard drive, enabling the VMD function may cause errors in the device. Summary of the Invention
[0003] The purpose of the present invention is to provide a VMD function startup method and related components, which can ensure that the VMD function is enabled only when the device to be tested is an NVME hard disk, thereby avoiding the problem of errors in non-NVME hard disk devices connected to the connector caused by the default startup of the VMD function.
[0004] To solve the above technical problems, the present invention provides a VMD function startup method, which is applied to a CPLD in a server. The server also includes a controller, N CPUs, and N connectors. The CPUs and connectors have a one-to-one correspondence, and N is a positive integer. The VMD function startup method includes:
[0005] When a presence signal generated after the device under test is connected to any of the connectors is detected, determining whether the device under test is an NVME hard disk;
[0006] If the device under test is an NVME hard disk, determining the address information of the CPU corresponding to the connector connected to the device under test;
[0007] The presence signal and the address information are sent to a controller so that the controller starts a VMD function in a CPU corresponding to the connector connected to the device under test.
[0008] Preferably, determining whether the device to be tested is an NVME hard disk includes:
[0009] Acquire the level at the IFDET signal terminal and the level at the PRSNT signal terminal of the CPLD itself;
[0010] Determine whether the IFDET signal terminal is at a low level and the PRSNT signal terminal is at a high level;
[0011] If both are true, it is determined that the device under test is an NVME hard disk.
[0012] Preferably, it also includes:
[0013] If the IFDET signal terminal is at a high level and the PRSNT signal terminal is at a high level, it is determined that the device under test is faulty.
[0014] Preferably, before determining whether the device to be tested is an NVME hard disk, the method further includes:
[0015] When receiving the presence detection signal, obtaining the interface signal at each of the connectors;
[0016] When it is detected that the interface signal at any one of the connectors is the presence signal, the process proceeds to the step of detecting the presence signal generated after the device under test is connected to any one of the connectors.
[0017] Preferably, before sending the presence signal and the address information to the controller, the method further comprises:
[0018] Determine the port type of the device under test;
[0019] Sending the presence signal and the address information to a controller includes:
[0020] The presence signal, the address information, and the port type are sent to a controller so that the controller starts a VMD function corresponding to the port type in a CPU corresponding to the connector connected to the device under test.
[0021] Preferably, it also includes:
[0022] If the device under test is not an NVME hard disk, a shutdown instruction is sent to the controller so that the controller does not start the VMD function in the CPU corresponding to the connector connected to the device under test.
[0023] Preferably, determining the address information of the CPU corresponding to the connector connected to the device under test includes:
[0024] Acquiring address signals generated by peripheral circuits of each of the CPUs;
[0025] The address information of the CPU corresponding to the connector connected to the device under test is determined according to each of the address signals and the presence signal.
[0026] The present application also provides a VMD function activation device, comprising:
[0027] Memory for storing computer programs;
[0028] The CPLD is used to implement the steps of the above-mentioned VMD function startup method when executing the computer program.
[0029] The present application also provides a server, comprising a controller, N CPUs and N connectors, and further comprising the VMD function starting device as described above, wherein the CPUs correspond one-to-one to the connectors, and N is a positive integer;
[0030] The N CPUs are connected to the corresponding connectors;
[0031] The controllers are respectively connected to the N CPUs;
[0032] The controller and the N connectors are all connected to the VMD function starting device.
[0033] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the VMD function startup method as described above are implemented.
[0034] The present invention provides a VMD function activation method and related components, relating to the field of hard disk management. When a presence signal generated after a device under test is connected to any connector is detected, it is determined whether the device under test is an NVME hard disk. If the device under test is an NVME hard disk, the address information of the CPU corresponding to the connector connected to the device under test is determined. The presence signal and address information are then sent to a controller so that the controller activates the VMD function in the CPU corresponding to the connector connected to the device under test. By first determining whether the connected device is an NVME hard disk and then activating the VMD function when it is an NVME disk, it is possible to ensure that the VMD function is activated only when the device under test is an NVME hard disk, thereby avoiding the problem of errors caused by the default activation of the VMD function in non-NVME hard disk devices connected to the connector. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the prior art and the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0036] Figure 1 A flowchart of a VMD function startup method provided by this application;
[0037] Figure 2 A schematic structural diagram of a server provided by the present invention;
[0038] Figure 3 A level diagram of a hard disk signal provided in this application;
[0039] Figure 4 A schematic diagram of the structure of a VMD function activation device provided in this application;
[0040] Figure 5 A schematic diagram of the structure of another server provided for this application. DETAILED DESCRIPTION
[0041] The core of the present invention is to provide a VMD function startup method and related components, which can ensure that the VMD function is enabled only when the device to be tested is an NVME hard disk, thereby avoiding the problem of errors in non-NVME hard disk devices connected to the connector due to the default startup of the VMD function.
[0042] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 making creative efforts shall fall within the scope of protection of the present invention.
[0043] Please refer to Figure 1 , Figure 1 This is a flowchart of a VMD function startup method provided in this application, which is applied to a CPLD in a server. The server also includes a controller, N CPUs, and N connectors. The CPUs and connectors correspond one to one, and N is a positive integer. The VMD function startup method includes:
[0044] S1: When a presence signal is detected after the device under test is connected to any connector, it is determined whether the device under test is an NVME hard disk;
[0045] The VMD function supports hot upgrades and replacements of NVMe solid-state drives through the PCIe bus. In addition, another function called VROC (Virtual RAID on CPU) is also one of the more important functions in servers. It is an upper-level management solution that uses the CPU to implement RAID functions. In order to use the VROC function, the VMD function must be enabled first. Therefore, when an NVME hard drive is inserted into the server, the VMD function needs to be enabled.
[0046] Currently, there are two methods for configuring the VMD function. One method is to set the VMD function corresponding to the bandwidth port commonly used by NVME hard drives in the CPU to be continuously enabled. As long as the NVME hard drive is inserted into the server's hard drive backplane and uses the bandwidth port, the VMD function is enabled. For example, NVME hard drives currently on the market generally use the PCIE X4 bandwidth port. Setting the VMD function configured on the PCIE X4 bandwidth port in the CPU to be continuously enabled, however, in actual usage scenarios, the device using the X4 bandwidth port may not be an NVME hard drive. In this case, enabling the VMD function may cause problems with the use of the device. Another method for configuring the VMD function is to power on the server, wait for all devices using the PCIE bandwidth port to start, and then traverse the BIOS page to find the NVME solid-state drive among these devices using the PCIE bandwidth port. Then, manually modify the relevant VMD function options. After the modification is completed, the server must be shut down and restarted to enable the VMD function. This method is inefficient and the steps are relatively cumbersome.
[0047] In the server, it can be simply divided into two major areas: the server motherboard and the hard disk backplane. Please refer to Figure 2 , Figure 2The present invention provides a structural diagram of a server, wherein the server motherboard is provided with a controller, multiple CPUs, an i2c interface, and a pcie interface, and the hard disk backplane is provided with components such as a CPLD (Complex Programmable Logic Device), an i2c interface, a pcie interface, and a hard disk socket. The pcie interface and the i2c interface of both parties are connected by a cable. These interfaces constitute the connector of the present application, and the hard disk socket adopts an 8639conn interface so that the device can be connected to the server from this interface. Specifically, when the NVME hard disk is connected to the server, the NVME hard disk is inserted into the hard disk socket on the hard disk backplane, and the hard disk socket is connected to the corresponding CPU through the corresponding connector. When the CPU and the NVME hard disk are both in place, the CPU can then normally start the VMD function. Since the CPU supports a wide range of bandwidth, in actual applications, the connector can be designed according to the CPU actually used. The connector can include multiple pcie connection interfaces so that these connection interfaces are connected to the NVME hard disk in a one-to-one correspondence, thereby achieving the purpose of one CPU corresponding to multiple NVME hard disks. In addition, the controller specifically includes BMC (Baseboard Management Controller) and PCH (Platform Controller Hub, integrated south bridge). The connection relationship between BMC and PCH varies with different server types. For example, when the server type is Intel Whitely, PCH and BMC are connected through the LPC bus. When the server type is Intel Eagle Stream, PCH and BMC communicate through the ESPI bus. PCH is responsible for controlling whether the VMD function of each CPU is turned on. BMC mainly plays the role of intermediate transfer and uses the existing i2c in the server to connect CPLD to achieve the purpose of communication between CPLD and PCH without modifying the hardware design.
[0048] In this application, in order to avoid the situation where the VMD function is turned on when the device using a certain PCIE bandwidth port is not an NVME hard disk, the VMD function configured in the CPU is turned off by default. When a new device to be tested is detected to be inserted into a connector, it is first necessary to determine whether the device to be tested is an NVME hard disk. Only after it is determined that the device to be tested is an NVME hard disk will the subsequent steps be executed. Otherwise, if the device to be tested is not an NVME hard disk but other devices, the VMD function is kept turned off to avoid problems in the use of the device.
[0049] S2: If the device under test is an NVME hard disk, determine the address information of the CPU corresponding to the connector connected to the device under test;
[0050] After determining that the device under test is an NVME hard disk, it is necessary to enable the VMD function of the CPU to which the NVME hard disk is connected. In order to enable the VMD function of the CPU, it is first necessary to determine which CPU in the server the NVME hard disk is connected to. Based on this, a unique identifier can be set for each CPU in the server in advance, so that each CPU has some information that can uniquely identify its identity. Then, according to the unique identifier of each CPU, a unique identifier is set for the connector corresponding to each CPU. After determining that the device under test is an NVME hard disk, since the NVME hard disk will generate a presence signal after being connected to the CPU, the CPLD can detect whether the presence signal exists at each connector or each CPU. When it is determined that the presence signal exists at a certain connector or a certain CPU, the unique identifier at that location is obtained, which is equivalent to obtaining the address information of the CPU connected to the NVME hard disk.
[0051] S3: Sending the in-position signal and address information to the controller so that the controller starts the VMD function in the CPU corresponding to the connector connected to the device under test.
[0052] After the CPLD determines that the NVME hard drive is in place and the CPU corresponding to the NVME hard drive, it sends the NVME hard drive's presence information and the CPU's address information to the controller on the server motherboard via the i2C interface. The NVME hard drive's presence information allows the controller to know that an NVME hard drive is inserted into the server and that the VMD function needs to be enabled. The CPU's address information allows the controller to know which CPU specifically needs to have the VMD function enabled. Based on this, after the CPLD sends the presence signal and address information to the controller, the controller can enable the VMD function of the corresponding CPU. Because the controller only enables the VMD function after knowing that the device under test is an NVME hard drive, it can effectively avoid errors caused by enabling the VMD function when the device under test is not an NVME hard drive. Furthermore, because the method for determining the NVME hard drive is completed through a combination of the PCH, BMC, and CPLD, the CPLD has already determined the device under test when the server is powered on. There is no need to traverse each device using the PCIE bandwidth port on the server, and there is no need to manually locate the NVME solid-state drive from these devices using the PCIE bandwidth port, greatly improving efficiency.
[0053] In summary, when a presence signal is detected after the device under test is connected to any connector, it is determined whether the device under test is an NVME hard drive. If the device under test is an NVME hard drive, the address information of the CPU corresponding to the connector connected to the device under test is determined, and then the presence signal and address information are sent to the controller so that the controller can activate the VMD function in the CPU corresponding to the connector connected to the device under test. By first determining whether the connected device is an NVME hard drive and then activating the VMD function when it is an NVME disk, it can be ensured that the VMD function is only enabled when the device under test is an NVME hard drive, avoiding the problem of errors in non-NVME hard drive devices connected to the connector due to the default activation of the VMD function.
[0054] Based on the above embodiments,
[0055] As a preferred embodiment, determining whether the device to be tested is an NVME hard disk includes:
[0056] Get the level of the IFDET signal terminal and the PRSNT signal terminal of the CPLD itself;
[0057] Determine whether the IFDET signal terminal is at a low level and the PRSNT signal terminal is at a high level;
[0058] If both are true, the device under test is determined to be an NVME hard drive.
[0059] In order to accurately determine whether the device under test is an NVME hard drive, in this application, considering that different devices under test have different signal levels when plugged into the same interface, it is possible to determine whether the device under test is an NVME hard drive based on its signal level. Figure 3 , Figure 3 A level diagram of a hard disk signal provided for this application shows that when no device to be tested is inserted, the IFDET signal terminal and the PRSNT signal terminal are both high levels; when a non-NVME hard disk is inserted, such as a SATA (Serial Advanced Technology Attachment) hard disk or a SAS (Serial Attached SCSI) hard disk, the IFDET signal terminal and the PRSNT signal terminal are both low levels; only when the IFDET signal terminal is low and the PRSNT signal terminal is high can it be said that the device to be tested is an NVME hard disk. It can be seen that by detecting the levels at the IFDET signal terminal and the PRSNT signal terminal, it is possible to accurately determine whether the device to be tested is an NVME hard disk.
[0060] As a preferred embodiment, if the IFDET signal terminal is at a high level and the PRSNT signal terminal is at a high level, it is determined that the device under test is faulty.
[0061] In order to simply determine whether the device under test is faulty, in this application, it is taken into account that when the device under test fails, the device under test will usually lose response or lose the ability to work normally; in addition, since when no device under test is plugged in, the IFDET signal terminal and the PRSNT signal terminal are both high, so after the device under test is plugged in, if it is found that the IFDET signal terminal and the PRSNT signal terminal are still high, that is, even if the device under test is plugged in, it is still not detected that the device under test is plugged in. Under the premise that the server itself and the interface are normal, it can be determined that the device under test is faulty. Based on this, it is possible to simply determine whether the device under test is faulty.
[0062] As a preferred embodiment, before determining whether the device to be tested is an NVME hard disk, the method further includes:
[0063] When receiving the in-position detection signal, obtaining the interface signal at each connector;
[0064] When it is detected that the interface signal at any connector is a presence signal, the process proceeds to a step of detecting a presence signal generated after the device under test is connected to any connector.
[0065] In order to determine whether there is a device to be tested inserted, in this application, the VMD configuration interface can be set in advance in the BIOS program on the server motherboard to three modes: open, closed or automatic. The open mode is a continuously open mode, the closed mode is a continuously closed mode, and the automatic mode is the mode required by this application. When the automatic mode is selected, during the startup process of the server, the server sends a signal to the BMC that needs to read the NVME hard disk presence information. After receiving the signal, the BMC sends a message to the CPLD on the hard disk backplane that needs to read the NVME hard disk presence information through the I2C bus. At this time, the CPLD reads the interface signals at each connector and determines whether there is a device to be tested in place according to the interface signal, so that after detecting that the device to be tested is in place, it can be determined whether it is an NVME hard disk, and the address information of the CPU corresponding to the NVMe hard disk is determined according to the NVME hard disk presence signal and Addr signal and sent to the BMC.
[0066] As a preferred embodiment, before sending the in-position signal and address information to the controller, the method further includes:
[0067] Determine the port type of the device under test;
[0068] Sending the position signal and address information to the controller, including:
[0069] The in-position signal, address information and port type are sent to the controller so that the controller starts a VMD function corresponding to the port type in the CPU corresponding to the connector connected to the device under test.
[0070] In order to accurately enable the VMD function, in this application, the CPU is usually configured with multiple sets of VMD functions. VMD functions are configured on various bandwidth port types supported by the CPU to support more styles and models of hard drives. Considering that the bandwidth port type used by commonly used NVME hard drives is fixed, in order to save CPU resource overhead, only the VMD function on the bandwidth port type used by the NVME hard drive can be enabled. Based on this, after determining that the device under test is an NVME hard drive, it is also necessary to determine the type of bandwidth port used by the NVME hard drive and send the bandwidth port type used by the NVME hard drive together with the presence signal and address information to the controller so that the server only controls the VMD function on the bandwidth port type in the CPU. For example, the bandwidth port type commonly used by NVME hard drives is the PCIE X4 port. After the presence signal, address information and port type are sent to the controller, the controller controls the VMD function configured on the PCIE X4 port in the CPU to be enabled, while other VMD functions such as those on PCIE X16 are not enabled. Based on this, the VMD function can be accurately enabled, saving CPU resource overhead.
[0071] As a preferred embodiment, if the device under test is not an NVME hard disk, a shutdown instruction is sent to the controller so that the controller does not start the VMD function in the CPU corresponding to the connector connected to the device under test.
[0072] In order to avoid errors, in this application, considering that the device under test connected to the connector may not be an NVME hard disk in the actual use scenario, since the VMD function is a function specifically used to serve NVME hard disks, other devices usually do not support or are incompatible with the VMD function, then turning on the VMD function may cause problems in the use of the device, for example, the VMD function may cause the logic of the device to be disordered or the device to be unable to work properly. Therefore, after determining that the device under test is not an NVME hard disk, it is necessary to notify the controller so that the controller knows that the device under test inserted into a certain connection interface is not an NVME hard disk. Then the controller will keep the VMD function in the CPU corresponding to the device under test closed to avoid problems in the use of the device. Furthermore, the presence of the device under test can be continuously monitored. When the device under test is removed from the connection interface, that is, when the device under test is unplugged from the server, the CPLD can send an instruction to notify the controller that the connection interface is idle, so that the controller knows that the device under test has left and enters a state of controlling the VMD function to be turned on or off at any time. Based on this, keeping the VMD function closed when the device under test is not an NVME hard disk can avoid errors.
[0073] As a preferred embodiment, determining the address information of the CPU corresponding to the connector connected to the device under test includes:
[0074] Obtaining address signals generated by peripheral circuits of each CPU;
[0075] The address information of the CPU corresponding to the connector connected to the device under test is determined according to each address signal and the presence signal.
[0076] In order to simply obtain the address signal of the CPU, in this application, considering that for a complete circuit or for a complete processing system, the circuit does not only contain the CPU, but in addition to the CPU, the circuit is usually also provided with peripheral circuits corresponding to the CPU. These peripheral circuits help or assist the CPU to implement certain functions, such as power supply, reset, clock supply or rectification, etc. Therefore, in order to reduce the resource consumption of the CPU, its peripheral circuits can be used to achieve the purpose of determining the address information. Specifically, after determining that the device to be tested is an NVME hard disk, in order to enable the VMD function corresponding to the NVME hard disk, considering that a combination of pull-up resistors and pull-down resistors is usually configured in the peripheral circuits of each CPU, the address information corresponding to each CPU can be pre-set, and then the Addr signal containing the address information of the CPU is generated by the combination of pull-up and pull-down resistors. The Addr signal is transmitted to the CPLD through the connector so that the CPLD can know the address information of the CPU corresponding to the NVME hard disk. Based on this, generating the address signal by the combination of pull-up and pull-down resistors can enable the CPLD to simply obtain the address signal of the CPU while also reducing the resource consumption of the CPU.
[0077] Please refer to Figure 4 , Figure 4 A schematic diagram of the structure of a VMD function activation device provided in this application, including:
[0078] Memory 21, for storing computer programs;
[0079] CPLD 22 is used to implement the steps of the above-mentioned VMD function startup method when executing the computer program.
[0080] For a detailed introduction to a VMD function activation device provided in this application, please refer to the embodiment of the above-mentioned VMD function activation method, and this application will not go into details here.
[0081] When a presence signal is detected after the device under test is connected to any connector, it is determined whether the device under test is an NVME hard drive. If so, the address information of the CPU corresponding to the connector connected to the device under test is determined. The presence signal and address information are then sent to the controller, which then enables the VMD function in the CPU corresponding to the connector connected to the device under test. By first determining whether the connected device is an NVME hard drive and then enabling the VMD function when it is, this method ensures that the VMD function is enabled only when the device under test is an NVME hard drive, avoiding errors caused by the default VMD function being enabled for non-NVME hard drive devices connected to the connector.
[0082] Please refer to Figure 5, Figure 5 A schematic diagram of the structure of a server provided in the present application includes a controller 31, N CPUs 32, and N connectors 33, and also includes the VMD function starting device 34 as described above. The CPUs 32 correspond to the connectors 33 in a one-to-one manner, and N is a positive integer.
[0083] N CPUs 32 are connected to their corresponding connectors 33;
[0084] The controller is connected to N CPUs 32 respectively;
[0085] The controller 31 and the N connectors 33 are all connected to the VMD function activation device 34 .
[0086] For a detailed introduction to a server provided in this application, please refer to the above-mentioned embodiment of the VMD function startup method, and this application will not go into details here.
[0087] When a presence signal is detected after the device under test is connected to any connector, it is determined whether the device under test is an NVME hard drive. If so, the address information of the CPU corresponding to the connector connected to the device under test is determined. The presence signal and address information are then sent to the controller, which then enables the VMD function in the CPU corresponding to the connector connected to the device under test. By first determining whether the connected device is an NVME hard drive and then enabling the VMD function when it is, this method ensures that the VMD function is enabled only when the device under test is an NVME hard drive, avoiding errors caused by the default VMD function being enabled for non-NVME hard drive devices connected to the connector.
[0088] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the VMD function startup method as described above are implemented.
[0089] For a detailed introduction to a computer-readable storage medium provided in this application, please refer to the embodiment of the above-mentioned VMD function startup method, and this application will not go into details here.
[0090] When a presence signal is detected after the device under test is connected to any connector, it is determined whether the device under test is an NVME hard drive. If so, the address information of the CPU corresponding to the connector connected to the device under test is determined. The presence signal and address information are then sent to the controller, which then enables the VMD function in the CPU corresponding to the connector connected to the device under test. By first determining whether the connected device is an NVME hard drive and then enabling the VMD function when it is, this method ensures that the VMD function is enabled only when the device under test is an NVME hard drive, avoiding errors caused by the default VMD function being enabled for non-NVME hard drive devices connected to the connector.
[0091] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Reference can be made to the common and similar parts between the various embodiments. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method description.
[0092] It should also be noted that, in this specification, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
[0093] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
[0094] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not limited to the embodiments shown herein but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A VMD function startup method, characterized in that: A CPLD is applied to a server, wherein the server further includes a controller, N CPUs, and N connectors, wherein the CPUs correspond to the connectors in a one-to-one manner, and N is a positive integer. The VMD function startup method includes: When a presence signal generated after the device under test is connected to any of the connectors is detected, determining whether the device under test is an NVME hard disk; If the device under test is an NVME hard disk, determining the address information of the CPU corresponding to the connector connected to the device under test; The presence signal and the address information are sent to a controller so that the controller starts a VMD function in a CPU corresponding to the connector connected to the device under test.
2. The VMD function activation method according to claim 1, wherein: Determining whether the device under test is an NVME hard disk includes: Acquire the level at the IFDET signal terminal and the level at the PRSNT signal terminal of the CPLD itself; Determine whether the IFDET signal terminal is at a low level and the PRSNT signal terminal is at a high level; If both are true, it is determined that the device under test is an NVME hard disk.
3. The VMD function activation method according to claim 2, wherein: Also includes: If the IFDET signal terminal is at a high level and the PRSNT signal terminal is at a high level, it is determined that the device under test is faulty.
4. The VMD function activation method according to claim 1, wherein: Before determining whether the device to be tested is an NVME hard disk, the method further includes: When receiving the presence detection signal, obtaining the interface signal at each of the connectors; When it is detected that the interface signal at any one of the connectors is the presence signal, the process proceeds to the step of detecting the presence signal generated after the device under test is connected to any one of the connectors.
5. The VMD function activation method according to claim 1, wherein: Before sending the presence signal and the address information to the controller, the method further includes: Determine the port type of the device under test; Sending the presence signal and the address information to a controller includes: The presence signal, the address information, and the port type are sent to a controller so that the controller starts a VMD function corresponding to the port type in a CPU corresponding to the connector connected to the device under test.
6. The VMD function activation method according to claim 1, wherein: Also includes: If the device under test is not an NVME hard disk, a shutdown instruction is sent to the controller so that the controller does not start the VMD function in the CPU corresponding to the connector connected to the device under test.
7. The VMD function activation method according to any one of claims 1 to 6, characterized in that: Determining address information of a CPU corresponding to the connector connected to the device under test includes: Acquiring address signals generated by peripheral circuits of each of the CPUs; The address information of the CPU corresponding to the connector connected to the device under test is determined according to each of the address signals and the presence signal.
8. A VMD function activation device, characterized in that: include: Memory for storing computer programs; A CPLD is configured to implement the steps of the VMD function startup method according to any one of claims 1 to 7 when executing the computer program.
9. A server, characterized in that: The device comprises a controller, N CPUs and N connectors, and further comprises the VMD function starting device according to claim 8, wherein the CPUs correspond to the connectors in a one-to-one manner, and N is a positive integer; The N CPUs are connected to the corresponding connectors; The controllers are respectively connected to the N CPUs; The controller and the N connectors are all connected to the VMD function starting device.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the VMD function startup method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
VMD control method and device, electronic equipment and readable storage medium
CN110377231A
VMD function self-starting method, system and device
CN114138351A