Clock switching device, server and clock switching method

By designing a clock switching device in the server, using the baseboard management controller and clock multiplexer to automatically determine the target clock signal and load the PCIe firmware, the problem of low clock switching efficiency in the existing technology is solved and an automated clock source is realized Switching and firmware adjustments improve debugging efficiency.

CN116132009BActive Publication Date: 2024-10-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211583712.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-09
Publication Date
2024-10-22
Estimated Expiration
2042-12-09

AI Technical Summary

Technical Problem

In the existing technology, servers need to manually weld resistors and adjust PCIe switch chip firmware when debugging clock switching, resulting in low debugging efficiency.

Method used

Design a clock switching device, including a baseboard management controller, a clock multiplexer and a high-speed serial computer expansion bus switch. The baseboard management controller outputs control instructions to automatically determine the target clock signal and load the corresponding PCIe firmware. Realize automatic switching of clock source and automatic adjustment of firmware.

Benefits of technology

It improves debugging efficiency, reduces the need for manual operations, avoids frequent changes to hardware lines, and enables flexible switching of clock sources and automatic adaptation of firmware.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116132009B_ABST
    Figure CN116132009B_ABST
Patent Text Reader

Abstract

This invention provides a clock switching device, a server, and a clock switching method. The clock switching device includes a baseboard management controller, a clock multiplexer, and a PCIe switch. The baseboard management controller determines a target clock signal from two or more clock signals and outputs a first control command to the clock multiplexer and a second control command to the switch. The first control command instructs the clock multiplexer to output the target clock signal, and the second control command instructs the switch to load the PCIe firmware corresponding to the target clock signal. The clock multiplexer receives two or more clock signals and outputs the target clock signal. By controlling the clock multiplexer to output the target clock signal and controlling the switch to load the corresponding PCIe firmware, the clock source can be automatically switched and the firmware loaded by the switch can be automatically adjusted, thereby improving debugging efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a clock switching device, a server and a clock switching method. Background Art

[0002] With the popularization of network technologies such as big data, cloud computing, artificial intelligence, and the Internet of Things, the data flooding the Internet has increased exponentially, making traditional servers with central processing units (CPUs) as the main computing power source under increasing pressure. In addition, for the current CPU process technology, the number of cores of a single CPU is close to the limit, but the increase in data is still continuing, so the server data processing capacity must be improved. In this environment, artificial intelligence (AI) servers came into being. Since AI servers have multiple graphics processing units (GPUs), it is necessary to make special designs for the system structure and topology to meet the requirements of long-term stable operation of AI servers. The more commonly used application is the server head + GPU BOX interconnection topology.

[0003] In this architecture, there are often two modes between the high-speed serial computer expansion bus (Peripheral Component Interconnect express, PCIe) device and the server's CPU: homologous and non-homologous. In these two modes, the clock source, basic input and output system (Basic Input Output System, BIOS) configuration, and software design of PCIe-related chips are all different. The choice of homologous and non-homologous has a great impact on the PCIe signal, and due to various factors, the demand for clock mode is not fixed and needs to be configured according to different application scenarios. In related technologies, usually the BOX end retains two clock sources, homologous and non-homologous, and resistors are used for common wiring (colay) design on the hardware line to select a certain clock mode.

[0004] The clock source is switched through a hardware circuit. During the debugging process, resistors need to be manually soldered to switch the clock source and the firmware loaded by the PCIe switch chip needs to be manually adjusted, resulting in low debugging efficiency. Summary of the invention

[0005] In view of the problems existing in the prior art, embodiments of the present invention provide a clock switching device, a server and a clock switching method.

[0006] In a first aspect, the present invention provides a clock switching device, comprising: a baseboard management controller, a clock multiplexer and a high-speed serial computer expansion bus switch, wherein:

[0007] The baseboard management controller is used to determine a target clock signal among two or more clock signals, and output a first control instruction to the clock multiplexer, and output a second control instruction to the high-speed serial computer expansion bus switch, wherein the first control instruction is used to instruct the clock multiplexer to output the target clock signal, and the second control instruction is used to instruct the high-speed serial computer expansion bus switch to load the high-speed serial computer expansion bus firmware corresponding to the target clock signal;

