Server bus fault isolation circuit and method
By using controllers, multiplexers and switch tubes in the server bus fault isolation circuit, the physical isolation of the fault channel is achieved, the problem of fault diffusion is solved, and the communication reliability of the I2C bus is improved.
Patent Information
- Application Number
- CN202410977020.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-10
AI Technical Summary
The existing technology cannot avoid fault propagation when dealing with server bus faults, causing multiple I2C links to fail to communicate normally.
A server bus fault isolation circuit is designed, including a controller, a first multiplexer, a pull-up circuit, an OR gate and a switch tube. The controller determines the fault channel and physically disconnects the channel to avoid fault spread.
It effectively avoids fault diffusion, improves the reliability of I2C bus communication, and achieves accurate location and isolation of fault channels.
Smart Images

Figure CN118626427A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a server bus fault isolation circuit and method. Background Art
[0002] With the continuous development of the server industry, current servers support more and more functions and higher performance. However, the normal operation of the server is inseparable from the monitoring of the server operation status by the baseboard management controller (BMC), such as component temperature monitoring and component in-place status monitoring. In addition, the BMC needs to communicate with the various components on the server to realize its monitoring function, and currently this communication mostly relies on the Inter-Integrated Circuit (I2C) bus. Therefore, when the I2C bus is abnormal, the BMC will not be able to monitor the components normally, resulting in problems such as overheating, which may cause the server to crash in severe cases.
[0003] At present, in order to solve the communication abnormality problem of the I2C bus, the related technology mainly sends a pulse signal to the clock line (SCL) in the I2C bus when the I2C bus is hung, so as to try to restore communication.
[0004] However, due to the communication mechanism of the I2C bus, when an I2C link is abnormal, the fault may spread, causing multiple I2C links to fail to communicate normally. The above I2C bus communication abnormality handling solution only attempts to repair the I2C bus by inputting a pulse signal, which cannot solve the fault propagation problem of the I2C bus.
[0005] Therefore, technicians in this field are in urgent need of a server bus fault isolation circuit to solve the problem that traditional solutions cannot avoid fault propagation when handling server bus faults. Summary of the invention
[0006] The purpose of the present invention is to provide a server bus fault isolation circuit and method, which are used to solve the problem that the traditional solution cannot avoid the fault spreading when processing the server bus fault.
[0007] In order to solve the above technical problems, the present invention provides a server bus fault isolation circuit, comprising: a controller, a first multiplexer, a pull-up circuit, an OR gate and a switch tube;
[0008] The controller is connected to the enable control terminal and the selection control terminal of the first multiplexer; the input terminal of the first multiplexer is grounded; each output terminal of the first multiplexer is connected to the pull-up circuit, and each output terminal of the first multiplexer corresponds to each channel of the server bus one by one;
[0009] The switch tubes correspond to the channels one by one, and each switch tube is arranged in the corresponding channel;
[0010] The OR gate corresponds one-to-one to each channel of the server bus; one input end of the OR gate is connected to the signal output from the corresponding channel to the source of the switch tube, and the other input end of the OR gate is connected to the output end corresponding to the first multiplexer; the output end of the OR gate is connected to the gate of the corresponding switch tube.
[0011] In a possible embodiment, it further includes: a fault detection module;
[0012] Wherein, the fault detection module includes: a second multiplexer and a third multiplexer;
[0013] The input terminals of the second multiplexer are respectively connected to the data lines of the channels of the server bus; the output terminals, the enable control terminal and the strobe control terminal of the second multiplexer are connected to the controller;
[0014] The input terminals of the third multiplexer are respectively connected to the clock lines of the channels of the server bus; the output terminal, the enable control terminal and the strobe control terminal of the third multiplexer are connected to the controller.
[0015] In a possible embodiment, the enable control terminals of the second multiplexer and the third multiplexer are used to receive the same enable control signal output by the controller;
[0016] The gating control terminals of the second multiplexer and the third multiplexer are used to receive the same gating control signal output by the controller.
[0017] In a possible embodiment, it further includes: a self-sustaining link breaking module;
[0018] The self-sustaining link breaking module comprises: a fourth multiplexer and a plurality of groups of relays and normally open contacts corresponding to each channel one by one;
[0019] The input terminal of the fourth multiplexer is connected to the positive electrode of the power supply; the enable control terminal and the strobe control terminal of the fourth multiplexer are connected to the controller; and each output terminal of the fourth multiplexer is connected to each relay in a one-to-one correspondence;
[0020] The normally open contacts corresponding to the relays are respectively arranged between the relay and the positive pole of the power supply and between the gate and source of the corresponding switch tube.
[0021] In order to solve the above technical problems, the present invention further provides a server bus fault isolation method, which is applied to the server bus fault isolation circuit as described above, comprising:
[0022] Determine whether the server bus is hung;
[0023] If not, disabling the enabling of the first multiplexer;
[0024] If yes, determining the abnormal channel of the server bus;
[0025] The enable of the first multiplexer is turned on, and the output of the first multiplexer corresponding to the abnormal channel is selected.
[0026] In a possible embodiment, the server bus fault isolation circuit further includes: a fault detection module; wherein the fault detection module includes: a second multiplexer and a third multiplexer; each input end of the second multiplexer is respectively connected to the data line of each channel of the server bus; the output end, the enable control end and the strobe control end of the second multiplexer are connected to the controller; each input end of the third multiplexer is respectively connected to the clock line of each channel of the server bus; the output end, the enable control end and the strobe control end of the third multiplexer are connected to the controller;
[0027] The determining whether the server bus is hung includes:
[0028] polling and sampling the signals transmitted in each channel of the server bus through the second multiplexer and the third multiplexer;
[0029] It is determined whether the server bus is hung according to the sampling result.
[0030] In a possible embodiment, the controller is further connected to a baseboard management controller;
[0031] The determining whether the server bus is hung according to the sampling result includes:
[0032] For any channel in the server bus:
[0033] If the signal on the data line and the signal on the clock line in the current channel are both always at a low level, it is determined that the server bus is hung in the current channel;
[0034] If the signal on the data line in the current channel is always at a low level, and the signal on the clock line is always at a high level, it is determined that the server bus is hung in the current channel;
[0035] If the signal on the data line in the current channel is always at a high level, and the signal on the clock line is always at a low level, it is determined that the server bus is hung in the current channel;
[0036] If the signal on the data line and the signal on the clock line in the current channel are always at a high level, sending a detection command to the baseboard management controller so that the baseboard management controller actively detects the state of the bus device connected to the current channel;
[0037] In the process of communication between the baseboard management controller and the bus device, sampling the signals transmitted on the data line and the clock line in the current channel;
[0038] If the signal on the data line and the signal on the clock line are still always at a high level, it is determined that the server bus is hung;
[0039] Disconnect each channel in turn and determine whether the communication of other channels has returned to normal;
[0040] If so, it is determined that the server bus is hung in the current channel.
[0041] In a possible embodiment, when polling and sampling the signals transmitted in each channel of the server bus, the polling switching cycle is greater than the total duration of a polling cycle of the baseboard management controller;
[0042] When the polling sampling is performed on the signals transmitted in each channel of the server bus, the sampling frequency is greater than or equal to twice the maximum transmission frequency of the server bus.
[0043] In a possible embodiment, it further includes: a self-sustaining link breaking module; the self-sustaining link breaking module includes: a fourth multiplexer and multiple groups of relays and contacts corresponding to each channel one by one; wherein the input end of the fourth multiplexer is connected to the positive electrode of the power supply; the enable control end and the strobe control end of the fourth multiplexer are connected to the controller; each output end of the fourth multiplexer is connected to each relay one by one; each contact is respectively arranged between the gate and the source of the corresponding switch tube;
[0044] After turning on the enable of the first multiplexer and selecting the output of the first multiplexer corresponding to the abnormal channel, the method further includes:
[0045] After a preset delay time, disconnecting the output gating of the first multiplexer corresponding to the abnormal channel;
[0046] Determining whether the abnormal channel returns to normal;
[0047] If yes, exit this method;
[0048] If not, it is determined that the current abnormal channel is a faulty channel, and the output of the fourth multiplexer corresponding to the faulty channel is enabled.
[0049] In a possible embodiment, after the persistent disconnection of the faulty channel, the method further includes:
[0050] Generate alarm reports;
[0051] Sending the alarm report and the alarm instruction to the baseboard management controller, so that the baseboard management controller executes the alarm action and outputs the alarm report;
[0052] Wherein, the alarm report includes: the channel number of the faulty channel.
[0053] The present invention provides a server bus fault isolation circuit, comprising: a controller, a first multiplexer, a pull-up circuit, an OR gate and a switch tube; wherein the switch tube is respectively arranged in each channel of the server bus; when necessary, the controller can realize the physical disconnection and isolation of each channel of the server bus such as the I2C bus by controlling the switch tube to avoid the spread of the fault. Specifically, the input end of the first multiplexer is grounded, and each output end corresponds to a different channel and is pulled up by the pull-up circuit by default; when the controller determines that any channel of the server bus has a fault, the corresponding output end can be pulled down from the output high level to the output low level by controlling the enable and selection of the first multiplexer; after the low level is input to an input end of the corresponding OR gate, the output of the OR gate is completely determined by the other input end of the OR gate; and since the other input end of the OR gate is connected to the signal in the corresponding channel, the signal output from the output end of the OR gate is consistent with the signal in the corresponding channel; at this time, the gate and source of the switch tube are connected to the same signal, and the switch tube is turned off to realize the physical isolation of the server bus channel to avoid the spread of the fault.
[0054] The server bus fault isolation method provided by the present invention corresponds to the above circuit and has the same effect 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 It is a structural diagram of a common server bus fault processing circuit;
[0057] Figure 2 A structural diagram of a server bus fault isolation circuit provided by an embodiment of the present invention;
[0058] Figure 3 A structural diagram of a fault detection module provided by an embodiment of the present invention;
[0059] Figure 4 A flow chart of a server bus fault isolation method provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0060] 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.
[0061] The core of the present invention is to provide a server bus fault isolation circuit and method.
[0062] 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.
[0063] In the design and application of servers, the bus is an important carrier for efficient transmission of various components in the server. Therefore, when the bus hangs or other communication abnormalities occur, it may affect the business continuity and operation stability of the server. Even more seriously, the server bus hang may cause the server to crash.
[0064] Take the Inter-Integrated Circuit (I2C), an important bus type in the server bus, as an example. Figure 1 This is a common I2C bus communication abnormality repair solution. Figure 1 As shown in the figure, any channel (or link) of the I2C bus includes two lines, the data line (SDA) and the clock line (SCL), which are connected to multiple devices such as master devices and slave devices. The master device is connected to the clock line through a switch device to input a pulse signal into the clock line when the I2C link is hung, in order to try to restore communication.
[0065] This solution has a series of problems, such as strong limitations, the possibility of physical anomalies such as line aging and poor contact, in which case it is impossible to try to restore communication by inputting signals, and limited communication repair rate.
[0066] But the more critical thing is that due to its unique communication mechanism, when any link of the I2C bus fails, the fault may spread to other links, causing multiple I2C links to be unable to communicate. However, the above solution cannot solve this fault spreading problem.
[0067] Therefore, in order to solve the problem of fault propagation that may be caused by a fault in the I2C bus, the present invention provides a server bus fault isolation circuit, such as Figure 2 As shown, it includes: a controller 11, a first multiplexer 12, a pull-up circuit 13, an OR gate 14 and a switch tube 15;
[0068] The controller 11 is connected to the enable control terminal and the selection control terminal of the first multiplexer 12; the input terminal of the first multiplexer 12 is grounded; each output terminal of the first multiplexer 12 is connected to the pull-up circuit 13, and each output terminal of the first multiplexer 12 corresponds to each channel of the server bus one by one;
[0069] The switch tubes 15 correspond to the channels one by one, and each switch tube 15 is arranged in the corresponding channel;
[0070] The OR gate 14 corresponds to each channel of the server bus one by one; one input end of the OR gate 14 is connected to the signal output from the corresponding channel to the source of the switch tube 15, and the other input end of the OR gate 14 is connected to the corresponding output end of the first multiplexer 12; the output end of the OR gate 14 is connected to the gate of the corresponding switch tube 15.
[0071] The controller 11 can be implemented by any device with logic processing capability, such as a complex programmable logic device (CPLD), a field programmable gate array (FPGA), and a single-chip microcomputer. Since CPLD is a common component in server architecture, in a preferred embodiment, using CPLD as the controller 11 can avoid adding an additional controller 11.
[0072] It should also be noted that Figure 2 Considering the length of the article, only four I2C channels are shown, and only the complete setting of one of the I2C channels is shown (mainly the circuit part of the OR gate 14 and the switch tube 15 and their connection relationship). However, it is easy to know that the actual server I2C bus may not only include these four channels, but also include more or fewer channels, and each channel has a corresponding OR gate 14 and switch tube 15 setting.
[0073] In addition, the present invention also does not limit the specific model, specification, number of output terminals, etc. of the first multiplexer 12. In a possible embodiment, the first multiplexer 12 is implemented by an 8-to-1 analog switch, and the 8 output terminals correspond to 8 I2C channels respectively. Accordingly, the gating control terminal of the first multiplexer 12 is implemented by 3-bit ports A, B, and C, and the controller 11 can input 3-bit binary codes to the 3-bit gating control terminals A, B, and C to implement the gating control of the 8 output terminals.
[0074] Afterwards, the present embodiment will not elaborate on the above-mentioned pull-up circuit 13. The simplest pull-up circuit 13 can be implemented by a pull-up resistor. In this circuit, the function of the pull-up circuit 13 is to pull up each output terminal of the first multiplexer 12 by default. In this way, based on the connection setting of the input terminal of the first multiplexer 12 being grounded, only when a certain output terminal of the first multiplexer 12 is selected, the output terminal is pulled down, and the other output terminals are all high.
[0075] The OR gate 14 is a common logic gate device, which outputs a high level when any one of the two input terminals has a high level input (ie, binary data "1"), and outputs a low level only when both input terminals have a low level input (ie, binary data "0"), which will not be described in detail in the present invention.
[0076] Next, for the switch tube 15, this embodiment also does not limit the specific type, model, and specification of the switch tube 15, but provides a possible implementation scheme, where the switch tube 15 is specifically an NMOS transistor. NMOS stands for N-Metal-Oxide-Semiconductor, which means N-type metal-oxide-semiconductor.
[0077] Based on the server bus fault isolation circuit provided by the present invention, when the controller 11 detects that a channel of the I2C bus is hung, the corresponding output end of the first multiplexer 12 is selected to output a low level to the OR gate 14; at this time, the output of the OR gate 14 is entirely determined by the signal input from the other input end; since the other input end of the OR gate 14 is connected to the signal input from the I2C channel to the source of the NMOS tube (V SDA_CH0_L ), so the OR gate 14 is equivalent to outputting a signal consistent with the source signal of the NMOS tube to the gate of the NMOS tube; therefore, at this time, V G =V SDA_CH0_L =V s , the gate-source voltage of the NMOS tube is V GS =0, the NMOS tube is turned off to achieve physical isolation of the I2C channel.
[0078] In addition, for other channels that are not selected, the corresponding output end of the first multiplexer 12 is pulled high by the pull-up circuit 13 by default, and outputs a high level to the OR gate 14; at this time, the OR gate 14 must output a high level; the gate voltage V G =3.3V (high level voltage is 3.3V); when there is signal transmission in the I2C channel (high level when I2C is idle), the NMOS tube is turned on, and I2C communication can be realized normally. Similarly, when the I2C bus is not hung, the controller 11 can disable the first multiplexer 12, and all output ends of the first multiplexer 12 are pulled high by the pull-up circuit 13 to ensure normal communication of the I2C bus.
[0079] In addition, it should be noted that in a simpler implementation, the first multiplexer 12 can be used to directly control the on and off of the switch tube 15, and the purpose of physically isolating the fault channel to prevent it from spreading can also be achieved. However, the shutdown control implemented by this solution is completely dependent on the first multiplexer 12. Since the switch tube 15 is set in the I2C channel, its source is connected to the I2C signal, and the voltage changes dynamically. If the output of the first multiplexer 12 is directly used for control, it is necessary to frequently operate the enable of the first multiplexer 12, which is complex and difficult to implement. The present invention introduces the I2C signal (V SDA_CH0_L ), so that when the I2C channel needs to be physically isolated, only the corresponding output end of the first multiplexer 12 needs to be selected, and the gate voltage V of the NMOS tube is set to G = Gate voltage V s , ensuring that the NMOS tube is disconnected to disconnect the I2C channel.
[0080] Based on the above, it is not difficult to see that the server bus fault isolation circuit provided by the present invention can physically isolate the abnormal channel when the I2C bus communication is abnormal, so as to avoid the fault propagation problem and further improve the reliability of the I2C bus communication.
[0081] On the other hand, for Figure 1 The technical solution shown in FIG. 1 still has the problem that it cannot realize the fault judgment of I2C bus and the location of abnormal channel. Therefore, in order to solve this problem, this embodiment also provides a possible implementation scheme, such as Figure 3 As shown, the circuit also includes: a fault detection module;
[0082] Wherein, the fault detection module includes: a second multiplexer 16 and a third multiplexer 17;
[0083] Each input terminal of the second multiplexer 16 is connected to the data line of each channel of the server bus respectively; the output terminal, the enable control terminal and the strobe control terminal of the second multiplexer 16 are connected to the controller 11;
[0084] Each input terminal of the third multiplexer 17 is connected to the clock line of each channel of the server bus respectively; the output terminal, the enable control terminal and the strobe control terminal of the third multiplexer 17 are connected to the controller 11.
[0085] It should be noted that the second multiplexer 16 and the third multiplexer 17 can also be implemented by analog switches, and since the output ends of the first, second and third multiplexers correspond to each I2C channel one by one, the first, second and third multiplexers can be implemented by devices with completely identical models and specifications. Figure 3 In the figure, only four I2C channels (CH0~CH3) are shown for space considerations, but in fact there may be 8 or other number of I2C channels.
[0086] Depend on Figure 3 As can be seen from the above circuit structure of this embodiment, the controller 11 can implement round-robin sampling of each I2C channel signal through the second multiplexer 16 and the third multiplexer 17, so as to grasp the communication status of the entire I2C bus, and determine whether the I2C bus has communication abnormalities such as hang-up based on the sampling results, and further locate the abnormal channel. In addition, the I2C channel fault detection implemented in this embodiment does not require much change to the original hardware architecture of the server, and only requires the addition of two additional multiplexers (analog switches) to achieve it, which is simple to implement and has low deployment cost.
[0087] Further, based on the fault detection module provided in the above embodiment, as Figure 3 As shown, this embodiment also provides a possible implementation scheme of a fault detection module:
[0088] The enable control terminals of the second multiplexer 16 and the third multiplexer 17 are used to receive the same enable control signal (i.e. Figure 3 The enable control signal output from the EN terminal shown in );
[0089] The gating control terminals of the second multiplexer 16 and the third multiplexer 17 are used to receive the same gating control signal (i.e. Figure 3 The strobe control signals output from the Ctrl_A, Ctrl_B, and Ctrl_C terminals shown in FIG.
[0090] Based on the above settings, it can be ensured that the two multiplexers (analog switches) select the same I2C channel at the same time, that is, it can be ensured that the signal on the data line and the signal on the clock line used by the controller 11 at the same time are two signals of the same I2C channel.
[0091] On the other hand, it can be seen from the above embodiments that the physical isolation of the I2C channel implemented based on the above circuit needs to rely on the first multiplexer 12 to select the corresponding output terminal. However, considering that in some extreme scenarios, it may be necessary to perform persistent physical isolation on one or some I2C channels. In this case, it is no longer appropriate to implement it through the first multiplexer 12, and the first multiplexer 12 can only implement physical isolation of one I2C channel at the same time.
[0092] Therefore, in order to solve this problem, this embodiment also provides a possible implementation scheme, and the circuit further includes: a self-sustaining link breaking module;
[0093] The self-sustaining link breaking module includes: a fourth multiplexer and multiple groups of relays and normally open contacts corresponding to each channel one by one;
[0094] The input terminal of the fourth multiplexer is connected to the positive electrode of the power supply; the enable control terminal and the strobe control terminal of the fourth multiplexer are connected to the controller 11; and each output terminal of the fourth multiplexer is connected to each relay one by one;
[0095] The normally open contacts corresponding to each relay are respectively arranged between the relay and the positive electrode of the power supply and between the gate and source of the corresponding switch tube 15 .
[0096] That is, this embodiment realizes the self-sustaining state of the circuit through relays and contacts. The selection logic and principle of the fourth multiplexer are the same as those of the first multiplexer 12. When a certain I2C channel needs to be physically isolated, the corresponding output terminal can be selected. When the relay is powered on for the first time, its corresponding two normally open contacts are closed; among them, the normally open contact arranged between the relay and the positive pole of the power supply is used to realize the self-sustaining state of the relay power supply; the other normally open contact arranged between the gate and source of the switch tube 15 is used to short-circuit the gate and source of the switch tube 15, so that the switch tube 15 is permanently turned off, realizing the persistent isolation of the corresponding I2C channel.
[0097] It should also be noted that the server bus fault isolation circuit provided by the present invention can be applied to the physical isolation fault detection of the I2C bus, and is also applicable to other server buses, such as SPI (a full-duplex synchronous serial bus), Low pin count Bus (LPC) and other buses. However, due to its unique communication mechanism, I2C has a fault diffusion problem. Therefore, the use of the server bus fault isolation circuit provided by the present invention can effectively solve this problem and bring better communication fault handling effects.
[0098] In the above embodiment, a server bus fault isolation circuit is described in detail. The present invention also provides an embodiment corresponding to a server bus fault isolation method, which is applied to the above server bus fault isolation circuit. Specifically, a server bus fault isolation method, such as Figure 4 As shown, including:
[0099] S11: Determine whether the server bus is hung; if not, go to step S12; if so, go to step S13.
[0100] S12: Turn off the enable of the first multiplexer.
[0101] S13: Determine the abnormal channel of the server bus.
[0102] S14: Turn on the enable of the first multiplexer, and select the output of the first multiplexer corresponding to the abnormal channel.
[0103] It is easy to understand that the principle and specific process of applying the method to the above-mentioned server bus fault isolation circuit to implement fault isolation of server buses such as I2C bus to avoid the problem of fault diffusion have been described in detail in the embodiment of the above-mentioned circuit part, so this embodiment will not be repeated here. Further, this embodiment describes the method in detail from the perspective of a complete method flow:
[0104] First, based on the fault detection module provided in the above circuit partial embodiment, it can be known that the controller can poll and sample the signals transmitted in each channel on the I2C bus (the signal on the data line and the signal on the clock line) through the second multiplexer and the third multiplexer. Correspondingly, this method also provides an embodiment corresponding to a method, and the above step S11 is specifically as follows:
[0105] The signals transmitted in each channel of the server bus are polled and sampled through the second multiplexer and the third multiplexer; and whether the server bus is hung is determined according to the sampling result.
[0106] Exemplarily, the controller may control the selection of the second multiplexer and the third multiplexer to sequentially and cyclically read the signals in the channels CH0 to CH3 to implement fault detection and fault location for the I2C bus.
[0107] It should be noted that this embodiment does not limit the polling cycle and sampling frequency of the controller, and can be adaptively set according to parameters such as the clock frequency of the processor itself and the communication duration of the I2C bus. However, this embodiment provides a possible implementation scheme:
[0108] When polling and sampling signals transmitted in each channel of the server bus, the polling switching cycle is greater than the total duration of one polling cycle of the baseboard management controller.
[0109] When polling and sampling the signals transmitted in each channel of the server bus, the sampling frequency is greater than or equal to twice the maximum transmission frequency of the server bus.
[0110] The polling switching cycle is the sampling duration of a server bus channel by the controller during a polling process. After each polling switching cycle, the controller controls the strobe to switch to the sampling of the next channel.
[0111] It should be noted that, since the duration of each I2C communication is very short, and this method needs to implement the sampling of the transmission signal in the I2C channel in a polling manner. Therefore, in order to prevent the controller from missing the communication process of the I2C bus, the polling switching cycle should be as long as possible. For example, the polling switching cycle provided in this embodiment can select a value greater than the total duration of a polling cycle of the BMC; thereby ensuring that a complete polling cycle of the BMC can be covered during a sampling process of the I2C channel; that is, it can be ensured that within the sampling period, the BMC has communicated at least once through the currently sampled I2C channel, avoiding misjudgment due to failure to sample the communication transmission signal.
[0112] However, a too long polling switching cycle will lead to a too long fault detection cycle and poor timeliness. Therefore, this embodiment also provides a further implementation scheme of the polling switching cycle: the polling switching cycle is twice the total duration of the BMC polling cycle.
[0113] In addition, for the sampling frequency, a sampling frequency that is too high will increase the operating load of the CPLD, and a sampling frequency that is too low may cause the I2C communication process to be unable to be acquired normally. Therefore, this embodiment also provides a possible implementation scheme:
[0114] In the embodiment of the above circuit part, one possible implementation scheme of the controller is to implement it through CPLD, and the internal clock is generally reserved in the CPLD chip of the server, and the clock frequency is usually 25MHz. In addition, in actual server applications, I2C communication supports a maximum frequency of 400kHz (fmax), and CPLD does not need to use the highest 25MHz sampling. Based on the implementation scheme provided above in this embodiment, in order to restore the analog signal without distortion, the sampling frequency (fs) should be greater than or equal to twice the highest frequency in the analog signal spectrum, that is, fs≥2fmax. The maximum supported I2C transmission frequency is 400kHz, and the doubled frequency is 800kHz. In theory, exceeding 800kHz can meet the sampling requirements.
[0115] However, in order to leave a certain margin and avoid occupying too much CPLD resources, this embodiment also provides a possible implementation plan for the sampling frequency: the sampling frequency is 2.5 MHz.
[0116] In addition, since the above-mentioned sampling frequency of 2.5 MHz is an integer multiple of the CPLD clock frequency of 25 MHz, it can be easily obtained by implementing frequency division using a program in the CPLD.
[0117] Furthermore, after the signal sampling is completed, the I2C fault judgment and fault location can be performed through the sampling results. As for the specific fault judgment and location, it is easy to know that if there is signal transmission in the I2C channel, the collected signal should show corresponding high and low level changes. When the I2C channel is in an idle state, the signals on the clock line and the data line default to a high level. Based on the signal performance of these two I2C channels under normal working conditions, the most basic fault detection and location can be achieved.
[0118] However, on this basis, this embodiment also provides a possible implementation scheme for fault judgment and location, and the above step S11 is specifically as follows:
[0119] For any channel in the server bus:
[0120] S11-A: If the signal on the data line and the signal on the clock line in the current channel are always at a low level, it is determined that the server bus is hung in the current channel;
[0121] S11-B: If the signal on the data line in the current channel is always at a low level, and the signal on the clock line is always at a high level, it is determined that the server bus is hung in the current channel;
[0122] S11-C: If the signal on the data line in the current channel is always at a high level, and the signal on the clock line is always at a low level, it is determined that the server bus is hung in the current channel;
[0123] S11-D1: If the signal on the data line and the signal on the clock line in the current channel are always at a high level, a detection command is sent to the baseboard management controller, so that the baseboard management controller actively detects the status of the bus device connected to the current channel;
[0124] S11-D2: during the communication between the baseboard management controller and the bus device, sampling the signals transmitted on the data line and the clock line in the current channel;
[0125] S11-D3: If the signal on the data line and the signal on the clock line are still at a high level, it is determined that the server bus is hung;
[0126] S11-D4: disconnect each channel in turn and determine whether the communication of other channels has returned to normal;
[0127] S11-D5: If yes, it is determined that the server bus is hung in the current channel.
[0128] Based on the above, it can be known that this embodiment realizes the judgment of whether the channel is hung or not by the level characteristics of the signal transmitted in the channel. Specifically, it has been explained above that when the I2C channel transmits signals normally, a specific high and low level change will occur in the channel, and when the channel is idle, it will remain at a high level. Therefore, the judgment of whether the I2C is faulty or not can be divided into the following two aspects:
[0129] 1. One or both of the data line and the clock line are continuously pulled low;
[0130] The I2C signal is continuously pulled low, which is a common case of I2C hang. It is usually manifested as the data line is continuously pulled low and the clock line is always in a high level state during this period. Other I2C hang situations include: the clock line is continuously pulled low, the data line is always in a high level state during this period, and both the data line and the clock line are always in a low level state.
[0131] The above embodiment also mentioned that in order to avoid missing the I2C communication process, the controller will set a longer time interval each time it switches the sampling channel, and the duration of each normal I2C communication is very short (generally no more than 10ms). If one or both of the data line / clock line is always in a low level state within a sampling time interval of the CPLD, it can be determined that the I2C communication has been hung on the channel. That is, at this time, the I2C bus fails, and the abnormal channel that fails is the channel currently sampled.
[0132] 2. The data line and clock line are continuously pulled high;
[0133] This situation is relatively rare and may be caused by aging of the I2C connector or poor contact. When the I2C signal is continuously pulled high, the start condition of I2C communication cannot be achieved, and the data line / clock line is finally kept at a high level.
[0134] In addition, since the situation where both the data line and the clock line are at high level is consistent with the performance of the I2C bus when it is idle mentioned above, there is a possibility that the I2C channel has no communication during the sampling period. Therefore, based on this phenomenon, it is currently impossible to confirm whether the bus has a deadlock problem, and further confirmation is needed.
[0135] Corresponding to steps S11-D1 to S11-D5, when the data line / clock line are both at high level, it is necessary to use the active communication of the BMC to ensure that there is communication in the I2C channel and it is not in an idle state. Therefore, the implementation of steps S11-D1 to S11-D5 needs to be based on the existence of a communication connection between the controller and the BMC. As can be seen from the above embodiment, the controller can be implemented using the CPLD chip already in the server. In the current hardware architecture of the server, there is often a communication connection between the CPLD chip and the BMC, so no additional settings are required.
[0136] On this basis, when the CPLD monitors that the data line / clock line is at a high level for a long time, the CPLD triggers a command to the BMC, so that the BMC actively detects the status of the I2C device on the current channel; at the same time, the CPLD starts to continuously monitor the current I2C signal. If the CPLD can monitor the I2C communication after the command is issued, it is determined that the I2C bus is not abnormally pulled high at this time; conversely, if the data line / clock line continues to be at a high level after the command is issued, it is determined that the I2C communication is abnormal; due to the unique communication mechanism of the I2C bus, it may have a fault diffusion problem, so when the above problem occurs on the I2C bus, it is also necessary to locate the specific channel where the abnormality occurs.
[0137] When it is necessary to locate the abnormal channel, it can be achieved by disconnecting the communication of each I2C channel in turn and detecting whether the communication of other I2C channels is normal. Among them, the scheme of disconnecting a specific channel has been described in the above embodiment, and this embodiment will not be repeated. If the communication of other channels returns to normal, it is determined that the currently disconnected channel has a communication hang abnormality; if other channels still cannot communicate normally, it means that the current channel is normal; and so on, disconnect all other I2C channels in turn, repeat the above judgment steps, and the abnormal channel locating task can be completed.
[0138] On the other hand, in addition to the above-mentioned fault detection, location and isolation, this embodiment also provides a possible implementation scheme for fault repair:
[0139] After step S14, the method further comprises:
[0140] S15: After a preset delay time, the output selection of the first multiplexer corresponding to the abnormal channel is turned off.
[0141] S16: Determine whether the abnormal channel has returned to normal; if so, exit this method; if not, go to step S17.
[0142] S17: Determine that the current abnormal channel is a faulty channel, and permanently disconnect the faulty channel.
[0143] The permanent disconnection of the channel in step S17 can be realized by the self-sustaining disconnection module provided in the above circuit embodiment. At this time, when performing the permanent disconnection of the channel in step S17, it is only necessary to select the output of the fourth multiplexer corresponding to the faulty channel.
[0144] Based on the self-sustaining link breaking module provided by the above-mentioned circuit partial embodiment, when the output of the fourth multiplexer corresponding to the fault channel is selected, the corresponding relay is obtained and the corresponding normally open contact is closed; wherein the normally open contact arranged between the relay and the positive pole of the power supply is used to realize the self-sustaining state of the circuit; the normally open contact arranged between the gate and source of the corresponding switching tube is used to short-circuit the gate and source of the switching tube, so that the switching tube remains in the off state, thereby realizing the persistent disconnection of the corresponding channel.
[0145] In addition, when the faulty channel is permanently disconnected, recovery generally requires manual troubleshooting and repair by the operation and maintenance personnel, and the system needs to be powered off. However, the self-sustaining function based on the relay in this embodiment can also be cancelled by power off, that is, after the operation and maintenance personnel power off to repair the link, the self-sustaining function is automatically cancelled, and the repaired link can resume normal communication.
[0146] It should also be noted that this embodiment also provides a method for repairing a server bus channel, corresponding to steps S15 and S16, by disconnecting the abnormal channel for a certain period of time and attempting to repair the abnormal channel, occasional faults can be repaired to a certain extent.
[0147] In addition, this embodiment also provides another method for repairing a server bus channel, which, after step S15, further includes:
[0148] S18: Input a preset pulse signal into the clock line of the abnormal channel.
[0149] From the above description, it can be seen that inputting a pulse signal into the clock line also has a certain channel repair capability. In addition, the repair solution provided in this embodiment does not conflict with the above repair solution by short-term disconnection of the channel, and can be implemented together in actual applications to bring better channel repair effect.
[0150] On the other hand, when a serious bus communication problem such as a faulty channel occurs, it can be seen from the above that manual intervention by operation and maintenance personnel is generally required, so this embodiment provides an alarm solution accordingly. After step S17, the method further includes:
[0151] S19: generating an alarm report; sending the alarm report and the alarm instruction to the baseboard management controller, so that the baseboard management controller executes the alarm action and outputs the alarm report;
[0152] The alarm report includes: the channel number of the faulty channel.
[0153] It is easy to understand that the purpose of this embodiment is to issue an alarm to the operation and maintenance personnel in a timely manner after determining that a faulty channel has occurred, so that the operation and maintenance personnel are informed of the situation and can take corresponding measures. On this basis, there are currently a variety of mature technical solutions for the methods and devices for executing alarm actions, and this solution uses the existing BMC in the server hardware architecture to implement alarms. Specifically, BMC is a device that the server operation and maintenance personnel focus on, and BMC usually has a web page to interact with the operation and maintenance personnel. Furthermore, when the controller is selected as the original CPLD chip in the server, the communication connection between the controller and the BMC is also already set up, then the solution of alarming the operation and maintenance personnel through the BMC is simple and easy to implement, and there is no need to change any server architecture.
[0154] Based on the above, the present invention provides a method corresponding to the server bus fault isolation circuit, which can achieve the same technical effect as the above circuit and avoid the fault spread of the I2C channel. In addition, in some embodiments, the method also provides a fault detection and positioning scheme, which can achieve more accurate fault detection and positioning of the fault channel; facilitate subsequent fault repair or persistent disconnection, and timely alert the operation and maintenance personnel; through the channel number of the fault channel, the operation and maintenance personnel can quickly find the fault channel to take corresponding repair measures. The server bus fault isolation circuit and method provided by the present invention can be mostly implemented by the original architecture of the server, mainly by using the BMC and CPLD chips in the server to realize logical processing and process control. On this basis, the isolation, detection and persistent disconnection of the fault channel can be achieved by adding several multiplexers, which is simple to implement and highly feasible.
[0155] The above is a detailed introduction to a server bus fault isolation circuit and method 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, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.
[0156] 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 server bus fault isolation circuit, characterized in that: include: A controller, a first multiplexer, a pull-up circuit, an OR gate and a switch tube; The controller is connected to the enable control terminal and the selection control terminal of the first multiplexer; the input terminal of the first multiplexer is grounded; each output terminal of the first multiplexer is connected to the pull-up circuit, and each output terminal of the first multiplexer corresponds to each channel of the server bus one by one; The switch tubes correspond to the channels one by one, and each switch tube is arranged in the corresponding channel; The OR gate corresponds one-to-one to each channel of the server bus; one input end of the OR gate is connected to the signal output from the corresponding channel to the source of the switch tube, and the other input end of the OR gate is connected to the output end corresponding to the first multiplexer; the output end of the OR gate is connected to the gate of the corresponding switch tube.
2. The server bus fault isolation circuit according to claim 1, characterized in that: Also includes: Fault detection module; Wherein, the fault detection module includes: a second multiplexer and a third multiplexer; The input terminals of the second multiplexer are respectively connected to the data lines of the channels of the server bus; the output terminals, the enable control terminal and the strobe control terminal of the second multiplexer are connected to the controller; The input terminals of the third multiplexer are respectively connected to the clock lines of the channels of the server bus; the output terminal, the enable control terminal and the strobe control terminal of the third multiplexer are connected to the controller.
3. The server bus fault isolation circuit according to claim 2, characterized in that: The enable control terminals of the second multiplexer and the third multiplexer are used to receive the same enable control signal output by the controller; The gating control terminals of the second multiplexer and the third multiplexer are used to receive the same gating control signal output by the controller.
4. The server bus fault isolation circuit according to any one of claims 1 to 3, characterized in that: Also includes: Self-sustaining chain-breaking module; The self-sustaining link breaking module comprises: a fourth multiplexer and a plurality of groups of relays and normally open contacts corresponding to each channel one by one; The input terminal of the fourth multiplexer is connected to the positive electrode of the power supply; the enable control terminal and the strobe control terminal of the fourth multiplexer are connected to the controller; and each output terminal of the fourth multiplexer is connected to each relay in a one-to-one correspondence; The normally open contacts corresponding to the relays are respectively arranged between the relay and the positive pole of the power supply and between the gate and source of the corresponding switch tube.
5. A server bus fault isolation method, characterized in that: The server bus fault isolation circuit as claimed in claim 1 comprises: Determine whether the server bus is hung; If not, disabling the enabling of the first multiplexer; If yes, determining the abnormal channel of the server bus; The enable of the first multiplexer is turned on, and the output of the first multiplexer corresponding to the abnormal channel is selected.
6. The server bus fault isolation method according to claim 5, characterized in that: The server bus fault isolation circuit further comprises: a fault detection module; wherein the fault detection module comprises: a second multiplexer and a third multiplexer; each input end of the second multiplexer is respectively connected to the data line of each channel of the server bus; the output end, the enable control end and the strobe control end of the second multiplexer are connected to the controller; each input end of the third multiplexer is respectively connected to the clock line of each channel of the server bus; the output end, the enable control end and the strobe control end of the third multiplexer are connected to the controller; The determining whether the server bus is hung includes: polling and sampling the signals transmitted in each channel of the server bus through the second multiplexer and the third multiplexer; It is determined whether the server bus is hung according to the sampling result.
7. The server bus fault isolation method according to claim 6, characterized in that: The controller is also connected to the baseboard management controller; The determining whether the server bus is hung according to the sampling result includes: For any channel in the server bus: If the signal on the data line and the signal on the clock line in the current channel are both always at a low level, it is determined that the server bus is hung in the current channel; If the signal on the data line in the current channel is always at a low level, and the signal on the clock line is always at a high level, it is determined that the server bus is hung in the current channel; If the signal on the data line in the current channel is always at a high level, and the signal on the clock line is always at a low level, it is determined that the server bus is hung in the current channel; If the signal on the data line and the signal on the clock line in the current channel are always at a high level, sending a detection command to the baseboard management controller so that the baseboard management controller actively detects the state of the bus device connected to the current channel; In the process of communication between the baseboard management controller and the bus device, sampling the signals transmitted on the data line and the clock line in the current channel; If the signal on the data line and the signal on the clock line are still always at a high level, it is determined that the server bus is hung; Disconnect each channel in turn and determine whether the communication of other channels has returned to normal; If so, it is determined that the server bus is hung in the current channel.
8. The server bus fault isolation method according to claim 6, characterized in that: When the polling sampling is performed on the signal transmitted in each channel of the server bus, the polling switching cycle is greater than the total duration of a polling cycle of the baseboard management controller; When the polling sampling is performed on the signals transmitted in each channel of the server bus, the sampling frequency is greater than or equal to twice the maximum transmission frequency of the server bus.
9. The server bus fault isolation method according to any one of claims 5 to 8, characterized in that: Also includes: Self-sustaining chain-breaking module; The self-sustaining link breaking module comprises: a fourth multiplexer and a plurality of groups of relays and contacts corresponding to each channel one by one; wherein the input end of the fourth multiplexer is connected to the positive electrode of the power supply; the enable control end and the strobe control end of the fourth multiplexer are connected to the controller; each output end of the fourth multiplexer is connected to each relay one by one; each contact is respectively arranged between the gate and source of the corresponding switch tube; After turning on the enable of the first multiplexer and selecting the output of the first multiplexer corresponding to the abnormal channel, the method further includes: After a preset delay time, disconnecting the output gating of the first multiplexer corresponding to the abnormal channel; Determining whether the abnormal channel returns to normal; If yes, exit this method; If not, it is determined that the current abnormal channel is a faulty channel, and the output of the fourth multiplexer corresponding to the faulty channel is enabled.
10. The server bus fault isolation method according to claim 9, characterized in that: After the persistent disconnection of the faulty channel, the method further includes: Generate alarm reports; Sending the alarm report and the alarm instruction to the baseboard management controller, so that the baseboard management controller executes the alarm action and outputs the alarm report; Wherein, the alarm report includes: the channel number of the faulty channel.
