CN115407941A - VMD function starting method and related assembly thereof - Google Patents

VMD function starting method and related assembly thereof Download PDF

Info

Publication number
CN115407941A
CN115407941A CN202211034412.8A CN202211034412A CN115407941A CN 115407941 A CN115407941 A CN 115407941A CN 202211034412 A CN202211034412 A CN 202211034412A CN 115407941 A CN115407941 A CN 115407941A
Authority
CN
China
Prior art keywords
tested
hard disk
vmd
controller
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211034412.8A
Other languages
Chinese (zh)
Inventor
肖时航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211034412.8A priority Critical patent/CN115407941A/en
Publication of CN115407941A publication Critical patent/CN115407941A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0665Virtualisation aspects at area level, e.g. provisioning of virtual or logical volumes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0682Tape device

Abstract

The invention discloses a VMD function starting method and related components thereof, and relates to the field of hard disk management. By judging whether the accessed equipment is an NVME hard disk or not and starting the VMD function when the accessed equipment is the NVME disk, the VMD function can be started only when the equipment to be tested is the NVME hard disk, and the problem that the non-NVME hard disk equipment connected to the connector is wrong due to default starting of the VMD function is avoided.

Description

VMD function starting method and related assembly thereof
Technical Field
The invention relates to the field of hard disk management, in particular to a VMD function starting method and related components thereof.
Background
When a Non-Volatile Memory Host Controller Interface Specification (NVME) hard disk is deployed in a server, a Volume Management Device (VMD) function in a Central Processing Unit (CPU) of the server corresponding to the NVME hard disk needs to be started, so as to implement functions of hot-upgrading and hot-replacing the NVME hard disk. In the prior art, generally, according to interface types commonly used by NVME hard disks on the market, VMD functions corresponding to the interface types are set to a default on state, for example, a PCIE-X4 port is generally used in an existing NVME hard disk, so that a VMD function corresponding to the PCIE-X4 port is set to a default on state, but when a device connected to the port is not an NVME hard disk, turning on the VMD function may cause an error to occur to the device.
Disclosure of Invention
The invention aims to provide a VMD function starting method and related components thereof, which can ensure that the VMD function is started only when equipment to be tested is an NVME hard disk, and avoid the problem that non-NVME hard disk equipment connected to a connector has errors due to default starting of the VMD function.
In order to solve the above technical problem, the present invention provides a VMD function starting method, which is applied to a CPLD in a server, wherein the server further includes a controller, N CPUs, and N connectors, the CPUs correspond to the connectors one to one, and N is a positive integer, the VMD function starting method includes:
when an in-place signal generated after the device to be tested is connected with any one of the connectors is detected, judging whether the device to be tested is an NVME hard disk or not;
if the equipment to be tested is an NVME hard disk, determining address information of a CPU corresponding to the connector connected with the equipment to be tested;
and sending the in-place signal and the address information to a controller so that the controller can start a VMD function in a CPU corresponding to the connector connected with the equipment to be tested.
Preferably, the determining whether the device to be tested is an NVME hard disk includes:
acquiring the level of an IFDET signal end and the level of a PRSNT signal end of the CPLD;
judging whether the IFDET signal end is in a low level or not and the PRSNT signal end is in a high level;
and if so, judging that the equipment to be tested is the NVME hard disk.
Preferably, the method further comprises the following steps:
and if the IFDET signal end is at a high level and the PRSNT signal end is at a high level, judging that the equipment to be tested has a fault.
Preferably, before determining whether the device to be tested is an NVME hard disk, the method further includes:
when an in-place detection signal is received, acquiring an interface signal at each connector;
when detecting that the interface signal at any one of the connectors is the in-place signal, entering a step of detecting the in-place signal generated after the device to be detected is connected with any one of the connectors.
Preferably, before sending the bit signal and the address information to the controller, the method further includes:
determining the port type of the equipment to be tested;
sending the on-site signal and the address information to a controller, including:
and sending the in-place signal, the address information and the port type to a controller so that the controller can start a VMD function corresponding to the port type in a CPU corresponding to the connector connected with the equipment to be tested.
Preferably, the method further comprises the following steps:
and if the equipment to be tested is not the NVME hard disk, sending a closing instruction to the controller so that the controller does not start the VMD function in the CPU corresponding to the connector connected with the equipment to be tested.
Preferably, the determining address information of the CPU corresponding to the connector connected to the device under test includes:
acquiring address signals generated by peripheral circuits of the CPUs;
and determining the address information of the CPU corresponding to the connector connected with the equipment to be tested according to the address signals and the in-place signals.
The present application further provides a VMD function starting device, including:
a memory for storing a computer program;
and the CPLD is used for realizing the steps of the VMD function starting method when the computer program is executed.
The application also provides a server, which comprises a controller, N CPUs (central processing units), N connectors and the VMD function starting device, wherein the CPUs correspond to the connectors one to one, and N is a positive integer;
the N CPUs are connected with the connectors corresponding to the N CPUs;
the controller is respectively connected with the N CPUs;
the controller and the N connectors are connected with the VMD function starting device.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, implements the steps of the VMD function startup method as described above.
The invention provides a VMD function starting method and a related component thereof, and relates to the field of hard disk management. By judging whether the accessed equipment is an NVME hard disk or not and starting the VMD function when the accessed equipment is the NVME disk, the VMD function can be started only when the equipment to be tested is the NVME hard disk, and the problem that the non-NVME hard disk equipment connected to the connector is wrong due to default starting of the VMD function is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a VMD function starting method provided in the present application;
fig. 2 is a schematic structural diagram of a server according to the present invention;
FIG. 3 is a schematic diagram of a hard disk signal level provided by the present application;
fig. 4 is a schematic structural diagram of a VMD function initiation apparatus provided in the present application;
fig. 5 is a schematic structural diagram of another server provided in the present application.
Detailed Description
The core of the invention is to provide a VMD function starting method and related components thereof, which can ensure that the VMD function is started only when the equipment to be tested is an NVME hard disk, and avoid the problem that the non-NVME hard disk equipment connected to the connector has errors due to the default starting of the VMD function.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a VMD function starting method provided by the present application, which is applied to a CPLD in a server, where the server further includes a controller, N CPUs and N connectors, the CPUs correspond to the connectors one to one, N is a positive integer, and the VMD function starting method includes:
s1: when an in-place signal generated after the device to be tested is connected with any connector is detected, judging whether the device to be tested is an NVME hard disk;
the VMD function is a function supporting the hot upgrade and replacement of the NVMe solid state disk through a PCIe bus; in addition, another function called VROC (Virtual RAID on CPU) is also one of the more important functions in the server, which is an upper management scheme for implementing the RAID function by means of the CPU, and the VMD function must be turned on first in order to use the VROC function, and therefore, the VMD function needs to be turned on when the NVME hard disk is inserted into the server.
At present, there are two VMD function configuration methods, one of which is to set a VMD function corresponding to a bandwidth port in a CPU to be continuously opened according to the bandwidth port commonly used by an NVME hard disk, and as long as the NVME hard disk is inserted into a hard disk backplane of a server and uses the bandwidth port, the purpose of opening the VMD function is achieved, for example, a PCIE X4 bandwidth port is generally used by an NVME hard disk in the current market, and a VMD function configured on a PCIE X4 bandwidth port in the CPU is set to be continuously opened, but a situation that an apparatus using the X4 bandwidth port is not an NVME hard disk may occur in an actual usage scenario, and at this time, opening of the VMD function may cause a problem in use of the apparatus; another VMD function configuration method is that after a server is powered on, after all devices using PCIE bandwidth ports are started, each device using PCIE bandwidth ports is traversed in a BIOS page, an NVME solid-state hard disk is manually found from the devices using PCIE bandwidth ports, and related VMD function options are manually modified, and after the modification is completed, the server needs to be powered off and restarted, so that the VMD function can be started.
In a server, the server can be simply divided into two large areas, namely a server motherboard and a hard disk backplane, please refer to fig. 2, where fig. 2 is a schematic structural diagram of the server provided by the present invention, the server motherboard is provided with a controller, multiple CPUs, i2c interfaces, and pcie interfaces, and the hard disk backplane is provided with CPLD (Complex Programmable Logic Device), i2c interfaces, pcie interfaces, and hard disk sockets, where the pcie interfaces and i2c interfaces of the two sides are connected by a cable, and these interfaces constitute a connector for application, and the hard disk sockets adopt 8639conn interfaces so that devices can be connected to the server through these interfaces. Specifically, when the NVME hard disk is connected to the server, the NVME hard disk is inserted into a hard disk socket on the hard disk backplane, the hard disk socket communicates with a corresponding CPU through a corresponding connector, after the CPU and the NVME hard disk are both normal in place, the subsequent CPU can normally start the VMD function, and because the bandwidth range supported by the CPU is wide, in practical application, the connector can be designed according to the actually used CPU, the connector can include a plurality of connection interfaces of pc, so that the connection interfaces are connected with the NVME hard disk in one-to-one correspondence, and the purpose that one CPU corresponds to a plurality of NVME hard disks is achieved. In addition, the Controller specifically includes a BMC (Baseboard Management Controller) and a PCH (integrated south bridge), a connection relationship between the BMC and the PCH is different according to a server type, for example, when the server type is Intel white, the PCH and the BMC are connected through an LPC bus, when the server type is Intel Eagle Stream, the PCH and the BMC communicate through an ESPI bus, the PCH is responsible for controlling whether a VMD function of each CPU is turned on, the BMC mainly plays a role of intermediate transfer, and the CPLD is connected to the CPLD using an existing i2c in the server to achieve a purpose of communicating the CPLD and the PCH, without modifying a hardware design.
In this application, in order to avoid a situation that a VMD function is started when a device using a certain PCIE bandwidth port is not an NVME hard disk, the VMD function configured in the CPU is set to be in an off state as default, when it is detected that a new device to be tested is inserted into a certain connector, it is first necessary to determine whether the device to be tested is an NVME hard disk, as long as it is determined that the device to be tested is an NVME hard disk, subsequent steps are executed, otherwise, if the device to be tested is not an NVME hard disk but another device, the VMD function is kept off, so that a problem in use of the device is avoided.
S2: if the equipment to be tested is the NVME hard disk, determining address information of a CPU corresponding to a connector connected with the equipment to be tested;
after determining that the device to be tested is an NVME hard disk, the VMD function of the CPU connected to the NVME hard disk needs to be started, and in order to start the VMD function of the CPU, it needs to determine which CPU in the server the NVME hard disk is connected to, based on which, a unique identifier of each CPU in the server may be set in advance, so that each CPU has certain information that can uniquely identify its identity, and then a unique identifier of each CPU is set for a connector corresponding to each CPU according to the unique identifier of each CPU.
S3: and sending the in-place signal and the address information to the controller so that the controller starts a VMD function in a CPU corresponding to a connector connected with the device to be tested.
After determining the in-place of the NVME hard disk and the CPU corresponding to the NVME hard disk, the CPLD sends the in-place information of the NVME hard disk and the address information of the CPU to a controller on a server mainboard through an i2c interface, and the controller can know that the NVME hard disk is inserted into the server and needs to start a VMD function through the in-place information of the NVME hard disk; through the address information of the CPU, the controller can know the specific CPU which needs to start the VMD function. Based on this, after the CPLD sends the in-place signal and the address information to the controller, the controller can start the VMD function of the corresponding CPU; because the controller can open the VMD function after knowing that the equipment to be tested is the NVME hard disk, the error caused by opening the VMD function when the equipment to be tested is not the NVME hard disk can be effectively avoided; secondly, because the method for determining the NVME hard disk is completed by combining the PCH, the BMC and the CPLD, when the server is started, the CPLD already completes the determination of the equipment to be tested, and the equipment using PCIE bandwidth ports does not need to be traversed on the server, so that the NVME solid state hard disk does not need to be found out from the equipment using the PCIE bandwidth ports manually, and the efficiency is greatly improved.
In summary, when an in-place signal generated after the device to be tested is connected to any one of the connectors is detected, whether the device to be tested is an NVME hard disk is determined, if the device to be tested is an NVME hard disk, address information of a CPU corresponding to the connector connected to the device to be tested is determined, and then the in-place signal and the address information are sent to the controller, so that the controller starts a VMD function in the CPU corresponding to the connector connected to the device to be tested. By judging whether the accessed equipment is an NVME hard disk or not and starting the VMD function when the accessed equipment is the NVME disk, the VMD function can be started only when the equipment to be tested is the NVME hard disk, and the problem that the non-NVME hard disk equipment connected to the connector is wrong due to default starting of the VMD function is avoided.
On the basis of the above-described embodiments,
as a preferred embodiment, the determining whether the device to be tested is an NVME hard disk includes:
acquiring the level of an IFDET signal end and the level of a PRSNT signal end of the CPLD;
judging whether the IFDET signal end is at a low level and the PRSNT signal end is at a high level;
if yes, the device to be tested is judged to be the NVME hard disk.
In order to accurately judge whether the equipment to be tested is the NVME hard disk, in the application, when different equipment to be tested are inserted into the same interface, all signal levels generated between every two equipment to be tested are not completely the same, so that whether the equipment to be tested is the NVME hard disk can be judged according to the signal levels. Specifically, referring to fig. 3, fig. 3 is a schematic level diagram of a hard disk signal provided in the present application, and it can be seen that, when no device to be tested is inserted, both the IFDET signal terminal and the PRSNT signal terminal are at 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, both the IFDET signal end and the PRSNT signal end are low level; only when the IFDET signal end is low and the PRSNT signal end is high, it can be said that the device under test is an NVME hard disk. Therefore, whether the equipment to be tested is an NVME hard disk can be accurately judged by detecting the levels of the IFDET signal end and the PRSNT signal end.
As a preferred embodiment, if the IFDET signal terminal is high and the PRSNT signal terminal is high, it is determined that the device under test is faulty.
In order to simply judge whether the equipment to be tested fails, in the application, it is considered that the equipment to be tested usually loses response or loses normal working capability when the equipment to be tested fails; in addition, when no device to be tested is inserted, both the IFDET signal end and the PRSNT signal end are at high levels, so that after the device to be tested is inserted, if both the IFDET signal end and the PRSNT signal end are still at high levels, that is, even if the device to be tested is inserted, the device to be tested is not detected to be inserted, and on the premise that the server itself is normal and the interface is normal, the fault of the device to be tested can be indicated. Based on this, whether the device under test is faulty or not can be simply determined.
As a preferred embodiment, before determining whether the device under test is an NVME hard disk, the method further includes:
when an in-place detection signal is received, acquiring interface signals at each connector;
when detecting that the interface signal at any connector is an in-place signal, entering a step of detecting an in-place signal generated after the device to be tested is connected with any connector.
In order to determine whether the equipment to be tested is inserted, in the application, the VMD configuration interface can be set to be in an open mode, a closed mode or an automatic mode in a BIOS program on a server mainboard in advance, the open mode is a mode which is continuously opened, the closed mode is a mode which is continuously closed, and the automatic mode is a mode required by the application, after the automatic mode is selected, the server sends a signal which needs to read the in-place information of the NVME hard disk to the BMC in the starting process, after receiving the signal, the BMC sends the information which needs to read the in-place information of the NVME hard disk to the CPLD on the hard disk backboard through the I2C bus, the CPLD reads an interface signal at each connector at the moment, and judges whether the equipment to be tested is in place according to the interface signal, so that whether the equipment to be tested is in place is determined, and the address information of the CPU corresponding to the NVME hard disk is determined according to the in-place signal and the Addr signal of the NVME hard disk and sent to the BMC.
As a preferred embodiment, before sending the bit signal and the address information to the controller, the method further comprises:
determining the port type of the equipment to be tested;
sending the bit signal and the address information to a controller, comprising:
and sending the in-place signal, the address information and the port type to the controller so that the controller starts a VMD function corresponding to the port type in the CPU corresponding to the connector connected with the device to be tested.
In order to accurately start the VMD function, in this application, a plurality of sets of VMD functions are generally configured in the CPU, and the VMD functions are configured on various types of bandwidth ports supported by the CPU to support hard disks of more models and models. Based on this, after determining that the device to be tested is the NVME hard disk, it is further required to determine the type of the bandwidth port used by the NVME hard disk, and send the type of the bandwidth port used by the NVME hard disk to the controller together with the bit signal and the address information, so that the server only controls the VMD function on the type of the bandwidth port in the CPU. For example, the bandwidth port type commonly used by the NVME hard disk at present is a PCIE X4 port, and after the bit signal, the address information, and the port type are sent to the controller, the controller controls the VMD function configured on the PCIE X4 port in the CPU to be opened, and other VMD functions such as those on PCIE X16 are not opened. Based on the method, the VMD function can be accurately started, and the resource expenditure of the CPU is saved.
As a preferred embodiment, if the device to be tested is not an NVME hard disk, a shutdown instruction is sent to the controller, so that the controller does not start a VMD function in the CPU corresponding to the connector connected to the device to be tested.
In order to avoid errors, in the present application, it is considered that a situation that a device to be tested connected to a connector is not an NVME hard disk may occur in an actual usage scenario, because the VMD function is a function specially used for serving the NVME hard disk, other devices do not support or are not compatible with the VMD function generally, at this time, the opening of the VMD function may cause a problem in the usage of the device, for example, the VMD function may cause a logic of the device to be confused or cause the device to be unable to work normally. Therefore, after it is determined that the device to be tested is not an NVME hard disk, the controller needs to be notified to make the controller know that the device to be tested inserted into a certain connection interface is not an NVME hard disk at this time, and then the controller keeps closing of the VMD function in the CPU corresponding to the device to be tested to avoid problems in use of the device. Therefore, when the device to be tested is not an NVME hard disk, the function of the VMD is kept closed, and errors can be avoided.
As a preferred embodiment, determining address information of a CPU corresponding to a connector to which a device under test is connected includes:
acquiring address signals generated by peripheral circuits of each CPU;
and determining the address information of the CPU corresponding to the connector connected with the equipment to be tested according to the address signals and the in-place signals.
In order to simply obtain the address signal of the CPU, in the present application, considering that for a complete circuit or for a complete processing system, the circuit does not include only the CPU, but in addition to the CPU, a peripheral circuit corresponding to the CPU is usually provided in the circuit, and the peripheral circuit is used to help or assist the CPU to implement some functions, such as power supply, reset, clock supply, or rectification, so that in order to reduce resource consumption of the CPU, the peripheral circuit can be used to implement the purpose of determining the address information. Specifically, after the device to be tested is determined to be the NVME hard disk, in order to turn on the VMD function corresponding to the NVME hard disk, it is considered that a combination of a pull-up resistor and a pull-down resistor is generally arranged in the peripheral circuit of each CPU, so that address information corresponding to each CPU can be preset, an Addr signal including the address information of the CPU is generated through the combination of the pull-up resistor and the pull-down resistor, and 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. Therefore, the address signal is generated by combining the pull-up resistor and the pull-down resistor, so that the CPLD can simply acquire the address signal of the CPU, and the resource consumption of the CPU is reduced.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a VMD function activation device provided in the present application, including:
a memory 21 for storing a computer program;
the CPLD22, when executing the computer program, implements the steps of the VMD function initiation method as described above.
For a detailed description of the VMD function activation apparatus provided in the present application, please refer to the above-mentioned embodiment of the VMD function activation method, which is not described herein again.
When an in-place signal generated after the device to be tested is connected with any one connector is detected, whether the device to be tested is an NVME hard disk is judged, if the device to be tested is the NVME hard disk, address information of a CPU corresponding to the connector connected with the device to be tested is determined, and then the in-place signal and the address information are sent to the controller, so that the controller can start a VMD function in the CPU corresponding to the connector connected with the device to be tested. By judging whether the accessed equipment is an NVME hard disk or not and starting the VMD function when the accessed equipment is the NVME disk, the VMD function can be started only when the equipment to be tested is the NVME hard disk, and the problem that the non-NVME hard disk equipment connected to the connector is wrong due to default starting of the VMD function is avoided.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a server provided in the present application, including a controller 31, N CPUs 32 and N connectors 33, and further including the VMD function activating devices 34, the CPUs 32 are in one-to-one correspondence with the connectors 33, where N is a positive integer;
the N CPUs 32 are connected to their own corresponding connectors 33;
the controller is connected with the N CPUs 32 respectively;
the controller 31 and the N connectors 33 are connected to the VMD function activating apparatus 34.
For a detailed description of a server provided in the present application, please refer to the above embodiment of the VMD function starting method, which is not described herein again.
When an in-place signal generated after the device to be tested is connected with any one connector is detected, whether the device to be tested is an NVME hard disk is judged, if the device to be tested is the NVME hard disk, address information of a CPU corresponding to the connector connected with the device to be tested is determined, and then the in-place signal and the address information are sent to the controller, so that the controller can start a VMD function in the CPU corresponding to the connector connected with the device to be tested. By judging whether the accessed equipment is an NVME hard disk or not and starting the VMD function when the accessed equipment is the NVME disk, the VMD function can be started only when the equipment to be tested is the NVME hard disk, and the problem that the non-NVME hard disk equipment connected to the connector is wrong due to default starting of the VMD function is avoided.
The present application also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the VMD function startup method as described above.
For a detailed description of a computer-readable storage medium provided in the present application, please refer to the above-mentioned embodiment of the VMD function booting method, which is not described herein again.
When an in-place signal generated after the device to be tested is connected with any one connector is detected, whether the device to be tested is an NVME hard disk is judged, if the device to be tested is the NVME hard disk, address information of a CPU corresponding to the connector connected with the device to be tested is determined, and then the in-place signal and the address information are sent to the controller, so that the controller can start a VMD function in the CPU corresponding to the connector connected with the device to be tested. By judging whether the accessed equipment is an NVME hard disk or not and starting the VMD function when the accessed equipment is the NVME disk, the VMD function can be started only when the equipment to be tested is the NVME hard disk, and the problem that the non-NVME hard disk equipment connected to the connector is wrong due to default starting of the VMD function is avoided.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A VMD function starting method is characterized in that the method is applied to a CPLD in a server, the server also comprises a controller, N CPUs and N connectors, the CPUs are in one-to-one correspondence with the connectors, N is a positive integer, and the VMD function starting method comprises the following steps:
when an in-place signal generated after the device to be tested is connected with any one of the connectors is detected, judging whether the device to be tested is an NVME hard disk or not;
if the equipment to be tested is an NVME hard disk, determining address information of a CPU corresponding to the connector connected with the equipment to be tested;
and sending the in-place signal and the address information to a controller so that the controller can start a VMD function in a CPU corresponding to the connector connected with the equipment to be tested.
2. The method for starting the VMD function according to claim 1, wherein the step of determining whether the device under test is an NVME hard disk includes:
acquiring the level of an IFDET signal end of the CPLD and the level of a PRSNT signal end;
judging whether the IFDET signal end is at a low level or not and the PRSNT signal end is at a high level;
and if so, judging that the equipment to be tested is the NVME hard disk.
3. The VMD function launching method of claim 2, further comprising:
and if the IFDET signal end is at a high level and the PRSNT signal end is at a high level, judging that the equipment to be tested has a fault.
4. The VMD function boot method according to claim 1, wherein before determining whether the device under test is an NVME hard disk, the method further comprises:
when an in-place detection signal is received, acquiring an interface signal at each connector;
and when detecting that the interface signal at any one of the connectors is the in-place signal, entering a step of detecting the in-place signal generated after the device to be detected is connected with any one of the connectors.
5. The VMD function launching method of claim 1, further comprising, before sending the bit signal and the address information to a controller:
determining the port type of the equipment to be tested;
sending the bit signal and the address information to a controller, comprising:
and sending the in-place signal, the address information and the port type to a controller so that the controller can start a VMD function corresponding to the port type in a CPU corresponding to the connector connected with the equipment to be tested.
6. The VMD function launching method of claim 1, further comprising:
and if the equipment to be tested is not the NVME hard disk, sending a closing instruction to the controller so that the controller does not start the VMD function in the CPU corresponding to the connector connected with the equipment to be tested.
7. The VMD function startup method of any one of claims 1 to 6, wherein determining address information of a CPU corresponding to the connector connected to the device under test comprises:
acquiring address signals generated by peripheral circuits of the CPUs;
and determining the address information of the CPU corresponding to the connector connected with the equipment to be tested according to the address signals and the in-place signals.
8. A VMD function initiator, comprising:
a memory for storing a computer program;
CPLD for implementing, when executing said computer program, the steps of the VMD function initiation method according to any of claims 1 to 7.
9. A server, comprising a controller, N CPUs and N connectors, and further comprising the VMD function starting apparatus according to claim 8, wherein the CPUs correspond to the connectors one to one, and N is a positive integer;
the N CPUs are connected with the connectors corresponding to the N CPUs;
the controller is respectively connected with the N CPUs;
the controller and the N connectors are connected with the VMD function starting device.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, carries out the steps of the VMD function startup method according to any one of claims 1 to 7.
CN202211034412.8A 2022-08-26 2022-08-26 VMD function starting method and related assembly thereof Pending CN115407941A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211034412.8A CN115407941A (en) 2022-08-26 2022-08-26 VMD function starting method and related assembly thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211034412.8A CN115407941A (en) 2022-08-26 2022-08-26 VMD function starting method and related assembly thereof