[0008] The clock multiplexer is used to receive the two or more clock signals and output the target clock signal based on the first control instruction.

[0009] Optionally, according to a clock switching device provided by the present invention, the clock switching device is deployed on a server, the two or more clock signals include: a first clock signal and a second clock signal, the first clock signal is a signal homologous to the clock signal of the CPU of the server, and the second clock signal is a signal not homologous to the clock signal of the CPU of the server, and the baseboard management controller is specifically used for:

[0010] In the case where it is determined that the high-speed serial computer expansion bus device of the server and the CPU of the server are in a homology mode, determining the first clock signal as the target clock signal;

[0011] Or, when it is determined that the high-speed serial computer expansion bus device of the server and the CPU of the server are in a non-homologous mode, the second clock signal is determined as the target clock signal.

[0012] Optionally, according to a clock switching device provided by the present invention, the high-speed serial computer expansion bus switch comprises a high-speed serial computer expansion bus switch chip and a storage module;

[0013] The high-speed serial computer expansion bus switching chip is used to receive a second control instruction sent by the baseboard management controller, and load the high-speed serial computer expansion bus firmware corresponding to the target clock signal from the storage module based on the second control instruction.

[0014] Optionally, according to a clock switching device provided by the present invention, the storage module includes a first storage unit and a second storage unit, the first storage unit is used to store a high-speed serial computer expansion bus firmware corresponding to the first clock signal, and the second storage unit is used to store a high-speed serial computer expansion bus firmware corresponding to the second clock signal; the high-speed serial computer expansion bus switching chip is specifically used to:

[0015] When the target clock signal is the first clock signal, loading a high-speed serial computer expansion bus firmware corresponding to the first clock signal from the first storage unit;

[0016] Or, when the target clock signal is the second clock signal, a high-speed serial computer expansion bus firmware corresponding to the second clock signal is loaded from the second storage unit.

[0017] Optionally, a clock switching device provided according to the present invention further includes: a first clock generating module, a second clock generating module and a first clock buffer;

[0018] The first clock generating module is used for generating the first clock signal, and outputting the first clock signal to the first clock buffer;

[0019] The first clock buffer is used to generate a plurality of first clock signals by frequency replication, and output one clock signal of the plurality of first clock signals to the clock multiplexer;

[0020] The second clock generating module is used for generating the second clock signal and outputting the second clock signal to the clock multiplexer.

[0021] Optionally, a clock switching device provided according to the present invention further includes a second clock buffer, wherein the second clock buffer is used to receive the target clock signal output by the clock multiplexer and generate multiple target clock signals through frequency replication.

[0022] Optionally, according to a clock switching device provided by the present invention, the first control instruction is transmitted between the baseboard management controller and the clock multiplexer through a general input and output interface; the second control instruction is transmitted between the baseboard management controller and the high-speed serial computer expansion bus switch through a serial communication interface.

[0023] In a second aspect, the present invention further provides a server, comprising any one of the above-mentioned clock switching devices.

[0024] In a third aspect, the present invention further provides a clock switching method, which is applied to any of the above clock switching devices, comprising:

[0025] determining a target clock signal among two or more clock signals;

[0026] Outputting a first control instruction to the clock multiplexer, and outputting a second control instruction to a high-speed serial computer expansion bus switch;

[0027] The first control instruction is used to instruct the clock multiplexer to output the target clock signal, and the second control instruction is used to instruct the high-speed serial computer expansion bus switch to load the high-speed serial computer expansion bus firmware corresponding to the target clock signal.

[0028] Optionally, according to a clock switching method provided by the present invention, the clock switching device is deployed on a server, the two or more clock signals include: a first clock signal and a second clock signal, the first clock signal is a signal of the same source as the clock signal of the CPU of the server, and the second clock signal is a signal of a different source than the clock signal of the CPU of the server, and determining the target clock signal from the two or more clock signals includes:

[0029] In the case where it is determined that the high-speed serial computer expansion bus device of the server and the CPU of the server are in a homology mode, determining the first clock signal as the target clock signal;

