Computer motherboard and how to configure the central processing unit

By using programmable logic devices on the computer motherboard to manage the master-slave configuration of the central processor, automatic switching between multi-channel motherboards and redundant single-channel motherboards is realized, which solves the problem of difficulty in realizing redundant design of computing units in the existing technology. Maintenance costs are reduced.

CN118410003BActive Publication Date: 2024-09-17INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410858381.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-17
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Existing technology cannot realize automatic switching between multi-channel motherboards and redundant single-channel motherboards, making it difficult to implement redundant design of computing units in servers and increasing development and maintenance costs.

Method used

By using programmable logic devices on the computer motherboard to connect multiple central processors, and setting them to multi-channel motherboard mode or redundant single-channel motherboard mode according to the configuration information, master-slave configuration and automatic switching of the central processor are realized.

Benefits of technology

Automatic switching between multi-channel motherboards and redundant single-channel motherboards is realized, which improves the flexibility of business switching and reduces the maintenance cost of computer motherboards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118410003B
    Figure CN118410003B
Patent Text Reader

Abstract

The embodiment of the present application provides a computer motherboard and a method for setting a central processing unit, wherein the computer motherboard includes: a programmable logic device, N central processing units, the programmable logic device is connected to the N central processing units, and is used to send configuration information to each central processing unit to set the computer motherboard to a multi-way motherboard mode or a redundant single-way motherboard mode; in the multi-way motherboard mode, the N central processing units include a main central processing unit and N-1 slave central processing units; in the redundant single-way motherboard mode, the N central processing units are configured as N main central processing units. Through this application, the problem that the multi-way motherboard and the redundant single-way motherboard cannot be automatically switched in the related art can be solved, the flexibility of the computer motherboard service switching is improved, and the maintenance cost of the computer motherboard is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and in particular, to a computer motherboard and a method for setting a central processing unit. Background Art

[0002] With the development of cloud computing, redundant design is becoming more and more popular in order to ensure high reliability of business operations. Redundant design in servers has become an indispensable technology. The so-called redundancy means designing two identical modules in a server, such as PSU, fan, data disk, etc. The redundancy of computing units is the most difficult to achieve in a server, which is also the most critical redundancy.

[0003] Although with the launch of the latest technology, PCH is integrated into the CPU, making it possible to design multiple single-channel systems on a dual-channel or multi-channel motherboard, it is only possible to design multiple single-channel motherboards on the same motherboard. As for the switching between multi-channel motherboards and redundant single-channel motherboards, they are still designed on two different motherboards. By manually replacing two motherboards to meet the needs of business architecture replacement, the development cost is increased, the business type is single, and the maintenance cost of the motherboard is also increased.

[0004] There is currently no effective solution to the above problems. Summary of the invention

[0005] The embodiments of the present application provide a computer motherboard and a method for setting a central processing unit, so as to at least solve the problem in the related art that automatic switching between a multi-channel motherboard and a redundant single-channel motherboard cannot be achieved.

[0006] According to one embodiment of the present application, a computer motherboard is provided, comprising: a programmable logic device, N central processing units, wherein N is an integer greater than or equal to 2, the programmable logic device is connected to the N central processing units, and is used to send the configuration information to each of the central processing units, so as to set the computer motherboard to a multi-way motherboard mode or a redundant single-way motherboard mode; in the multi-way motherboard mode, the N central processing units include a master central processing unit and N-1 slave central processing units, the master central processing unit loads startup software from a startup code storage area, and the N-1 slave central processing units share the startup software loaded by the master central processing unit; in the redundant single-way motherboard mode, the N central processing units are configured as N master central processing units, and the N master central processing units each loads startup software from their respective startup code storage areas.

[0007] In an exemplary embodiment, the N central processors are connected via a high-speed channel; in the multi-way motherboard mode, the high-speed channel between the master central processor and the slave central processor is in an enabled state, the high-speed channel between the slave central processors is in the enabled state, or the high-speed channel between the slave central processors is configured to an enabled state or a disabled state based on the configuration information; in the redundant single-way motherboard mode, the high-speed channel between the master central processors is in a disabled state.

[0008] In an exemplary embodiment, a basic management control unit is connected to the programmable logic device and the network port, and is used to obtain configuration information through the network port and send the configuration information to the programmable logic device when the computer motherboard is in the power-on and power-off state.

[0009] In an exemplary embodiment, each of the N central processing units is respectively connected to a boot code storage area, and the boot code storage area is used to store boot software, wherein, when the computer motherboard is turned on, the programmable logic device controls the N central processing units to power on; when the first central processing unit among the N central processing units is the main central processing unit, the first central processing unit reads the first boot software from the first boot code storage area connected to the first central processing unit to start the first central processing unit through the first boot software, wherein the first central processing unit is any central processing unit among the N central processing units.

[0010] In an exemplary embodiment, in the multi-way motherboard mode, the N central processors include a main central processor and N-1 slave central processors, the main central processor loads the startup software from the startup code storage area, and the N-1 slave central processors share the startup software loaded by the main central processor and further include: the slave central processor among the N central processors loads the first startup software through the high-speed channel between the central processors connected thereto, so as to start the slave central processor through the first startup software; wherein the second central processor connected adjacent to the first central processor is the slave central processor, and the second central processor loads the first startup software through the high-speed channel, so as to start the second central processor through the first startup software; when the third central processor connected adjacent to the second central processor is the slave central processor, when the high-speed channel between the second central processor and the third central processor is in the enabled state, the third central processor loads the first startup software through the high-speed channel between the second central processor and the second central processor, so as to start the third central processor through the first startup software.

[0011] In an exemplary embodiment, in the redundant single-way motherboard mode, the N central processing units are configured as N main central processing units, and the N main central processing units all load startup software from their respective startup code storage areas, including: a fourth central processing unit connected to the first central processing unit is the main central processing unit, and the fourth central processing unit reads a fourth startup software from a fourth startup code storage area connected to the fourth central processing unit to start the fourth central processing unit through the fourth startup software.

[0012] In an exemplary embodiment, each of the N central processing units is respectively connected to an external plug-in card device, wherein, when the computer motherboard is set to the multi-way motherboard mode, the main central processing unit sends a reset signal to the programmable logic device to instruct the programmable logic device to reset the external plug-in card device connected to the main central processing unit and the external plug-in card device connected to the slave central processing unit according to the reset signal.

[0013] In an exemplary embodiment, each of the N central processing units is respectively connected to an external plug-in card device, wherein, when the computer motherboard is set to the redundant single-channel motherboard mode, the N main central processing units respectively send reset signals to the programmable logic device to instruct the programmable logic device to reset the external plug-in card devices connected to the corresponding main central processing units according to the reset signals.

[0014] In an exemplary embodiment, each of the N central processors is also connected to a system disk, respectively, wherein, when the computer motherboard is set to the multi-way motherboard mode, when the computer motherboard is turned on, the main central processor loads the operating system from the system disk connected thereto; the slave central processor among the N central processors loads the operating system through a high-speed channel between the central processors connected thereto; wherein, when the first central processor among the N central processors is the main central processor, the first central processor loads the first operating system from the first system disk connected to the first central processor, and the first central processor is any central processor among the N central processors; the second central processor connected to the first central processor is the slave central processor, and the second central processor loads the first operating system through a high-speed channel between the first central processor; the third central processor connected adjacent to the second central processor is the slave central processor, and the third central processor loads the first operating system through a high-speed channel between the second central processor.

[0015] In an exemplary embodiment, when the computer motherboard is set to the redundant single-channel motherboard mode, it also includes: a fourth central processing unit connected to the first central processing unit is the main central processing unit, and the fourth central processing unit loads a fourth operating system from a fourth system disk connected to the fourth central processing unit.

