Hard disk lighting method, system, equipment and medium
Through the method of signal transmission and reconstruction of lighting information between the motherboard and the backboard, the accuracy and efficiency of the server NVME hard disk lighting is solved, the hard disk lighting behavior errors are avoided, and the hard disk status is accurately identified and managed.
Patent Information
- Application Number
- CN202411206017.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-11-22
AI Technical Summary
The prior art is difficult to effectively realize the lighting of the server NVME hard disk, which makes it difficult for the system administrator to identify the state of the hard disk, and the lighting behavior error occurs when the hard disk controller driver does not support the lighting management mechanism.
Receive the initial lighting information sent by the processor and the status information of the volume management device by the first controller in the motherboard, reconstructs the lighting information, and sends it to the second controller on the backboard through a multiplexer, only Light up the hard disk light when the volume management device is turned on, avoid light signal shielding, reduce cable and connector use, and save signal resources.
The accuracy and efficiency of hard disk lighting is achieved, the lighting behavior is avoided, the cost is reduced, and the success rate and control efficiency of hard disk lighting are improved.
Smart Images

Figure CN119003294A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a hard disk lighting method, system, equipment and medium. Background Art
[0002] The server industry is currently in a stage of rapid development. As a core component of the infrastructure, the importance and demand for servers are constantly increasing, and technology is also constantly improving.
[0003] One of the important functions in the server backplane design is to realize the lighting of the Non-Volatile Memory Express (NVME) hard disk. The status of the hard disk light can show the working status of the hard disk, such as normal operation, read and write operation, failure or maintenance required. This helps the system administrator to quickly identify the status of the hard disk and perform corresponding operations.
[0004] It can be seen that how to turn on the NVME hard disk of the server is a technical problem that people in this field urgently need to solve. Summary of the invention
[0005] The purpose of the present invention is to provide a hard disk lighting method, system, device and medium to solve the technical problem of lighting the server NVME hard disk.
[0006] In order to solve the above technical problems, the present invention provides a hard disk lighting method, which is applied to a first controller in a mainboard; the method comprises:
[0007] receiving initial lighting information of each port sent by a processor in the mainboard through a first bus and receiving status information of a volume management device of each port sent by the processor through a second bus;
[0008] Writing the status information of the volume management device of each port into the initial lighting information corresponding to each port to obtain the reconstructed lighting information;
[0009] The reconstructed lighting information is sent to each first interface on the mainboard through multiple signal lines separated by the multiplexer in the mainboard; so that each first interface on the mainboard sends the reconstructed lighting information to the second controller on the backboard through the corresponding second interface on the backboard, and the second controller parses the address of the unique input and output expander, obtains the lighting information of the hard disk and the status information of the volume management device from the reconstructed lighting information, and lights up the hard disk light according to the lighting information of the hard disk when it is detected that the status of the volume management device is on; the first interface corresponds to the second interface one by one, and a group of the first interface and the second interface corresponds to one signal line, and all the signal lines are connected to an input and output expander with the same address.
[0010] On the one hand, the initial lighting information includes at least information for locating the light, information for representing the state of the hard disk indicated by the light, information for representing the in-place state of the light, and at least one reserved bit;
[0011] The step of writing the status information of the volume management device of each port into the initial lighting information corresponding to each port to obtain the reconstructed lighting information includes:
[0012] The status information of the volume management device of each port is written into the reserved bit in the initial lighting information corresponding to each port to obtain the reconstructed lighting information.
[0013] On the other hand, there is at least one group of signal lines connected to the target number of ports of the processor, and the signal lines carry lighting information corresponding to the target number of lights; wherein the lighting information is the initial lighting information or the reconstructed lighting information, and the target number is greater than 1;
[0014] The processor sends initial lighting information of each port through the first bus and sends status information of the volume management device of each port through the second bus, including:
[0015] Obtaining the address of the multiplexer;
[0016] Sending a command to open the current channel to the multiplexer according to the address of the multiplexer, and sending the initial lighting information carried by the signal line corresponding to the current channel written into the address of the multiplexer to the first controller through the first bus;
[0017] When it is detected that the initial lighting information carried by the signal line corresponding to the current channel has been written, a command to close the current channel is sent to the multiplexer according to the address of the multiplexer; the next channel of the current channel is obtained, and the next channel of the current channel is used as the new current channel, and the step of sending a command to open the current channel to the multiplexer according to the address of the multiplexer is returned, and the initial lighting information carried by the signal line corresponding to the current channel written to the address of the multiplexer is sent to the first controller through the first bus, until it is detected that the initial lighting information carried by the signal lines corresponding to all channels of the multiplexer has been written, and then the return is stopped, and the status information of the volume management device of each port is sent to the first controller through the second bus.
[0018] On the other hand, when it is detected that the state of the volume management device is turned on, lighting up the hard disk light according to the lighting information of the hard disk includes:
[0019] When it is determined that the state of the volume management device is on according to the reserved bit in the reconstructed lighting information, if the information in the reconstructed lighting information used to characterize the state of the hard disk indicated by the light meets the preset lighting requirements, and the information in the reconstructed lighting information used to characterize the in-place state of the light characterizes that the light is in place, then the target hard disk light will be lit according to the information in the reconstructed lighting information used to locate the light.
[0020] On the other hand, after the second controller turns on the hard disk light according to the hard disk light-on information, the method further includes:
[0021] Get the current on / off status of the target light;
[0022] Get the current working status of the hard disk indicated by the target light;
[0023] Determine the target state of the light corresponding to the current working state of the hard disk according to the pre-established correspondence between the working state of the hard disk and the on and off state of the light;
[0024] When it is detected that the target state is the same as the current on / off state, determining that the lighting of the hard disk is completed;
[0025] When it is detected that the target state is different from the current on / off state, the steps of receiving the initial lighting information of each port sent by the processor in the mainboard through the first bus and receiving the status information of the volume management device of each port sent by the processor through the second bus are returned.
[0026] On the other hand, after receiving the initial lighting information of each port sent by the processor in the mainboard through the first bus and receiving the status information of the volume management device of each port sent by the processor through the second bus, and before writing the status information of the volume management device of each port into the initial lighting information corresponding to each port to obtain the reconstructed lighting information, the method further includes:
[0027] Determine the port corresponding to the lamp to be lit by the processor according to the received initial lighting information of each port sent by the processor through the first bus;
[0028] The step of writing the status information of the volume management device of each port into the initial lighting information corresponding to each port to obtain the reconstructed lighting information includes:
[0029] Acquire status information of a volume management device of a port corresponding to a light to be turned on by the processor;
[0030] The status information of the volume management device of the port corresponding to the lamp to be lit by the processor is written into the initial lighting information corresponding to the port corresponding to the lamp to be lit by the processor to obtain the reconstructed lighting information.
[0031] In order to solve the above technical problems, the present invention also provides a hard disk lighting method, which is applied to a second controller on a backplane, and the method comprises:
[0032] Receive each reconstructed lighting information sent by each first interface on the mainboard through the corresponding second interface on the backplane; wherein the reconstructed lighting information is the first controller in the mainboard receiving the initial lighting information of each port sent by the processor in the mainboard through the first bus and receiving the status information of the volume management device of each port sent by the processor through the second bus; the status information of the volume management device of each port is written into the initial lighting information corresponding to each port; each reconstructed lighting information received by each first interface on the mainboard is sent through the multiple signal lines separated by the multiplexer in the mainboard; the first interface corresponds to the second interface one by one, and a group of the first interface and the second interface corresponds to one signal line, and all the signal lines are connected to an input-output expander with the same address;
[0033] Parsing the address of the unique input / output expander, and acquiring the lighting information of the hard disk and the status information of the volume management device from the reconstructed lighting information;
[0034] When it is detected that the state of the volume management device is turned on, the hard disk light is turned on according to the hard disk light-on information.
[0035] In order to solve the above technical problems, the present invention also provides a hard disk lighting system, comprising: a mainboard and a backplane, wherein the mainboard comprises a first controller, a processor, a multiplexer and a first interface; the backplane comprises a second controller and a second interface;
[0036] The processor is connected to the input terminal of the first controller via a first bus and a second bus;
[0037] The input end of the multiplexer is connected to the output end of the first controller;
[0038] The output end of the multiplexer is connected to the input end of each of the first interfaces respectively;
[0039] The output end of each of the first interfaces is connected to the input end of each of the second interfaces, and the first interfaces are connected to the second interfaces in a one-to-one correspondence, and a group of the first interfaces and the second interfaces corresponds to one signal line; an input-output expander with the same address is connected to all the signal lines;
[0040] The output end of each of the second interfaces is connected to the second controller;
[0041] The processor is used for sending initial lighting information of each port to the first controller through the first bus and sending status information of the volume management device of each port to the first controller through the second bus;
[0042] The first controller is used to receive the initial lighting information of each port sent by the processor in the mainboard through the first bus and receive the status information of the volume management device of each port sent by the processor through the second bus; write the status information of the volume management device of each port into the initial lighting information corresponding to each port to obtain the reconstructed lighting information; and send each of the reconstructed lighting information to each first interface on the mainboard through the multiplexed signal lines separated by the multiplexer in the mainboard;
[0043] The second controller is used to receive the reconstructed lighting information sent by the first interfaces on the main board through the corresponding second interfaces on the backplane; parse the address of the unique input and output expander, and obtain the lighting information of the hard disk and the status information of the volume management device from the reconstructed lighting information; and when it is detected that the status of the volume management device is on, light up the hard disk light according to the lighting information of the hard disk.
[0044] In order to solve the above technical problems, the present invention also provides a hard disk lighting device, comprising:
[0045] Memory for storing computer programs;
[0046] The processor is used to implement the steps of the above-mentioned hard disk lighting method when executing the computer program.
[0047] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above hard disk lighting method are implemented.
[0048] The beneficial effect of the present invention is that in the method for the first controller in the mainboard provided by the present invention, first, the first controller receives the initial lighting information of each port sent by the processor through the first bus and the status information of the volume management device sent through the second bus, writes the status of the volume management device of each port into the initial lighting information corresponding to each port to obtain the reconstructed lighting information; sends each reconstructed lighting information to each first interface on the mainboard through the multiplexer signal line in the mainboard, and each first interface on the mainboard sends each reconstructed lighting information to the second controller on the backboard through the corresponding second interface on the backboard. The second controller parses the address of the unique input and output expander, obtains the lighting information of the hard disk and the status of the volume management device from the reconstructed lighting information, and lights up the hard disk light according to the lighting information of the hard disk when it is detected that the status of the volume management device is turned on. The hard disk is turned on by this method, and because the hard disk controller driver does not support the lighting management mechanism when the volume management device function is disabled, if the lighting signal is not shielded at this time, the hard disk lighting behavior will be wrong. Therefore, the hard disk lighting method provided by the present invention only lights up the hard disk light according to the lighting information of the hard disk when the volume management device is in the on state, thereby avoiding the occurrence of the above situation and ensuring the correct lighting behavior of the hard disk as much as possible; secondly, compared with the method in which the processor in the mainboard sends the lighting information to the second controller through a cable alone, in the hard disk lighting method provided by the present invention, the processor in the mainboard sends the initial lighting information and the status information of the volume management device to The first controller is then transmitted by the first controller to the second controller on the backplane through a multiplexer, a first interface and a second interface corresponding to the first interface, thereby reducing the use of cables and connectors; thirdly, since an input and output expander with the same address is hung under all signal lines, each signal line directly carries the lighting information of a uniquely determined address, and there is no need to obtain the status information of the volume management device through a separate line, and there is no need to obtain the port to which the corresponding hard disk is connected through the address pin, thereby saving signal resources and facilitating the expansion of other functions, and the second controller only needs to parse the lighting information of each corresponding hard disk to know the lighting information and the status information of the volume management device of the port, thereby improving the efficiency of hard disk lighting.
[0049] In addition, a reserved position is set in the initial lighting information to place the status information of the volume management device, ensuring that the lighting information and the status information of the volume management device can be obtained simultaneously through each signal line.
[0050] There is at least one set of signal lines connected to the target number of ports of the processor, and the signal lines carry the lighting information corresponding to the target number of lights. The target number is greater than 1, which ensures that the lighting information of multiple hard disk lights can be transmitted at the same time, improves the control efficiency of the hard disk lights, and compared with the method of transmitting the lighting information of one hard disk light through one signal line, it reduces the number of cables and reduces the cost.
[0051] When the processor transmits the lighting information to the first processor, the lighting information is written in sequence channel by channel, thereby avoiding lighting information transmission errors, improving the accuracy of lighting information transmission, and further improving the accuracy of hard disk light lighting.
[0052] When lighting the hard disk light, the status of the volume management device, the information used to characterize the status of the hard disk indicated by the light, and the information used to characterize the in-place status of the light are considered, thereby improving the accuracy of lighting the hard disk light.
[0053] After the hard disk light is turned on, the current on and off state of the light is compared with the target state of the light corresponding to the current working state of the hard disk determined based on the pre-established correspondence between the working state of the hard disk and the on and off state of the light. When the two states are different, the step of controlling the hard disk lighting is re-entered. When the two states are the same, it is determined that the hard disk lighting is completed, thereby improving the success rate of the hard disk lighting.
[0054] In addition, the present invention also provides a hard disk lighting method, a hard disk lighting system, a hard disk lighting device and a computer-readable storage medium applied to a second controller on a backplane, which have the same or corresponding technical features as the first controller applied to the mainboard mentioned above, and have the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces 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 creative work.
[0056] Figure 1 A flowchart of a hard disk lighting method provided by an embodiment of the present invention;
[0057] Figure 2 A schematic diagram of a hard disk lighting system provided by a first embodiment of the present invention;
[0058] Figure 3 A schematic diagram of lighting an IO expander attached to a VPP according to an embodiment of the present invention;
[0059] Figure 4A schematic diagram of lighting another VPP-mounted IO expander provided in an embodiment of the present invention;
[0060] Figure 5 The overall flow chart of the hard disk lighting method provided by the first embodiment of the present invention;
[0061] Figure 6 A schematic diagram of a hard disk lighting system provided by a second embodiment of the present invention;
[0062] Figure 7 This is a structural diagram of a hard disk lighting device provided in another embodiment of the present invention. DETAILED DESCRIPTION
[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 creative work are within the scope of protection of the present invention.
[0064] The core of the present invention is to provide a hard disk lighting method, system, device and medium to solve the technical problem of lighting the server NVME hard disk.
[0065] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 1 A flowchart of a hard disk lighting method provided by an embodiment of the present invention, the method is applied to a first controller in a mainboard; the method comprises:
[0066] S10: receiving initial lighting information of each port sent by the processor in the mainboard through the first bus and receiving status information of the volume management device of each port sent by the processor through the second bus;
[0067] S11: writing the status information of the volume management device of each port into the initial lighting information corresponding to each port to obtain the reconstructed lighting information;
[0068] S12: The reconstructed lighting information is sent to the first interfaces on the mainboard through the multiple signal lines separated by the multiplexer in the mainboard; so that the first interfaces on the mainboard send the reconstructed lighting information to the second controller on the backboard through the corresponding second interfaces on the backboard, and the second controller parses the address of the unique input and output expander, obtains the lighting information of the hard disk and the status information of the volume management device from the reconstructed lighting information, and lights up the hard disk light according to the lighting information of the hard disk when it is detected that the status of the volume management device is on.
[0069] In order to enable those skilled in the art to better understand the present solution, the scenario corresponding to the hard disk lighting method of the present invention is first described. Figure 2 A schematic diagram of a hard disk lighting system provided by the first embodiment of the present invention is shown in FIG. Figure 2 As shown, it includes: a main board and a back board, the main board includes a first controller, a processor, a multiplexer and a first interface; the back board includes a second controller and a second interface;
[0070] The processor is connected to the input terminal of the first controller via the first bus and the second bus;
[0071] The input end of the multiplexer is connected to the output end of the first controller;
[0072] The output end of the multiplexer is connected to the input end of each first interface respectively;
[0073] The output end of each first interface is connected to the input end of each second interface, and the first interface is connected to the second interface in a one-to-one correspondence, and a group of first interfaces and second interfaces corresponds to one signal line; an input-output expander with the same address is connected under all signal lines;
[0074] The output end of each second interface is connected to the second controller.
[0075] In implementation, the processor in the motherboard may be a central processing unit (CPU), the first controller may be a baseboard management controller (BMC), the multiplexer may be a two-wire serial bus switch (Inter-Integrated Circuit Switch, I2C Switch) module, the first interface and the second interface may be Mini Cool Edge IO (MCIO) interfaces, such as MCIOx8. The second controller may be a complex programmable logic device (CPLD).
[0076] When controlling the hard disk lighting, it is necessary to know the lighting information. In addition, when the volume management device (VMD) function of the NVMe hard disk controller is disabled, the hard disk controller driver does not support the virtual pin port (VPP) lighting management mechanism. At this time, if the VPP lighting information of the CPU is not shielded, the NVMe hard disk lighting behavior error will also occur. Therefore, when the hard disk is lit, it is necessary to determine whether to light the hard disk according to the VMD state. Therefore, the first controller in the motherboard receives the lighting information and the status information of the volume management device. Specifically, the initial lighting information of each port sent by the processor in the motherboard through the first bus and the status information of the volume management device of each port sent by the processor through the second bus are received. The first bus can be a virtual pin port (VPP) signal line, which is an I2C bus dedicated to transmitting NVMe lighting signals. The second bus can be an enhanced serial peripheral interface (eSPI) bus (a bus for CPU to interact with chips such as BMC).
[0077] The initial lighting information includes at least information for locating the light, information for representing the state of the hard disk indicated by the light, information for representing the in-position state of the light, and at least one reserved bit;
[0078] Writing the status information of the volume management device of each port into the initial lighting information corresponding to each port to obtain the reconstructed lighting information includes:
[0079] The status information of the volume management device of each port is written into the reserved bit in the initial lighting information corresponding to each port to obtain the reconstructed lighting information.
[0080] In addition, there is at least one group of signal lines connecting the target number of ports of the processor, and the signal lines carry lighting information corresponding to the target number of lights; wherein the lighting information is initial lighting information or reconstructed lighting information, and the target number is greater than 1.
[0081] Take the example of transmitting the lighting information of two hard disk lights at the same time. Figure 3 A schematic diagram of lighting up an IO expander under a VPP provided by an embodiment of the present invention. The CPU implements NVMe lighting through the VPP bus. The principle is that one VPP issued by the CPU can hang up to 8 IO expanders with different addresses, such as Figure 3One VPP in the system is connected to two-wire serial bus expander 0 to two-wire serial bus expander 7. Each IO expander can convert VPP data into 16-bit GPIO, and each NVMe port occupies 8-bit GPIO. Therefore, one VPP carries at most 16 NVMe lighting information. Table 1 parses the initial lighting information data of two NVMe for each IO expander.
[0082] Table 1
[0083]
[0084] As shown in Table 1, only bits 0, 1, and 4 are actually used in the 8-bit light information, and the other 5 bits are reserved. Bit 0 represents the information used to characterize the state of the hard disk indicated by the light, bit 1 represents the information used to locate the light, and bit 4 represents the information used to characterize the in-position state of the light.
[0085] When there are more than 16 NVMe hard disks, you can use I2C Switch to expand one CPU VPP to multiple VPPs to light up more hard disks. Figure 4 As shown, Figure 4 A schematic diagram of lighting up another VPP-mounted IO expander provided by an embodiment of the present invention. Figure 4 The two-wire serial bus switch divides the virtual pin port bus into two paths, namely virtual pin port bus zero and virtual pin port bus one; two-wire serial bus expander zero to two-wire serial bus expander seven are connected to the virtual pin port bus zero, and two-wire serial bus expander eight to two-wire serial bus expander fifteen are connected to the virtual pin port bus one.
[0086] In order to avoid errors in the transmission of lighting information and improve the accuracy of the transmission of lighting information, in implementation, the processor sends the initial lighting information of each port through the first bus and sends the status information of the volume management device of each port through the second bus, including:
[0087] Get the address of the multiplexer;
[0088] Sending a command to open the current channel to the multiplexer according to the address of the multiplexer, and sending the initial lighting information carried by the signal line corresponding to the current channel written into the address of the multiplexer to the first controller through the first bus;
[0089] When it is detected that the initial lighting information carried by the signal line corresponding to the current channel has been written, a command to close the current channel is sent to the multiplexer according to the address of the multiplexer; the next channel of the current channel is obtained, and the next channel of the current channel is used as the new current channel. The command to open the current channel is returned to the multiplexer according to the address of the multiplexer, and the initial lighting information carried by the signal line corresponding to the current channel written to the address of the multiplexer is sent to the first controller through the first bus, until it is detected that the initial lighting information carried by the signal lines corresponding to all channels of the multiplexer has been written, and then the return is stopped, and the status information of the volume management device of each port is sent to the first controller through the second bus.
[0090] After writing the status information of each port volume management device into the reserved bit in the initial lighting information corresponding to each port, the reconstructed lighting information is shown in Table 2. Table 2 shows the data of lighting information and VMD status carried by each IO expander after reconstruction.
[0091] Table 2
[0092]
[0093] As shown in Table 2, after receiving the initial lighting information and the status information of the volume management device, the first controller writes the VMD status of each Port into bit 7 or bit 15 of the 8-bit lighting information corresponding to each hard disk, so that each IOexpander carries 3-bit lighting information of two NVMe and 1-bit VMD status.
[0094] It is worth noting that in order to ensure effective data transmission and reduce the amount of data transmission, after receiving the initial lighting information of each port sent by the processor in the mainboard through the first bus and receiving the status information of the volume management device of each port sent by the processor through the second bus, before writing the status information of the volume management device of each port into the initial lighting information corresponding to each port to obtain the reconstructed lighting information, it also includes:
[0095] Determine the port corresponding to the lamp to be lit by the processor according to the received initial lighting information of each port sent by the processor through the first bus;
[0096] Writing the status information of the volume management device of each port into the initial lighting information corresponding to each port to obtain the reconstructed lighting information includes:
[0097] Obtaining status information of the volume management device of the port corresponding to the light to be lit by the processor;
[0098] The status information of the volume management device of the port corresponding to the lamp to be lit on the processor is written into the initial lighting information corresponding to the port corresponding to the lamp to be lit on the processor to obtain the reconstructed lighting information.
[0099] After obtaining the reconstructed lighting information, each reconstructed lighting information is sent to each first interface on the mainboard through the multiple signal lines separated by the multiplexer in the mainboard; so that each first interface on the mainboard sends each reconstructed lighting information to the second controller on the backplane through the corresponding second interface on the backplane, and the second controller parses the address of the unique input and output expander, and obtains the lighting information of the hard disk and the status information of the volume management device from the reconstructed lighting information, so that when it is detected that the status of the volume management device is on, the hard disk light can be turned on according to the lighting information of the hard disk.
[0100] In order to improve the accuracy of the hard disk light lighting, when it is detected that the volume management device is in the on state, the hard disk light is lit according to the hard disk light information, including:
[0101] When it is determined that the state of the volume management device is on according to the reserved bit in the reconstructed lighting information, if the information in the reconstructed lighting information used to characterize the state of the hard disk indicated by the light meets the preset lighting requirements, and the information in the reconstructed lighting information used to characterize the in-place state of the light characterizes that the light is in place, then the target hard disk light will be lit according to the information in the reconstructed lighting information used to locate the light.
[0102] In addition, in order to improve the success rate of the hard disk lighting, after the second controller lights up the hard disk light according to the hard disk lighting information, the method further includes:
[0103] Get the current on / off status of the target light;
[0104] Get the current working status of the hard disk indicated by the target light;
[0105] Determine the target state of the light corresponding to the current working state of the hard disk according to the pre-established correspondence between the working state of the hard disk and the on and off state of the light;
[0106] When it is detected that the target state is the same as the current on / off state, it is determined that the lighting of the hard disk is completed;
[0107] When it is detected that the target state is different from the current on / off state, the process returns to the step of receiving the initial lighting information of each port sent by the processor in the mainboard through the first bus and the status information of the volume management device of each port sent by the processor through the second bus.
[0108] The processor in the following motherboard is CPU, the first controller is BMC, the multiplexer is I2C Switch, the first interface and the second interface are MCIOx8 interfaces, the second controller is CPLD, the first bus is VPP signal line, and the second bus is eSPI) bus as an example. Figure 2 The working principle of the hard disk lighting system shown is explained.
[0109] 1. The CPU VPP signal is connected to the motherboard BMC to inform the BMC of the lighting information of each hard disk (3 bits).
[0110] 2. The CPU eSPI signal is connected to the motherboard BMC, and its main function is to parse the VMD status of each port of each NVMe controller.
[0111] 3. BMC receives VPP and eSPI signals, and writes the VMD status of each port into bit 7 or bit 15 of the 8-bit lighting information corresponding to each hard disk, as shown in Table 2, so that each IO expander carries 3-bit lighting information of two NVMe and 1-bit VMD status.
[0112] 4. BMC sends the parsed and reconstructed VPP signal to each MCIO of the motherboard through several I2C switches. Each MCIO has a separate VPP, and each VPP is only connected to one IO expander with the same address.
[0113] 5. Each VPP is connected to the backplane CPLD. Each VPP of the CPLD uniquely resolves the address to obtain the 3-bit lighting information and 1-bit VMD status of the corresponding hard disk. Whether to turn on the corresponding hard disk light depends on whether the VMD status is on.
[0114] Figure 5 The overall flow chart of the hard disk lighting method provided by the first embodiment of the present invention is as follows: Figure 5 As shown, the method includes:
[0115] S13: The central processing unit sends the lighting information of all ports through the virtual pin port signal line and sends the status information of the volume management devices of all ports through the enhanced serial peripheral interface bus;
[0116] S14: The baseboard management controller writes the volume management device status information of each port into the virtual pin port signal as the seventh bit of the lighting information data of each port;
[0117] S15: the baseboard management controller sends the reconstructed virtual pin port signal to the complex programmable logic device on the backplane connected to each mini cool edge input and output interface through a two-wire serial bus switch;
[0118] S16: The backplane complex programmable logic device parses the 0th, 1st, 4th and 7th bits of data of the port corresponding to each virtual pin port signal line to light up the hard disk.
[0119] In practice, the hard disk lighting process includes the following steps:
[0120] 1. An I2C Switch address is 0xE0, which expands two VPPs. Each of the two VPPs carries IO expander information of 0x40.
[0121] 2. The first MCIO PCIe is connected to port0 and port1 of the CPU, and the second MCIO is connected to port3 and port4 of the CPU.
[0122] 3. The CPU sends the command to open the first channel of I2C SWITCH at 0xE0, and writes a total of 16 bits of data of port0 and port1 to 0xE0. Then it sends the command to open the second channel of I2C SWITCH at 0xE0, and writes a total of 16 bits of data of port3 and port4 to 0xE0.
[0123] 4. The CPU sends the VMD status of each port to the BMC via eSPI.
[0124] 5. BMC parses the CPU VPP I2C data, obtains the LEDs of the ports that the CPU wants to turn on, and writes the VMD status of the corresponding port to bit7 or bit15 of the lighting information of each IO expander.
[0125] 6. CPLD does not need to know which CPU port each MCIO corresponds to the NVMe SSD from, but directly parses the VPP address of 0x40, first determines the VMD status of the first NVMe and the second NVMe corresponding ports, and if the status is on, then lights up the LED of the corresponding hard disk according to the 3-bit lighting information.
[0126] The method for the first controller applied to the mainboard provided by the embodiment of the present invention realizes the lighting of the hard disk, and because when the volume management device function is disabled, the hard disk controller driver does not support the lighting management mechanism, if the lighting signal is not shielded at this time, the hard disk lighting behavior will be wrong. Therefore, the hard disk lighting method provided by the present invention only lights up the hard disk light according to the lighting information of the hard disk when the status of the volume management device is on, thereby avoiding the occurrence of the above situation and ensuring the correct lighting behavior of the hard disk as much as possible; secondly, compared with the method in which the processor in the mainboard sends the lighting information to the second controller through a cable alone, in the hard disk lighting method provided by the present invention, the processor in the mainboard sends the initial lighting information and the status of the volume management device to the second controller. The status information is sent by the processor to the first controller, and then transmitted by the first controller to the second controller on the backplane through the multiplexer, the first interface and the second interface corresponding to the first interface one by one, thereby reducing the use of cables and connectors; thirdly, since an input and output expander with the same address is hung under all signal lines, each signal line directly carries the lighting information of a uniquely determined address, and there is no need to obtain the status information of the volume management device through a separate line, and there is no need to obtain the port to which the corresponding hard disk is connected through the address pin, thereby saving signal resources and facilitating the expansion of other functions, and the second controller only needs to parse the lighting information of each corresponding hard disk to know the lighting information and the status information of the volume management device of the port, thereby improving the efficiency of hard disk lighting.
[0127] In addition, in order to realize the hard disk lighting, the present invention also provides another hard disk lighting method. Figure 6 This is a schematic diagram of a hard disk lighting system provided by the second embodiment of the present invention. Figure 6 As shown, the hard disk lighting system includes a main board and a backplane. The main board includes a first controller, a processor, a first bus, a connector corresponding to the first bus, a second bus, a connector corresponding to the second bus, and a first interface connected to N address pins; the backplane includes a second controller, a first bus, a connector corresponding to the first bus, a second bus, a connector corresponding to the second bus, and a second interface connected to N address pins.
[0128] The first bus located in the mainboard, the connector corresponding to the first bus, the connector corresponding to the first bus located in the backplane, and the first bus form a virtual pin port signal line, one end of the virtual pin port signal line is connected to the processor, and the other end is connected to the second controller; the virtual pin port signal line is used to transmit lighting information of all ports;
[0129] The processor is connected to the first controller via a second bus. The second bus in the mainboard, the connector corresponding to the second bus, the connector corresponding to the second bus in the backplane, and the second bus are an enhanced serial peripheral interface bus, one end of the enhanced serial peripheral interface bus is connected to the first controller, and the other end is connected to the second controller; the enhanced serial peripheral interface bus is used to transmit status information of volume management devices of all ports;
[0130] The first interface connected to the N address pins in the mainboard is connected to the second interface connected to the N address pins in the backplane, and the second interface connected to the N address pins in the backplane is connected to the second controller.
[0131] The second controller identifies the port corresponding to the controlled NVMe LED through the address pin, combines the lighting information of the port transmitted by the virtual pin port signal line and the status information of the volume management device of the port transmitted by the enhanced serial peripheral interface bus, and realizes the control of the hard disk lighting.
[0132] Next, again Figure 6 The principle of the hard disk lighting system shown is explained as follows:
[0133] 1. The CPU VPP signal is finally connected to the backplane CPLD through the VPP connector. Its function is to inform the CPLD of the lighting information (3 bits) of each hard disk (up to 8 VPPs per channel).
[0134] 2. The CPU eSPI signal is connected to the motherboard BMC, and its main function is to parse the VMD status of each port of each NVMe controller;
[0135] 3. The BMC I2C signal is finally connected to the backplane CPLD through the I2C connector to inform the CPLD of the VMD status of each port of the hard disk controller;
[0136] 4. Which port each NVMe belongs to in the CPU controller is determined by which port the NVMe Peripheral Component Interconnect Express (PCIE) signal is connected to in the CPU. Every two ports are ultimately connected to the NVMe hard drive through an MCIOx8.
[0137] 5. Each MCIOx8 on the motherboard has N Addr pins, and each MCIO Addr pin is uniquely identified by different pull-ups and pull-downs. It is finally connected to the CPLD on the backplane to inform the CPLD which CPU port the NVMe corresponding to the current MCIO on the backplane belongs to.
[0138] 6. For different CPU ports, the VPP signal has different IO expander addresses.
[0139] 7. The backplane CPLD receives the addr pin to obtain which port the NVMe LED is controlled by.
[0140] 8. CPLD simulates IO expander. Different ports in step 6 have different IO expander addresses. Therefore, CPLD only parses the address of the CPU port determined in step 7.
[0141] 9. CPLD obtains the VMD status of all CPU ports through I2C. When the VMD status of the port determined in step 7 is on, the hard disk lights up according to the lighting information obtained in step 8. When the VMD status is off, the hard disk lights up.
[0142] The hard disk light lighting system provided by the first embodiment and the second embodiment of the present invention realizes flexible lighting of the hard disk light.
[0143] However, the current server industry is in a stage of rapid development. As a core component of the infrastructure, the importance and demand of servers are constantly increasing, and technology is also constantly improving. High-speed interfaces (such as PCIe, Compute Express Link (CXL), etc.) are constantly upgraded and iterated in modern servers, and the interface performance is increasing and the functions are becoming more and more abundant. In order to be compatible with more functions, the number of high-speed connector signals in servers is increasing. Therefore, the fewer signals are used to achieve the same function, the more important it is for the scalability of server functions.
[0144] For one of the important functions in server backplane design, the NVMe lighting method that occupies fewer server high-speed connector signals in NVMe hard drive lighting is of great significance.
[0145] Comparing the hard disk lighting system provided by the first embodiment with the hard disk lighting system provided by the second embodiment, it can be found that when the hard disk lighting system provided by the second embodiment realizes hard disk lighting, the more MCIOs on the mainboard, the more addr pins need to be distinguished for MCIO use, which will occupy the resources of the number of MCIO signals and is not conducive to expanding other functions;
[0146] 2. Additional VPP connectors and cables are required, increasing material, installation and maintenance costs;
[0147] 3. CPLD needs to determine which CPU port the controlled hard disk belongs to and then parse the VPP information of the corresponding address. It also needs to obtain the VMD status of the CPU port accordingly. The logic is complex and the CPLD resource utilization rate is high.
[0148] In the hard disk lighting system provided by the first embodiment, 1. the VPP signal is connected to the BMC, and the BMC writes the lighting information and VMD status of each port into the VPP information by parsing VPP and eSPI; 2. VPP is extended through I2C SWITCH, and each MCIO of the mainboard uses a separate VPP signal, and this VPP signal only transmits the 16-bit lighting information of the two ports corresponding to the current MCIO, and the IO expander of all VPP buses uses the same address; 3. Each VPP of the backplane CPLD directly carries the VPP information of the unique address, and there is no need to obtain the VMD status through I2C, and there is no need to obtain the CPU Port connected to the corresponding hard disk through the addr pin. It only needs to parse the 0th, 1st, 4th and 7th bits of each corresponding hard disk lighting information. Among them, the 7th bit is the VMD status of the port corresponding to the disk. Whether to light up the LED is determined based on the obtained VMD status.
[0149] In the hard disk lighting system provided by the first embodiment, 1. MCIO only needs two signals, VPP, and does not need too many addr pins, thus saving signal resources for MCIO and facilitating the expansion of other functions; 2. No additional VPP header is required, saving material, installation and maintenance costs; 3. CPLD does not need additional logic resources to make judgments and match the hard disk and CPU Port, VMD status, and can directly analyze the reconstructed VPP data, thereby improving lighting efficiency.
[0150] The above describes a hard disk lighting method applied to a first controller in a mainboard. This embodiment further provides a hard disk lighting method applied to a second controller in a backplane. The method includes:
[0151] Receive each reconstructed lighting information sent by each first interface on the mainboard through the corresponding second interface on the backplane; wherein the reconstructed lighting information is the initial lighting information of each port sent by the processor in the mainboard through the first bus received by the first controller in the mainboard and the status information of the volume management device of each port sent by the processor through the second bus; the status information of the volume management device of each port is written into the initial lighting information corresponding to each port; each reconstructed lighting information received by each first interface on the mainboard is sent through the multiple signal lines separated by the multiplexer in the mainboard; the first interface corresponds to the second interface one by one, and a group of the first interface and the second interface corresponds to one signal line, and all the signal lines are connected with an input-output expander with the same address;
[0152] Parse the unique input / output expander address, and obtain the hard disk lighting information and volume management device status information from the reconstructed lighting information;
[0153] When it is detected that the state of the volume management device is turned on, the hard disk light is turned on according to the hard disk light-on information.
[0154] The hard disk lighting method for the second controller applied to the backplane provided in this embodiment has the same or corresponding technical features as the hard disk lighting method for the first controller applied to the mainboard described above. The hard disk lighting method for the first controller applied to the mainboard has been described in detail above, and the embodiment of the hard disk lighting method for the second controller applied to the backplane will not be repeated here, and has the same beneficial effects as the above-mentioned hard disk lighting method for the first controller applied to the mainboard.
[0155] This embodiment also provides a hard disk lighting system, including: a mainboard and a backplane, the mainboard includes a first controller, a processor, a multiplexer and a first interface; the backplane includes a second controller and a second interface;
[0156] The processor is connected to the input terminal of the first controller via the first bus and the second bus;
[0157] The input end of the multiplexer is connected to the output end of the first controller;
[0158] The output end of the multiplexer is connected to the input end of each first interface respectively;
[0159] The output end of each first interface is connected to the input end of each second interface, and the first interface is connected to the second interface in a one-to-one correspondence, and a group of first interfaces and second interfaces corresponds to one signal line; an input-output expander with the same address is connected under all signal lines;
[0160] The output end of each second interface is connected to the second controller;
[0161] The processor is used to send initial lighting information of each port to the first controller through the first bus and send status information of the volume management device of each port to the first controller through the second bus;
[0162] The first controller is used to receive the initial lighting information of each port sent by the processor in the mainboard through the first bus and the status information of the volume management device of each port sent by the processor through the second bus; write the status information of the volume management device of each port into the initial lighting information corresponding to each port to obtain the reconstructed lighting information; and send each reconstructed lighting information to each first interface on the mainboard through the multiplexed signal lines separated by the multiplexer in the mainboard;
[0163] The second controller is used to receive the reconstructed lighting information sent by the first interfaces on the main board through the corresponding second interfaces on the backplane; parse the address of the unique input and output expander, and obtain the lighting information of the hard disk and the status information of the volume management device from the reconstructed lighting information; when it is detected that the status of the volume management device is on, the hard disk light is turned on according to the lighting information of the hard disk.
[0164] The hard disk lighting system provided in this embodiment has the same or corresponding technical features as the hard disk lighting method of the first controller applied to the mainboard described above. The hard disk lighting method of the first controller applied to the mainboard has been described in detail above, and the embodiment of the hard disk lighting system will not be repeated here, and has the same beneficial effects as the above-mentioned hard disk lighting method of the first controller applied to the mainboard.
[0165] In the above embodiment, the hard disk lighting method applied to the first controller in the mainboard is described in detail, and the present invention also provides the hard disk lighting device and the hard disk lighting device corresponding embodiments. It should be noted that the present invention describes the embodiments of the device part from two perspectives, one is based on the functional module perspective, and the other is based on the hardware perspective.
[0166] A hard disk lighting device provided by an embodiment of the present invention includes, based on the perspective of functional modules:
[0167] A receiving module, used for receiving initial lighting information of each port sent by the processor in the mainboard through the first bus and receiving status information of the volume management device of each port sent by the processor through the second bus;
[0168] A writing module, used for writing the status information of the volume management device of each port into the initial lighting information corresponding to each port to obtain the reconstructed lighting information;
[0169] The sending module is used to send each reconstructed lighting information to each first interface on the mainboard through the multiple signal lines separated by the multiplexer in the mainboard; so that each first interface on the mainboard sends each reconstructed lighting information to the second controller on the backboard through the corresponding second interface on the backboard, and the second controller parses the address of the unique input and output expander, obtains the lighting information of the hard disk and the status information of the volume management device from the reconstructed lighting information, and lights up the hard disk light according to the lighting information of the hard disk when it is detected that the status of the volume management device is turned on; the first interface corresponds to the second interface one by one, and a group of the first interface and the second interface corresponds to one signal line, and an input and output expander with the same address is hung under all the signal lines.
[0170] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0171] Figure 7 This is a structural diagram of a hard disk lighting device provided by another embodiment of the present invention. This embodiment is based on the hardware perspective, such as Figure 7 As shown, the hard disk lighting device includes:
[0172] A memory 20, used for storing computer programs;
[0173] The processor 21 is used to implement the steps of the hard disk lighting method mentioned in the above embodiment when executing the computer program.
[0174] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU; the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0175] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the hard disk lighting method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, the data involved in the hard disk lighting method mentioned above, etc.
[0176] In some embodiments, the hard disk lighting device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .
[0177] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the hard disk lighting device, and may include more or fewer components than those shown in the figure.
[0178] The hard disk lighting device provided by the embodiment of the present invention includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: a hard disk lighting method, with the same effect as above.
[0179] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned hard disk lighting method when executed by a processor.
[0180] The embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the hard disk lighting method when executed by a processor.
[0181] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps described in the above method embodiment (which may be a method corresponding to the mainboard side, or a method corresponding to the backplane side, or a method corresponding to both the mainboard side and the backplane side) are implemented.
[0182] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store program codes.
[0183] The computer-readable storage medium provided by the present invention includes the hard disk lighting method mentioned above, and the effect is the same as above.
[0184] The above is a detailed introduction to a hard disk lighting method, system, device and medium provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.
[0185] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used 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 "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A method for lighting a hard disk, characterized in that: A first controller applied to a mainboard; the method comprising: receiving initial lighting information of each port sent by a processor in the mainboard through a first bus and receiving status information of a volume management device of each port sent by the processor through a second bus; Writing the status information of the volume management device of each port into the initial lighting information corresponding to each port to obtain the reconstructed lighting information; The reconstructed lighting information is sent to each first interface on the mainboard through multiple signal lines separated by the multiplexer in the mainboard; so that each first interface on the mainboard sends the reconstructed lighting information to the second controller on the backboard through the corresponding second interface on the backboard, and the second controller parses the address of the unique input and output expander, obtains the lighting information of the hard disk and the status information of the volume management device from the reconstructed lighting information, and lights up the hard disk light according to the lighting information of the hard disk when it is detected that the status of the volume management device is on; the first interface corresponds to the second interface one by one, and a group of the first interface and the second interface corresponds to one signal line, and all the signal lines are connected to an input and output expander with the same address.
2. The hard disk lighting method according to claim 1, characterized in that: The initial lighting information at least includes information for locating the light, information for representing the state of the hard disk indicated by the light, information for representing the in-place state of the light, and at least one reserved bit; The step of writing the status information of the volume management device of each port into the initial lighting information corresponding to each port to obtain the reconstructed lighting information includes: The status information of the volume management device of each port is written into the reserved bit in the initial lighting information corresponding to each port to obtain the reconstructed lighting information.
3. The hard disk lighting method according to claim 2, characterized in that: There is at least one group of signal lines connected to the target number of ports of the processor, and the signal lines carry lighting information corresponding to the target number of lights; wherein the lighting information is the initial lighting information or the reconstructed lighting information, and the target number is greater than 1; The processor sends initial lighting information of each port through the first bus and sends status information of the volume management device of each port through the second bus, including: Obtaining the address of the multiplexer; Sending a command to open the current channel to the multiplexer according to the address of the multiplexer, and sending the initial lighting information carried by the signal line corresponding to the current channel written into the address of the multiplexer to the first controller through the first bus; When it is detected that the initial lighting information carried by the signal line corresponding to the current channel has been written, a command to close the current channel is sent to the multiplexer according to the address of the multiplexer; the next channel of the current channel is obtained, and the next channel of the current channel is used as the new current channel, and the step of sending a command to open the current channel to the multiplexer according to the address of the multiplexer is returned, and the initial lighting information carried by the signal line corresponding to the current channel written to the address of the multiplexer is sent to the first controller through the first bus, until it is detected that the initial lighting information carried by the signal lines corresponding to all channels of the multiplexer has been written, and then the return is stopped, and the status information of the volume management device of each port is sent to the first controller through the second bus.
4. The hard disk lighting method according to claim 2 or 3, characterized in that: When the state of the volume management device is detected to be turned on, lighting up the hard disk light according to the lighting information of the hard disk includes: When it is determined that the state of the volume management device is on according to the reserved bit in the reconstructed lighting information, if the information in the reconstructed lighting information used to characterize the state of the hard disk indicated by the light meets the preset lighting requirements, and the information in the reconstructed lighting information used to characterize the in-place state of the light characterizes that the light is in place, then the target hard disk light will be lit according to the information in the reconstructed lighting information used to locate the light.
5. The hard disk lighting method according to claim 4, characterized in that: After the second controller turns on the hard disk light according to the hard disk light information, the method further includes: Get the current on / off status of the target light; Get the current working status of the hard disk indicated by the target light; Determine the target state of the light corresponding to the current working state of the hard disk according to the pre-established correspondence between the working state of the hard disk and the on and off state of the light; When it is detected that the target state is the same as the current on / off state, determining that the lighting of the hard disk is completed; When it is detected that the target state is different from the current on / off state, the steps of receiving the initial lighting information of each port sent by the processor in the mainboard through the first bus and receiving the status information of the volume management device of each port sent by the processor through the second bus are returned.
6. The hard disk lighting method according to claim 1, characterized in that: After receiving the initial lighting information of each port sent by the processor in the mainboard through the first bus and receiving the status information of the volume management device of each port sent by the processor through the second bus, and before writing the status information of the volume management device of each port into the initial lighting information corresponding to each port to obtain the reconstructed lighting information, the method further includes: Determine the port corresponding to the lamp to be lit by the processor according to the received initial lighting information of each port sent by the processor through the first bus; The step of writing the status information of the volume management device of each port into the initial lighting information corresponding to each port to obtain the reconstructed lighting information includes: Acquire status information of a volume management device of a port corresponding to a light to be turned on by the processor; The status information of the volume management device of the port corresponding to the lamp to be lit by the processor is written into the initial lighting information corresponding to the port corresponding to the lamp to be lit by the processor to obtain the reconstructed lighting information.
7. A method for lighting a hard disk, characterized in that: The second controller applied to the backplane, the method comprises: Receive each reconstructed lighting information sent by each first interface on the mainboard through the corresponding second interface on the backplane; wherein the reconstructed lighting information is the first controller in the mainboard receiving the initial lighting information of each port sent by the processor in the mainboard through the first bus and receiving the status information of the volume management device of each port sent by the processor through the second bus; the status information of the volume management device of each port is written into the initial lighting information corresponding to each port; each reconstructed lighting information received by each first interface on the mainboard is sent through the multiple signal lines separated by the multiplexer in the mainboard; the first interface corresponds to the second interface one by one, and a group of the first interface and the second interface corresponds to one signal line, and all the signal lines are connected to an input-output expander with the same address; Parsing the address of the unique input / output expander, and acquiring the lighting information of the hard disk and the status information of the volume management device from the reconstructed lighting information; When it is detected that the state of the volume management device is turned on, the hard disk light is turned on according to the hard disk light-on information.
8. A hard disk lighting system, characterized in that: include: A main board and a back board, wherein the main board includes a first controller, a processor, a multiplexer and a first interface; and the back board includes a second controller and a second interface; The processor is connected to the input terminal of the first controller via a first bus and a second bus; The input end of the multiplexer is connected to the output end of the first controller; The output end of the multiplexer is connected to the input end of each of the first interfaces respectively; The output end of each of the first interfaces is connected to the input end of each of the second interfaces, and the first interfaces are connected to the second interfaces in a one-to-one correspondence, and a group of the first interfaces and the second interfaces corresponds to one signal line; an input-output expander with the same address is connected to all the signal lines; The output end of each of the second interfaces is connected to the second controller; The processor is used for sending initial lighting information of each port to the first controller through the first bus and sending status information of the volume management device of each port to the first controller through the second bus; The first controller is used to receive the initial lighting information of each port sent by the processor in the mainboard through the first bus and receive the status information of the volume management device of each port sent by the processor through the second bus; write the status information of the volume management device of each port into the initial lighting information corresponding to each port to obtain the reconstructed lighting information; and send each of the reconstructed lighting information to each first interface on the mainboard through the multiplexed signal lines separated by the multiplexer in the mainboard; The second controller is used to receive the reconstructed lighting information sent by the first interfaces on the main board through the corresponding second interfaces on the backplane; parse the address of the unique input and output expander, and obtain the lighting information of the hard disk and the status information of the volume management device from the reconstructed lighting information; and when it is detected that the status of the volume management device is on, light up the hard disk light according to the lighting information of the hard disk.
9. A hard disk lighting device, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the hard disk lighting method as described in any one of claims 1 to 6 when executing the computer program.
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 hard disk lighting method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Hardware control system, method and device, storage medium and electronic equipment
CN120045488A
Lighting control system, lighting control method, electronic device, medium and product
CN120091485A
Hard disk control circuit, method, equipment, medium and program product
CN120353734A
Hard disk control circuit, method, device, medium and program product
CN120353734B