[0030] Or, when it is determined that the high-speed serial computer expansion bus device of the server and the CPU of the server are in a non-homologous mode, the second clock signal is determined as the target clock signal.

[0031] The clock switching device, server and clock switching method provided by the present invention determine the target clock signal among multiple clock signals through the BMC, output the first control instruction to the clock multiplexer, and output the second control instruction to the PCIe switch. The clock multiplexer can be controlled to output the target clock signal and the PCIe switch can be controlled to load the PCIe firmware corresponding to the target clock signal. The clock source can be automatically switched and the firmware loaded by the PCIe switch can be automatically adjusted, thereby improving the debugging efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are 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.

[0033] Figure 1It is one of the structural schematic diagrams of the clock switching device provided by the present invention;

[0034] Figure 2 This is the second structural schematic diagram of the clock switching device provided by the present invention;

[0035] Figure 3 This is the third structural schematic diagram of the clock switching device provided by the present invention;

[0036] Figure 4 It is a flowchart of the clock switching method provided by the present invention;

[0037] Figure 5 It is a structural schematic diagram of the BMC provided by the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.

[0039] Figure 1 is one of the structural schematic diagrams of the clock switching device provided by the present invention, such as Figure 1 As shown, the clock switching device includes: a baseboard management controller (Baseboard Management Controller, BMC) 101, a clock multiplexer 102 and a high-speed serial computer expansion bus PCIe switch 103, wherein:

[0040] The BMC is used to determine a target clock signal from two or more clock signals, and output a first control instruction to the clock multiplexer, and output a second control instruction to the PCIe switch, wherein the first control instruction is used to instruct the clock multiplexer to output the target clock signal, and the second control instruction is used to instruct the PCIe switch to load the PCIe firmware corresponding to the target clock signal;

[0041] The clock multiplexer is used to receive the two or more clock signals and output the target clock signal based on the first control instruction.

[0042] Specifically, the BMC can be electrically connected to the clock multiplexer, and the BMC can be electrically connected to the PCIe switch. During the operation of the clock switching device, the BMC can determine the target clock signal from two or more clock signals based on a preset configuration or a received instruction for indicating the target clock signal, and then the BMC can output a first control instruction to the clock multiplexer, and output a second control instruction to the PCIe switch, and then the clock multiplexer can output the target clock signal based on the first control instruction, and the PCIe switch can load the PCIe firmware corresponding to the target clock signal based on the second control instruction.

[0043] It is understandable that the PCIe switch is actually an extension of the server PCIe bus. The purpose of using the PCIe switch in the server is to centrally manage the resources needed by the server and allocate them on demand.

[0044] Optionally, the BMC may have a first instruction output port, the clock multiplexer may have a first instruction input port, the first instruction output port is electrically connected to the first instruction input port, the BMC may output the first control instruction through the first instruction output port, and accordingly, the clock multiplexer may receive the first control instruction through the first instruction input port.

[0045] Optionally, the BMC may have a second instruction output port, the PCIe switch may have a second instruction input port, the second instruction output port is electrically connected to the second instruction input port, the BMC may output the second control instruction through the second instruction output port, and correspondingly, the PCIe switch may receive the second control instruction through the second instruction input port.

[0046] The clock switching device provided by the present invention determines the target clock signal among multiple clock signals through the BMC, outputs a first control instruction to the clock multiplexer, and outputs a second control instruction to the PCIe switch. It can control the clock multiplexer to output the target clock signal and control the PCIe switch to load the PCIe firmware corresponding to the target clock signal. It can automatically switch the clock source and automatically adjust the firmware loaded by the PCIe switch, thereby improving the debugging efficiency.

[0047] Optionally, the present invention provides a clock switching device, which is deployed on a server, wherein the two or more clock signals include: a first clock signal and a second clock signal, wherein the first clock signal is a signal of the same source as the clock signal of the CPU of the server, and the second clock signal is a signal of a different source than the clock signal of the CPU of the server, and the BMC is specifically used for:

[0048] In the case where it is determined that the PCIe device of the server and the CPU of the server are in a homology mode, determining the first clock signal as the target clock signal;

[0049] Or, when it is determined that the PCIe device of the server and the CPU of the server are in a non-homologous mode, the second clock signal is determined as the target clock signal.