[0016] In an exemplary embodiment, each of the N central processing units is connected to a memory, respectively, wherein, when the computer motherboard is set to the multi-way motherboard mode, the main central processing unit reads data from the memory connected thereto; the slave central processing unit among the N central processing units reads the data through a high-speed channel between the central processing units connected thereto; wherein, when the first central processing unit among the N central processing units is the main central processing unit, the first central processing unit reads first data from a first memory connected to the first central processing unit, and the first central processing unit is any central processing unit among the N central processing units; the second central processing unit connected to the first central processing unit is the slave central processing unit, and the second central processing unit loads the first data through a high-speed channel between the second central processing unit and the first central processing unit; the third central processing unit connected adjacent to the second central processing unit is the slave central processing unit, and the third central processing unit loads the first data through a high-speed channel between the second central processing unit and the second central processing unit.

[0017] In an exemplary embodiment, when the computer motherboard is set to the redundant single-channel motherboard mode, it also includes: a fourth central processing unit connected to the first central processing unit is the main central processing unit, and the fourth central processing unit reads fourth data from a fourth memory connected to the fourth central processing unit.

[0018] In an exemplary embodiment, the programmable logic device is connected to the N central processors, including: when the configuration information indicates that the first central processor is the master central processor, the programmable logic device is used to control the level state of the first master-slave pin of the first central processor to be a high level; when the configuration information indicates that the second central processor is the slave central processor, the programmable logic device is used to control the level state of the second master-slave pin of the second central processor to be a low level.

[0019] In an exemplary embodiment, the programmable logic device is connected to the N central processors, and further includes: the programmable logic device is connected to a reset pin on each of the central processors to receive a reset signal sent by each of the central processors through the reset pin.

[0020] In an exemplary embodiment, the method further includes: the N central processing units are connected in sequence, or the N central processing units are connected in a ring.

[0021] According to another embodiment of the present application, a method for setting a central processing unit is provided, which is applied to the programmable logic device in the above-mentioned computer motherboard, including: when the computer motherboard is in a powered-on and powered-off state, obtaining configuration information from a basic management control unit; setting the computer motherboard to a multi-way motherboard mode or a redundant single-way motherboard mode according to the configuration information, wherein, in the multi-way motherboard mode, the N central processing units include a master central processing unit and N-1 slave central processing units, the master central processing unit loads startup software from a startup code storage area, and the N-1 slave central processing units share the startup software loaded by the master central processing unit; in the redundant single-way motherboard mode, the N central processing units are configured as N master central processing units, and the N master central processing units each loads startup software from their respective startup code storage areas, wherein N is an integer greater than or equal to 2.

[0022] In an exemplary embodiment, the computer motherboard is set to a multi-way motherboard mode or a redundant single-way motherboard mode according to configuration information, including: when the computer motherboard is set to the multi-way motherboard mode, the level state of the master and slave pins of the master central processing unit indicated in the configuration information is set to a high level; the level state of the master and slave pins of the slave central processing unit indicated in the configuration information is set to a low level; when the computer motherboard is set to the redundant single-way motherboard mode, the level state of the master and slave pins of the N central processing units are all set to a high level.

[0023] In an exemplary embodiment, after the computer motherboard is set to a multi-way motherboard mode or a redundant single-way motherboard mode according to configuration information, the method further includes: when the computer motherboard is set to the multi-way motherboard mode, receiving a reset signal from a reset pin of the main central processing unit; performing a reset operation on external plug-in card devices respectively connected to the main central processing unit and the slave central processing unit according to the reset signal; when the computer motherboard is set to the redundant single-way motherboard mode, receiving reset signals respectively from N main central processing units, and resetting the external plug-in card devices connected to the corresponding main central processing units respectively according to the reset signals.

[0024] According to another embodiment of the present application, a method for starting a central processing unit is provided, which is applied to the main central processing unit in the above-mentioned computer motherboard, comprising: when the computer motherboard is turned on, the main central processing unit reads the startup software from the startup code storage area connected to it, so as to start the main central processing unit through the startup software, wherein the working modes of the computer motherboard include: multi-way motherboard mode and redundant single-way motherboard mode, in which the N central processing units include a main central processing unit and N-1 slave central processing units; in the redundant single-way motherboard mode, the N central processing units are configured as N main central processing units; when the computer motherboard is set to the multi-way motherboard mode, the main central processing unit loads the startup software from the startup code storage area, and sends the startup software to the N-1 slave central processing units, so that the N-1 slave central processing units share the startup software loaded by the main central processing unit; when the computer motherboard is set to the redundant single-way motherboard mode, the N main central processing units all load the startup software from their respective startup code storage areas.

[0025] In an exemplary embodiment, after starting the main central processing unit through the startup software, the method also includes: when the computer motherboard is set to the multi-way motherboard mode, the main central processing unit sends a reset signal to the programmable logic device to instruct the programmable logic device to reset the external card device connected to the main central processing unit and the external card device connected to the slave central processing unit; when the computer motherboard is set to the redundant single-way motherboard mode, the N central processing units respectively send reset signals to the programmable logic device to instruct the programmable logic device to reset the external card device connected to the corresponding main central processing unit.

[0026] According to another embodiment of the present application, a method for starting a central processing unit is provided, which is applied to a slave central processing unit in the above-mentioned computer motherboard, including: when the computer motherboard is set to a multi-way motherboard mode, the slave central processing unit obtains startup software from the central processing unit connected thereto through a high-speed channel, and the slave central processing unit performs a startup operation through the startup software, wherein, in the multi-way motherboard mode, the N central processing units in the computer motherboard include a master central processing unit and N-1 slave central processing units, the master central processing unit loads the startup software from a startup code storage area, and the N-1 slave central processing units share the startup software loaded by the master central processing unit, and N is an integer greater than or equal to 2.

[0027] According to another embodiment of the present application, a programmable logic device is provided, including: a first acquisition module, used to acquire configuration information from a basic management control unit when the computer motherboard is in a powered-on and powered-off state; a setting module, used to set the computer motherboard to a multi-way motherboard mode or a redundant single-way motherboard mode according to the configuration information, wherein in the multi-way motherboard mode, the N central processors include a main central processor and N-1 slave central processors, the main central processor loads startup software from a startup code storage area, and the N-1 slave central processors share the startup software loaded by the main central processor; in the redundant single-way motherboard mode, the N central processors are configured as N main central processors, and the N main central processors each load the startup software from their respective startup code storage areas, wherein N is an integer greater than or equal to 2.

[0028] According to another embodiment of the present application, a main central processing unit is provided, comprising: a first reading module, for, when the computer motherboard is turned on, the main central processing unit reads the startup software from the startup code storage area connected thereto, so as to start the main central processing unit through the startup software, wherein the working modes of the computer motherboard include: a multi-way motherboard mode and a redundant single-way motherboard mode, in which the N central processing units include a main central processing unit and N-1 slave central processing units; in the redundant single-way motherboard mode, the N central processing units are configured as N main central processing units; a first loading module, for, when the computer motherboard is set to the multi-way motherboard mode, loading the startup software from the startup code storage area, and sending the startup software to the N-1 slave central processing units, so that the N-1 slave central processing units share the startup software loaded by the main central processing unit; a second loading module, for, when the computer motherboard is set to the redundant single-way motherboard mode, loading the startup software from their respective startup code storage areas.

[0029] According to another embodiment of the present application, a slave central processor is provided, comprising: a second acquisition module, for obtaining startup software from a central processor connected thereto via a high-speed channel when the computer motherboard is set to a multi-way motherboard mode, the slave central processor performing a startup operation via the startup software, wherein, in the multi-way motherboard mode, the N central processors in the computer motherboard include a main central processor and N-1 slave central processors, the main central processor loads the startup software from a startup code storage area, the N-1 slave central processors share the startup software loaded by the main central processor, and N is an integer greater than or equal to 2.

[0030] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0031] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0032] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0033] Through the present application, a programmable logic device is connected to N central processing units, and is used to send configuration information to each central processing unit to set the computer motherboard to a multi-way motherboard mode or a redundant single-way motherboard mode; in the multi-way motherboard mode, the N central processing units include a master central processing unit and N-1 slave central processing units, the master central processing unit loads startup software from a startup code storage area, and the N-1 slave central processing units share the startup software loaded by the master central processing unit; in the redundant single-way motherboard mode, the N central processing units are configured as N master central processing units, and the N master central processing units all load startup software from their respective startup code storage areas.

