Bandwidth allocation method, mainboard, device, storage medium and program product

By customizing the adapter card identification information in the baseboard management controller and obtaining the bandwidth allocation information in the server, the problem of strong hardware dependence and poor scalability in server IO expansion is solved, and flexible adaptability to a variety of adapter cards is achieved. configuration and efficient bandwidth allocation.

CN118295945BActive Publication Date: 2024-08-27JINAN INSPUR DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410719297.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-27
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

In the existing technology, the server's adaptation to different bandwidth requirements during IO expansion depends on the physical identification of the hardware (such as Board ID), resulting in strong hardware design dependence, poor scalability, and difficulty in being compatible with multiple types of adapter cards.

Method used

By pre-customizing the identification information of the adapter card in the baseboard management controller and saving it to the memory when the diagnostic system obtains the adapter card type information, the processor obtains the identification information of the adapter card from the baseboard management controller based on the identification acquisition instruction. information, and then obtain the bandwidth allocation information and perform bandwidth allocation processing, eliminating the strong dependence on the physical identification of the hardware.

Benefits of technology

It realizes convenient adaptation to multiple types of adapter cards, reduces hardware design dependence, and improves the scalability and flexibility of bandwidth allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118295945B
    Figure CN118295945B
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and discloses a bandwidth allocation method, a mainboard, a device, a storage medium, and a program product, wherein the method comprises: a processor obtains identification information of at least one adapter card from a baseboard management controller based on an identification acquisition instruction; obtains bandwidth allocation information of the adapter card according to the identification information; performs bandwidth allocation processing on the adapter card according to the bandwidth allocation information; wherein, the identification information of at least one adapter card is stored in a first memory connected to the baseboard management controller, and the identification information is determined by the diagnostic system when the type information of the adapter card is obtained, and is saved in the first memory through the baseboard management controller. The present invention is free from the strong dependence on the physical identification of the hardware, can be realized only by firmware, has strong scalability, and is conducive to adapting to various types of adapter cards.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a bandwidth allocation method, a mainboard, a device, a storage medium and a program product. Background Art

[0002] With the continuous increase in business types, it is necessary to expand the IO (Input / Output) of the server. In order to meet the IO expansion requirements of different bandwidths, the server needs to adapt to different types of adapter cards, so as to connect to the network card, UBS card, etc. through the adapter card. At present, in order to be compatible with different types of adapter cards, each adapter card has a single board identity (Borard ID), and the Borard ID needs to reuse the channel of the PCH chip to allocate bandwidth. However, when the Borard ID of the adapter card cannot reuse the channel of the PCH chip, the PCH chip may not be able to obtain the Board ID of the adapter card, and thus cannot allocate bandwidth to the adapter card. Alternatively, the PCH chip needs to add a GPIO (General-purpose input / output) to adapt, so as to allocate bandwidth for the adapter, but this solution is too dependent on hardware design, has poor scalability, and is not conducive to adapting to multiple types of adapter cards. Summary of the invention

[0003] In view of this, the present invention provides a bandwidth allocation method, a mainboard, a device, a storage medium and a program product to solve the problem that bandwidth allocation is highly dependent on hardware design and has poor scalability.

[0004] In a first aspect, the present invention provides a bandwidth allocation method, applied to a processor, the method comprising:

[0005] Based on the identification acquisition instruction, identification information of at least one adapter card is acquired from the baseboard management controller; the identification information of the adapter card is stored in a first memory connected to the baseboard management controller, the identification information is determined by the diagnostic system when the type information of the adapter card is acquired, and is saved in the first memory through the baseboard management controller;

[0006] According to the identification information, obtain the bandwidth allocation information of the adapter card;

[0007] The bandwidth allocation process is performed on the adapter card according to the bandwidth allocation information.

[0008] In the bandwidth allocation method provided by the present invention, the identification information of at least one adapter card can be customized in advance according to actual needs, and when the diagnostic system obtains the type information of the at least one adapter card, the corresponding identification information is determined, and the customized identification information is saved in the first memory through the baseboard management controller. Therefore, the processor can obtain the identification information of the at least one adapter card from the baseboard management controller based on the identification acquisition instruction, and obtain the bandwidth allocation information of the at least one adapter card according to the acquired identification information, and perform bandwidth allocation processing on the adapter card according to the bandwidth allocation information. Therefore, by customizing the identification information of the adapter card and saving it in the first memory, the processor can perform bandwidth allocation processing based on the identification information in the first memory, breaking away from the strong dependence on the hardware physical identification (such as Borard ID), and can be implemented only by firmware, with strong scalability, which is conducive to adapting to various types of adapter cards.

[0009] In an optional implementation, acquiring identification information of at least one riser card from the baseboard management controller based on the identification acquisition instruction includes:

[0010] Sending an identification acquisition instruction to the baseboard management controller; the identification acquisition instruction is used to instruct the baseboard management controller to obtain identification information of at least one adapter card from the first memory;

[0011] The identification information sent by the baseboard management controller is received.

[0012] In the bandwidth allocation method provided in this embodiment, the processor sends an identification acquisition instruction to the baseboard management controller to effectively acquire the identification information of at least one adapter card, thereby eliminating the strong dependence on the physical identification of hardware and having strong scalability.

[0013] In an optional implementation manner, acquiring bandwidth allocation information of the adapter card according to the identification information includes:

[0014] sending a first bandwidth information acquisition request to the first processing chip according to the identification information; the first bandwidth information acquisition request is used to instruct the first processing chip to send a second bandwidth information acquisition request to the basic input and output system; the second bandwidth information acquisition request is used to instruct the basic input and output system to acquire bandwidth allocation information associated with the identification information and send it to the first processing chip;

[0015] Receive the bandwidth allocation information sent by the first processing chip.

[0016] In the bandwidth allocation method provided in this embodiment, the processor sends a first bandwidth information acquisition request to the first processing chip, thereby achieving effective acquisition of bandwidth allocation information.

[0017] In an optional implementation, performing bandwidth allocation processing on the adapter card according to the bandwidth allocation information includes:

[0018] Determining, according to the bandwidth allocation information, a target port corresponding to the adapter card among the multiple ports of the processor;

[0019] Allocate bandwidth to the target port according to the bandwidth allocation information.

[0020] In the bandwidth allocation method provided in this embodiment, the accuracy of bandwidth allocation is ensured by determining the target port corresponding to the adapter card and allocating information to the target port.

[0021] In an optional implementation, after performing bandwidth allocation processing on the adapter card according to the bandwidth allocation information, the method further includes:

[0022] If it is determined that the target adapter card in the at least one adapter card is connected to the terminal card, then determining the target tuning parameter corresponding to the terminal card in the preset multiple tuning parameters according to the target bandwidth allocation information of the target adapter card;

[0023] Data communication is performed with the terminal card according to the communication parameters corresponding to the target tuning parameters.

[0024] In the bandwidth allocation method provided in this embodiment, by determining the target tuning parameter corresponding to the terminal card among the preset multiple tuning parameters and performing data communication with the terminal card according to the communication parameter corresponding to the target tuning parameter, the signal quality of the terminal card can be improved.

[0025] In a second aspect, the present invention provides a bandwidth allocation method, which is applied to a baseboard management controller, and the method comprises:

[0026] receiving an identification acquisition instruction sent by a processor;

[0027] According to the identification acquisition instruction, the identification information of at least one adapter card is acquired from the first memory; the identification information is saved in the first memory by the baseboard management controller when the diagnostic system acquires the type information of the adapter card;

[0028] The identification information is sent to the processor; the identification information is used by the processor to obtain the bandwidth allocation information of the adapter card, and perform bandwidth allocation processing on the adapter card according to the bandwidth allocation information.