[0050] Specifically, the clock switching device can be deployed on the server, and the two or more clock signals can include a signal that is homologous to the clock signal of the server's CPU (ie, the first clock signal) and a signal that is not homologous to the clock signal of the server's CPU (ie, the second clock signal).

[0051] In order to achieve automatic switching between homologous signals and non-homologous signals, the BMC can determine the clock signal mode between the server's PCIe device and the server's CPU based on a preset configuration or a received instruction for indicating a target clock signal. If it is determined that the server's PCIe device and the server's CPU are in a homologous mode, the first clock signal can be determined as the target clock signal. If it is determined that the server's PCIe device and the server's CPU are in a non-homologous mode, the second clock signal can be determined as the target clock signal.

[0052] Therefore, by judging the clock signal mode between the PCIe device of the server and the CPU of the server through the BMC, automatic switching between homologous signals and non-homologous signals can be achieved.

[0053] Optionally, the present invention provides a clock switching device, wherein the PCIe switch includes a PCIe switch chip and a storage module;

[0054] The PCIe switching chip is used to receive the second control instruction sent by the BMC, and load the PCIe firmware corresponding to the target clock signal from the storage module based on the second control instruction.

[0055] Specifically, in order to enable the PCIe switch to automatically load the PCIe firmware corresponding to the target clock signal, the PCIe switching chip can be electrically connected to the BMC, the PCIe switching chip can be electrically connected to the storage module, the PCIe switching chip can receive the second control instruction sent by the BMC, and then can obtain the target clock signal, and then can read the PCIe firmware corresponding to the target clock signal from the storage module, and load the PCIe firmware corresponding to the target clock signal.

[0056] Optionally, the BMC may have a second instruction output port, the PCIe switching chip may have a second instruction input port, the second instruction output port is electrically connected to the second instruction input port, the BMC may output the second control instruction through the second instruction output port, and accordingly, the PCIe switching chip may receive the second control instruction through the second instruction input port.

[0057] Optionally, the PCIe switching chip may have a first serial communication interface, and the storage module may have a second serial communication interface. The first serial communication interface is electrically connected to the second serial communication interface. The PCIe switching chip may output a read instruction through the first serial communication interface, and the read instruction is used to instruct to read the PCIe firmware corresponding to the target clock signal. The storage module may respond to the read instruction and output the PCIe firmware corresponding to the target clock signal through the second serial communication interface, so that the PCIe switching chip can receive the PCIe firmware corresponding to the target clock signal.

[0058] Therefore, by receiving the second control instruction through the PCIe switch chip and reading the specified PCIe firmware in the storage module, the PCIe switch can automatically load the PCIe firmware corresponding to the target clock signal.

[0059] Optionally, the present invention provides a clock switching device, wherein the storage module includes a first storage unit and a second storage unit, the first storage unit is used to store PCIe firmware corresponding to the first clock signal, and the second storage unit is used to store PCIe firmware corresponding to the second clock signal; the PCIe switching chip is specifically used to:

[0060] When the target clock signal is the first clock signal, loading PCIe firmware corresponding to the first clock signal from the first storage unit;

[0061] Or, when the target clock signal is the second clock signal, the PCIe firmware corresponding to the second clock signal is loaded from the second storage unit.

[0062] Specifically, in order to improve the efficiency of obtaining the PCIe firmware corresponding to the target clock signal, a first storage unit and a second storage unit can be configured in the storage module. The first storage unit is used to store the PCIe firmware corresponding to the homologous clock signal (i.e., the first clock signal), and the second storage unit is used to store the PCIe firmware corresponding to the non-homologous clock signal (i.e., the second clock signal). The PCIe firmware corresponding to the homologous clock signal and the PCIe firmware corresponding to the non-homologous clock signal are stored separately to facilitate the storage management and reading of multiple PCIe firmwares.

[0063] During the operation of the PCIe switching chip, the PCIe switching chip can determine the type of the target clock signal. If it is determined that the target clock signal is a homologous clock signal (that is, the first clock signal), the PCIe firmware corresponding to the target clock signal is read from the first storage unit, and the PCIe firmware corresponding to the target clock signal is loaded; if it is determined that the target clock signal is a non-homologous clock signal (that is, the second clock signal), the PCIe firmware corresponding to the target clock signal is read from the second storage unit, and the PCIe firmware corresponding to the target clock signal is loaded.

[0064] Optionally, the PCIe switch chip may be communicatively connected to the first storage unit via a serial communication interface. Similarly, the PCIe switch chip may be communicatively connected to the second storage unit via a serial communication interface.

[0065] Therefore, by storing the PCIe firmware corresponding to the homologous clock signal and the PCIe firmware corresponding to the non-homologous clock signal separately, it is convenient to store, manage and read multiple PCIe firmwares, and the efficiency of obtaining the PCIe firmware corresponding to the target clock signal can be improved.

[0066] Optionally, the present invention provides a clock switching device, further comprising: a first clock generating module, a second clock generating module and a first clock buffer;

[0067] The first clock generating module is used for generating the first clock signal, and outputting the first clock signal to the first clock buffer;

[0068] The first clock buffer is used to generate a plurality of first clock signals by frequency replication, and output one clock signal of the plurality of first clock signals to the clock multiplexer;

[0069] The second clock generating module is used for generating the second clock signal and outputting the second clock signal to the clock multiplexer.

[0070] Specifically, in order to enable the clock multiplexer to obtain the same-source clock signal and the non-same-source clock signal, the clock switching device may be integrated with a first clock generating module, a second clock generating module and a first clock buffer.

[0071] During the operation of the clock switching device, the first clock generating module can generate a first clock signal and output the first clock signal to the first clock buffer. The first clock buffer can convert one first clock signal into multiple first clock signals for use by multiple modules requiring clock signals. The first clock buffer can output one clock signal among the multiple first clock signals to the clock multiplexer. The second clock generating module can generate a second clock signal and output the second clock signal to the clock multiplexer. Then, the clock multiplexer can obtain the same-source clock signal (i.e., the first clock signal) and the non-same-source clock signal (i.e., the second clock signal).

[0072] Therefore, by integrating the first clock generation module, the second clock generation module and the first clock buffer in the clock switching device, the clock multiplexer can obtain the same-source clock signal and the non-same-source clock signal.

[0073] Optionally, the present invention provides a clock switching device, further comprising a second clock buffer, wherein the second clock buffer is used to receive the target clock signal output by the clock multiplexer and generate multiple target clock signals through frequency replication.

[0074] Specifically, in order to output the target clock signal to multiple modules that require clock signals, a second clock buffer can be integrated in the clock switching device, and the clock multiplexer is electrically connected to the second clock buffer. The clock multiplexer can output the target clock signal to the second clock buffer, and then the second clock buffer can convert one target clock signal into multiple target clock signals, and output the multiple target clock signals to multiple modules that require clock signals.

[0075] Therefore, by integrating the second clock buffer in the clock switching device, it is possible to output the target clock signal to multiple modules that require the clock signal.

[0076] Optionally, the present invention provides a clock switching device, wherein the first control instruction is transmitted between the BMC and the clock multiplexer via a general-purpose input / output (GPIO) interface; and the second control instruction is transmitted between the BMC and the PCIe switch via a serial communication interface.

[0077] Specifically, the first GPIO interface on the BMC can be an output interface, the second GPIO interface on the clock multiplexer can be an input interface, the first GPIO interface is electrically connected to the second GPIO interface, the BMC can output the first control instruction through the first GPIO interface, and accordingly, the clock multiplexer can receive the first control instruction through the second GPIO interface.

[0078] Specifically, the BMC may have a third serial communication interface, the PCIe switch may have a fourth serial communication interface, the third serial communication interface is communicatively connected with the fourth serial communication interface, and the BMC may send the second control instruction to the PCIe switch based on a specific serial communication protocol.

[0079] Therefore, the BMC may send a first control instruction through the GPIO interface and send a second control instruction through the serial communication interface to control the clock multiplexer to output a specified clock signal and control the PCIe switch to load a specified PCIe firmware.

[0080] The following are two optional examples of the present invention, but are not intended to limit the present invention.