[0034] Since the programmable logic device can perform master-slave configuration on each of the multiple CPUs according to the configuration information, the CPU can be flexibly configured as a master CPU or a slave CPU according to the needs, and the automatic switching of the multi-channel or redundant single-channel motherboard of the motherboard can be realized. Therefore, the problem that the automatic switching of the multi-channel motherboard and the redundant single-channel motherboard cannot be realized in the related technology can be solved, the flexibility of the computer motherboard service switching is improved, and the maintenance cost of the computer motherboard is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 The structure of the computer motherboard according to the embodiment of the present application is shown in FIG. Figure 1 ;

[0036] Figure 2 The structure of the computer motherboard according to the embodiment of the present application is shown in FIG. Figure 2 ;

[0037] Figure 3 is a CPU configuration signal connection diagram according to an embodiment of the present application;

[0038] Figure 4 is a schematic diagram of a mainboard topology of dual CPUs according to an embodiment of the present application;

[0039] Figure 5 is a dual-path motherboard reset signal topology diagram according to an embodiment of the present application;

[0040] Figure 6 is a redundant single-channel motherboard reset signal topology diagram according to an embodiment of the present application;

[0041] Figure 7 is a flowchart of a method for setting a central processing unit according to an embodiment of the present application;

[0042] Figure 8 The process of the method for starting the central processing unit according to the embodiment of the present application is as follows Figure 1 ;

[0043] Fig. 9 The process of the method for starting the central processing unit according to the embodiment of the present application is as follows Figure 1 ;

[0044] Fig.10 is a structural block diagram of a programmable logic device according to an embodiment of the present application;

[0045] Fig.11 is a structural block diagram of a main central processing unit according to an embodiment of the present application;

[0046] Fig.12 It is a structural block diagram of a slave central processing unit according to an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to better understand the embodiments of the present application, some words in the present application are explained below:

[0048] CPLD: Complex Programmable Logic Device, a programmable logic device that can control pin signals through internally embedded software.

[0049] BMC: Basic Management Control Unit, basic management control unit, its main function is to manage the entire server.

[0050] CPU: Central Processing Unit, the main computing processing unit of computers and servers.

[0051] Redundancy: Design two identical modules in a server, such as PSU, fan, data disk, etc. For example, two PSUs are often designed in a server. When one of the PSUs fails, the other PSU can continue to supply power to the server to ensure the normal operation of the server; or multiple fans, if one fan fails, the other fans can continue to work to ensure the normal heat dissipation of the server; or data hard disks must support redundant design. Data disks contain a large amount of critical data required for the business. When a disk fails, if there is no redundant design, it will inevitably lead to data loss and cause serious failures.

[0052] Multi-way motherboard: Multiple CPUs are designed on a PCB motherboard, one master CPU and the others are slave CPUs. Each CPU is interconnected through a high-speed bus, and the master CPU is interconnected with the PCH. These master chips form a whole and run an operating system. The computing and processing tasks performed by multiple CPUs are all for this one operating system.

[0053] Redundant single-channel motherboard: Two CPUs are designed on one motherboard. The two CPUs are not connected to each other. Each CPU is connected to an operating system, which is equivalent to running two independent operating systems on the motherboard. When one CPU and operating system disk fails, the other continues to run to achieve redundant motherboard design.

[0054] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0055] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0056] In this embodiment, a computer motherboard is provided. Figure 1 The structure of the computer motherboard according to the embodiment of the present application is shown in FIG. Figure 1 ,like Figure 1 As shown, the computer motherboard includes: N central processing units, wherein N is an integer greater than or equal to 2, including: the programmable logic device is connected to the N central processing units, and is used to send the configuration information to each of the central processing units to set the computer motherboard to a multi-way motherboard mode or a redundant single-way motherboard mode; in the multi-way motherboard mode, the N central processing units include a main central processing unit and N-1 slave central processing units, the main central processing unit loads the startup software from the startup code storage area, and the N-1 slave central processing units share the startup software loaded by the main central processing unit; in the redundant single-way motherboard mode, the N central processing units are configured as N main central processing units, and the N main central processing units each load the startup software from their respective startup code storage areas.

[0057] The above-mentioned computer motherboard can be a motherboard in a server chassis, which mainly includes a programmable logic device (CPLD), a central processing unit (CPU), etc., wherein the CPLD is used to realize the logic control and data processing of various functional modules, and the CPU is used to execute various algorithms and logical operations. There can be multiple CPUs on the computer motherboard working together.

[0058] Specifically, the N central processors are connected via a high-speed channel; in the multi-way motherboard mode, the high-speed channel between the master central processor and the slave central processor is in an enabled state, the high-speed channel between the slave central processors is in the enabled state, or the high-speed channel between the slave central processors is configured to an enabled state or a closed state based on the configuration information; in the redundant single-way motherboard mode, the high-speed channel between the master central processors is in a closed state.

[0059] In this embodiment, multiple CPUs are interconnected in sequence through high-speed channels, and the configuration pins of each CPU are connected to the CPLD, so that the enable signal of the CPU controlling the power-on of peripheral devices can be uniformly allocated by the CPLD; when the working mode of the computer motherboard is the multi-way motherboard mode, one CPU among the multiple CPUs is configured as the master CPU, and the remaining CPUs are configured as slave CPUs, wherein the above-mentioned master CPU can be any specified CPU among the multiple CPUs, or can be a CPU pre-set as a default among the multiple CPUs, and the high-speed channels between the multiple CPUs are in a time-enabled state; when the working mode of the computer motherboard is the redundant single-way motherboard mode, all the multiple CPUs are configured as the master CPU, wherein the high-speed channels between the multiple CPUs are in a closed state.

[0060] As an optional implementation, the computer motherboard also includes: a basic management control unit, connected to the programmable logic device and the network port, for obtaining configuration information through the network port when the computer motherboard is in the power-on and power-off state, and sending the configuration information to the programmable logic device.

[0061] The above-mentioned computer motherboard can be a motherboard in a server chassis, and the motherboard also includes a basic management control unit (BMC), and the BMC is used to monitor and manage the operating status and communication functions of the entire system, wherein one end of the BMC is connected to the CPLD, and the other end is interconnected with an external switch through a network port. When the computer motherboard is powered on and turned off, the CPLD and the BMC are both in a powered-on working state, while each CPU is not powered on and not working. At this time, the technician can access the BMC through the network to issue a control instruction, so that the BMC obtains the control instruction through the network port and sends the control instruction to the CPLD, wherein the control instruction is used to indicate whether the working mode of the computer motherboard is a multi-way motherboard mode or a redundant single-way motherboard mode, and the control instruction includes the configuration information of each CPU, and the configuration information is used to indicate whether each CPU is a master CPU or a slave CPU. After receiving the control instruction, the CPLD parses the control instruction to obtain the configuration information of each CPU, and sets the configuration pins of each connected CPU according to the configuration information, and at the same time, performs corresponding operations on the high-speed channel between the CPUs according to the configuration of each CPU.

[0062] Optionally, setting the configuration pins of each CPU further includes: determining the CPUs to be configured among the multiple CPUs according to the control instruction, and the CPUs to be configured may be all or part of the CPUs on the computer motherboard. According to the configuration information of each CPU among the CPUs to be configured, each CPU among the CPUs to be configured is configured as a master central processing unit or a slave central processing unit.

[0063] Optionally, when the two adjacent CPUs are both the CPUs that need to be configured, corresponding operations are performed on the high-speed channel between the two adjacent CPUs according to the configuration information of the two adjacent CPUs; when the two adjacent CPUs are not the CPUs that need to be configured, or one of the two adjacent CPUs is the CPU that needs to be configured and the other is not the CPU that needs to be configured, the high-speed channel between the two adjacent CPUs is in a closed state.

