Information sending method and device, storage medium and electronic equipment
Obtain and monitor the backplane status through CPLD and communicate with the motherboard BMC, realizing the decoupling design of the BMC and the backplane, solving the problem of the motherboard BMC design logic relying on the backplane logic, improving development efficiency and hard disk support capabilities, and promptly informing The BMC backplane is faulty.
Patent Information
- Application Number
- CN202410703733.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-08-30
AI Technical Summary
The design logic of the motherboard BMC is highly dependent on the backplane design logic of the server, resulting in low development efficiency and difficulty in adapting to different backplane configurations. In particular, frequent adaptation is required when the backplane solution changes, which reduces development efficiency.
Obtain backplane status information through the complex programmable logic device CPLD in the server backplane, and send instruction information through the GPIO interface between the CPLD and the motherboard BMC to achieve decoupling design between the BMC and the backplane and avoid BMC adaptation development , and use the rich IO resources of CPLD to support more hard drives and monitor backplane status in real time.
It realizes the decoupling design between BMC and backplane, reduces BMC adaptation development requirements, improves development efficiency, and promptly notifies BMC backplane failures through real-time monitoring of CPLD, improving the number of hard drives and functional complexity. Support capabilities.
Smart Images

Figure CN118568032A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computers, and more specifically, to an information sending method and device, a storage medium, and an electronic device. Background Art
[0002] In recent years, the pace of digital society construction has accelerated, the Internet penetration rate and user scale have risen sharply, the demand for big data storage has become increasingly greater, and more and more companies have customized server products suitable for themselves from server manufacturers based on their own needs, which has promoted the rapid development of the server industry. In order to shorten the product development cycle and develop products that can meet customer needs more quickly, server manufacturers are gradually moving towards decoupled development.
[0003] The backplane is an indispensable component in the server architecture design. Its main function is to support the connection between the motherboard and the storage device, and provide a data transmission channel for the supported motherboard. The backplane can be divided into 2-port backplane, 4-port backplane, 8-port backplane, 10-port backplane, 12-port backplane, 24-port backplane, 32-port backplane, 48-port backplane, etc. according to the number of hard disk ports. Server manufacturers can provide server products to customers with backplanes with different port numbers according to customer needs. In the current existing solutions, the baseboard management controller (Baseboard Management Controller, referred to as BMC) of the motherboard needs to monitor the status of hard disks, complex programmable logic devices (Complex Programmable Logic Device, referred to as CPLD), sensors and other devices on the backplane. Due to the large number of backplane solutions, whenever the backplane solution changes, such as the change in the number of hard disks, the motherboard's BMC needs to adapt the solution, which greatly reduces the development efficiency.
[0004] With regard to the problem in the related art that the design logic of the motherboard BMC is highly dependent on the design logic of the backplane of the server, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present application provide an information sending method and device, a storage medium, and an electronic device to at least solve the problem that the design logic of the mainboard BMC is highly dependent on the design logic of the backplane of the server.
[0006] According to one embodiment of the present application, a method for sending information is provided, comprising: obtaining backplane status information of a backplane through a complex programmable logic device (CPLD) in a backplane of a server; determining the status of the backplane through the backplane status information, and when the status of the backplane is abnormal, sending indication information to the baseboard management controller (BMC) of a mainboard through a first general purpose input / output (GPIO) interface between the CPLD and the BMC, wherein the indication information is used to instruct the BMC to read the backplane status information of the backplane.
[0007] In an exemplary embodiment, the backplane status information of the backplane is obtained through the complex programmable logic device CPLD in the backplane of the server, including: obtaining the connection status of the pins in the target connector in the backplane through the second GPIO interface to determine the in-place status of the backplane cable connected to the backplane, wherein the second GPIO interface is a GPIO interface for the CPLD to communicate with the target connector, and the target connector is used to connect the backplane to the mainboard; and / or obtaining the output voltage of the voltage regulator VR chip in the backplane through the third GPIO interface, wherein the VR chip is used to convert the voltage transmitted from the mainboard to the backplane, and the third GPIO interface is a GPIO interface for the CPLD to communicate with the target connector. The VR chip communicates with the GPIO interface; and / or obtains the in-place status of the hard disk in the backplane through the fourth GPIO interface, wherein the fourth GPIO interface is the GPIO interface for the CPLD to communicate with the hard disk; and / or obtains the backplane temperature detected by the temperature sensor in the backplane through the first serial communication bus I2C bus, wherein the first I2C bus is an I2C bus for the backplane to communicate with the components in the backplane with the I2C bus transmission function; and / or obtains the status information of the hard disk in the backplane through the first I2C bus, wherein, in the case where there are multiple hard disks in the backplane, the multiple hard disks in the backplane are mounted to the first I2C bus through a channel switching chip.
[0008] In an exemplary embodiment, determining the status of the backplane through the backplane status information includes: when the backplane status information includes the in-place status of the backplane cable, and the in-place status of the backplane cable is used to indicate that the backplane cable is not in place, determining that the status of the backplane is an abnormal state; and / or when the backplane status information includes the output voltage of the VR chip, and the voltage fluctuation of the output voltage exceeds a first preset threshold, determining that the status of the backplane is an abnormal state; and / or when the backplane status information includes the in-place status of the hard disk, and the in-place status of the hard disk is used to indicate that the hard disk is not in place, determining that the status of the backplane is an abnormal state; and / or when the backplane status information includes the backplane temperature, and the backplane temperature exceeds a second preset threshold, determining that the status of the backplane is an abnormal state; and / or when the backplane status information includes the status information of the hard disk, and the status information of the hard disk is used to indicate that the hard disk reports an error, determining that the status of the backplane is an abnormal state.
[0009] In an exemplary embodiment, before sending indication information to the baseboard management controller BMC of the mainboard through the first general input / output GPIO interface between the CPLD and the BMC, the method also includes: when the state of the backplane is an abnormal state, determining the storage partition of the backplane status information in the flash memory FLASH of the backplane according to the information type of the backplane status information; and storing the backplane status information in the corresponding storage partition of the FLASH through the CPLD.
[0010] In an exemplary embodiment, after sending indication information to the BMC through the first general input / output GPIO interface between the CPLD and the baseboard management controller BMC of the mainboard, the method further includes: obtaining an acquisition instruction sent by the BMC through a second I2C bus, wherein the acquisition instruction is used to indicate the acquisition of backplane status information of the backplane, and the second I2C bus is an I2C bus for communication between the backplane and the BMC; sending the backplane status information stored in the FLASH of the backplane to the BMC through the second I2C bus, wherein when the status of the backplane is an abnormal state, the backplane status information is stored in the FLASH.
[0011] In an exemplary embodiment, after obtaining the backplane status information of the backplane through the complex programmable logic device CPLD in the backplane of the server, the method further includes: when the backplane status information of the backplane is the initial status information first obtained by the CPLD after connecting to the power supply, sending the indication information to the BMC through the first GPIO interface.
[0012] In an exemplary embodiment, the method further includes: obtaining a lighting instruction sent by the BMC through a second I2C bus, wherein the second I2C bus is an I2C bus for the backplane to communicate with the BMC, and the lighting instruction is used to instruct to light up a target status light in the backplane, and when the target status light is on, the target hard disk in the backplane is in a target state; sending a control instruction to the target status light through a fifth GPIO interface, wherein the control instruction is used to light up the target status light.
[0013] According to another embodiment of the present application, an information sending device is also provided, including: an acquisition module, used to acquire backplane status information of the backplane through a complex programmable logic device CPLD in the backplane of the server; a sending module, used to determine the status of the backplane through the backplane status information, and when the status of the backplane is abnormal, send indication information to the baseboard management controller BMC of the mainboard through the first general input / output GPIO interface between the CPLD and the BMC, wherein the indication information is used to instruct the BMC to read the backplane status information of the backplane.
[0014] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0015] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0016] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0017] Through this application, the backplane is monitored by CPLD in the backplane, and the CPLD communicates with the mainboard BMC separately, realizing the decoupling design between BMC and backplane, and thus there is no need to adapt and develop BMC, solving the problem that the design logic of the mainboard BMC is highly dependent on the design logic of the server's backplane. In addition, since CPLD has richer IO resources, the number of hard disks that can be supported by the backplane is greater. In addition, when the state of the backplane is abnormal, the GPIO interface between CPLD and the mainboard BMC sends indication information to BMC, so that the BMC can be informed in time that there is a fault in the backplane. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0019] Figure 1 It is a hardware structure block diagram of a server device of an information sending method according to an embodiment of the present application;
[0020] Figure 2 It is a schematic diagram of the topological structure of a server backplane in the related art;
[0021] Figure 3 It is a schematic diagram of the topological structure of another server backplane in the related art;
[0022] Figure 4 is a flow chart of a method for sending information according to an embodiment of the present application (I);
[0023] Figure 5 is a schematic diagram of a topological structure of a server backplane according to an embodiment of the present application;
[0024] Figure 6 It is a schematic diagram of the implementation principle of the internal logic of a CPLD according to an embodiment of the present application;
[0025] Figure 7 is a flow chart of a method for sending information according to an embodiment of the present application (II);
[0026] Figure 8 is a structural block diagram of an information sending device according to an embodiment of the present application;
[0027] Fig. 9 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0028] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0030] The information sending method embodiment provided in the embodiment of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of an information sending method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0031] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the information sending method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0032] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0033] For better understanding, Figure 2 The topological structure diagram of a server backplane in the related art is shown as follows: Figure 3As shown in the figure, the motherboard BMC accesses the Sensor, Electrically Erasable Programmable Read-Only Memory (EEPROM), CPLD, NVME hard disk and other devices in the backplane through the I2C bus. Due to the differences in the number of hard disks and the type and address of I2C devices in different backplane designs, the BMC needs to be re-adapted every time the backplane configuration is changed, which prolongs the development cycle and reduces the development efficiency. It should be noted that NVME (Non-Volatile Memory Express) is a non-volatile memory host controller interface specification.
[0034] It should be noted that Figure 3 FIG. 4 shows another topological structure diagram of a server backplane in the related art. Figure 3 As shown in the figure, the scheme realizes the decoupling design of the backplane and the motherboard BMC. The microcontroller unit (MCU) is used as the main control chip of the backplane to perform functions such as voltage acquisition, NVME hard disk status reading, and backplane status information storage, and can communicate data with the motherboard BMC through the I2C bus. First of all, although the scheme realizes the decoupling development of the server backplane and the motherboard BMC, the scheme uses the MCU as the main control chip, and integrates the functions of the temperature sensor, EEPROM, I2C SWITCH and other devices on the backplane into the MCU. Although the MCU has better programming performance and rich user functions, its IO interface resources and operation stability are poor. Due to the limitation of its IO interface resources, the MCU is difficult to be applied to the server backplane with a large number of hard disks and more complex functions. Secondly, the solution does not specify when to inform the BMC when an abnormality occurs in the backplane. Since there are many devices connected to the I2C bus of the motherboard BMC, the BMC will not monitor the I2C bus of the backplane in real time in the current design. Generally, it uses polling to read the information of the connected devices. When the backplane status is abnormal, it is important to promptly inform the BMC to read the backplane status information for timely troubleshooting and resolution of backplane faults.
[0035] In other words, the design of traditional server backplanes does not have the idea of decoupled development. Since the motherboard BMC code is deeply tied to the backplane solution, when the backplane solution changes or the configuration changes, the motherboard BMC needs to constantly change the solution or modify the code for adaptation, which greatly reduces the efficiency of new product development. In addition, the backplane using MCU as the main control chip has certain limitations, including limited IO resources and limited working stability, and is difficult to apply to backplanes with a large number of hard disks and complex functions. Furthermore, the related technology still has the problem of not being able to inform the motherboard BMC in time when the backplane hard disk fails.
[0036] In order to solve the above problems, this embodiment provides an information sending method, including but not limited to being applied in the backplane of the server, such as Figure 4 As shown, the process includes the following steps S402-S404:
[0037] Step S402: obtaining backplane status information of the backplane through a complex programmable logic device CPLD in the backplane of the server;
[0038] Step S404: Determine the status of the backplane through the backplane status information, and when the status of the backplane is abnormal, send indication information to the BMC through a first general-purpose input / output (GPIO) interface between the CPLD and the baseboard management controller BMC of the mainboard, wherein the indication information is used to instruct the BMC to read the backplane status information of the backplane.
[0039] Optionally, the first GPIO interface is Figure 5 GPIO_6 in .
[0040] In the above steps, the backplane is managed by CPLD in the backplane, and the CPLD communicates with the mainboard BMC separately, realizing the decoupling design between the BMC and the backplane, thereby eliminating the need for adaptation and development of the BMC, and solving the problem that the design logic of the mainboard BMC is highly dependent on the design logic of the server's backplane. In addition, since CPLD has richer IO resources, the backplane can support more hard disks. In addition, when the backplane is in an abnormal state, the GPIO interface between the CPLD and the mainboard BMC sends indication information to the BMC, so that the BMC can be informed in time that there is a fault in the backplane.
[0041] In an exemplary embodiment, the above step S402 includes: step S11, and / or step S12, and / or step S13, and / or step S14, and / or step S15:
[0042] Step S11: acquiring the connection status of the pins in the target connector in the backplane through the second GPIO interface to determine the in-position status of the backplane cable connected to the backplane, wherein the second GPIO interface is a GPIO interface for the CPLD to communicate with the target connector, and the target connector is used to connect the backplane to the mainboard;
[0043] Optionally, the second GPIO interface is Figure 5 The target connector is GPIO_5 in Figure 5 Cable CONN is a connector for connecting the backplane and the mainboard cable. The CPLD monitors the in-position PIN of the connector through the GPIO interface to obtain the in-position status of the cable.
[0044] Step S12: obtaining the output voltage of a voltage regulator (VR) chip in the backplane through a third GPIO interface, wherein the VR chip is used to convert the voltage transmitted from the mainboard to the backplane, and the third GPIO interface is a GPIO interface for the CPLD to communicate with the VR chip;
[0045] Optionally, the third GPIO interface is Figure 5 In GPIO_4, the VR chip is a voltage conversion chip used to convert the voltage transmitted from the motherboard to the backplane into the voltage required by the backplane components. The CPLD obtains the output voltage of the VR chip through the second GPIO interface, and then processes the obtained output voltage through the internal analog-to-digital conversion module.
[0046] Step S13: acquiring the in-place status of the hard disk in the backplane through the fourth GPIO interface, wherein the fourth GPIO interface is a GPIO interface for the CPLD to communicate with the hard disk;
[0047] Optionally, the fourth GPIO interface is Figure 5 GPIO_3 in the figure means that the CPLD can obtain the status of each hard disk through the GPIO interface.
[0048] Step S14: acquiring the backplane temperature detected by the temperature sensor in the backplane through a first serial communication bus I2C bus, wherein the first I2C bus is an I2C bus for the backplane to communicate with a component in the backplane having an I2C bus transmission function;
[0049] Optionally, the first I2C bus is Figure 5 I2C_3 in Figure 5 The Thermal Sensor in is a temperature sensor used to monitor the backplane temperature.
[0050] Step S15: Acquire status information of the hard disk in the backplane through the first I2C bus, wherein, in the case where there are multiple hard disks in the backplane, the multiple hard disks in the backplane are mounted to the first I2C bus through a channel switching chip.
[0051] Optionally, Figure 5 The I2C SWITCH in the CPLD is a channel switching chip. Since the I2C addresses of hard disks of the same model are consistent, in order to avoid address conflicts, the I2C SWITCH is used to switch the hard disk I2C channel so that only one hard disk is mounted on the I2C channel of the CPLD at the same time.
[0052] Optionally, Figure 5 The FRU (Field Replaceable Unit) on the backplane is a storage chip used to store information such as the board manufacturer and serial number.
[0053] Alternatively, if Figure 5 As shown, the hardware connection between the backplane CPLD and the mainboard BMC includes an I2C bus and a GPIO. The I2C bus is used to realize data transmission between the backplane CPLD and the mainboard BMC. The function of the additional GPIO signal is to actively pull down the GPIO to inform the BMC in time when the CPLD detects an abnormal state of the backplane.
[0054] Alternatively, if Figure 5 As shown in the figure, based on the server backplane topology structure using CPLD as the main control chip, the device with I2C bus transmission function on the backplane can be mounted under the I2C bus of CPLD. At the same time, with the rich IO resources of CPLD, the in-situ monitoring of various pluggable devices on the backplane, the control of status indicator lights, and the monitoring of voltage can be realized. Then the decoupling design of the upstream and BMC is realized, and the overall management of the backplane is realized downstream.
[0055] In this embodiment, the CPLD obtains the backplane status information of the backplane through the above method, thereby realizing the overall management of the backplane.
[0056] In an exemplary embodiment, the above-mentioned determining the status of the backplane through the backplane status information includes: when the backplane status information includes the in-place status of the backplane cable, and the in-place status of the backplane cable is used to indicate that the backplane cable is not in place, determining that the status of the backplane is an abnormal state; and / or when the backplane status information includes the output voltage of the VR chip, and the voltage fluctuation of the output voltage exceeds a first preset threshold, determining that the status of the backplane is an abnormal state; and / or when the backplane status information includes the in-place status of the hard disk, and the in-place status of the hard disk is used to indicate that the hard disk is not in place, determining that the status of the backplane is an abnormal state; and / or when the backplane status information includes the backplane temperature, and the backplane temperature exceeds a second preset threshold, determining that the status of the backplane is an abnormal state; and / or when the backplane status information includes the status information of the hard disk, and the status information of the hard disk is used to indicate that the hard disk reports an error, determining that the status of the backplane is an abnormal state.
[0057] In this embodiment, the CPLD can accurately determine the status of the backplane through the above method.
[0058] In an exemplary embodiment, before sending the indication information to the baseboard management controller BMC of the mainboard through the first general purpose input / output GPIO interface between the CPLD and the BMC, the method further includes the following steps S21-S22:
[0059] Step S21: when the state of the backplane is abnormal, determining the storage partition of the backplane state information in the flash memory (FLASH) of the backplane according to the information type of the backplane state information;
[0060] Optionally, the information type includes but is not limited to: temperature data type, voltage data type, etc.
[0061] Step S22: storing the backplane status information in a corresponding storage partition of the FLASH through the CPLD.
[0062] Optionally, a portion of the internal FLASH of the CPLD is used to store the bit stream required for the CPLD I2C upgrade, and another portion can be used to store user data. Through the internal logic of the CPLD, the partition management of the FLASH is realized, and the FLASH is divided into multiple module areas. As shown in Table 1, the FLASH can be divided into 5 partitions to realize the storage and recording of different data respectively.
[0063] Table 1
[0064]
[0065] In this embodiment, different types of backplane status information are stored in different storage partitions of FLASH, thereby improving storage efficiency.
[0066] In an exemplary embodiment, after sending the indication information to the baseboard management controller BMC of the mainboard through the first general purpose input / output GPIO interface between the CPLD and the BMC, the method further includes the following steps S31-S32:
[0067] Step S31: acquiring an acquisition instruction sent by the BMC through a second I2C bus, wherein the acquisition instruction is used to instruct acquisition of backplane status information of the backplane, and the second I2C bus is an I2C bus for the backplane to communicate with the BMC;
[0068] Optionally, the second I2C bus is Figure 5 I2C_2 shown.
[0069] Step S32: sending the backplane status information stored in the FLASH of the backplane to the BMC via the second I2C bus, wherein when the backplane is in an abnormal state, the backplane status information is stored in the FLASH.
[0070] It should be noted that the hardware connection between the backplane CPLD and the mainboard BMC in this application includes an I2C bus and a GPIO. The function of the I2C bus is to realize data transmission between the backplane CPLD and the mainboard BMC. The function of the additional GPIO signal is to actively pull down the GPIO to promptly inform the BMC when the CPLD detects an abnormal state in the backplane.
[0071] In this embodiment, the BMC obtains the backplane status information from the backplane through the second I2C bus, thereby improving the speed of data acquisition.
[0072] In an exemplary embodiment, after obtaining the backplane status information of the backplane through the complex programmable logic device CPLD in the backplane of the server, the method further includes: when the backplane status information of the backplane is the initial status information first obtained by the CPLD after connecting to the power supply, sending the indication information to the BMC through the first GPIO interface.
[0073] Optionally, after obtaining the initial state information of the backplane, the CPLD will store the initial state information in a corresponding partition in the FLASH inside the CPLD. After the action of storing the initial state information in the FLASH is completed, the CPLD will actively pull down the GPIO interface between the CPLD and the BMC to inform the BMC to read the initial state information.
[0074] In an exemplary embodiment, the method further includes the following steps S41-S42:
[0075] Step S41: acquiring a light-on instruction sent by the BMC through a second I2C bus, wherein the second I2C bus is an I2C bus for the backplane to communicate with the BMC, and the light-on instruction is used to instruct to light up a target status light in the backplane, and when the target status light is on, the target hard disk in the backplane is in a target state;
[0076] Step S42: sending a control instruction to the target status light through the fifth GPIO interface, wherein the control instruction is used to light up the target status light.
[0077] That is to say, the CPLD can control the backplane hard disk LED status light by receiving and parsing the lighting information sent by the BMC.
[0078] In this embodiment, the BMC can indicate the status of the backplane hard disk through the above method.
[0079] In an exemplary embodiment, the method further includes: obtaining configuration information sent by the BMC through the second I2C bus, and modifying the working logic of the CPLD according to the configuration information, wherein the configuration information includes the working logic of the CPLD configured by the target object, and the working logic includes but is not limited to the judgment logic of the CPLD judging the backplane status of the backplane.
[0080] In this embodiment, the working logic of the CPLD can be quickly modified through the above method.
[0081] Obviously, the above-described embodiments are only embodiments of a part of the present invention, rather than all embodiments. In order to better understand the above method, the above process is described below in conjunction with embodiments, but it is not intended to limit the technical solutions of the embodiments of the present invention, specifically:
[0082] This application makes full use of the advantages of the richness of CPLD peripheral resources and the diversity of functions. On the one hand, it can increase the functions of the backplane, and on the other hand, it can also improve the development efficiency of code developers. Figure 6 The schematic diagram of the implementation principle of the internal logic of CPLD is shown.
[0083] 1. CPLD management of backplane:
[0084] like Figure 6As shown in the figure, CPLD directly accesses FRU, ThermalSensor, hard disk and other devices mounted under the I2C bus through the I2C Master module to obtain information such as board information, backplane temperature, hard disk status, etc., to manage the backplane hard disk. Since the amount of information transmitted to CPLD by each hard disk through the I2C bus is large, CPLD will first perform logical processing to selectively retain important information and store the information in the internal FLASH in a timely manner.
[0085] CPLD can obtain the output voltage signal of the voltage conversion chip through the GPIO interface. The obtained signal is logically judged after passing through the internal ADC (analog-to-digital conversion) module. When the voltage fluctuation exceeds the set threshold, the voltage situation can be stored in the internal FLASH.
[0086] CPLD can obtain the hard disk presence status through the GPIO interface. The obtained signal is logically judged after passing through the internal HDD PresentDetect Module. When the hard disk presence status changes, the change can be recorded in the internal FLASH.
[0087] CPLD can obtain the cable presence status through the GPIO interface. The obtained signal is passed through the internal CablePresent Detect Module for logical judgment. When the cable presence status changes, the change can be recorded in the internal FLASH.
[0088] 2. Decoupling design of BMC and backplane:
[0089] BMC communicates with the backplane CPLD through one I2C bus and one GPIO, which greatly reduces the number of I2C devices directly mounted under the BMC. The function of the I2C bus is to realize data transmission between the backplane CPLD and the mainboard BMC. The function of adding an additional GPIO signal is to actively pull down the GPIO when the CPLD detects an abnormal state of the backplane to inform the BMC in time. At this time, the BMC will send instructions to the CPLD to read the log information stored in the FLASH inside the CPLD. A complete I2C interaction document is defined between the backplane CPLD and the BMC to achieve coverage of all types of backplane interaction data. The BMC only needs to implement a set of codes to complete the functional adaptation of all types of backplanes. As shown in Table 2, this is a schematic diagram of the I2C interaction data. The address can be expanded according to actual needs. This table only takes the maximum 48-port backplane as an example.
[0090] Table 2
[0091]
[0092] For better understanding, Figure 7 is a flow chart of a method for sending information according to an embodiment of the present application (II), and the following is combined with Figure 7 The monitoring and control strategy of the present invention is further described:
[0093] (1) After the backplane is powered on and the CPLD is successfully loaded, it releases its reset state and waits for about 500ms. Then, as the I2C Master, the CPLD sequentially reads the I2C devices on the backplane to obtain the initial state of the backplane and stores the relevant information in the corresponding partition of the CPLD's internal FLASH. After the backplane initial state data is stored in the FLASH, the CPLD will actively pull down the GPIO interface between the CPLD and the BMC to inform the BMC to read the backplane initial state. When the BMC successfully reads the backplane initial state, the CPLD clears the internal FLASH and reserves space for storing the backplane log in the abnormal state.
[0094] (2) After the initial status of the backplane is reported, the CPLD obtains the status of the hard disk and cable and the voltage status of the VR through the GPIO interface, and obtains the relevant status of the temperature sensor and hard disk through the I2C bus. When the backplane has a disk plug-in or unplug action, the cable status changes, the VR voltage exceeds the threshold, the backplane temperature is abnormal, the hard disk reports an error, and other related states, the log of the current state will be recorded. After the log recording is completed, it will be stored in the FLASH. Then the CPLD will actively pull down the GPIO interface between the CPLD and the BMC to inform the BMC to read the data. When the BMC successfully reads the data, the CPLD clears the internal FLASH.
[0095] It should be noted that the present application implements a decoupling design between the BMC and the backplane. After changing the backplane type, no adaptation development on the BMC side is required. The present application adopts CPLD as the main control chip of the decoupled design backplane. Compared with the MCU, the CPLD has richer IO resources, which enables the backplane to support more hard disks and has more stable working performance. In addition, the present application also provides a monitoring and control strategy for the decoupled design backplane, which monitors, records, and reports the overall status of the backplane in real time.
[0096] It should be noted that the present application can also be used for the decoupling design of other boards, such as fan boards, GPU boards, etc.
[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0098] In the present embodiment, a kind of information sending device is also provided, and is used to realize the above-mentioned embodiment and preferred implementation mode, and the description that has been made is not repeated. As used below, the term "module" can realize the combination of software and / or hardware of predetermined function. Although the module described in the following embodiment is preferably realized by software, the realization of hardware, or the combination of software and hardware is also possible and conceived.
[0099] Figure 8 is an information sending device according to an embodiment of the present application, such as Figure 8 As shown, the information sending device includes:
[0100] An acquisition module 802 is used to acquire backplane status information of the backplane through a complex programmable logic device CPLD in the backplane of the server;
[0101] The sending module 804 is used to determine the status of the backplane through the backplane status information, and when the status of the backplane is abnormal, send indication information to the BMC through the first general input / output GPIO interface between the CPLD and the baseboard management controller BMC of the mainboard, wherein the indication information is used to instruct the BMC to read the backplane status information of the backplane.
[0102] The above device manages the backplane through CPLD in the backplane, and communicates with the mainboard BMC separately through CPLD, realizing the decoupling design between BMC and backplane, and thus there is no need to adapt and develop BMC, solving the problem that the design logic of the mainboard BMC is highly dependent on the design logic of the server's backplane. In addition, since CPLD has richer IO resources, the number of hard disks that can be supported by the backplane is greater. In addition, when the state of the backplane is abnormal, the GPIO interface between CPLD and the mainboard BMC sends indication information to BMC, so that the BMC can be informed in time that there is a fault in the backplane.
[0103] In an exemplary embodiment, the acquisition module 802 is used to acquire the connection status of the pins in the target connector in the backplane through the second GPIO interface to determine the in-place status of the backplane cable connected to the backplane, wherein the second GPIO interface is the GPIO interface for the CPLD to communicate with the target connector, and the target connector is used to connect the backplane to the mainboard; and / or acquire the output voltage of the voltage regulator VR chip in the backplane through the third GPIO interface, wherein the VR chip is used to convert the voltage transmitted from the mainboard to the backplane, and the third GPIO interface is the GPIO interface for the CPLD to communicate with the VR chip. port; and / or obtaining the in-place status of the hard disk in the backplane through a fourth GPIO interface, wherein the fourth GPIO interface is a GPIO interface for the CPLD to communicate with the hard disk; and / or obtaining the backplane temperature detected by the temperature sensor in the backplane through a first serial communication bus I2C bus, wherein the first I2C bus is an I2C bus for the backplane to communicate with a component in the backplane having an I2C bus transmission function; and / or obtaining status information of the hard disk in the backplane through the first I2C bus, wherein, in the case where there are multiple hard disks in the backplane, the multiple hard disks in the backplane are mounted to the first I2C bus through a channel switching chip.
[0104] In an exemplary embodiment, the acquisition module 802 is used to determine that the status of the backplane is an abnormal state when the backplane status information includes the in-place status of the backplane cable, and the in-place status of the backplane cable is used to indicate that the backplane cable is not in place; and / or when the backplane status information includes the output voltage of the VR chip, and the voltage fluctuation of the output voltage exceeds a first preset threshold, determine that the status of the backplane is an abnormal state; and / or when the backplane status information includes the in-place status of the hard disk, and the in-place status of the hard disk is used to indicate that the hard disk is not in place, determine that the status of the backplane is an abnormal state; and / or when the backplane status information includes the backplane temperature, and the backplane temperature exceeds a second preset threshold, determine that the status of the backplane is an abnormal state; when the backplane status information includes the status information of the hard disk, and the status information of the hard disk is used to indicate that the hard disk reports an error, determine that the status of the backplane is an abnormal state.
[0105] In an exemplary embodiment, the device also includes: a storage module, which is used to determine the storage partition of the backplane status information in the flash memory FLASH of the backplane according to the information type of the backplane status information before sending indication information to the BMC through the first general input / output GPIO interface between the CPLD and the baseboard management controller BMC of the mainboard, when the state of the backplane is abnormal; and store the backplane status information in the corresponding storage partition of the FLASH through the CPLD.
[0106] In an exemplary embodiment, the device is also used for: a processing module, which is used to send indication information to the baseboard management controller BMC of the mainboard through the first general input / output GPIO interface between the CPLD and the BMC, and then obtain the acquisition instruction sent by the BMC through the second I2C bus, wherein the acquisition instruction is used to indicate the acquisition of backplane status information of the backplane, and the second I2C bus is the I2C bus for the backplane to communicate with the BMC; send the backplane status information stored in the FLASH of the backplane to the BMC through the second I2C bus, wherein when the status of the backplane is an abnormal state, the backplane status information is stored in the FLASH.
[0107] In an exemplary embodiment, the sending module 804 is also used to send the indication information to the BMC through the first GPIO interface after obtaining the backplane status information of the backplane through the complex programmable logic device CPLD in the backplane of the server, when the backplane status information of the backplane is the initial status information first obtained by the CPLD after connecting to the power supply.
[0108] In an exemplary embodiment, the processing module is also used to obtain a light-on instruction sent by the BMC through a second I2C bus, wherein the second I2C bus is an I2C bus for the backplane to communicate with the BMC, and the light-on instruction is used to instruct to light up a target status light in the backplane, and when the target status light is on, the target hard disk in the backplane is in a target state; and a control instruction is sent to the target status light through a fifth GPIO interface, wherein the control instruction is used to light up the target status light.
[0109] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0110] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0111] Optionally, in this embodiment, the computer program may be configured to perform the following steps by means of the computer program:
[0112] S1, obtaining backplane status information of the backplane through a complex programmable logic device CPLD in the backplane of the server;
[0113] S2, determining the state of the backplane through the backplane state information, and when the state of the backplane is abnormal, sending indication information to the BMC through the first general input / output GPIO interface between the CPLD and the baseboard management controller BMC of the mainboard, wherein the indication information is used to instruct the BMC to read the backplane state information of the backplane.
[0114] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0115] The embodiment of the present application also provides an electronic device, such as Fig. 9 As shown, the electronic device includes a memory 902 and a processor 904. The memory 902 stores a computer program, and the processor 904 is configured to execute the steps in any of the above method embodiments through the computer program.
[0116] Optionally, in this embodiment, the processor 904 may be configured to perform the following steps through a computer program:
[0117] S1, obtaining backplane status information of the backplane through a complex programmable logic device CPLD in the backplane of the server;
[0118] S2, determining the state of the backplane through the backplane state information, and when the state of the backplane is abnormal, sending indication information to the BMC through the first general input / output GPIO interface between the CPLD and the baseboard management controller BMC of the mainboard, wherein the indication information is used to instruct the BMC to read the backplane state information of the backplane.
[0119] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0120] Alternatively, a person skilled in the art may understand that: Fig. 9 The structure shown is for illustration only. Fig. 9 The structure of the electronic device is not limited. For example, the electronic device may also include Fig. 9 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig. 9 Different configurations are shown.
[0121] Among them, the memory 902 can be used to store software programs and modules, such as the program instructions / modules corresponding to the information sending method and the information sending device in the embodiments of the present application. The processor 904 executes various functional applications and data processing by running the software programs and modules stored in the memory 902, that is, realizing the above-mentioned information sending method. The memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 902 may further include a memory remotely located relative to the processor 904, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 902 can be specifically, but not limited to, used to store information such as system configuration files. As an example, such as Fig. 9 As shown, the memory 902 may include but is not limited to the acquisition module 802 and the sending module 804 in the information sending device. In addition, it may also include but is not limited to other module units in the information sending device, which will not be repeated in this example.
[0122] Optionally, the transmission device 906 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 906 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 906 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0123] In addition, the electronic device further includes: a display 908; and a connection bus 910, which is used to connect various module components in the electronic device.
[0124] In other embodiments, the electronic device may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes in the form of network communication. Among them, the nodes may form a peer-to-peer (P2P) network, and any form of computing device, such as a server, terminal, or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.
[0125] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0126] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0127] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any one of the above method embodiments.
[0128] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0129] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for sending information, characterized in that: include: The backplane status information of the backplane is obtained through a complex programmable logic device (CPLD) in the backplane of the server; the status of the backplane is determined through the backplane status information, and when the status of the backplane is abnormal, indication information is sent to the baseboard management controller (BMC) of the mainboard through a first general input / output (GPIO) interface between the CPLD and the BMC, wherein the indication information is used to instruct the BMC to read the backplane status information of the backplane.
2. The method according to claim 1, characterized in that The step of obtaining the backplane status information of the backplane through a complex programmable logic device (CPLD) in the backplane of the server includes: Acquiring the connection status of the pins in the target connector in the backplane through the second GPIO interface to determine the in-place status of the backplane cable connected to the backplane, wherein the second GPIO interface is the GPIO interface for the CPLD to communicate with the target connector, and the target connector is used to connect the backplane to the mainboard; and / or obtaining an output voltage of a voltage regulator VR chip in the backplane through a third GPIO interface, wherein the VR chip is used to convert the voltage transmitted from the mainboard to the backplane, and the third GPIO interface is a GPIO interface for the CPLD to communicate with the VR chip; and / or Acquiring the in-place status of the hard disk in the backplane through a fourth GPIO interface, wherein the fourth GPIO interface is a GPIO interface through which the CPLD communicates with the hard disk; and / or Acquiring the backplane temperature detected by the temperature sensor in the backplane via a first serial communication bus I2C bus, wherein the first I2C bus is an I2C bus for communicating between the backplane and a component in the backplane having an I2C bus transmission function; and / or The status information of the hard disk in the backplane is obtained through the first I2C bus, wherein, in the case that there are multiple hard disks in the backplane, the multiple hard disks in the backplane are mounted to the first I2C bus through a channel switching chip.
3. The method according to claim 2, characterized in that The determining the state of the backplane by using the backplane state information includes: In a case where the backplane status information includes the in-place status of the backplane cable, and the in-place status of the backplane cable is used to indicate that the backplane cable is not in place, determining that the state of the backplane is an abnormal state; and / or In a case where the backplane status information includes the output voltage of the VR chip and the voltage fluctuation of the output voltage exceeds a first preset threshold, determining that the state of the backplane is an abnormal state; and / or In a case where the backplane status information includes the in-place status of the hard disk, and the in-place status of the hard disk is used to indicate that the hard disk is not in-place, determining that the status of the backplane is an abnormal status; and / or In a case where the backplane status information includes the backplane temperature and the backplane temperature exceeds a second preset threshold, determining that the state of the backplane is an abnormal state; and / or In a case where the backplane status information includes status information of the hard disk, and the status information of the hard disk is used to indicate that the hard disk reports an error, it is determined that the status of the backplane is an abnormal status.
4. The method according to claim 1, characterized in that: Before sending the indication information to the BMC through the first general purpose input / output (GPIO) interface between the CPLD and the baseboard management controller (BMC) of the mainboard, the method further comprises: In the case that the state of the backplane is an abnormal state, determining the storage partition of the backplane state information in the flash memory FLASH of the backplane according to the information type of the backplane state information; The backplane status information is stored in the corresponding storage partition of the FLASH through the CPLD.
5. The method according to claim 1, characterized in that After sending the indication information to the baseboard management controller BMC of the mainboard through the first general purpose input / output (GPIO) interface between the CPLD and the BMC, the method further includes: Acquire an acquisition instruction sent by the BMC through a second I2C bus, wherein the acquisition instruction is used to instruct acquisition of backplane status information of the backplane, and the second I2C bus is an I2C bus for the backplane to communicate with the BMC; The backplane status information stored in the FLASH of the backplane is sent to the BMC via the second I2C bus, wherein when the backplane is in an abnormal state, the backplane status information is stored in the FLASH.
6. The method according to claim 1, characterized in that After obtaining the backplane status information of the backplane through the complex programmable logic device CPLD in the backplane of the server, the method further includes: In a case where the backplane state information of the backplane is initial state information first acquired by the CPLD after being connected to a power source, the indication information is sent to the BMC through the first GPIO interface.
7. The method according to claim 1, characterized in that The method further comprises: Obtaining a light-on instruction sent by the BMC through a second I2C bus, wherein the second I2C bus is an I2C bus for the backplane to communicate with the BMC, and the light-on instruction is used to instruct to light up a target status light in the backplane, and when the target status light is on, the target hard disk in the backplane is in a target state; A control instruction is sent to the target status light through the fifth GPIO interface, wherein the control instruction is used to light up the target status light.
8. An information sending device, characterized in that: include: An acquisition module, used for acquiring backplane status information of the backplane through a complex programmable logic device CPLD in the backplane of the server; A sending module is used to determine the state of the backplane through the backplane state information, and when the state of the backplane is abnormal, send indication information to the BMC through the first general input / output GPIO interface between the CPLD and the baseboard management controller BMC of the mainboard, wherein the indication information is used to instruct the BMC to read the backplane state information of the backplane.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Hard disk backboard structure, control method thereof and server
CN118899007A
A hard disk backplane structure and control method thereof, and server
CN118899007B
Reset signal sending method, storage medium, electronic equipment and computer program product
CN119232261A