[0081] Example 1: Figure 2 This is a second structural diagram of the clock switching device provided by the present invention. Figure 2 As shown, the server may include a server head system (referred to as HOST) and a GPU BOX system (referred to as BOX), the two systems are interconnected using a dedicated cable, and the clock switching device may be deployed on the server. The clock switching device may include a first clock generator 201, a first clock buffer 202, a first high-speed connector 203, a baseboard management controller 204, a clock multiplexer 205, a second clock generator 206, a second clock buffer 207, and a second high-speed connector 208. Among them, the first clock generator, the first clock buffer, and the first high-speed connector may be deployed on the HOST, and the baseboard management controller, the clock multiplexer, the second clock generator, the second clock buffer, and the second high-speed connector may be deployed on the BOX.

[0082] like Figure 2 As shown, a first clock generator is deployed on the HOST, which can generate a clock source and provide clocks to other devices 209 (such as CPU and other devices) on the HOST through a first clock buffer. At the same time, it also provides clock sources to the back-end BOX through a high-speed connector and cable.

[0083] like Figure 2As shown, the BOX can be deployed with devices such as a second clock generator, a clock multiplexer (clock switch), a second clock buffer, and a BMC. The second clock generator is used to provide the devices on the BOX with clocks that are different from the HOST in the case of non-co-source clocks; the clock multiplexer is used to select co-source or non-co-source clocks; the second clock buffer receives the output clock source after the clock multiplexer selects, expands the clock according to the actual number of devices in the BOX, and outputs it to each device; the BMC and other logic control devices are used to control the clock channel selection signal of the clock multiplexer.

[0084] Example 2: Figure 3 This is the third structural diagram of the clock switching device provided by the present invention, such as Figure 3 As shown, the clock switching device can be deployed on a server, and the clock switching device may include a first clock generator 301, a first clock buffer 302, a first high-speed connector 303, a baseboard management controller 304, a clock multiplexer 305, a PCIe switch chip 306, a second clock generator 307, a second clock buffer 308, a second high-speed connector 309, a first Flash 310 and a second Flash 311.

[0085] like Figure 3 As shown, the HOST end uses a first clock generator to generate a first clock signal, and the generated first clock signal is respectively given to the CPU of the HOST end, other PCIe devices of the HOST end, and the BOX. The first clock signal given to the BOX is transmitted through a high-speed connector and a dedicated cable.

[0086] like Figure 3 As shown, the BOX end has a second clock generator for generating a second clock signal which is not identical to the first clock signal at the HOST end;

[0087] like Figure 3 As shown, the first clock signal and the second clock signal are connected to the chip as two inputs of the clock multiplexer (the first clock signal is input to the first clock input interface of the chip, and the second clock signal is input to the second clock input interface of the chip), and the chip's selection signal is connected to the BMC chip at the BOX end. The BMC can control the chip's selection signal control interface output by controlling GPIO; taking the chip 9DML4493A as an example, the selection signals are SEL0 and SEL1. By controlling the level states of the two signals, the target clock signal output by the chip is controlled to be selected from the same source or non-same source. The second clock buffer can convert one target clock signal into multiple target clock signals and output them to other devices 312 on the BOX.

[0088] like Figure 3As shown in the figure, in order to expand the number of PCIe, PCIe switch chips are usually used in BOX design. PCIe switch chips use SPI flash for firmware storage. The firmware of PCIe switch chips will also be different for homologous and non-homologous clocks. Two chips, the first Flash and the second Flash, can be mounted under the PCIe switch chip. The two chips store homologous clock firmware and non-homologous clock firmware respectively.

[0089] like Figure 3 As shown in the figure, after the BMC modifies the GPIO status, it transmits the information to the PCIe switch chip through I2C. After the PCIE switch chip parses the information, it controls the chip select signal and selects one of the flash chips for communication, thereby adapting to the situation of the same source clock or the non-same source clock.

[0090] It is understandable that through Figure 3 The clock switching device shown can realize the switching between the same source and non-same source clocks without the need to select the clock signal through hardware rework. At the same time, the firmware version of the relevant chip can be selected to synchronously adapt the clock mode.

[0091] It is understandable that by using a clock switching chip to implement software control, possible damage to the board caused by the use of welding tools during the debugging process can be reduced; at the same time, according to the current clock mode, the firmware required by the chip is automatically determined and called, thereby improving the system debugging efficiency.

[0092] The clock switching device provided by the present invention determines the target clock signal among multiple clock signals through the BMC, outputs a first control instruction to the clock multiplexer, and outputs a second control instruction to the PCIe switch. It can control the clock multiplexer to output the target clock signal and control the PCIe switch to load the PCIe firmware corresponding to the target clock signal. It can automatically switch the clock source and automatically adjust the firmware loaded by the PCIe switch, thereby improving the debugging efficiency.

[0093] Figure 4 is a flow chart of the clock switching method provided by the present invention, such as Figure 4 As shown, the clock switching method can be applied to any of the above clock switching devices, the execution subject of the clock switching method can be a BMC, and the clock switching method includes:

[0094] Step 401, determining a target clock signal among two or more clock signals;

[0095] Step 402, outputting a first control instruction to the clock multiplexer, and outputting a second control instruction to the PCIe switch;

[0096] The first control instruction is used to instruct the clock multiplexer to output the target clock signal, and the second control instruction is used to instruct the PCIe switch to load the PCIe firmware corresponding to the target clock signal.

[0097] Optionally, according to a clock switching method provided by the present invention, the clock switching device is deployed on a server, the two or more clock signals include: a first clock signal and a second clock signal, the first clock signal is a signal of the same source as the clock signal of the CPU of the server, and the second clock signal is a signal of a different source than the clock signal of the CPU of the server, and determining the target clock signal from the two or more clock signals includes:

[0098] In the case where it is determined that the PCIe device of the server and the CPU of the server are in a homology mode, determining the first clock signal as the target clock signal;

[0099] Or, when it is determined that the PCIe device of the server and the CPU of the server are in a non-homologous mode, the second clock signal is determined as the target clock signal.

[0100] The clock switching method provided by the present invention determines the target clock signal among multiple clock signals through the BMC, outputs a first control instruction to the clock multiplexer, and outputs a second control instruction to the PCIe switch. The clock multiplexer can be controlled to output the target clock signal and the PCIe switch can be controlled to load the PCIe firmware corresponding to the target clock signal. The clock source can be automatically switched and the firmware loaded by the PCIe switch can be automatically adjusted, thereby improving the debugging efficiency.

[0101] Figure 5 It is a structural diagram of the BMC provided by the present invention, such as Figure 5 As shown, the BMC may include: a processor 510, a communications interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communications interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the clock switching method, for example, the method includes:

[0102] determining a target clock signal among two or more clock signals;

[0103] Outputting a first control instruction to the clock multiplexer, and outputting a second control instruction to the PCIe switch;

[0104] The first control instruction is used to instruct the clock multiplexer to output the target clock signal, and the second control instruction is used to instruct the PCIe switch to load the PCIe firmware corresponding to the target clock signal.

[0105] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0106] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the clock switching method provided by the above methods, for example, the method includes:

[0107] determining a target clock signal among two or more clock signals;

[0108] Outputting a first control instruction to the clock multiplexer, and outputting a second control instruction to the PCIe switch;

[0109] The first control instruction is used to instruct the clock multiplexer to output the target clock signal, and the second control instruction is used to instruct the PCIe switch to load the PCIe firmware corresponding to the target clock signal.

[0110] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the clock switching method provided by the above methods is implemented, for example, the method includes:

[0111] determining a target clock signal among two or more clock signals;

[0112] Outputting a first control instruction to the clock multiplexer, and outputting a second control instruction to the PCIe switch;

[0113] The first control instruction is used to instruct the clock multiplexer to output the target clock signal, and the second control instruction is used to instruct the PCIe switch to load the PCIe firmware corresponding to the target clock signal.

[0114] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0115] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0116] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A clock switching device, characterized in that: include: Baseboard management controller, clock multiplexer, and high-speed serial computer expansion bus switch, wherein: The baseboard management controller is used to determine a target clock signal among two or more clock signals, and output a first control instruction to the clock multiplexer, and output a second control instruction to the high-speed serial computer expansion bus switch, wherein the first control instruction is used to instruct the clock multiplexer to output the target clock signal, and the second control instruction is used to instruct the high-speed serial computer expansion bus switch to load the high-speed serial computer expansion bus firmware corresponding to the target clock signal; The clock multiplexer is used to receive the two or more clock signals and output the target clock signal based on the first control instruction; The clock switching device is deployed on a server, the two or more clock signals include: a first clock signal and a second clock signal, the first clock signal is a signal of the same source as the clock signal of the CPU of the server, and the second clock signal is a signal of a different source than the clock signal of the CPU of the server, and the baseboard management controller is specifically used for: In the case where it is determined that the high-speed serial computer expansion bus device of the server and the CPU of the server are in a homology mode, determining the first clock signal as the target clock signal; or, in the case where it is determined that the high-speed serial computer expansion bus device of the server and the CPU of the server are in a non-homologous mode, determining the second clock signal as the target clock signal; Wherein, the high-speed serial computer expansion bus switch comprises a high-speed serial computer expansion bus switch chip and a storage module; The high-speed serial computer expansion bus switching chip is used to receive a second control instruction sent by the baseboard management controller, and load the high-speed serial computer expansion bus firmware corresponding to the target clock signal from the storage module based on the second control instruction; The storage module includes a first storage unit and a second storage unit, the first storage unit is used to store the high-speed serial computer expansion bus firmware corresponding to the first clock signal, and the second storage unit is used to store the high-speed serial computer expansion bus firmware corresponding to the second clock signal; the high-speed serial computer expansion bus switching chip is specifically used for: When the target clock signal is the first clock signal, loading a high-speed serial computer expansion bus firmware corresponding to the first clock signal from the first storage unit; Or, when the target clock signal is the second clock signal, a high-speed serial computer expansion bus firmware corresponding to the second clock signal is loaded from the second storage unit.

2. The clock switching device according to claim 1, characterized in that: Also includes: A first clock generating module, a second clock generating module and a first clock buffer; The first clock generating module is used for generating the first clock signal, and outputting the first clock signal to the first clock buffer; The first clock buffer is used to generate a plurality of first clock signals by frequency replication, and output one clock signal of the plurality of first clock signals to the clock multiplexer; The second clock generating module is used for generating the second clock signal and outputting the second clock signal to the clock multiplexer.

3. The clock switching device according to any one of claims 1 to 2, characterized in that: It also includes a second clock buffer, which is used to receive the target clock signal output by the clock multiplexer and generate multiple target clock signals through frequency replication.

4. The clock switching device according to any one of claims 1 to 2, characterized in that: The first control instruction is transmitted between the baseboard management controller and the clock multiplexer via a universal input / output interface; the second control instruction is transmitted between the baseboard management controller and the high-speed serial computer expansion bus switch via a serial communication interface.

5. A server, characterized in that: It comprises a clock switching device as described in any one of claims 1 to 4.

6. A clock switching method, characterized in that: A clock switching device as claimed in any one of claims 1 to 4, comprising: determining a target clock signal among two or more clock signals; Outputting a first control instruction to the clock multiplexer, and outputting a second control instruction to a high-speed serial computer expansion bus switch; The first control instruction is used to instruct the clock multiplexer to output the target clock signal, and the second control instruction is used to instruct the high-speed serial computer expansion bus switch to load the high-speed serial computer expansion bus firmware corresponding to the target clock signal.

7. The clock switching method according to claim 6, characterized in that: The clock switching device is deployed on a server, the two or more clock signals include: a first clock signal and a second clock signal, the first clock signal is a signal of the same source as the clock signal of the CPU of the server, and the second clock signal is a signal of a different source than the clock signal of the CPU of the server, and determining a target clock signal from the two or more clock signals includes: In the case where it is determined that the high-speed serial computer expansion bus device of the server and the CPU of the server are in a homology mode, determining the first clock signal as the target clock signal; Or, when it is determined that the high-speed serial computer expansion bus device of the server and the CPU of the server are in a non-homologous mode, the second clock signal is determined as the target clock signal.