[0064] Optionally, when the two adjacent CPUs are respectively a master CPU and a slave CPU, the high-speed channel between the adjacent CPUs is in an enabled state; when the two adjacent CPUs are both the master CPUs, the high-speed channel between the two adjacent CPUs is in a closed state; when the two adjacent CPUs are both the slave CPUs, the high-speed channel between the two adjacent CPUs is in an enabled state.

[0065] As an optional implementation, Figure 1In the process, the technician sends a control instruction to the BMC through the network. The control instruction is to configure CPU1-3 as a multi-way motherboard mode. The BMC receives the control instruction through the network and sends the control instruction to the CPLD. After receiving the control instruction, the CPLD parses the control instruction to obtain the configuration information of CPU1-3, wherein CPU1 is configured as the master CPU, and CPU2 and 3 are configured as slave CPUs. The CPLD sets the configuration pins of CPU1-3 according to the configuration information of CPU1-3. At the same time, according to the configuration information of CPU1-3, the high-speed channels between CPU1 and 2 and CPU2 and 3 are opened, and the high-speed channels between other CPUs are closed.

[0066] As an optional implementation, Figure 1 In the process, the technician sends a control instruction to the BMC through the network. The control instruction is to configure CPU1-3 as a single-channel redundant motherboard mode. The BMC receives the control instruction through the network and sends the control instruction to the CPLD. After receiving the control instruction, the CPLD parses the control instruction to obtain the configuration information of CPU1-3, wherein CPU1, CPU2 and CPU3 are all configured as main CPUs. The CPLD sets the configuration pins of CPU1-3 according to the configuration information of CPU1-3. At the same time, according to the configuration information of CPU1-3, the high-speed channels between CPU1 and 2 and between CPU2 and 3 are closed, and the high-speed channels between other CPUs are closed.

[0067] Through the above-mentioned computer motherboard, a multi-channel CPU is designed on a motherboard, wherein the master-slave configuration pins of the CPU are controlled by the CPLD. The CPLD can switch the CPU to the master or slave by changing the master-slave configuration pins of the CPU, thereby realizing the automatic switching of the motherboard's multi-channel or redundant single-channel, improving the performance and efficiency of the system, ensuring that the system can quickly switch to the backup path when facing an emergency, and ensuring the normal operation of the system. In addition, the automatic switching of multi-channel or redundant single-channel can also simplify the maintenance and management of the system, reduce the need for manual intervention, reduce maintenance costs, and improve the operability and maintainability of the system.

[0068] As an optional implementation, each of the N central processing units is respectively connected to a boot code storage area, and the boot code storage area is used to store boot software, wherein, when the computer motherboard is turned on, the programmable logic device controls the N central processing units to power on; when the first central processing unit among the N central processing units is the main central processing unit, the first central processing unit reads the first boot software from the first boot code storage area connected to the first central processing unit to start the first central processing unit through the first boot software, wherein the first central processing unit is any central processing unit among the N central processing units.

[0069] The above-mentioned boot code storage area can be a boot software storage area, the boot software can be a boot code BIOS, and the above-mentioned first central processing unit can be a main central processing unit (main CPU); when the computer motherboard is turned on, the main CPU will load the boot code BIOS from its boot code storage area, wherein the BIOS needs to access the BMC or access the proprietary registers in the CPLD before starting, and when reading the multi-way motherboard mode, the BIOS will turn on the high-speed channel between the CPUs to the enabled state, and perform the boot process at the same time; when the boot is completed, the main CPU will send a reset signal to the CPLD, and the CPLD will perform a global reset of the entire server, thereby realizing the normal startup of the multi-way motherboard.

[0070] As an optional implementation, in the multi-way motherboard mode, the N central processors include a main central processor and N-1 slave central processors, the main central processor loads the startup software from the startup code storage area, and the startup software shared by the N-1 slave central processors and loaded by the main central processor also includes: the slave central processor among the N central processors loads the first startup software through the high-speed channel between the central processors connected to it, so as to start the slave central processor through the first startup software; wherein, the second central processor connected adjacent to the first central processor is the slave central processor, and the second central processor loads the first startup software through the high-speed channel, so as to start the second central processor through the first startup software; when the third central processor connected adjacent to the second central processor is the slave central processor, when the high-speed channel between the second central processor and the third central processor is in the enabled state, the third central processor loads the first startup software through the high-speed channel between the second central processor and the second central processor, so as to start the third central processor through the first startup software.

[0071] When the working mode is a multi-way motherboard mode, the above-mentioned first central processing unit may be a master central processing unit (master CPU), and the above-mentioned second central processing unit and the third central processing unit may be slave central processing units (slave CPUs). When the master CPU and the slave CPU are directly connected, the master CPU enables a high-speed channel between the master CPU and the slave CPU through the startup code BIOS, so that the slave CPU can obtain the startup software of the master CPU through the high-speed channel. When the master CPU and the slave CPU are indirectly connected through other slave CPUs, the master CPU enables the high-speed channels between the master CPU and the slave CPU and between the slave CPUs through the startup code BIOS, so that the third central processing unit can obtain the startup software of the first central processing unit through the second central processing unit and the high-speed channel.

[0072] For example, Figure 1 As shown, when the connection mode of multiple CPUs is serial connection, the slave CPU obtains the startup software of the master CPU through the CPU that is closest to the master CPU among its adjacent CPUs, for example Figure 1 In the example, if CPU1 is the master CPU and other CPUs are slave CPUs, CPU2 obtains the startup software in the startup code storage area of ​​CPU1 through the high-speed channel between CPU1 and CPU3, and CPU3 obtains the startup software in the startup code storage area of ​​CPU1 through the high-speed channel between CPU2, and so on. N-1 Only by passing through the CPU N-2 、CPU N-1 Wait to obtain the startup software of CPU1.

[0073] Optionally, the method further includes: the N central processing units are connected in sequence, or the N central processing units are connected in a ring.

[0074] For example, in another optional embodiment, Figure 2 As shown, when the connection mode of multiple CPUs is a ring connection, the slave CPU obtains the startup software of the master CPU through any one of its adjacent CPUs, for example Figure 2 If CPU1 is the main CPU, CPU N-1 Can be done by passing through the CPU N-2 、CPU N-1 The startup software of CPU1 can be obtained through CPUN, thereby greatly reducing the channel path for obtaining the startup software of the main CPU from the CPU, and the startup software of the main CPU can be obtained faster.

[0075] Optionally, the slave CPU can obtain the startup software in the startup code storage area of ​​the master CPU according to the shortest path of the ring connection formed by the multiple CPUs. In the case where the i-th CPU is the master CPU among the multiple CPUs connected in the ring and the other CPUs are slave CPUs, since the multiple CPUs are connected in a ring, there are two paths (assuming the first path and the second path) for the j-th CPU to reach the i-th CPU. The j-th CPU can calculate the number of nodes on the first path and the second path, and the j-th CPU selects the path with the least number of nodes to obtain the startup software from the i-th CPU, i and j are integers greater than or equal to 1, and i is not equal to j. In this embodiment, the slave CPU obtains the startup software from the master CPU based on the shortest path, which can speed up the startup speed of the slave CPU and also achieve the technical effect of saving resources.

[0076] As an optional implementation, in the redundant single-channel motherboard mode, the N central processing units are configured as N main central processing units, and the N main central processing units all load startup software from their respective startup code storage areas, including: the fourth central processing unit connected to the first central processing unit is the main central processing unit, and the fourth central processing unit reads the fourth startup software from the fourth startup code storage area connected to the fourth central processing unit to start the fourth central processing unit through the fourth startup software.

[0077] The above-mentioned startup code storage area can be a startup software storage area, and the startup software can be a startup code BIOS. The above-mentioned first central processing unit and the fourth central processing unit can be main central processing units (main CPUs); each main CPU has a separate startup system. When the computer motherboard is started, each main CPU loads the startup code BIOS from its own startup code storage area. Before startup, the BIOS needs to access the BMC or access the proprietary registers in the CPLD. When the redundant single-channel motherboard mode is read, each main CPU closes the high-speed channel between the CPUs through its own BIOS, and performs the startup process at the same time; when the startup is completed, each main CPU will send a reset signal to the CPLD, and the CPLD controls the reset of the devices connected to each main CPU, thereby realizing the normal startup of the redundant single-channel CPU.

[0078] As an optional implementation, each of the N central processing units is respectively connected to an external card device, wherein, when the computer motherboard is set to the multi-way motherboard mode, the main central processing unit sends a reset signal to the programmable logic device to instruct the programmable logic device to reset the external card device connected to the main central processing unit and the external card device connected to the slave central processing unit according to the reset signal.

[0079] As an optional implementation, each of the N central processing units is respectively connected to an external plug-in card device, wherein, when the computer motherboard is set to the redundant single-channel motherboard mode, the N main central processing units respectively send reset signals to the programmable logic device to instruct the programmable logic device to reset the external plug-in card devices connected to the corresponding main central processing units according to the reset signals.

[0080] As an optional implementation, each of the N central processors is also connected to a system disk, respectively, wherein, when the computer motherboard is set to the multi-way motherboard mode, when the computer motherboard is turned on, the main central processor loads the operating system from the system disk connected thereto; the slave central processor among the N central processors loads the operating system through a high-speed channel between the central processors connected thereto; wherein, when the first central processor among the N central processors is the main central processor, the first central processor loads the first operating system from the first system disk connected to the first central processor, and the first central processor is any central processor among the N central processors; the second central processor connected to the first central processor is the slave central processor, and the second central processor loads the first operating system through a high-speed channel between the first central processor; the third central processor connected adjacent to the second central processor is the slave central processor, and the third central processor loads the first operating system through a high-speed channel between the second central processor.

[0081] As an optional implementation, when the computer motherboard is set to the redundant single-channel motherboard mode, it also includes: a fourth central processing unit connected to the first central processing unit is the main central processing unit, and the fourth central processing unit loads a fourth operating system from a fourth system disk connected to the fourth central processing unit.

[0082] As an optional implementation, when the computer motherboard is set to the redundant single-channel motherboard mode, it also includes: a fourth central processing unit connected to the first central processing unit is the main central processing unit, and the fourth central processing unit loads a fourth operating system from a fourth system disk connected to the fourth central processing unit.

[0083] As an optional embodiment, each of the N central processing units is connected to a memory, respectively, wherein, when the computer motherboard is set to the multi-way motherboard mode, the master central processing unit reads data from the memory connected thereto; the slave central processing unit among the N central processing units reads the data through a high-speed channel between the central processing units connected thereto; wherein, when the first central processing unit among the N central processing units is the master central processing unit, the first central processing unit reads first data from a first memory connected to the first central processing unit, and the first central processing unit is any central processing unit among the N central processing units; the second central processing unit connected to the first central processing unit is the slave central processing unit, and the second central processing unit loads the first data through a high-speed channel between the first central processing unit and the first central processing unit; the third central processing unit connected adjacent to the second central processing unit is the slave central processing unit, and the third central processing unit loads the first data through a high-speed channel between the second central processing unit and the second central processing unit.

[0084] As an optional implementation, when the computer motherboard is set to the redundant single-channel motherboard mode, it also includes: a fourth central processing unit connected to the first central processing unit is the main central processing unit, and the fourth central processing unit reads fourth data from a fourth memory connected to the fourth central processing unit.

[0085] As an optional implementation, the programmable logic device is connected to the N central processors, including: when the configuration information indicates that the first central processor is the master central processor, the programmable logic device is used to control the level state of the first master-slave pin of the first central processor to a high level; when the configuration information indicates that the second central processor is the slave central processor, the programmable logic device is used to control the level state of the second master-slave pin of the second central processor to a low level.

[0086] The above master and slave pins can be the legacy_SKT pins on the Intel platform, such as Figure 3 As shown, if it is a master CPU, the CPLD will pull the master and slave pins of the CPU to a high level, and if it is a slave CPU, the CPLD will pull the master and slave pins of the CPU to a low level.

[0087] As an optional implementation, the programmable logic device is connected to the N central processing units, and further includes: the programmable logic device is connected to a reset pin on each of the central processing units to receive a reset signal sent by each of the central processing units through the reset pin.

[0088] like Figure 3As shown, the reset signal reset can be sent from the CPU to the CPLD through the reset pin. After receiving the reset signal, the CPLD uniformly controls the external card and other peripheral devices.

[0089] As an optional implementation, Figure 4 is a schematic diagram of a dual-CPU motherboard topology according to an embodiment of the present application, such as Figure 4 As shown in the figure, two CPUs are designed on a motherboard, and a high-speed interconnection channel is designed between the two CPUs to communicate with each other; each CPU is connected to an independent memory, system disk, boot code (BIOS) storage area, external card, etc.; at the same time, the CPLD pins are connected to the CPU configuration pins; the BMC module has an external network port and is connected to the CPLD internally. When the user needs to configure the whole machine, the whole machine is powered on first. Before pressing a button, the whole machine is in the off state, and only the BMC, CPLD and other management modules are in the working state, and other modules are powered off and not working.

[0090] The user accesses the BMC through the network port and selects the mode that the whole machine needs to be configured in the BMC management interface. When configured as a dual-core motherboard (dual-core CPU), the BMC sends instructions to the CPLD, and the instructions contain configuration information. The CPLD controls the level status of the configuration pins connected to each CPU, configures CPU1 as the master CPU, and configures CPU2 as the slave CPU. At this time, press the power button. After the power button signal is transmitted to the CPLD, the CPLD controls the power-on of all devices; after CPU1 is powered on, it loads the startup software from the startup code storage area. At the same time, the configuration information read by the BIOS is configured as the master CPU, and the high-speed channel between CPU1 and CPU2 is enabled. After CPU2 is powered on, because the configuration information read is a slave CPU, it no longer loads the startup software from the startup code storage area, but shares the startup software loaded by CPU1. After CPU1 and CPU2 are started, as shown Figure 5 As shown in the figure, the main CPU (CPU1) sends a reset signal to the CPLD. After receiving the reset signal, because the CPLD also knows that this configuration is a dual-channel configuration, the CPLD will send a reset signal to all external card devices connected to the CPU, so that the high-speed link connection is successful. All devices can connect to the CPU and work, and all external card devices can be seen under the same operating system.

[0091] When configured as a redundant single-way motherboard (redundant single-way CPU), the BMC sends a command to the CPLD, which contains configuration information. The CPLD controls the level state of the configuration pins connected to each CPU, and configures both CPU1 and CPU2 as the main CPU. At this time, press the power button, and after the power button signal is transmitted to the CPLD, the CPLD controls the power-on of all devices. After CPU1 is powered on, it is configured as the main CPU according to the configuration information read, loads the startup software from the startup code storage area, and closes the high-speed channel between CPU1 and CPU2. After CPU2 is powered on, it is configured as the main CPU according to the configuration information read, loads the startup software from the startup code storage area, and closes the high-speed channel between CPU1 and CPU2. At this time, CPU1 and CPU2 each load their own software programs, and do not affect each other. After CPU1 and CPU2 have completed startup, as shown Figure 6 As shown, CPU1 and CPU2 send reset signals to CPLD respectively. After CPLD receives the reset signal, because CPLD also knows that this configuration is a redundant single-channel configuration, CPLD will send respective reset signals to the external card devices connected to each CPU, so as to achieve high-speed link connection success. All devices are connected to their respective CPUs for operation. Under this configuration, each CPU has its own independent operating system disk, and the operating system running on each CPU is also independent and does not affect each other. When CPLD receives reset signals from different CPUs, if some CPUs do not send a reset signal, CPLD will reset the external card devices interconnected to the CPU that has sent a reset signal, but will not reset the external card devices interconnected to the CPU that has not sent a reset signal. Until CPLD receives the reset signal of the corresponding CPU, CPLD will reset the corresponding external card settings, thereby completing the connection and use of the late-start CPU and its external card devices.

[0092] In this embodiment, a method for setting a central processing unit is provided. Figure 7 is a flowchart of a method for setting a central processing unit according to an embodiment of the present application. Figure 7 As shown, the method is applied to the programmable logic device in the above-mentioned computer motherboard, and the specific process includes the following steps:

[0093] Step S702, when the computer mainboard is powered on and powered off, obtaining configuration information from a basic management control unit;

[0094] The above configuration information may be configuration information of a central processing unit (CPU) configuration pin, and the configuration information is used to configure multiple CPUs as a master CPU or a slave CPU; a programmable logic device (CPLD) obtains a control instruction from a basic management control unit (BMC), and the control instruction is used to indicate whether the working mode of the computer motherboard is a multi-way motherboard mode or a redundant single-way motherboard mode, and the control instruction includes the configuration information, and the CPLD obtains the configuration information after parsing the control instruction.

[0095] Step S704, setting the computer motherboard to a multi-way motherboard mode or a redundant single-way motherboard mode according to the configuration information, wherein in the multi-way motherboard mode, the N central processors include a master central processor and N-1 slave central processors, the master central processor loads the startup software from the startup code storage area, and the N-1 slave central processors share the startup software loaded by the master central processor; in the redundant single-way motherboard mode, the N central processors are configured as N master central processors, and the N master central processors all load the startup software from their respective startup code storage areas, wherein N is an integer greater than or equal to 2.

[0096] Specifically, when the computer motherboard is set to a multi-way motherboard mode, the level states of the master and slave pins of the master central processing unit indicated in the configuration information are set to a high level; the level states of the master and slave pins of the slave central processing unit indicated in the configuration information are set to a low level; and when the computer motherboard is set to a redundant single-way motherboard mode, the level states of the master and slave pins of the N central processing units are all set to a high level.

[0097] The master and slave pins of the CPU are connected to the pins of the CPLD, and the master and slave pins may be legacy_SKT pins. The CPLD sets the master and slave pins of the CPU according to the configuration information, thereby configuring each CPU as a master CPU or a slave CPU. Optionally, when the CPU is configured as a master CPU, the level state of the master and slave pins is set to a high level, and when the CPU is configured as a slave CPU, the level state of the master and slave pins is set to a low level.

[0098] Through the above steps, when the computer motherboard is in a powered-on and powered-off state, configuration information is obtained from the basic management control unit, wherein each of the N central processing units connected to the programmable logic device is indicated as a master central processing unit or a slave central processing unit, and N is an integer greater than or equal to 2; each central processing unit is set as a master central processing unit or a slave central processing unit according to the configuration information, thereby solving the problem in the related art that automatic switching between a multi-channel motherboard and a redundant single-channel motherboard cannot be achieved, and improving the reliability of the server and the flexibility of its business.

[0099] The execution subject of the above steps may be a server, a terminal, etc., but is not limited thereto.

[0100] As an optional implementation, after the computer motherboard is set to a multi-way motherboard mode or a redundant single-way motherboard mode according to the configuration information, the method further includes: when the computer motherboard is set to the multi-way motherboard mode, receiving a reset signal from a reset pin of the main central processing unit; performing a reset operation on external card devices respectively connected to the main central processing unit and the slave central processing unit according to the reset signal; when the computer motherboard is set to the redundant single-way motherboard mode, receiving reset signals respectively from N main central processing units, and resetting the external card devices connected to the corresponding main central processing units respectively according to the reset signals.

[0101] After the computer motherboard is configured as a multi-way motherboard mode, the computer motherboard is turned on and the CPU on the motherboard is in a powered-on working state. At this time, each CPU on the motherboard knows its own configuration status as a master CPU or a slave CPU; at this time, the master CPU sends a reset signal to the CPLD, so that the CPLD performs a global reset of the entire server according to the reset signal, and performs a reset operation on the first external card device connected to the master CPU and the slave CPU.

[0102] In this embodiment, a method for starting a central processing unit is provided. Figure 8 The process of the method for starting the central processing unit according to the embodiment of the present application is as follows Figure 1 ,like Figure 8 As shown, the method is applied to the main central processing unit in the above-mentioned computer motherboard, and the specific process includes the following steps:

[0103] Step S802, when the computer motherboard is turned on, the main central processing unit reads the startup software from the startup code storage area connected thereto, so as to start the main central processing unit through the startup software, wherein the working modes of the computer motherboard include: a multi-way motherboard mode and a redundant single-way motherboard mode, in which the N central processing units include a main central processing unit and N-1 slave central processing units; in the redundant single-way motherboard mode, the N central processing units are configured as N main central processing units;

[0104] Step S804, when the computer motherboard is set to the multi-way motherboard mode, the main central processing unit loads the startup software from the startup code storage area, and sends the startup software to N-1 slave central processing units, so that the N-1 slave central processing units share the startup software loaded by the main central processing unit;

[0105] Step S806, when the computer motherboard is set to a redundant single-channel motherboard mode, the N main central processing units all load the startup software from their respective startup code storage areas.

[0106] The above-mentioned startup code storage area can be a startup software storage area, and the above-mentioned startup software can be a startup code BIOS. The startup code BIOS can access the BMC or access the proprietary registers in the CPLD before startup. When reading the multi-way motherboard mode, the master-slave status of each CPU is configured, and at the same time, the high-speed channel between the CPUs is turned on to the enabled state through the main CPU to perform the startup process; when the computer motherboard is turned on and running, the main CPU will load the startup code BIOS from its startup code storage area and send it to each slave CPU to complete the startup.

[0107] The execution subject of the above steps may be a server, a terminal, etc., but is not limited thereto.

[0108] As an optional implementation, after starting the main central processing unit through the startup software, the method also includes: when the computer motherboard is set to the multi-way motherboard mode, the main central processing unit sends a reset signal to the programmable logic device to instruct the programmable logic device to reset the external card device connected to the main central processing unit and the external card device connected to the slave central processing unit; when the computer motherboard is set to the redundant single-way motherboard mode, the N central processing units respectively send reset signals to the programmable logic device to instruct the programmable logic device to reset the external card device connected to the corresponding main central processing unit.

[0109] In this embodiment, a method for starting a central processing unit is provided. Fig. 9 The process of the method for starting the central processing unit according to the embodiment of the present application is as follows Figure 2 ,like Fig. 9 As shown, the method is applied to the slave central processing unit in the above-mentioned computer motherboard, and the specific process includes the following steps:

[0110] Step S902, when the computer motherboard is set to a multi-way motherboard mode, the slave central processor obtains the startup software from the central processor connected to it through a high-speed channel, and the slave central processor performs a startup operation through the startup software, wherein, in the multi-way motherboard mode, the N central processors in the computer motherboard include a main central processor and N-1 slave central processors, the main central processor loads the startup software from the startup code storage area, and the N-1 slave central processors share the startup software loaded by the main central processor, and N is an integer greater than or equal to 2.

[0111] The execution subject of the above steps may be a server, a terminal, etc., but is not limited thereto.

[0112] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0113] In the present embodiment, a device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0114] Fig.10 is a structural block diagram of a programmable logic device according to an embodiment of the present application, such as Fig.10 As shown, the device includes: a first acquisition module 1002, used to obtain configuration information from a basic management control unit when the computer motherboard is in a powered-on and powered-off state; a setting module 1004, used to set the computer motherboard to a multi-way motherboard mode or a redundant single-way motherboard mode according to the configuration information, wherein in the multi-way motherboard mode, the N central processors include a main central processor and N-1 slave central processors, the main central processor loads the startup software from the startup code storage area, and the N-1 slave central processors share the startup software loaded by the main central processor; in the redundant single-way motherboard mode, the N central processors are configured as N main central processors, and the N main central processors all load the startup software from their respective startup code storage areas, wherein N is an integer greater than or equal to 2.

[0115] In an exemplary embodiment, the device is also used to set the level states of the master and slave pins of the master central processing unit indicated in the configuration information to a high level when the computer motherboard is set to a multi-way motherboard mode; set the level states of the master and slave pins of the slave central processing unit indicated in the configuration information to a low level; and set the level states of the master and slave pins of the N central processing units to a high level when the computer motherboard is set to a redundant single-way motherboard mode.

[0116] In an exemplary embodiment, the device is also used to receive a reset signal from the reset pin of the main central processing unit when the computer motherboard is set to the multi-way motherboard mode; perform a reset operation on the external card devices respectively connected to the main central processing unit and the slave central processing unit according to the reset signal; and receive reset signals from N main central processing units respectively when the computer motherboard is set to the redundant single-way motherboard mode, and reset the external card devices connected to the corresponding main central processing units respectively according to the reset signals.

[0117] Fig.11 is a structural block diagram of a main central processing unit according to an embodiment of the present application, such as Fig.11 As shown, the device includes: a first reading module 1102, which is used for the main central processing unit to read the startup software from the startup code storage area connected to it when the computer motherboard is turned on, so as to start the main central processing unit through the startup software, wherein the working mode of the computer motherboard includes: a multi-way motherboard mode and a redundant single-way motherboard mode, in which the N central processing units include a main central processing unit and N-1 slave central processing units; in the redundant single-way motherboard mode, the N central processing units are configured as N main central processing units; a first loading module 1104, which is used for loading the startup software from the startup code storage area when the computer motherboard is set to the multi-way motherboard mode, and sending the startup software to the N-1 slave central processing units, so that the N-1 slave central processing units share the startup software loaded by the main central processing unit; a second loading module 1106, which is used for loading the startup software from the respective startup code storage areas when the computer motherboard is set to the redundant single-way motherboard mode.

[0118] In an exemplary embodiment, the device is also used for, when the computer motherboard is set to the multi-way motherboard mode, the main central processing unit sends a reset signal to the programmable logic device to instruct the programmable logic device to reset the external card device connected to the main central processing unit and the external card device connected to the slave central processing unit; when the computer motherboard is set to the redundant single-way motherboard mode, the N central processing units respectively send reset signals to the programmable logic device to instruct the programmable logic device to reset the external card device connected to the corresponding main central processing unit.

[0119] Fig.12 is a structural block diagram of a slave central processor according to an embodiment of the present application, such as Fig.12As shown, the device includes: a second acquisition module 1202, which is used to obtain the startup software from the central processing unit connected to it through a high-speed channel when the computer motherboard is set to a multi-way motherboard mode, and the slave central processing unit performs a startup operation through the startup software, wherein, in the multi-way motherboard mode, the N central processing units in the computer motherboard include a main central processing unit and N-1 slave central processing units, the main central processing unit loads the startup software from the startup code storage area, and the N-1 slave central processing units share the startup software loaded by the main central processing unit, and N is an integer greater than or equal to 2.

[0120] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0121] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0122] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0123] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0124] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0125] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0126] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0127] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0128] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A computer motherboard, It is characterized in that A programmable logic device, N central processing units, wherein N is an integer greater than or equal to 2, comprising: The programmable logic device is connected to the N central processors and is used to send configuration information to each of the central processors to set the computer motherboard to a multi-way motherboard mode or a redundant single-way motherboard mode; in the multi-way motherboard mode, the N central processors include a master central processor and N-1 slave central processors, the master central processor loads startup software from a startup code storage area, and the N-1 slave central processors share the startup software loaded by the master central processor; in the redundant single-way motherboard mode, the N central processors are configured as N master central processors, and the N master central processors each load startup software from their respective startup code storage areas.

2. The computer motherboard according to claim 1, It is characterized in that include: The N central processors are connected via high-speed channels; In the multi-way motherboard mode, the high-speed channel between the master central processor and the slave central processor is in an enabled state, the high-speed channel between the slave central processors is in the enabled state, or the high-speed channel between the slave central processors is configured to an enabled state or a disabled state based on the configuration information; in the redundant single-way motherboard mode, the high-speed channel between the master central processors is in a disabled state.

3. The computer motherboard according to claim 1, It is characterized in that The computer motherboard also includes: A basic management control unit is connected to the programmable logic device and the network port, and is used to obtain configuration information through the network port when the computer mainboard is powered on and powered off, and send the configuration information to the programmable logic device.

4. The computer motherboard according to claim 2, It is characterized in that Each of the N central processing units is connected to a boot code storage area, and the boot code storage area is used to store boot software, wherein: When the computer mainboard is turned on, the programmable logic device controls the N central processing units to power on; When the first central processor among the N central processors is the main central processor, the first central processor reads the first startup software from the first startup code storage area connected to the first central processor to start the first central processor through the first startup software, wherein the first central processor is any central processor among the N central processors.

5. The computer motherboard according to claim 4, It is characterized in that In the multi-way motherboard mode, the N central processors include a master central processor and N-1 slave central processors, the master central processor loads the startup software from the startup code storage area, and the startup software loaded by the N-1 slave central processors sharing the master central processor also includes: A slave central processor among the N central processors loads the first startup software through a high-speed channel between the central processors connected thereto, so as to start the slave central processor through the first startup software; Wherein, the second central processor connected adjacent to the first central processor is the slave central processor, and the second central processor loads the first startup software through the high-speed channel to start the second central processor through the first startup software; When the third central processor connected adjacent to the second central processor is the slave central processor, and when the high-speed channel between the second central processor and the third central processor is in the enabled state, the third central processor loads the first startup software through the high-speed channel between the third central processor and the second central processor, so as to start the third central processor through the first startup software.

6. The computer motherboard according to claim 4, It is characterized in that In the redundant single-channel motherboard mode, the N central processing units are configured as N main central processing units, and the N main central processing units all load startup software from their respective startup code storage areas, including: The fourth central processor connected to the first central processor is the main central processor, and the fourth central processor reads fourth startup software from a fourth startup code storage area connected to the fourth central processor to start the fourth central processor through the fourth startup software.

7. The computer motherboard according to claim 1, It is characterized in that Each of the N central processors is connected to an external card device, wherein: When the computer motherboard is set to the multi-way motherboard mode, the main central processing unit sends a reset signal to the programmable logic device to instruct the programmable logic device to reset the external card device connected to the main central processing unit and the external card device connected to the slave central processing unit according to the reset signal.

8. The computer motherboard according to claim 1, It is characterized in that Each of the N central processors is connected to an external card device, wherein: When the computer motherboard is set to the redundant single-channel motherboard mode, the N main central processing units respectively send reset signals to the programmable logic device to instruct the programmable logic device to reset the external card devices connected to the corresponding main central processing units according to the reset signals.

9. The computer motherboard according to claim 1, It is characterized in that Each of the N central processing units is also connected to a system disk, wherein: In the case where the computer motherboard is set to the multi-way motherboard mode, when the computer motherboard is turned on, the main central processing unit loads the operating system from the system disk connected thereto; and the slave central processing units among the N central processing units load the operating system through the high-speed channel between the central processing units connected thereto; Wherein, in the case where a first central processor among the N central processors is the main central processor, the first central processor loads a first operating system from a first system disk connected to the first central processor, and the first central processor is any central processor among the N central processors; A second central processor connected to the first central processor is the slave central processor, and the second central processor loads the first operating system through a high-speed channel between the second central processor and the first central processor; The third central processor connected adjacent to the second central processor is the slave central processor, and the third central processor loads the first operating system through a high-speed channel between the third central processor and the second central processor.

10. The computer motherboard according to claim 9, It is characterized in that When the computer motherboard is set to the redundant single-channel motherboard mode, the method further includes: The fourth central processor connected to the first central processor is the main central processor, and the fourth central processor loads a fourth operating system from a fourth system disk connected to the fourth central processor.

11. The computer motherboard according to claim 1, It is characterized in that Each of the N central processing units is connected to a memory, wherein: When the computer motherboard is set to the multi-way motherboard mode, the master central processing unit reads data from the memory connected thereto; the slave central processing units among the N central processing units read the data through the high-speed channel between the central processing units connected thereto; Wherein, in the case where a first central processor among the N central processors is the main central processor, the first central processor reads first data from a first memory connected to the first central processor, and the first central processor is any central processor among the N central processors; A second central processor connected to the first central processor is the slave central processor, and the second central processor loads the first data through a high-speed channel between the second central processor and the first central processor; The third central processor adjacently connected to the second central processor is the slave central processor, and the third central processor loads the first data via a high-speed channel between the third central processor and the second central processor.

12. The computer motherboard according to claim 11, It is characterized in that When the computer motherboard is set to the redundant single-channel motherboard mode, the method further includes: The fourth central processing unit connected to the first central processing unit is the main central processing unit, and the fourth central processing unit reads fourth data from a fourth memory connected to the fourth central processing unit.

13. The computer motherboard according to claim 1, It is characterized in that The programmable logic device is connected to the N central processors, and includes: When the configuration information indicates that the first central processor is the master central processor, the programmable logic device is used to control the level state of the first master-slave pin of the first central processor to be a high level; When the configuration information indicates that the second central processor is the slave central processor, the programmable logic device is used to control the level state of the second master-slave pin of the second central processor to be a low level.

14. The computer motherboard according to claim 1, It is characterized in that The programmable logic device is connected to the N central processors and further includes: The programmable logic device is connected to a reset pin on each of the central processing units to receive a reset signal sent by each of the central processing units through the reset pin.

15. The computer motherboard according to claim 1, It is characterized in that Also includes: The N central processing units are connected in sequence, or the N central processing units are connected in a ring.

16. A method for setting a central processing unit, It is characterized in that A programmable logic device used in a computer motherboard according to any one of items 1 to 15 above, comprising: When the computer mainboard is powered on and powered off, obtaining configuration information from a basic management control unit; The computer motherboard is set to a multi-way motherboard mode or a redundant single-way motherboard mode according to the configuration information, wherein in the multi-way motherboard mode, the N central processing units include a master central processing unit and N-1 slave central processing units, the master central processing unit loads the startup software from a startup code storage area, and the N-1 slave central processing units share the startup software loaded by the master central processing unit; in the redundant single-way motherboard mode, the N central processing units are configured as N master central processing units, and the N master central processing units all load the startup software from their respective startup code storage areas, wherein N is an integer greater than or equal to 2.

17. The method according to claim 16, It is characterized in that Setting the computer motherboard to a multi-channel motherboard mode or a redundant single-channel motherboard mode according to the configuration information includes: When the computer motherboard is set to a multi-channel motherboard mode, the level state of the master-slave pin of the master central processor indicated in the configuration information is set to a high level; the level state of the master-slave pin of the slave central processor indicated in the configuration information is set to a low level; When the computer motherboard is set to a redundant single-channel motherboard mode, the level states of the master and slave pins of the N central processing units are all set to a high level.

18. The method according to claim 16, It is characterized in that After the computer motherboard is set to a multi-way motherboard mode or a redundant single-way motherboard mode according to the configuration information, the method further includes: When the computer motherboard is set to the multi-way motherboard mode, a reset signal is received from the reset pin of the master central processor; and a reset operation is performed on the external card devices respectively connected to the master central processor and the slave central processor according to the reset signal; When the computer motherboard is set to the redundant single-channel motherboard mode, reset signals are received from the N main central processing units respectively, and external card devices connected to the corresponding main central processing units are reset according to the reset signals.

19. A method for starting a central processing unit, It is characterized in that A main central processing unit used in a computer motherboard according to any one of items 1 to 15 above, comprising: When the computer motherboard is turned on, the main central processing unit reads the startup software from the startup code storage area connected thereto, so as to start the main central processing unit through the startup software, wherein the working modes of the computer motherboard include: a multi-way motherboard mode and a redundant single-way motherboard mode, in which the N central processing units include a main central processing unit and N-1 slave central processing units; in the redundant single-way motherboard mode, the N central processing units are configured as N main central processing units; When the computer motherboard is set to the multi-way motherboard mode, the main central processing unit loads the startup software from the startup code storage area, and sends the startup software to N-1 slave central processing units, so that the N-1 slave central processing units share the startup software loaded by the main central processing unit; When the computer motherboard is set to a redundant single-channel motherboard mode, the N main central processing units all load the startup software from their respective startup code storage areas.

20. The method according to claim 19, It is characterized in that After starting the main central processing unit by the startup software, the method further includes: When the computer motherboard is set to the multi-way motherboard mode, the main central processing unit sends a reset signal to the programmable logic device to instruct the programmable logic device to reset the external card device connected to the main central processing unit and the external card device connected to the slave central processing unit; When the computer motherboard is set to a redundant single-channel motherboard mode, the N central processing units respectively send reset signals to the programmable logic device to instruct the programmable logic device to reset the external card device connected to the corresponding main central processing unit.

21. A method for starting a central processing unit, It is characterized in that A slave central processing unit used in a computer motherboard according to any one of items 1 to 15 above, comprising: When the computer motherboard is set to a multi-way motherboard mode, the slave central processor obtains the startup software from the central processor connected to it through a high-speed channel, and the slave central processor performs a startup operation through the startup software. In the multi-way motherboard mode, the N central processors in the computer motherboard include a main central processor and N-1 slave central processors, the main central processor loads the startup software from the startup code storage area, and the N-1 slave central processors share the startup software loaded by the main central processor, and N is an integer greater than or equal to 2.

22. A programmable logic device, It is characterized in that The method as claimed in any one of claims 16 to 18, comprising: A first acquisition module, configured to acquire configuration information from a basic management control unit when the computer mainboard is powered on and powered off; A setting module is used to set the computer motherboard to a multi-way motherboard mode or a redundant single-way motherboard mode according to configuration information, wherein in the multi-way motherboard mode, the N central processing units include a main central processing unit and N-1 slave central processing units, the main central processing unit loads startup software from a startup code storage area, and the N-1 slave central processing units share the startup software loaded by the main central processing unit; in the redundant single-way motherboard mode, the N central processing units are configured as N main central processing units, and the N main central processing units all load startup software from their respective startup code storage areas, wherein N is an integer greater than or equal to 2.

23. A main central processing unit, It is characterized in that The method as claimed in any one of claims 19 to 20, comprising: The first reading module is used for, when the computer motherboard is turned on, the main central processing unit reads the startup software from the startup code storage area connected thereto, so as to start the main central processing unit through the startup software, wherein the working modes of the computer motherboard include: a multi-way motherboard mode and a redundant single-way motherboard mode, in which the N central processing units include a main central processing unit and N-1 slave central processing units in the multi-way motherboard mode; in the redundant single-way motherboard mode, the N central processing units are configured as N main central processing units; A first loading module is used for loading startup software from a startup code storage area when the computer motherboard is set to the multi-way motherboard mode, and sending the startup software to N-1 slave central processors, so that the N-1 slave central processors share the startup software loaded by the master central processor; The second loading module is used to load the startup software from the respective startup code storage areas when the computer motherboard is set to a redundant single-channel motherboard mode.

24. A CPU, It is characterized in that The method as claimed in claim 21, comprising: The second acquisition module is used to obtain the startup software from the central processing unit connected to it through a high-speed channel when the computer motherboard is set to a multi-way motherboard mode, and the slave central processing unit performs a startup operation through the startup software, wherein, in the multi-way motherboard mode, the N central processing units in the computer motherboard include a main central processing unit and N-1 slave central processing units, the main central processing unit loads the startup software from the startup code storage area, and the N-1 slave central processing units share the startup software loaded by the main central processing unit, and N is an integer greater than or equal to 2.

25. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of claims 16 to 18 or 19 to 20 or 21.

26. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method described in any one of claims 16 to 18 or 19 to 20 or 21 are implemented.

27. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 16 to 18 or 19 to 20 or 21 are implemented.