[0029] The bandwidth allocation method provided by the present invention can customize the identification information of at least one adapter card in advance according to actual needs, and determine the corresponding identification information when the diagnostic system obtains the type information of the at least one adapter card, and save the customized identification information to the first memory through the baseboard management controller. Therefore, when the baseboard management controller receives the identification acquisition instruction sent by the processor, it obtains the identification information of the at least one adapter card from the first memory and sends it to the processor, so that the processor obtains the bandwidth allocation information of the adapter card according to the identification information, and performs bandwidth allocation processing on the adapter card according to the bandwidth allocation information. Therefore, by customizing the identification information of the adapter card and saving it in the first memory, the processor can perform bandwidth allocation processing based on the identification information in the first memory, breaking away from the strong dependence on the hardware physical identification (such as Borard ID), and can be implemented only by firmware, with strong scalability, which is conducive to adapting to various types of adapter cards.

[0030] In an optional implementation, before receiving the identification acquisition instruction sent by the processor, the method further includes:

[0031] receiving a save instruction sent by the diagnostic system; the save instruction includes any of the identification information; the identification information is determined by the diagnostic system based on type information obtained by scanning an information code of a corresponding adapter card;

[0032] The identification information in the save instruction is saved in the first memory.

[0033] In the bandwidth allocation method provided in this embodiment, by storing the identification information of the adapter card in the first memory, the processor can perform accurate bandwidth allocation based on the identification information in the first memory when performing bandwidth allocation processing.

[0034] In an optional embodiment, the method further includes:

[0035] If a data backup instruction is received from the backup mainboard, the target data in the first memory is obtained; the data backup request is sent by the backup mainboard when it is determined that the DIP switch is in the first state;

[0036] The target data is sent to the backup mainboard; the target data is used by the backup mainboard to send the target data to the target mainboard when the backup mainboard determines that the dip switch is in the second state; the target mainboard is the mainboard after the baseboard management controller is currently located.

[0037] In the bandwidth allocation method provided in this embodiment, when replacing the mainboard, the automatic and effective migration of the target data is achieved by maintaining the backup mainboard, without the need to manually burn the target data into the second memory of the target mainboard according to the maintenance manual, thereby greatly improving the replacement efficiency of the mainboard.

[0038] In a third aspect, the present invention provides a mainboard, comprising: a processor, a baseboard management controller and a first memory;

[0039] The processor is connected to the baseboard management controller and is used to obtain identification information of at least one adapter card from the baseboard management controller based on an identification acquisition instruction; obtain bandwidth allocation information of the adapter card according to the identification information; and perform bandwidth allocation processing on the adapter card according to the bandwidth allocation information.

[0040] A baseboard management controller is connected to the processor and the first memory, respectively, and is used to save the identification information of the adapter card from the diagnostic system to the first memory; and based on the identification acquisition instruction, acquire at least one adapter card identification information from the first memory, and send the acquired identification information to the processor;

[0041] The first memory is connected to the baseboard management controller and is used to store identification information of at least one adapter card.

[0042] In the motherboard provided by the present invention, the identification information of at least one adapter card can be customized in advance according to actual needs. When the baseboard management controller receives the identification information of the adapter card from the diagnostic system, the identification information is saved in the first memory; and based on the identification acquisition instruction sent by the processor, at least one adapter card identification information is acquired from the first memory, and the acquired identification information is sent to the processor, so that the processor acquires the bandwidth allocation information of the adapter card according to the identification information, and performs bandwidth allocation processing on the adapter card according to the bandwidth allocation information. Thus, by customizing the identification information of the adapter card and saving it in the first memory, the processor can perform bandwidth allocation processing based on the identification information in the first memory, breaking away from the strong dependence on the hardware physical identification (such as Borard ID), and can be realized only by firmware, with strong scalability, which is conducive to adapting to various types of adapter cards.

[0043] In a fourth aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the bandwidth allocation method of the first aspect or any corresponding embodiment thereof, or executes the bandwidth allocation method of the second aspect or any corresponding embodiment thereof by executing the computer instructions.

[0044] In a fifth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the bandwidth allocation method of the first aspect or any corresponding embodiment thereof, or to execute the bandwidth allocation method of the second aspect or any corresponding embodiment thereof.

[0045] In a sixth aspect, the present invention provides a computer program product, comprising computer instructions, the computer instructions being used to enable a computer to execute the bandwidth allocation method of the first aspect or any corresponding embodiment thereof, or to execute the bandwidth allocation method of the second aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 is a schematic diagram of a bandwidth allocation method in the prior art;

[0048] Figure 2 is a flow chart of a first bandwidth allocation method according to an embodiment of the present invention;

[0049] Figure 3 is a flow chart of a second bandwidth allocation method according to an embodiment of the present invention;

[0050] Figure 4 is a schematic flow chart of a third bandwidth allocation method according to an embodiment of the present invention;

[0051] Figure 5 is a flow chart of a fourth bandwidth allocation method according to an embodiment of the present invention;

[0052] Figure 6 is a schematic flow chart of a fifth bandwidth allocation method according to an embodiment of the present invention;

[0053] Figure 7 is a structural schematic diagram of a mainboard according to an embodiment of the present invention;

[0054] Figure 8 is a schematic diagram of the structure of another mainboard according to an embodiment of the present invention;

[0055] Fig. 9 is a structural block diagram of a bandwidth allocation device according to an embodiment of the present invention;

[0056] Fig.10 is a structural block diagram of another bandwidth allocation device according to an embodiment of the present invention;

[0057] Fig.11 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0059] At present, in order to meet the IO expansion of different bandwidth requirements, the server Figure 1As shown, the server includes a processor, a PCH chip and a basic input output system (Basic Input Output System, referred to as BlOS). Among them, the PCH chip includes multiple GPIOs, and the Borard IDs on the t adapter cards correspond one-to-one to any t GPIOs in the multiple GPIOs to reuse the channels of the PCH chip; wherein t is an integer greater than or equal to 1. That is, its bandwidth allocation method is that the PCH chip obtains the Borard ID through the GPIO and passes the Borard ID to the basic input output system. The basic input output system provides the bandwidth allocation information determined based on the Borard ID to the processor through the PCH chip so that the processor can allocate bandwidth. However, when the Borard ID of the adapter card cannot reuse the channel of the PCH chip, the PCH chip may not be able to obtain the Board ID of the adapter card, and thus cannot allocate bandwidth to the adapter card. Alternatively, the PCH chip needs to add a new GPIO for adaptation, so as to allocate bandwidth for the adapter, but this solution is too dependent on hardware design, has poor scalability, and is not conducive to adapting to multiple types of adapter cards. And because different adapter cards require different Borard IDs, unified planning is required, and the operation is complicated. Based on this, the present invention provides a bandwidth allocation method, which customizes the identification information of at least one adapter card in advance according to actual needs, and determines the corresponding identification information when the diagnostic system obtains the type information of the at least one adapter card, and saves the identification information to the first memory through the baseboard management controller. Therefore, the processor can obtain the identification information of the at least one adapter card from the baseboard management controller based on the identification acquisition instruction, and obtain the bandwidth allocation information of the at least one adapter card according to the acquired identification information, and perform bandwidth allocation processing on the adapter card according to the bandwidth allocation information. Therefore, by customizing the identification information of the adapter card and saving it in the first memory, the processor can perform bandwidth allocation processing based on the identification information in the first memory, breaking away from the strong dependence on the hardware physical identification (such as Borard ID), and can be implemented only by firmware, with strong scalability, which is conducive to adapting to various types of adapter cards.

[0060] According to an embodiment of the present invention, an embodiment of a bandwidth allocation method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0061] In this embodiment, a bandwidth allocation method is provided, which can be used for the above-mentioned computer devices, such as mobile phones, tablet computers, desktop computers, portable notebooks, servers, etc. Among them, the computer device includes a processor (Central Processing Unit, referred to as CPU), and the bandwidth allocation method provided in this embodiment can be specifically applied to the processor. Figure 2 is a flow chart of a bandwidth allocation method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0062] Step S201, based on the identification acquisition instruction, obtain the identification information of at least one adapter card from the baseboard management controller; the first memory connected to the baseboard management controller stores the identification information of at least one adapter card, and the identification information is determined by the diagnostic system when the type information of the corresponding adapter card is obtained, and is saved in the first memory through the baseboard management controller.

[0063] Specifically, in order to achieve convenient adaptation of various adapter cards without relying heavily on hardware physical identification (such as Borard ID), in some implementations, the identification information of at least one adapter card to be adapted can be customized in advance according to actual needs, and a first association relationship between the identification information and the type information of the adapter card can be established. Accordingly, during the production process, the user can operate the scanning module of the diagnostic system to scan the information code of each adapter card in turn according to the list of at least one adapter card to be adapted, and obtain the type information of each adapter card. The diagnostic program (Diag program) in the diagnostic system obtains the associated identification information from the first association relationship based on the type information, and sends a save instruction to the baseboard management controller (Baseboard Management Controller, BMC for short) based on the obtained identification information. When receiving the save instruction, the baseboard management controller saves the identification information in the save instruction to the connected first memory.

[0064] In other embodiments, the identification information of at least one adapter card to be adapted can be customized in advance according to actual needs, and a save instruction including the identification information can be formulated, and a second association relationship between the save instruction and the type information and identification information of the adapter card can be established. Accordingly, during the production process, the user can operate the scanning module of the diagnostic system to scan the information code of each adapter card in turn according to the list of at least one adapter card to be adapted, and obtain the type information of each adapter card. The diagnostic program (Diag program) in the diagnostic system obtains the associated save instruction from the second association relationship based on the type information, and sends the save instruction to the baseboard management controller. When receiving the save instruction, the baseboard management controller saves the identification information in the save instruction to the connected first memory.

[0065] The type information of the adapter card is used to characterize the type of the adapter card, such as type A, type B, type C, etc. The first memory may be an EEPROM (Electrically Erasable Programmable read only memory) to ensure that the identification information of at least one adapter card is not lost when power is off. The information code of the adapter card may be a QR code, a bar code, etc., which is not specifically limited in the present invention.

[0066] Step S202: Obtain bandwidth allocation information of the adapter card according to the identification information.

[0067] Specifically, a third association relationship between the identification information of each adapter card to be adapted and the bandwidth allocation information can be established in advance according to actual needs. Accordingly, in step S102, the bandwidth allocation information of the adapter card can be obtained based on the third association relationship according to the obtained identification information. The bandwidth allocation information is used to characterize the bandwidth type allocated to the corresponding adapter card, such as x8 bandwidth, x16 bandwidth, etc.

[0068] Step S203: performing bandwidth allocation processing on the adapter card according to the bandwidth allocation information.

[0069] In the bandwidth allocation method provided in this embodiment, the identification information of at least one adapter card can be customized in advance according to actual needs, and when the diagnostic system obtains the type information of the at least one adapter card, its corresponding identification information is determined, and the customized identification information is saved in the first memory through the baseboard management controller. Therefore, the processor can obtain the identification information of the at least one adapter card from the baseboard management controller based on the identification acquisition instruction, and obtain the bandwidth allocation information of the at least one adapter card according to the acquired identification information, and perform bandwidth allocation processing on the adapter card according to the bandwidth allocation information. Therefore, by customizing the identification information of the adapter card and saving it in the first memory, the processor can perform bandwidth allocation processing based on the identification information in the first memory, breaking away from the strong dependence on the hardware physical identification (such as Borard ID), and can be implemented only by firmware, with strong scalability, which is conducive to adapting to various types of adapter cards.

[0070] In this embodiment, a bandwidth allocation method is provided, which can be used for the above-mentioned computer devices, such as mobile phones, tablet computers, desktop computers, portable notebooks, servers, etc. Among them, the computer device includes a processor, and the bandwidth allocation method provided in this embodiment can be specifically applied to the processor. Figure 3 is a flow chart of a bandwidth allocation method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:

[0071] Step S301, based on the identification acquisition instruction, obtain the identification information of at least one adapter card from the baseboard management controller; the first memory connected to the baseboard management controller stores the identification information of at least one adapter card, and the identification information is determined by the diagnostic system when the type information of the corresponding adapter card is obtained, and is saved in the first memory through the baseboard management controller.

[0072] In some implementations, step S301 may include the following steps S3011 and S3012:

[0073] Step S3011, sending an identification acquisition instruction to the baseboard management controller; the identification acquisition instruction is used to instruct the baseboard management controller to obtain identification information of at least one adapter card from the first memory; the identification information is saved to the first memory by the baseboard management controller when the diagnostic system obtains the type information of the corresponding adapter card.

[0074] In some implementations, the processor and the baseboard management controller may communicate based on an LPC (Low Pin Count) protocol, and accordingly, the processor sends an identification acquisition instruction to the baseboard management controller via an LPC interface. When the baseboard management controller receives the identification acquisition instruction, it acquires identification information of at least one adapter card stored in a first memory connected thereto, and sends the acquired identification information to the processor via the LPC interface.

[0075] Step S3012: receiving identification information sent by the baseboard management controller.

[0076] Step S302: Obtain bandwidth allocation information of the adapter card according to the identification information.

[0077] In some implementations, step S302 may include the following steps S3021 and S3022:

[0078] Step S3021: Send a first bandwidth information acquisition request to the first processing chip according to the identification information; the first bandwidth information acquisition request is used to instruct the first processing chip to send a second bandwidth information acquisition request to the basic input and output system; the second bandwidth information acquisition request is used to instruct the basic input and output system to obtain bandwidth allocation information associated with the identification information and send it to the first processing chip.

[0079] In some embodiments, the processor is connected to the first processing chip based on UPI (Ultra Path Interconnect), and the first processing chip is connected to the basic input and output system based on SPI (Serial Peripheral Interface). When the first processing chip receives the first bandwidth acquisition request sent by the processor, it sends a second bandwidth information acquisition request to the basic input and output system (Basic Input Output System, referred to as BlOS). When the basic input and output system receives the second bandwidth information acquisition request, it obtains the associated bandwidth allocation information from the third association relationship between the preset identification information of each adapter card and the bandwidth allocation information, and sends the acquired bandwidth allocation information to the first processing chip. Among them, the first processing chip can be a PCH chip, and the first bandwidth acquisition request and the second bandwidth acquisition request can be the same or different, which is not specifically limited in the present invention.

[0080] Step S3022: receiving bandwidth allocation information sent by the first processing chip.

[0081] It is understandable that when there are multiple adapter cards, the processor obtains multiple pieces of identification information and receives multiple pieces of bandwidth allocation information.

[0082] Step S303: performing bandwidth allocation processing on the adapter card according to the bandwidth allocation information.

[0083] In some implementations, step S303 may include the following steps S3031 and S3032:

[0084] Step S3031, determining a target port corresponding to the adapter card among multiple ports of the processor according to the bandwidth allocation information;

[0085] In some implementations, the bandwidth allocation information may include a port identifier of the target port, and accordingly, the processor determines the port corresponding to the port identifier in the bandwidth allocation information as the target port corresponding to the adapter card. As an example, if a certain bandwidth allocation information is "P0:X16", the port corresponding to the port identifier P0 is determined as the target port.

[0086] Step S3032: Allocate bandwidth to the target port according to the bandwidth allocation information.

[0087] Continuing with the above example, if a certain bandwidth allocation information is "P0: X16", the bandwidth of X16 is allocated to the target port corresponding to the port identifier P0.

[0088] In the bandwidth allocation method provided in this embodiment, by customizing the identification information of the adapter card and saving it in the first memory, the processor can send an identification acquisition instruction to the baseboard management controller to obtain the identification information from the first memory through the baseboard management controller; and communicate with the first processing chip according to the acquired identification information to obtain the associated bandwidth allocation information from the basic input and output system, so as to perform bandwidth allocation processing according to the bandwidth allocation information. As a result, it is free from the strong dependence on the hardware physical identification (such as Borard ID), and can be implemented only by firmware, which has strong scalability and is conducive to adapting to various types of adapter cards.

[0089] In this embodiment, a bandwidth allocation method is provided, which can be used for the above-mentioned computer devices, such as mobile phones, tablet computers, desktop computers, portable notebooks, servers, etc. Among them, the computer device includes a processor, and the bandwidth allocation method provided in this embodiment can be specifically applied to the processor. Figure 4 is a flow chart of a bandwidth allocation method according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:

[0090] Step S401, based on the identification acquisition instruction, obtain the identification information of at least one adapter card from the baseboard management controller; the first memory connected to the baseboard management controller stores the identification information of at least one adapter card, and the identification information is saved to the first memory by the baseboard management controller when the diagnostic system obtains the type information of the adapter card.

[0091] Step S402: Obtain bandwidth allocation information of the adapter card according to the identification information.

[0092] Step S403: performing bandwidth allocation processing on the adapter card according to the bandwidth allocation information.

[0093] The specific implementation of steps S401 to S403 can be found in the above description, and the repeated parts will not be repeated here.

[0094] Step S404: if it is determined that the target adapter card in at least one adapter card is connected to the terminal card, a target tuning parameter corresponding to the terminal card among the preset multiple tuning parameters is determined according to the target bandwidth allocation information of the target adapter card.

[0095] Considering that the current processor often communicates with the terminal card directly based on the tuning parameters of the protocol self-negotiation after determining that the target adapter card is connected to the terminal card, however, the self-negotiated tuning parameters may not be the optimal tuning parameters, resulting in poor signal quality of the terminal card. Based on this, in some embodiments of the present invention, when the processor determines that the target adapter card is connected to the terminal card, it determines the target tuning parameters corresponding to the terminal card in the preset multiple tuning parameters according to the target bandwidth allocation information of the target adapter card. Specifically, when the adapter card is connected to the terminal card, a card access message can be sent to the processor. Accordingly, when the processor receives the card access message, the corresponding adapter card is determined as the target adapter card, and the target tuning parameters corresponding to the terminal card in the preset multiple tuning parameters are determined according to the target bandwidth allocation information of the target adapter card. Among them, the terminal card can be any form of card such as a network card, a USB card, etc.

[0096] In some implementations, step S404 may include the following steps S4041 to S4043:

[0097] Step S4041: If it is determined that a target adapter card in at least one adapter card is connected to a terminal card, a target number of differential pairs corresponding to the terminal card is determined according to target bandwidth allocation information of the target adapter card.

[0098] Specifically, if it is determined that the target adapter card in at least one adapter card is connected to the terminal card, the bandwidth information is obtained from the target bandwidth allocation information of the target adapter card, and the target number of differential pairs corresponding to the terminal card is determined according to the bandwidth information. As an example, if the bandwidth information in the bandwidth allocation information is x8, the target number is determined to be 8; as another example, if the bandwidth information in the bandwidth allocation information is x16, the target number is determined to be 16.

[0099] Step S4042, obtaining eye height data and eye width data corresponding to a target number of differential pairs under each tuning parameter.

[0100] Specifically, an electronic eye diagram is executed on the terminal card, and for each preset tuning parameter, eye height data and eye width data corresponding to each differential pair under the tuning parameter are obtained.

[0101] As an example, the tuning parameters include P0, P1, P2…P10, that is, a total of 11 tuning parameters. The target number is 8, then the eye height data and eye width data corresponding to each differential pair under the tuning parameter P0 are obtained, and 8 combinations of eye height data and eye width data are obtained, and each combination corresponds to a differential pair.

[0102] Step S4043: Determine the target tuning parameter corresponding to each differential pair in each tuning parameter according to the eye height data and the eye width data.

[0103] Specifically, for each differential pair, evaluation data of the differential pair under each tuning parameter is determined according to the eye height data and eye width data corresponding to the differential pair under each tuning parameter; and target tuning parameters corresponding to the differential pair in each tuning parameter are determined according to each evaluation data.

[0104] More specifically, for each tuning parameter, a first parameter is determined according to the eye height data corresponding to the differential pair under the tuning parameter; a second parameter is determined according to the eye width data corresponding to the differential pair under the tuning parameter; an eye diagram area corresponding to the differential pair is determined according to the first parameter and the second parameter; and the eye diagram area is determined as the evaluation data of the differential pair under the tuning parameter. And, for each differential pair, the evaluation data of the differential pair under each tuning parameter is compared to obtain the largest candidate evaluation data of the differential pair; the largest target evaluation data among the candidate evaluation data and the self-negotiation evaluation data of the differential pair is determined; and the tuning parameter corresponding to the target evaluation data is determined as the target tuning parameter corresponding to the differential pair in each tuning parameter. Among them, the self-negotiation evaluation data is determined based on the first and second parameters of the self-negotiation, that is, before executing the electronic eye diagram on the terminal card, the first parameter, the second parameter and the tuning parameter corresponding to each differential pair of the terminal card will be firstly self-negotiated, and the self-negotiation eye diagram area will be determined according to the first and second parameters of the self-negotiation, and the self-negotiation eye diagram area will be determined as the self-negotiation evaluation data.

[0105] In some implementations, the eye height data = 2a, the eye width data = 2b, where a is the first parameter and b is the second parameter. The eye area S = π*a*b, where S represents the eye area (i.e., the ellipse area), π is the circumference of a circle, a is the first parameter, and b is the second parameter.

[0106] Continuing with the above example, the tuning parameters include P0, P1, P2...P10, that is, a total of 11 tuning parameters. The target number is 8. For easy distinction, each differential pair is recorded as differential pair 1, differential pair 2...differential pair 8. The corresponding auto-negotiation evaluation data exists in 8 pieces, which are recorded as S01, S02, S03...S08. For differential pair 1, according to the eye height data 0 and the eye width data 0 of differential pair 1 under the tuning parameter P0, the first parameter a0 and the second parameter b0 can be determined, and the eye diagram area S0 corresponding to differential pair 1 can be determined according to a0 and b0, that is, the evaluation data S0 of differential pair 1 under the tuning parameter P0 can be obtained; similarly, the evaluation data S1 of differential pair 1 under the tuning parameter P1, the evaluation data S2 of differential pair 1 under the tuning parameter P2... the evaluation data S10 of differential pair 1 under the tuning parameter P10 can be obtained; by comparing S0 to S10, the maximum candidate evaluation data Sm of differential pair 1 is obtained, where m is any integer between 0 and 10. Compare the maximum candidate evaluation data Sm of differential pair 1 with the self-negotiation evaluation data S01 to obtain the maximum target evaluation data. For example, if the maximum target evaluation data Sm is S2, the tuning parameter P2 corresponding to the maximum target evaluation data S2 is determined as the target tuning parameter corresponding to differential pair 1. The process of determining the target tuning parameters corresponding to other differential pairs is the same as the process of determining the target tuning parameters of differential pair 1, and will not be described one by one here.

[0107] Step S405: performing data communication with the terminal card according to the communication parameters corresponding to the target tuning parameters.

[0108] In some implementations, the communication parameter may include a signal waveform, and accordingly, the processor performs data communication with the terminal card according to the signal waveform corresponding to the target tuning parameter.

[0109] In the bandwidth allocation method provided in this embodiment, after bandwidth allocation is completed, if it is determined that the target adapter card in at least one adapter card is connected to the terminal card, the target tuning parameter corresponding to the terminal card in the preset multiple tuning parameters is determined according to the target bandwidth allocation information of the target adapter card, and data communication is performed with the terminal card according to the communication parameter corresponding to the target tuning parameter. Thus, by automatically optimizing the tuning parameters and performing data communication with the terminal card based on the optimal target tuning parameters, the signal quality of the terminal card can be improved.

[0110] In this embodiment, a bandwidth allocation method is provided, which can be used for the above-mentioned computer devices, such as mobile phones, tablet computers, desktop computers, portable notebooks, servers, etc. Among them, the computer device includes a baseboard management controller, and the bandwidth allocation method provided in this embodiment can be specifically applied to the baseboard management controller. Figure 5 is a flow chart of a bandwidth allocation method according to an embodiment of the present invention. Figure 5As shown, the process includes the following steps:

[0111] Step S501: receiving an identification acquisition instruction sent by a processor.

[0112] The computer device in the embodiment of the present invention may include a processor and a baseboard management controller. When the computer device is started, the processor in the computer device sends an identification acquisition instruction to the baseboard management controller, and the baseboard management controller receives the identification acquisition instruction sent by the processor.

[0113] Step S502, according to the identification acquisition instruction, obtain identification information of at least one adapter card from the first memory; the identification information is determined by the diagnostic system when obtaining the type information of the adapter card, and is saved in the first memory through the baseboard management controller.

[0114] Among them, the process of storing the information in the first memory can be referred to the relevant description in the previous text, and the repeated parts will not be repeated here.

[0115] Step S503, sending the identification information to the processor; the identification information is used by the processor to obtain bandwidth allocation information of the adapter card, and perform bandwidth allocation processing on the adapter card according to the bandwidth allocation information.

[0116] When the processor receives the identification information, it obtains the bandwidth allocation information of the corresponding adapter card according to the identification information, and performs bandwidth allocation processing on the adapter card according to the bandwidth allocation information.

[0117] The bandwidth allocation method provided in this embodiment can customize the identification information of at least one adapter card in advance according to actual needs, and determine the corresponding identification information when the diagnostic system obtains the type information of the at least one adapter card, and save the identification information to the first memory through the baseboard management controller. Therefore, when the baseboard management controller receives the identification acquisition instruction sent by the processor, it obtains the identification information of the at least one adapter card from the first memory and sends it to the processor, so that the processor obtains the bandwidth allocation information of the adapter card according to the identification information, and performs bandwidth allocation processing on the adapter card according to the bandwidth allocation information. Therefore, by customizing the identification information of the adapter card and saving it in the first memory, the processor can perform bandwidth allocation processing based on the identification information in the first memory, breaking away from the strong dependence on the hardware physical identification (such as Borard ID), and can be implemented only by firmware, with strong scalability, which is conducive to adapting to various types of adapter cards.

[0118] In this embodiment, a bandwidth allocation method is provided, which can be used for the above-mentioned computer devices, such as mobile phones, tablet computers, desktop computers, portable notebooks, servers, etc. Among them, the computer device includes a baseboard management controller, and the bandwidth allocation method provided in this embodiment can be specifically applied to the baseboard management controller. Figure 6 is a flow chart of a bandwidth allocation method according to an embodiment of the present invention. Figure 6 As shown, the process includes the following steps:

[0119] Step S601, receiving a save instruction sent by a diagnostic system; the save instruction includes identification information of the adapter card; the identification information is determined by the diagnostic system based on type information obtained by scanning an information code of the corresponding adapter card.

[0120] Specifically, in order to achieve convenient adaptation of various adapter cards without relying heavily on hardware physical identification (such as Borard ID), in some embodiments, the identification information of at least one adapter card to be adapted can be customized in advance according to actual needs, and a first association relationship between the identification information and the type information of the adapter card can be established. Accordingly, during the production process, the user can operate the scanning module of the diagnostic system to scan the information code of each adapter card in turn according to the list of at least one adapter card to be adapted, and obtain the type information of each adapter card. Based on the type information, the diagnostic system obtains the associated identification information from the first association relationship, and sends a save instruction to the baseboard management controller based on the obtained identification information. The baseboard management controller receives the save instruction sent by the diagnostic system.

[0121] In other embodiments, the identification information of at least one adapter card to be adapted can be customized in advance according to actual needs, and a save instruction including the identification information can be formulated, and a second association relationship between the save instruction and the type information of the adapter card can be established. Accordingly, during the production process, the user can operate the scanning module of the diagnostic system to scan the information code of each adapter card in turn according to the list of at least one adapter card to be adapted, and obtain the type information of each adapter card. In the diagnostic system, based on the type information, the associated save instruction is obtained from the second association relationship, and the save instruction is sent to the baseboard management controller. The baseboard management controller receives the save instruction sent by the diagnostic system.

[0122] It should be noted that when there are multiple adapter cards to be adapted, the diagnostic system can scan the information code of each adapter card, obtain the type information of the adapter card, and then send a save instruction to the baseboard management controller according to the type information. The diagnostic system can also scan the information code of each adapter card, obtain the type information of each adapter card, and then send a save instruction to the baseboard management controller according to each type of information.

[0123] Step S602: Save the identification information in the save instruction into the first memory.

[0124] In some implementations, the save instruction includes identification information of the adapter card and may also include storage location information. Accordingly, the baseboard management controller saves the identification information in the save instruction into a storage area in the first memory corresponding to the storage location information.

[0125] Therefore, by storing the identification information of the adapter card in the first memory, the processor can perform accurate bandwidth allocation based on the identification information in the first memory when performing bandwidth allocation processing.

[0126] Step S603: receiving an identification acquisition instruction sent by the processor.

[0127] Step S604: acquiring identification information of at least one adapter card from the first memory according to the identification acquisition instruction.

[0128] Step S605, sending the identification information to the processor; the identification information is used by the processor to obtain bandwidth allocation information of the adapter card, and perform bandwidth allocation processing on the adapter card according to the bandwidth allocation information.

[0129] For the specific implementation of steps S603 to S605, please refer to the relevant description above, and the repeated parts will not be repeated here.

[0130] Step S606, if a data backup instruction is received from the backup mainboard, the target data in the first memory is obtained; the data backup request is sent by the backup mainboard when it is determined that the DIP switch is in the first state.

[0131] Considering that in actual applications, the mainboard including the upload processor and the baseboard management controller may be replaced due to factors such as mainboard failure. In order to improve the replacement efficiency of the mainboard while ensuring that data can be effectively migrated, in some implementations, the target data to be migrated is first migrated to the backup mainboard, and then the target data is migrated from the backup mainboard to the target mainboard.

[0132] In some implementations, the baseboard management controller may be connected to a conversion chip. Accordingly, step S606 may include: if a data backup instruction in the form of a first signal sent by the conversion chip is received, then obtaining target data in the first memory; wherein the data backup instruction in the form of a first signal is obtained by the conversion chip performing signal conversion on the data backup instruction in the form of a second signal sent by the backup mainboard through the first network port.

[0133] Specifically, a dip switch may be provided in the backup mainboard. When migrating to the target data, the backup mainboard and the mainboard where the baseboard management controller is currently located may be first connected via a network cable. After the connection is successful, the dip switch may be set to the first state. Correspondingly, when the backup mainboard obtains the status information that the dip switch is in the first state, a data backup instruction in the second signal form is sent to the conversion chip through the first network port. The conversion chip performs signal conversion on the data backup instruction in the second signal form, obtains the data backup instruction in the first signal form, and sends it to the baseboard management controller. The first signal form may be an MDI (Media Dependent Interface) signal, and the second signal form may be an RGMII (Reduced Gigabit Media Independent Interface) signal.

[0134] Step S607, sending the target data to the backup mainboard; the target data is used for the backup mainboard to send the target data to the target mainboard when determining that the DIP switch is in the second state; the target mainboard is the mainboard after the baseboard management controller is currently located.

[0135] Specifically, the target data in the first signal form is sent to the conversion chip; wherein the target data in the first signal form is used by the conversion chip to convert into the second signal form, and the target data in the second signal form is sent to the backup mainboard through the first network port. That is, the baseboard management controller sends the target data in the first signal form to the conversion chip. The conversion chip performs signal conversion processing on the received target data in the first signal form to obtain the target data in the second signal form, and sends the target data in the second signal form to the backup mainboard through the first network port. At this point, the migration of the target data from the mainboard where the baseboard management controller is currently located to the backup mainboard is automatically completed. After the mainboard where the baseboard management controller is currently located is replaced with the target mainboard, the backup mainboard and the target mainboard can be connected through the network, and the DIP switch of the backup mainboard is set to the second state. When the backup mainboard obtains the state information that the DIP switch is set to the second state, the target data in the second signal form is sent to the conversion chip through the first network port. The conversion chip converts the received target data in the second signal form into the target data in the first signal form, and sends the target data in the first signal form to the baseboard management controller, and the baseboard management controller saves the target data to the second memory of the connected target mainboard. The second memory may be an EEPROM, and the target data may include identification information of each adapter card.

[0136] Therefore, when replacing the mainboard, the target data can be automatically and effectively migrated by maintaining the backup mainboard, without the need to manually burn the target data into the second memory of the target mainboard according to the maintenance manual, thereby greatly improving the replacement efficiency of the mainboard.

[0137] In this embodiment, a main board is provided, such as Figure 7 As shown, the mainboard includes: a processor 701, a baseboard management controller 702 and a first memory 703;

[0138] The processor 701 is connected to the baseboard management controller 702, and is used to obtain identification information of at least one adapter card from the baseboard management controller 702 based on the identification acquisition instruction; obtain bandwidth allocation information of the adapter card according to the identification information; and perform bandwidth allocation processing on the adapter card according to the bandwidth allocation information.

[0139] The baseboard management controller 702 is connected to the processor 701 and the first memory 703, respectively, and is used to save the identification information of the adapter card from the diagnostic system to the first memory 703; and based on the identification acquisition instruction sent by the processor 701, acquire the identification information from the first memory 703, and send the acquired identification information to the processor 701;

[0140] The first memory 703 is connected to the baseboard management controller 702 and is used to store identification information of at least one riser card.

[0141] In some embodiments, Figure 8 As shown, the mainboard also includes: a first processing chip 704 and a basic input and output system 705;

[0142] The processor 701 is also connected to the first processing chip 704, and is used to send a first bandwidth information acquisition request to the first processing chip 704 according to the acquired identification information, and receive bandwidth allocation information sent by the first processing chip 704;

[0143] The first processing chip 704 is also connected to the basic input and output system 705, and is used to receive a first bandwidth information acquisition request, send a second bandwidth information acquisition request to the basic input and output system 705 according to the first bandwidth information acquisition request, and receive bandwidth allocation information sent by the basic input and output system 705;

[0144] The basic input and output system 705 is used to receive the second bandwidth information acquisition request sent by the first processing chip 704 , acquire bandwidth allocation information associated with the identification information according to the second bandwidth information acquisition request, and send the bandwidth allocation information to the first processing chip 704 .

[0145] In some embodiments, Figure 8As shown, the main board also includes: a conversion chip 706 and a first network port 707;

[0146] The conversion chip 706 is connected to the first network port 707 and the baseboard management controller 702, respectively, and is used to receive the data backup instruction in the second signal form sent by the backup mainboard through the first network port 704, convert the data backup instruction in the second signal form into the data backup instruction in the first signal form; send the data backup instruction in the first signal form to the baseboard management controller 702; receive the target data in the first signal form sent by the baseboard management controller 702, convert the target data in the first signal form into the target data in the second signal form, and send the target data in the second signal form to the backup mainboard through the first network port 701;

[0147] The baseboard management controller 702 is further configured to receive a data backup instruction in the form of a first signal, obtain target data from the first memory 703 , and send the target data in the form of a first signal to the conversion chip 706 .

[0148] In some embodiments, Figure 8 As shown, the processor 701 includes N ports, a target port among the N ports is connected to the adapter card, and N is an integer greater than 1. Figure 8 In the figure, the target ports are port 1 and port 2 as an example, wherein port 1 is connected to adapter card A, and port 2 is connected to adapter card B.

[0149] It should be pointed out that the processing process of each component included in the mainboard provided in this embodiment can refer to the relevant description in the previous text, and the repeated parts will not be repeated here.

[0150] In the motherboard provided by the present invention, the identification information of at least one adapter card can be customized in advance according to actual needs. When the baseboard management controller receives the identification information of the adapter card from the diagnostic system, the identification information is saved in the first memory; and based on the identification acquisition instruction sent by the processor, at least one adapter card identification information is acquired from the first memory, and the acquired identification information is sent to the processor, so that the processor acquires the bandwidth allocation information of the adapter card according to the identification information, and performs bandwidth allocation processing on the adapter card according to the bandwidth allocation information. Thus, by customizing the identification information of the adapter card and saving it in the first memory, the processor can perform bandwidth allocation processing based on the identification information in the first memory, breaking away from the strong dependence on the hardware physical identification (such as Borard ID), and can be realized only by firmware, with strong scalability, which is conducive to adapting to various types of adapter cards.

[0151] In this embodiment, a bandwidth allocation device is also provided, which is used to implement the above embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements 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 conceivable.

[0152] This embodiment provides a bandwidth allocation device, such as Fig. 9 As shown, including:

[0153] A first acquisition module 901 is used to acquire identification information of at least one riser card from a baseboard management controller based on an identification acquisition instruction; the identification information of at least one riser card is stored in a first memory connected to the baseboard management controller, and the identification information is determined by the diagnostic system when the type information of the riser card is acquired, and is saved in the first memory through the baseboard management controller;

[0154] The second acquisition module 902 is used to acquire bandwidth allocation information of the adapter card according to the identification information;

[0155] The allocation module 903 is used to perform bandwidth allocation processing on the adapter card according to the bandwidth allocation information.

[0156] In some optional implementations, the first acquisition module 901 includes:

[0157] A first sending unit is used to send an identification acquisition instruction to the baseboard management controller; the identification acquisition instruction is used to instruct the baseboard management controller to obtain identification information of at least one adapter card from the first memory;

[0158] The first receiving unit is configured to receive the identification information sent by the baseboard management controller.

[0159] In some optional implementations, the second acquisition module 902 includes:

[0160] A second sending unit is used to send a first bandwidth information acquisition request to the first processing chip according to the identification information; the first bandwidth information acquisition request is used to instruct the first processing chip to send a second bandwidth information acquisition request to the basic input and output system; the second bandwidth information acquisition request is used to instruct the basic input and output system to obtain bandwidth allocation information associated with the identification information and send it to the first processing chip;

[0161] The second receiving unit is used to receive the bandwidth allocation information sent by the first processing chip.

[0162] In some optional implementations, the allocation module 903 is specifically configured to:

[0163] Determine, according to the bandwidth allocation information, a target port corresponding to the adapter card among the multiple ports of the processor;

[0164] Allocate bandwidth to the target port according to the bandwidth allocation information.

[0165] In some optional embodiments, the device further comprises:

[0166] A determination module, for determining, if it is determined that a target adapter card in at least one adapter card is connected to a terminal card, a target tuning parameter corresponding to the terminal card among a plurality of preset tuning parameters according to target bandwidth allocation information of the target adapter card;

[0167] The communication module is used to perform data communication with the terminal card according to the communication parameters corresponding to the target tuning parameters.

[0168] In some optional implementations, the determining module includes:

[0169] A first determining unit, configured to determine a target number of differential pairs corresponding to the terminal card according to target bandwidth allocation information of the target adapter card;

[0170] An acquisition unit, used for acquiring eye height data and eye width data corresponding to a target number of differential pairs under various tuning parameters;

[0171] The second determining unit is used to determine the target tuning parameter corresponding to each differential pair among the tuning parameters according to the eye height data and the eye width data.

[0172] In some optional implementations, the second determining unit is specifically configured to:

[0173] For each differential pair, according to the eye height data and eye width data corresponding to the differential pair under each tuning parameter, determine the evaluation data of the differential pair under each tuning parameter;

[0174] According to the evaluation data, the target tuning parameters corresponding to the differential pairs in each tuning parameter are determined.

[0175] In some optional implementations, the second determining unit is further specifically configured to:

[0176] For each tuning parameter, determine a first parameter according to eye height data corresponding to the differential pair under the tuning parameter;

[0177] Determine a second parameter according to eye width data corresponding to the differential pair under the tuning parameters;

[0178] Determine the eye diagram area corresponding to the differential pair according to the first parameter and the second parameter;

[0179] The eye area is determined as the evaluation data of the differential pair under the tuning parameters.

[0180] In some optional implementations, the second determining unit is further specifically configured to:

[0181] For each differential pair, compare the evaluation data of the differential pair under each tuning parameter to obtain the maximum candidate evaluation data of the differential pair;

[0182] Determine the largest target evaluation data among the self-negotiated evaluation data of the candidate evaluation data and the differential pair;

[0183] The tuning parameters corresponding to the target evaluation data are determined as the target tuning parameters corresponding to the differential pairs in each tuning parameter.

[0184] The bandwidth allocation device provided in this embodiment can customize the identification information of at least one adapter card in advance according to actual needs, and determine the corresponding identification information when the diagnostic system obtains the type information of the at least one adapter card, and save the identification information to the first memory through the baseboard management controller. Therefore, the bandwidth allocation device can obtain the identification information of the at least one adapter card from the baseboard management controller based on the identification acquisition instruction, and obtain the bandwidth allocation information of the at least one adapter card according to the acquired identification information, and perform bandwidth allocation processing on the adapter card according to the bandwidth allocation information. Therefore, by customizing the identification information of the adapter card and saving it to the first memory, the processor can perform bandwidth allocation processing based on the identification information in the first memory, breaking away from the strong dependence on the hardware physical identification (such as Borard ID), and can be implemented only by firmware, with strong scalability, which is conducive to adapting to various types of adapter cards.

[0185] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0186] The bandwidth allocation device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0187] In this embodiment, a bandwidth allocation device is also provided, which is used to implement the above embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements 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 conceivable.

[0188] This embodiment provides a bandwidth allocation device, such as Fig.10 As shown, including:

[0189] The receiving module 1001 is used to receive the identification acquisition instruction sent by the processor;

[0190] The acquisition module 1002 is used to acquire identification information of at least one adapter card from the first memory according to the identification acquisition instruction; the identification information is determined by the diagnostic system when acquiring the type information of the adapter card, and is saved in the first memory through the baseboard management controller;

[0191] The sending module 1003 is used to send the identification information to the processor; the identification information is used by the processor to obtain the bandwidth allocation information of the adapter card, and perform bandwidth allocation processing on the adapter card according to the bandwidth allocation information.

[0192] In some optional embodiments, the device further comprises a storage module;

[0193] The receiving module 1001 is also used to receive a save instruction sent by the diagnostic system; the save instruction includes identification information; the identification information is determined by the diagnostic system based on the type information obtained by scanning the information code of the corresponding adapter card;

[0194] The saving module is used to save the identification information in the saving instruction into the first memory.

[0195] In some optional implementations, the receiving module 1001 is further configured to:

[0196] If a data backup instruction is received from the backup mainboard, the target data in the first memory is obtained; the data backup request is sent by the backup mainboard when it is determined that the DIP switch is in the first state;

[0197] The sending module 1003 is also used to send the target data to the backup mainboard; the target data is used for the backup mainboard to send the target data to the target mainboard when it determines that the dial switch is in the second state; the target mainboard is the mainboard after the baseboard management controller is currently located.

[0198] In some optional implementations, the receiving module 1001 is specifically used to receive a data backup instruction in the first signal form sent by the conversion chip; the data backup instruction in the first signal form is obtained by the conversion chip performing signal conversion on the data backup instruction in the second signal form sent by the backup mainboard through the first network port;

[0199] The sending module 1003 is specifically used to send the target data in the first signal form to the conversion chip; the target data in the first signal form is used by the conversion chip to convert it into a second signal form, and the target data in the second signal form is sent to the backup mainboard through the first network port.

[0200] The bandwidth allocation device provided in this embodiment can customize the identification information of at least one adapter card in advance according to actual needs, and determine the corresponding identification information when the diagnostic system obtains the type information of the at least one adapter card, and save the identification information to the first memory through the bandwidth allocation device. Therefore, when the bandwidth allocation device receives the identification acquisition instruction sent by the processor, it obtains the identification information of the at least one adapter card from the first memory and sends it to the processor, so that the processor obtains the bandwidth allocation information of the adapter card according to the identification information, and performs bandwidth allocation processing on the adapter card according to the bandwidth allocation information. Therefore, by customizing the identification information of the adapter card and saving it in the first memory, the processor can perform bandwidth allocation processing based on the identification information in the first memory, breaking away from the strong dependence on the hardware physical identification (such as BorardID), and can be implemented only by firmware, with strong scalability, which is conducive to adapting to various types of adapter cards.

[0201] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0202] The bandwidth allocation device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0203] An embodiment of the present invention further provides a server, which includes the mainboard provided by any of the above embodiments.

[0204] It should be pointed out that, since the server itself includes the aforementioned baseboard management controller, the present invention does not add new devices and new hardware circuits. Instead, based on the structure of the existing server, the baseboard management controller is effectively coordinated with the basic input and output system, the processor and the first processing chip, etc., thereby solving the strong dependence of the existing bandwidth allocation on the physical identification of the hardware and realizing the convenient adaptation of various types of adapter cards.

[0205] The embodiment of the present invention also provides a computer device having the above Fig. 9 and Fig.10 The bandwidth allocation device shown.

[0206] See also Fig.11 , Fig.11 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig.11As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.11 A processor 10 is taken as an example.

[0207] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0208] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0209] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0210] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0211] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Fig.11 The example of connecting through bus is taken in the following.

[0212] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device may be a touch screen.

[0213] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0214] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0215] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A bandwidth allocation method, It is characterized in that Applied to a processor, the method comprises: Based on the identification acquisition instruction, identification information of at least one riser card is acquired from the baseboard management controller; the identification information of the riser card is stored in a first memory connected to the baseboard management controller, the identification information is determined by the diagnostic system when the type information of the riser card is acquired, and is saved in the first memory through the baseboard management controller; According to the identification information, obtaining bandwidth allocation information of the adapter card; Performing bandwidth allocation processing on the adapter card according to the bandwidth allocation information; If it is determined that the target adapter card in the at least one adapter card is connected to the terminal card, then determining the target tuning parameter corresponding to the terminal card in the preset multiple tuning parameters according to the target bandwidth allocation information of the target adapter card; performing data communication with the terminal card according to the communication parameters corresponding to the target tuning parameters; The step of determining the target tuning parameter corresponding to the terminal card from among the preset multiple tuning parameters according to the target bandwidth allocation information of the target adapter card includes: Determining the target number of differential pairs corresponding to the terminal card according to the target bandwidth allocation information of the target adapter card; Obtaining eye height data and eye width data corresponding to the target number of differential pairs under each of the tuning parameters; Determining, according to the eye height data and the eye width data, a target tuning parameter corresponding to each of the differential pairs in each of the tuning parameters; The step of determining, according to the eye height data and the eye width data, a target tuning parameter corresponding to each of the differential pairs in each of the tuning parameters includes: For each of the differential pairs, determining evaluation data of the differential pair under each of the tuning parameters according to the eye height data and the eye width data corresponding to the differential pair under each of the tuning parameters; Determining, according to the evaluation data, a target tuning parameter corresponding to the differential pair in each of the tuning parameters; The step of determining, according to the evaluation data, a target tuning parameter corresponding to the differential pair in each of the tuning parameters includes: For each of the differential pairs, compare the evaluation data of the differential pair under each of the tuning parameters to obtain the maximum candidate evaluation data of the differential pair; Determine the largest target evaluation data among the candidate evaluation data and the self-negotiation evaluation data of the differential pair; The tuning parameters corresponding to the target evaluation data are determined as the target tuning parameters corresponding to the differential pair in each of the tuning parameters.

2. The method according to claim 1, It is characterized in that The step of acquiring identification information of at least one riser card from a baseboard management controller based on an identification acquisition instruction includes: Sending an identification acquisition instruction to the baseboard management controller; the identification acquisition instruction is used to instruct the baseboard management controller to obtain identification information of at least one adapter card from the first memory; The identification information sent by the baseboard management controller is received.

3. The method according to claim 1, It is characterized in that The acquiring, according to the identification information, the bandwidth allocation information of the adapter card includes: sending a first bandwidth information acquisition request to the first processing chip according to the identification information; the first bandwidth information acquisition request is used to instruct the first processing chip to send a second bandwidth information acquisition request to the basic input and output system; the second bandwidth information acquisition request is used to instruct the basic input and output system to acquire bandwidth allocation information associated with the identification information and send it to the first processing chip; Receive the bandwidth allocation information sent by the first processing chip.

4. The method according to claim 1, It is characterized in that The performing bandwidth allocation processing on the adapter card according to the bandwidth allocation information includes: Determining, according to the bandwidth allocation information, a target port corresponding to the adapter card among the multiple ports of the processor; Allocate bandwidth to the target port according to the bandwidth allocation information.

5. The method according to claim 1, It is characterized in that The step of determining evaluation data of the differential pair under each of the tuning parameters according to the eye height data and the eye width data corresponding to the differential pair under each of the tuning parameters comprises: For each of the tuning parameters, determining a first parameter according to the eye height data corresponding to the differential pair under the tuning parameter; Determine a second parameter according to the eye width data corresponding to the differential pair under the tuning parameter; Determine an eye diagram area corresponding to the differential pair according to the first parameter and the second parameter; The eye diagram area is determined as evaluation data of the differential pair under the tuning parameters.

6. A bandwidth allocation method, It is characterized in that Applied to a baseboard management controller, the method comprises: receiving an identification acquisition instruction sent by a processor; According to the identification acquisition instruction, the identification information of at least one adapter card is acquired from the first memory; the identification information is determined by the diagnostic system when the type information of the adapter card is acquired, and is saved in the first memory through the baseboard management controller; The identification information is sent to the processor; the identification information is used by the processor to obtain bandwidth allocation information of the adapter card, and perform bandwidth allocation processing on the adapter card according to the bandwidth allocation information.

7. The method according to claim 6, It is characterized in that Before receiving the identification acquisition instruction sent by the processor, the method further includes: receiving a save instruction sent by the diagnostic system; the save instruction includes any of the identification information; the identification information is determined by the diagnostic system based on type information obtained by scanning an information code of a corresponding adapter card; The identification information in the save instruction is saved in the first memory.

8. The method according to claim 6, It is characterized in that The method further comprises: If a data backup instruction is received from the backup mainboard, the target data in the first memory is obtained; the data backup request is sent by the backup mainboard when it is determined that the DIP switch is in the first state; The target data is sent to the backup mainboard; the target data is used by the backup mainboard to send the target data to the target mainboard when the backup mainboard determines that the dip switch is in the second state; the target mainboard is the mainboard after the baseboard management controller is currently located.

9. The method according to claim 8, It is characterized in that The receiving of a data backup request from a backup mainboard includes: receiving a data backup instruction in a first signal form sent by a conversion chip; the data backup instruction in the first signal form is obtained by the conversion chip performing signal conversion on a data backup instruction in a second signal form sent by the backup mainboard through the first network port; The sending the target data to the backup mainboard includes: The target data in the first signal form is sent to the conversion chip; the target data in the first signal form is used by the conversion chip to convert into the second signal form, and the target data in the second signal form is sent to the backup mainboard through the first network port.

10. A motherboard, It is characterized in that include: A processor, a baseboard management controller, and a first memory; The processor is connected to the baseboard management controller and is used to obtain identification information of at least one adapter card from the baseboard management controller based on an identification acquisition instruction; obtain bandwidth allocation information of the adapter card according to the identification information; and perform bandwidth allocation processing on the adapter card according to the bandwidth allocation information; If it is determined that the target adapter card in the at least one adapter card is connected to the terminal card, the target tuning parameters corresponding to the terminal card in the preset multiple tuning parameters are determined according to the target bandwidth allocation information of the target adapter card; data communication is performed with the terminal card according to the communication parameters corresponding to the target tuning parameters; wherein, the target tuning parameters corresponding to the terminal card in the preset multiple tuning parameters are determined according to the target bandwidth allocation information of the target adapter card, including: determining the target number of differential pairs corresponding to the terminal card according to the target bandwidth allocation information of the target adapter card; obtaining the eye height data and the eye width data corresponding to the target number of differential pairs under each of the tuning parameters; determining the target tuning parameters corresponding to each of the differential pairs in each of the tuning parameters according to the eye height data and the eye width data; wherein, determining each according to the eye height data and the eye width data The target tuning parameters corresponding to the differential pair in each of the tuning parameters include: for each of the differential pairs, according to the eye height data and the eye width data corresponding to the differential pair under each of the tuning parameters, determining the evaluation data of the differential pair under each of the tuning parameters; determining the target tuning parameters corresponding to the differential pair in each of the tuning parameters according to the evaluation data; wherein, determining the target tuning parameters corresponding to the differential pair in each of the tuning parameters according to the evaluation data includes: for each of the differential pairs, comparing the evaluation data of the differential pair under each of the tuning parameters to obtain the maximum candidate evaluation data of the differential pair; determining the maximum target evaluation data between the candidate evaluation data and the self-negotiation evaluation data of the differential pair; and determining the tuning parameter corresponding to the target evaluation data as the target tuning parameter corresponding to the differential pair in each of the tuning parameters; The baseboard management controller is connected to the processor and the first memory respectively, and is used to save the identification information from the diagnostic system to the first memory; and based on the identification acquisition instruction, obtain the identification information from the first memory and send the identification information to the processor; The first memory is connected to the baseboard management controller and is used to store the identification information.

11. The mainboard according to claim 10, It is characterized in that The mainboard also includes: a first processing chip and a basic input and output system; The processor is also connected to the first processing chip, and is used to send a first bandwidth information acquisition request to the first processing chip according to the identification information, and receive the bandwidth allocation information sent by the first processing chip; The first processing chip is also connected to the basic input and output system, and is used to receive the first bandwidth information acquisition request, send a second bandwidth information acquisition request to the basic input and output system according to the first bandwidth information acquisition request, and receive the bandwidth allocation information sent by the basic input and output system; The basic input and output system is used to receive the second bandwidth information acquisition request, acquire bandwidth allocation information associated with the identification information according to the second bandwidth information acquisition request, and send the bandwidth allocation information to the first processing chip.

12. The mainboard according to claim 10, It is characterized in that The mainboard also includes: a conversion chip and a first network port; The conversion chip is connected to the first network port and the baseboard management controller, respectively, and is used to receive a data backup instruction in the second signal form sent by the backup mainboard through the first network port, convert the data backup instruction in the second signal form into a data backup instruction in the first signal form; send the data backup instruction in the first signal form to the baseboard management controller; receive target data in the first signal form sent by the baseboard management controller, convert the target data in the first signal form into target data in the second signal form, and send the target data in the second signal form to the backup mainboard through the first network port; The baseboard management controller is further configured to receive a data backup instruction in the first signal form, obtain target data from the first memory, and send the target data in the first signal form to the conversion chip.

13. The mainboard according to claim 10, It is characterized in that The processor includes a plurality of ports, and a target port among the plurality of ports is connected to the adapter card.

14. A computer device, It is characterized in that include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the bandwidth allocation method according to any one of claims 1 to 5, or the bandwidth allocation method according to any one of claims 6 to 9 by executing the computer instructions.

15. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the bandwidth allocation method according to any one of claims 1 to 5, or to execute the bandwidth allocation method according to any one of claims 6 to 9.

16. A computer program product, It is characterized in that The method comprises computer instructions, wherein the computer instructions are used to enable a computer to execute the bandwidth allocation method according to any one of claims 1 to 5, or to execute the bandwidth allocation method according to any one of claims 6 to 9.