Publications (1)

Publication Number Publication Date
CN115407941A true CN115407941A (en) 2022-11-29

Family

ID=84161444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211034412.8A Pending CN115407941A (en) 2022-08-26 2022-08-26 VMD function starting method and related assembly thereof

Country Status (1)

Country Link
CN (1) CN115407941A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117009162A (en) * 2023-10-07 2023-11-07 天津国芯科技有限公司 Method for identifying hard disk by using triple-mode RAID card chip

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117009162A (en) * 2023-10-07 2023-11-07 天津国芯科技有限公司 Method for identifying hard disk by using triple-mode RAID card chip
CN117009162B (en) * 2023-10-07 2023-12-15 天津国芯科技有限公司 Method for identifying hard disk by using triple-mode RAID card chip

Similar Documents

Publication Publication Date Title
US10031736B2 (en) Automatic system software installation on boot
US7234050B2 (en) Techniques for initializing a device on an expansion card
US5852743A (en) Method and apparatus for connecting a plug-and-play peripheral device to a computer
WO2021212948A1 (en) Storage system boot method and apparatus, and computer-readable storage medium
US20140163716A1 (en) Bridge device, automated production system and method thereof for storage device
JPH11328092A (en) Automatic constituting method for primary and secondary devices of computer
EP2798428B1 (en) Apparatus and method for managing operation of a mobile device
CN102880527B (en) Data recovery method of baseboard management controller
KR20180086129A (en) Information processing apparatus, control method of the same, and storage medium
CN107145198B (en) Method for improving compatibility of server to hard disk and mainboard thereof
CN112825011A (en) Power-on and power-off control method and system of PCIe device
CN115407941A (en) VMD function starting method and related assembly thereof
WO2018099255A1 (en) Method, device and system for configuring transfer mode and computer storage medium
CN107239372B (en) Electronic device and detection method thereof
CN116539992A (en) Storage device in-place stable state detection device, method, logic module and medium
CN113076270A (en) Protocol configuration device and method of IO interface and related components
US10489334B2 (en) Server system and method for detecting transmission mode of server system
US20070239908A1 (en) Peripheral device in a computerized system and method
TWI757923B (en) Pre-boot execution environment determination system and method thereof
US7072788B2 (en) System and method for testing an interconnect in a computer system
CN113868181B (en) Storage device PCIE link negotiation method, system, device and medium
CN113485768B (en) PHY parameter configuration device and SSD
CN112115000B (en) Remote resetting method and system of system component power supply and BMC remote device
CN112925730B (en) PCIe (peripheral component interconnect express) equipment link training control method and system
TW201816622A (en) Computer system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination