Parameter configuration method, device and equipment and computer readable storage medium
By setting up redundant processors and storage devices in the server, we ensure that even if any of them fails, the server can still be turned on normally, solving the problem of server failure caused by incorrect configuration of PCIE module in BMC.
Patent Information
- Application Number
- CN202510165514.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-14
- Publication Date
- 2025-05-27
AI Technical Summary
The incorrect configuration of the PCIE module in BMC causes the server to fail to boot normally, reducing the user experience.
Two processors and two storage devices are set up in the server, each processor corresponding to one storage device, ensuring that even if any of the processors or storage devices fail, a healthy pair of processors and storage devices can still perform configuration work smoothly.
Through the redundant processor and storage device design, the server cannot be turned on due to configuration failure is avoided, and the user experience is improved.
Smart Images

Figure CN120045242A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of servers, and in particular to a parameter configuration method, device, equipment and computer-readable storage medium. Background Art
[0002] BMC (Baseboard Management Controller) can obtain information about the specified modules (such as some registers) of the server through the PCIE (Peripheral Component Interconnect Express) link to monitor and manage the server. This first requires that the PCIE module in the BMC is correctly configured. The correct configuration of the PCIE module in the BMC is one of the prerequisites for starting the server. In other words, once the PCIE module cannot be configured correctly, the server will not be able to start normally, which reduces the user experience.
[0003] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention
[0004] The object of the present invention is to provide a parameter configuration method, device, equipment and computer-readable storage medium. The parameter configuration method in the present invention is applied to a first processor and a second processor. Both processors can respond to a configuration request sent by a PCIE module in a BMC, obtain preset configuration information from a storage device corresponding to themselves in the BMC, and configure the preset configuration information in a module to be configured. Both processors have their own corresponding storage devices. Even if any one of the processors or the storage device fails, a healthy pair of processors and storage devices can also smoothly perform the configuration work, thereby avoiding the inability to start the server due to configuration failure, thereby improving the user experience.
[0005] In order to solve the above technical problems, the present invention provides a parameter configuration method, which is applied to a first processor and a second processor in a baseboard management controller, comprising:
[0006] In response to a configuration request sent by a module to be configured in a baseboard management controller, obtaining preset configuration information from a storage device corresponding to the baseboard management controller, wherein the first processor is a core processor in the baseboard management controller, the first processor corresponds to the first storage device, the second processor corresponds to the second storage device, and the module to be configured is a high-speed peripheral component interconnect module;
[0007] The preset configuration information is configured in the module to be configured so that the module to be configured can exchange information with a designated module in the server through a high-speed peripheral component interconnect link.
[0008] On the other hand, the first storage device includes a first storage control module and a first storage module, and the second storage device includes a second storage control module and a second storage module;
[0009] In response to a configuration request sent by a module to be configured in a baseboard management controller, obtaining preset configuration information from a storage device corresponding to the baseboard management controller includes:
[0010] In response to a configuration request sent by a module to be configured in a baseboard management controller, the baseboard management controller determines, through a storage control module in a storage device corresponding to the baseboard management controller, whether a storage module in the storage device corresponding to the baseboard management controller is in a busy state;
[0011] If it is in a busy state, periodically executing the step of determining whether the storage module in the storage device corresponding to itself is in a busy state through the storage control module in the storage module corresponding to itself in the baseboard management controller;
[0012] If it is not in a busy state, the preset configuration information is obtained from the storage device corresponding to itself through the storage control module in the storage device corresponding to itself.
[0013] On the other hand, obtaining preset configuration information from a storage module corresponding to itself through a storage control module in a storage device corresponding to itself includes:
[0014] Obtaining the configuration length and the configuration data address base address from the storage module corresponding to itself through the storage control module in the storage device corresponding to itself;
[0015] Obtaining a configuration data address from the configuration data address base address of the storage module corresponding to itself;
[0016] Acquire preset configuration information from the configuration data address of the storage module corresponding to itself;
[0017] Configuring the preset configuration information in the module to be configured includes:
[0018] After obtaining the next configuration sub-information in the preset configuration information, the newly obtained configuration sub-information is configured in the module to be configured, and the count value of the counter whose initial value is zero is increased by one;
[0019] Determine whether the current count value of the counter is equal to the configuration length;
[0020] If not, executing the step of configuring the latest acquired configuration sub-information in the module to be configured after acquiring the next configuration sub-information in the preset configuration information, and increasing the count value of the counter whose initial value is zero by one;
[0021] If they are equal, a configuration completion signal is sent to the module to be configured.
[0022] On the other hand, the parameter configuration method further includes:
[0023] In response to the first modification instruction, modify the configuration data address stored at the configuration data address base address in the storage device corresponding to itself;
[0024] In response to the second modification instruction, the preset configuration information stored at the configuration data address in the storage device corresponding to itself is modified.
[0025] On the other hand, the first storage control module is a flash memory control module, and the first storage module is a flash memory;
[0026] The second storage control module is a control module of a one-time programmable read-only memory, and the second storage module is a one-time programmable read-only memory.
[0027] On the other hand, the first storage device and the second storage device are the same storage device.
[0028] On the other hand, in response to a configuration request sent by a module to be configured in the baseboard management controller, obtaining preset configuration information from a storage device corresponding to the baseboard management controller itself includes:
[0029] In response to a configuration request sent by a module to be configured in a baseboard management controller, determining whether a preemption flag exists in its associated processor, wherein the first processor and the second processor are each other's associated processors;
[0030] If there is no preemption flag, a preemption flag is generated inside itself, and preset configuration information is obtained from a storage device corresponding to itself in the baseboard management controller;
[0031] If the preemption flag exists, then end.
[0032] In order to solve the above technical problems, the present invention further provides a parameter configuration device, which is applied to a first processor and a second processor in a baseboard management controller, comprising:
[0033] A first acquisition module is used to respond to a configuration request sent by a module to be configured in the baseboard management controller, and to acquire preset configuration information from a storage device corresponding to the baseboard management controller, wherein the first processor is a core processor in the baseboard management controller, the first processor corresponds to the first storage device, the second processor corresponds to the second storage device, and the module to be configured is a high-speed peripheral component interconnect module;
[0034] The first action module is used to configure the preset configuration information in the module to be configured, so that the module to be configured can exchange information with a designated module in the server through a high-speed peripheral component interconnect link.
[0035] In order to solve the above technical problems, the present invention further provides a parameter configuration device, which is applied to a baseboard management controller, comprising:
[0036] A first processor is used to configure the module to be configured, in response to a configuration request sent by the module to be configured, the preset configuration information obtained from the first storage device, wherein the first processor is a core processor of the baseboard management controller, and the module to be configured is a high-speed peripheral component interconnect module;
[0037] The second processor is used to configure the module to be configured, in response to a configuration request sent by the module to be configured, the preset configuration information obtained from the second storage device;
[0038] A first storage device, used to store preset configuration information;
[0039] A second storage device, used to store preset configuration information;
[0040] The module to be configured is used to exchange information with a designated module in the server through a high-speed peripheral component interconnect link after being configured.
[0041] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the parameter configuration method described above are implemented.
[0042] Beneficial effect: The present invention provides a parameter configuration method. Considering that (1) failure of a processor used to configure a PCIE module and a storage device storing preset configuration information will result in configuration failure, and (2) redundant processors and storage devices can be provided to cope with a variety of failure conditions, the parameter configuration method of the present invention is applied to a first processor and a second processor. Both processors can respond to a configuration request sent by a PCIE module in a BMC, obtain preset configuration information from a storage device corresponding to themselves in the BMC, and configure the preset configuration information in a module to be configured. Both processors have their own corresponding storage devices. Even if any one of the processors or storage devices fails, a healthy pair of processors and storage devices can still successfully perform configuration work, thereby avoiding the inability to boot up the server due to configuration failure, thereby improving user experience.
[0043] The present invention also provides a parameter configuration device, equipment and computer-readable storage medium, which have the same beneficial effects as the above parameter configuration method. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the relevant technologies and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 A flow chart of a parameter configuration method provided by the present invention;
[0046] Figure 2 A schematic diagram of the structure of a parameter configuration device provided by the present invention;
[0047] Figure 3 A schematic diagram of a flow chart of another parameter configuration method provided by the present invention;
[0048] Figure 4 A schematic diagram of the structure of a parameter configuration device provided by the present invention;
[0049] Figure 5 A schematic diagram of the structure of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0050] The core of the present invention is to provide a parameter configuration method, device, equipment and computer-readable storage medium. The parameter configuration method in the present invention is applied to a first processor and a second processor. Both processors can respond to the configuration request sent by the PCIE module in the BMC, obtain preset configuration information from the storage device corresponding to themselves in the BMC, and configure the preset configuration information in the module to be configured. Both processors have their own corresponding storage devices. Even if any one of the processors or storage devices fails, a healthy pair of processors and storage devices can also smoothly perform the configuration work, avoiding the server from being unable to start up due to configuration failure, thereby improving the user experience.
[0051] 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] Please refer to Figure 1 , Figure 1A flow chart of a parameter configuration method provided by the present invention is provided. The parameter configuration method is applied to a first processor and a second processor in a baseboard management controller, and includes:
[0053] S101: In response to a configuration request sent by a module to be configured in a baseboard management controller, obtaining preset configuration information from a storage device corresponding to the baseboard management controller, wherein the first processor is a core processor in the baseboard management controller, the first processor corresponds to a first storage device, the second processor corresponds to a second storage device, and the module to be configured is a high-speed peripheral component interconnect module;
[0054] Specifically, considering the technical problems in the above background technology, and considering that (1) failure of the processor used to configure the PCIE module and the storage device storing the preset configuration information will cause the configuration work to fail, and (2) redundant processors and storage devices are provided to cope with various failure situations, the embodiment of the present invention intends to configure the PCIE module through two processors, and each processor has a corresponding storage device, and both storage devices store preset configuration information. Both processors can obtain the preset configuration information from their corresponding storage devices and configure it in the module to be configured, so that in the event of a failure of any processor or storage device, it is ensured that the PCIE module can be correctly configured, so that the server can be successfully started. The execution of the configuration action requires a data basis. Therefore, in this step, the first processor and the second processor can respond to the configuration request sent by the module to be configured in the baseboard management controller and obtain the preset configuration information from the storage device corresponding to themselves in the baseboard management controller.
[0055] There may be multiple preset configuration information, which may be independently set according to the configuration requirements of the registers in the PCIE module, and the embodiment of the present invention does not limit this.
[0056] S102: configuring the preset configuration information in the module to be configured, so that the module to be configured can exchange information with a designated module in the server through a high-speed peripheral component interconnect link.
[0057] Specifically, for the first processor and the second processor, after obtaining the preset configuration information, the preset configuration information can be configured in the module to be configured, thereby realizing the smooth configuration of the module to be configured. Since there are two sets of processors and their corresponding storage devices, and the probability of two sets of "processors and their corresponding storage devices" failing at the same time is low, even if any one of the processors fails or any one of the storage devices fails, a healthy set of "processors and their corresponding storage devices" can also smoothly realize the configuration work of the module to be configured, ensuring that the server can start up normally.
[0058] The present invention provides a parameter configuration method. Considering that (1) failure of a processor used to configure a PCIE module and a storage device storing preset configuration information will result in configuration failure, and (2) redundant processors and storage devices can be provided to cope with a variety of failure conditions, the parameter configuration method of the present invention is applied to a first processor and a second processor. Both processors can respond to a configuration request sent by a PCIE module in a BMC, obtain preset configuration information from a storage device corresponding to themselves in the BMC, and configure the preset configuration information in a module to be configured. Both processors have their own corresponding storage devices. Even if any one of the processors or storage devices fails, a healthy pair of processors and storage devices can still successfully perform configuration work, thereby avoiding the inability to boot up a server due to configuration failure, thereby improving user experience.
[0059] Based on the above embodiments:
[0060] As an optional embodiment, the first storage device includes a first storage control module and a first storage module, and the second storage device includes a second storage control module and a second storage module;
[0061] In response to a configuration request sent by a module to be configured in a baseboard management controller, obtaining preset configuration information from a storage device corresponding to the baseboard management controller includes:
[0062] In response to a configuration request sent by a module to be configured in a baseboard management controller, the baseboard management controller determines, through a storage control module in a storage device corresponding to the baseboard management controller, whether a storage module in the storage device corresponding to the baseboard management controller is in a busy state;
[0063] If it is in a busy state, periodically executing the step of determining whether the storage module in the storage device corresponding to itself is in a busy state through the storage control module in the storage module corresponding to itself in the baseboard management controller;
[0064] If it is not in a busy state, the preset configuration information is obtained from the storage device corresponding to itself through the storage control module in the storage device corresponding to itself.
[0065] Specifically, in order to better illustrate the embodiments of the present invention, please refer to Figure 2 , Figure 2 A schematic diagram of the structure of a parameter configuration device provided by the present invention. Figure 2 The first storage control module and the first storage module together constitute a first storage device, and the second storage control module and the second storage module together constitute a second storage device.
[0066] Specifically, considering that in the BMC, the storage module not only stores preset configuration information but may also store other information, that is, the storage module is likely to be accessed due to the "reading and writing requirements of other information", that is, the storage module may be in a busy state, and the storage module in the busy state cannot be accessed. Therefore, in an embodiment of the present invention, in response to the configuration request sent by the module to be configured in the baseboard management controller, the storage control module in the storage device corresponding to itself in the baseboard management controller can be used to determine whether the storage module in the storage device corresponding to itself is in a busy state. If it is not in a busy state, the storage control module in the storage device corresponding to itself can be used to obtain the preset configuration information from the storage device corresponding to itself. In a busy state, it is necessary to wait and periodically execute the step of determining whether the storage module in the storage device corresponding to itself is in a busy state through the storage control module in the storage module corresponding to itself in the baseboard management controller, so as to obtain the preset configuration information therein in time when the storage module jumps out of the busy state.
[0067] Among them, the method in the embodiment of the present invention can avoid the situation of read failure caused by simultaneous access to the storage module, thereby improving the reliability of the parameter configuration method.
[0068] As an optional embodiment, obtaining preset configuration information from a storage module corresponding to itself through a storage control module in a storage device corresponding to itself includes:
[0069] Obtaining the configuration length and the configuration data address base address from the storage module corresponding to itself through the storage control module in the storage device corresponding to itself;
[0070] Obtain the configuration data address from the configuration data address base address of the storage module corresponding to itself;
[0071] Obtaining preset configuration information from the configuration data address of the storage module corresponding to itself;
[0072] Configuring the preset configuration information in the module to be configured includes:
[0073] After obtaining the next configuration sub-information in the preset configuration information, the newly obtained configuration sub-information is configured in the module to be configured, and the count value of the counter whose initial value is zero is increased by one;
[0074] Determine whether the current count value of the counter is equal to the configured length;
[0075] If not, executing the step of configuring the latest acquired configuration sub-information in the module to be configured after acquiring the next configuration sub-information in the preset configuration information, and increasing the count value of the counter whose initial value is zero by one;
[0076] If they are equal, a configuration completion signal is sent to the module to be configured.
[0077] Specifically, considering that the preset configuration information is composed of several configuration sub-information, in order to improve the accuracy of the configuration work, in the embodiment of the present invention, a preset configuration length (that is, the total number of configuration sub-information in the preset configuration information) is also stored in the storage module. Then, in the process of information configuration, the count value of the counter can be increased by one after the configuration of each configuration sub-information is completed, and it can be determined whether the current count value reaches the configuration length, so as to accurately detect the progress of the configuration work. Once the current count value reaches the configuration length, a configuration completion signal can be sent to the module to be configured to inform that the configuration work is completed.
[0078] The current count value may reflect the configuration progress. For example, the ratio of the current count value to the configuration length may be used as a percentage of the configuration progress. The percentage may be pushed to facilitate the staff to understand the configuration progress.
[0079] Specifically, the reason why the configuration data address is stored in the configuration data address base address is that in this case, the location where the preset configuration information is stored can be flexibly changed. When the location where the preset configuration information is stored is changed, the configuration data address stored at the configuration data address base address can be adaptively changed, which facilitates flexible adjustment of the location where the preset configuration information is stored.
[0080] Specifically, in order to better illustrate the embodiments of the present invention, please refer to Figure 3 , Figure 3 A flow chart of another parameter configuration method provided by the present invention, first, a configuration request is received, then the status of the corresponding storage control module is read, and then it is determined whether the corresponding storage module is in a busy state. If so, it can wait and continue the periodic reading state. If not, it can read the configuration length and the configuration data address base address, and then read the first configuration sub-information from the configuration data address base address, and configure the read configuration sub-information in the module to be configured, and then determine whether the current count value of the counter is equal to the configuration length. If not, it can read the next configuration sub-information and configure the read configuration sub-information in the module to be configured. If not, it can send configuration completion information to the module to be configured, and finally end.
[0081] As an optional embodiment, the parameter configuration method further includes:
[0082] In response to the first modification instruction, modify the configuration data address stored at the configuration data address base address in the storage device corresponding to itself;
[0083] In response to the second modification instruction, the preset configuration information stored at the configuration data address in the storage device corresponding to itself is modified.
[0084] Specifically, considering that the staff has the need to modify the "configuration data address of the preset configuration information in the storage module" and the "preset configuration information", that is, the staff may need to modify the preset configuration information itself, and may also need to modify the storage segment where the preset configuration information is located (since a variety of content needs to be stored in the storage module), in order to facilitate modification and improve modification efficiency, a modification interface is provided in the embodiment of the present invention, that is, in response to a first modification instruction, the configuration data address stored at the configuration data address base in the storage device corresponding to itself can be modified, and in response to a second modification instruction, the preset configuration information stored at the configuration data address in the storage device corresponding to itself can be modified.
[0085] As an optional embodiment, the first storage control module is a flash memory control module, and the first storage module is a flash memory;
[0086] The second storage control module is a control module of a one-time programmable read-only memory, and the second storage module is a one-time programmable read-only memory.
[0087] Specifically, considering that the flash memory and the one-time programmable read-only memory (OTP ROM) are both original storage modules in the BMC, selecting these two storage modules as the first storage module and the second storage module can reduce the transformation cost of the BMC.
[0088] Of course, in addition to the two original storage modules, the first storage module and the second storage module may also be other original storage modules in the BMC, which is not limited in the embodiment of the present invention.
[0089] As an optional embodiment, the first storage device and the second storage device are the same storage device.
[0090] Specifically, considering that the failure rate of the storage device is low, selecting one storage device will not significantly reduce the success rate of the reference configuration. Therefore, the first storage device and the second storage device in the embodiment of the present invention are the same storage device, thereby reducing costs. For example, it can be flash, etc. The embodiment of the present invention is not limited here.
[0091] As an optional embodiment, in response to a configuration request sent by a module to be configured in a baseboard management controller, obtaining preset configuration information from a storage device corresponding to the baseboard management controller itself includes:
[0092] In response to a configuration request sent by a module to be configured in a baseboard management controller, determining whether a preemption flag exists in its associated processor, wherein the first processor and the second processor are each other's associated processors;
[0093] If there is no preemption flag, a preemption flag is generated inside itself, and preset configuration information is obtained from a storage device corresponding to itself in the baseboard management controller;
[0094] If the preemption flag exists, then end.
[0095] Specifically, considering that when both processors can respond to the configuration request of the module to be configured, it is easy for the configuration work to be repeated, thereby wasting computing resources. Therefore, in an embodiment of the present invention, after receiving the configuration request of the module to be configured, the processor can determine whether there is a preemption flag in its own associated processor. If not, the preemption flag can be generated inside itself. If it exists, it indicates that its own associated processor has executed the parameter configuration work and does not need to be executed again.
[0096] Considering that the to-be-configured module needs to be configured each time the computer is powered on, the first processor and the second processor can both clear their own preemption flags before shutting down.
[0097] As an optional embodiment, the parameter configuration method further includes:
[0098] Determine whether the preset configuration information can be successfully obtained from the storage device corresponding to the baseboard management controller within the preset time after the preemption mark is generated;
[0099] If not, it sends a configuration request to its own associated processor;
[0100] In response to the configuration request sent by its own associated processor, the step of acquiring preset configuration information from the storage device corresponding to itself in the baseboard management controller is executed.
[0101] Specifically, considering that even if the preemption is successful, it is possible that the preset configuration information cannot be successfully obtained from the storage device due to reasons of the storage device or the processor, in which case the configuration work will fail, thereby making it impossible for the server to start up normally, and considering that the work of "obtaining the preset configuration information from the storage device corresponding to itself in the baseboard management controller" can usually be completed within a certain period of time, therefore, in an embodiment of the present invention, it is also possible to determine whether the preset configuration information can be successfully obtained from the storage device corresponding to itself in the baseboard management controller within a preset period of time after the preemption flag is generated. If not, a configuration request can be sent to its associated processor, that is, another processor is asked to perform the parameter configuration work on its behalf, so that the parameter configuration work can be successfully completed, further improving the execution reliability of the reference configuration work.
[0102] Please refer to Figure 4 , Figure 4 A schematic diagram of a parameter configuration device provided by the present invention, wherein the parameter configuration device is applied to a first processor and a second processor in a baseboard management controller, comprising:
[0103] The first acquisition module 41 is used to respond to the configuration request sent by the module to be configured in the baseboard management controller, and obtain the preset configuration information from the storage device corresponding to the baseboard management controller, wherein the first processor is the core processor in the baseboard management controller, the first processor corresponds to the first storage device, the second processor corresponds to the second storage device, and the module to be configured is a high-speed peripheral component interconnect module;
[0104] The first action module 42 is used to configure the preset configuration information in the module to be configured, so that the module to be configured can exchange information with a designated module in the server through a high-speed peripheral component interconnect link.
[0105] Based on the above embodiments:
[0106] As an optional embodiment, the first storage device includes a first storage control module and a first storage module, and the second storage device includes a second storage control module and a second storage module;
[0107] The first acquisition module 41 includes:
[0108] a first judgment module, configured to respond to a configuration request sent by a module to be configured in the baseboard management controller, and to judge whether a storage module in a storage device corresponding to the baseboard management controller is in a busy state through a storage control module in a storage device corresponding to the baseboard management controller, and to periodically trigger the first judgment module if the storage module is in a busy state, and to trigger the first acquisition submodule if the storage module is not in a busy state;
[0109] The first acquisition submodule is used to acquire preset configuration information from the storage device corresponding to itself through the storage control module in the storage device corresponding to itself.
[0110] As an optional embodiment, the first acquisition submodule includes:
[0111] A second acquisition submodule is used to acquire a configuration length and a configuration data address base address from a storage module corresponding to itself through a storage control module in a storage device corresponding to itself;
[0112] A third acquisition submodule is used to acquire the configuration data address from the configuration data address base address of the storage module corresponding to itself;
[0113] A fourth acquisition submodule, used to acquire preset configuration information from a configuration data address of a storage module corresponding to itself;
[0114] The first action module 42 includes:
[0115] A first action submodule is used for, after acquiring the next configuration sub-information in the preset configuration information, configuring the newly acquired configuration sub-information in the module to be configured, and increasing the count value of the counter whose initial value is zero by one;
[0116] A second judgment module is used to judge whether the current count value of the counter is equal to the configuration length, if not, triggering the first action submodule, if equal, triggering the first sending module;
[0117] The first sending module is used to send a configuration completion signal to the module to be configured.
[0118] As an optional embodiment, the parameter configuration method further includes:
[0119] A first modification module, configured to modify the configuration data address stored at the configuration data address base address in the storage device corresponding to itself in response to the first modification instruction;
[0120] The second modification module is used to modify the preset configuration information stored at the configuration data address in the storage device corresponding to itself in response to the second modification instruction.
[0121] As an optional embodiment, the first acquisition module 41 includes:
[0122] A third judgment module is used to respond to the configuration request sent by the module to be configured in the baseboard management controller, and judge whether there is a preemption flag in its associated processor, wherein the first processor and the second processor are each other's associated processors. If there is no preemption flag, the first generation module is triggered, and if there is a preemption flag, the process ends;
[0123] The first generating module is used to generate a preemption mark inside itself and obtain preset configuration information from a storage device corresponding to itself in the baseboard management controller.
[0124] As an optional embodiment, the parameter configuration device further includes:
[0125] The fourth judgment module is used to judge whether the preset configuration information can be successfully obtained from the storage device corresponding to the baseboard management controller within the preset time after the preemption mark is generated, and if not, the second sending module is triggered;
[0126] A second sending module, used for sending a configuration request to its own associated processor;
[0127] The second action module is used to trigger the first acquisition module 41 in response to a configuration request sent by its own associated processor.
[0128] For an introduction to the parameter configuration device provided in the embodiment of the present invention, please refer to the embodiment of the parameter configuration method described above, and the embodiment of the present invention will not be described in detail here.
[0129] Please refer to Figure 2 , Figure 2 A schematic diagram of a parameter configuration device provided by the present invention, wherein the parameter configuration device is applied to a baseboard management controller, comprising:
[0130] A first processor is used to configure the module to be configured, in response to a configuration request sent by the module to be configured, the preset configuration information obtained from the first storage device, wherein the first processor is a core processor of the baseboard management controller, and the module to be configured is a high-speed peripheral component interconnect module;
[0131] The second processor is used to configure the module to be configured, in response to a configuration request sent by the module to be configured, the preset configuration information obtained from the second storage device;
[0132] A first storage device, used to store preset configuration information;
[0133] A second storage device, used to store preset configuration information;
[0134] The module to be configured is used to exchange information with a designated module in the server through a high-speed peripheral component interconnect link after being configured.
[0135] For an introduction to the parameter configuration device provided in the embodiment of the present invention, please refer to the embodiment of the parameter configuration method described above, and the embodiment of the present invention will not be described in detail here.
[0136] Please refer to Figure 5 , Figure 5This is a schematic diagram of the structure of a computer-readable storage medium provided by the present invention. A computer program 52 is stored on the computer-readable storage medium 51. When the computer program 52 is executed by a processor, the steps of the above parameter configuration method are implemented.
[0137] For an introduction to the computer-readable storage medium provided in an embodiment of the present invention, please refer to the aforementioned embodiment of the parameter configuration method, and the embodiment of the present invention will not be described in detail here.
[0138] The present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the parameter configuration method in the above-mentioned embodiment when the computer program / instruction is executed by a processor.
[0139] For an introduction to the computer program product provided by the embodiment of the present invention, please refer to the aforementioned embodiment of the parameter configuration method, and the embodiment of the present invention will not be described in detail here.
[0140] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the element.
[0141] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A parameter configuration method, characterized in that: A first processor and a second processor applied to a baseboard management controller include: In response to a configuration request sent by a module to be configured in a baseboard management controller, obtaining preset configuration information from a storage device corresponding to the baseboard management controller, wherein the first processor is a core processor in the baseboard management controller, the first processor corresponds to the first storage device, the second processor corresponds to the second storage device, and the module to be configured is a high-speed peripheral component interconnect module; The preset configuration information is configured in the module to be configured so that the module to be configured can exchange information with a designated module in the server through a high-speed peripheral component interconnect link.
2. The parameter configuration method according to claim 1, characterized in that: The first storage device includes a first storage control module and a first storage module, and the second storage device includes a second storage control module and a second storage module; In response to a configuration request sent by a module to be configured in a baseboard management controller, obtaining preset configuration information from a storage device corresponding to the baseboard management controller includes: In response to a configuration request sent by a module to be configured in a baseboard management controller, the baseboard management controller determines, through a storage control module in a storage device corresponding to the baseboard management controller, whether a storage module in the storage device corresponding to the baseboard management controller is in a busy state; If it is in a busy state, periodically executing the step of determining whether the storage module in the storage device corresponding to itself is in a busy state through the storage control module in the storage module corresponding to itself in the baseboard management controller; If it is not in a busy state, the preset configuration information is obtained from the storage device corresponding to itself through the storage control module in the storage device corresponding to itself.
3. The parameter configuration method according to claim 2, characterized in that: Obtaining preset configuration information from a storage module corresponding to itself through a storage control module in a storage device corresponding to itself includes: Obtaining the configuration length and the configuration data address base address from the storage module corresponding to itself through the storage control module in the storage device corresponding to itself; Obtaining a configuration data address from the configuration data address base address of the storage module corresponding to itself; Acquire preset configuration information from the configuration data address of the storage module corresponding to itself; Configuring the preset configuration information in the module to be configured includes: After obtaining the next configuration sub-information in the preset configuration information, the newly obtained configuration sub-information is configured in the module to be configured, and the count value of the counter whose initial value is zero is increased by one; Determine whether the current count value of the counter is equal to the configuration length; If not, executing the step of configuring the latest acquired configuration sub-information in the module to be configured after acquiring the next configuration sub-information in the preset configuration information, and increasing the count value of the counter whose initial value is zero by one; If they are equal, a configuration completion signal is sent to the module to be configured.
4. The parameter configuration method according to claim 3, characterized in that: The parameter configuration method further includes: In response to the first modification instruction, modify the configuration data address stored at the configuration data address base address in the storage device corresponding to itself; In response to the second modification instruction, the preset configuration information stored at the configuration data address in the storage device corresponding to itself is modified.
5. The parameter configuration method according to claim 2, characterized in that: The first storage control module is a flash memory control module, and the first storage module is a flash memory; The second storage control module is a control module of a one-time programmable read-only memory, and the second storage module is a one-time programmable read-only memory.
6. The parameter configuration method according to claim 1, characterized in that: The first storage device and the second storage device are the same storage device.
7. The parameter configuration method according to any one of claims 1 to 6, characterized in that: In response to a configuration request sent by a module to be configured in a baseboard management controller, obtaining preset configuration information from a storage device corresponding to the baseboard management controller includes: In response to a configuration request sent by a module to be configured in a baseboard management controller, determining whether a preemption flag exists in its associated processor, wherein the first processor and the second processor are each other's associated processors; If there is no preemption flag, a preemption flag is generated inside itself, and preset configuration information is obtained from a storage device corresponding to itself in the baseboard management controller; If the preemption flag exists, then end.
8. A parameter configuration device, characterized in that: A first processor and a second processor applied to a baseboard management controller include: A first acquisition module is used to respond to a configuration request sent by a module to be configured in the baseboard management controller, and to acquire preset configuration information from a storage device corresponding to the baseboard management controller, wherein the first processor is a core processor in the baseboard management controller, the first processor corresponds to the first storage device, the second processor corresponds to the second storage device, and the module to be configured is a high-speed peripheral component interconnect module; The first action module is used to configure the preset configuration information in the module to be configured, so that the module to be configured can exchange information with a designated module in the server through a high-speed peripheral component interconnect link.
9. A parameter configuration device, characterized in that: Applicable to baseboard management controllers, including: A first processor is used to configure the module to be configured, in response to a configuration request sent by the module to be configured, the preset configuration information obtained from the first storage device, wherein the first processor is a core processor of the baseboard management controller, and the module to be configured is a high-speed peripheral component interconnect module; The second processor is used to configure the module to be configured, in response to a configuration request sent by the module to be configured, the preset configuration information obtained from the second storage device; A first storage device, used to store preset configuration information; A second storage device, used to store preset configuration information; The module to be configured is used to exchange information with a designated module in the server through a high-speed peripheral component interconnect link after being configured.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the parameter configuration method according to any one of claims 1 to 7 are implemented.