Method, apparatus, and device for bus scheduling, medium, and substrate management control chip
By dividing functional modules and assigning priorities in the baseboard management control chip, combined with the interrupt and polling mechanism, the problems of bus blocking and information transmission delay in traditional technology are solved, and the bus load balancing and information transmission of the baseboard management control chip are realized. Timeliness.
Patent Information
- Application Number
- PCT/CN2024/087284
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-21
- Filing Date
- 2024-04-11
- Publication Date
- 2024-10-24
AI Technical Summary
In traditional baseboard management control chips, the interrupt mode causes bus congestion, and critical information cannot be transmitted in time under the polling mode, leading to serious consequences.
Divide the functional modules connected in the baseboard management control chip into multiple categories, assign different priorities according to the categories, use the interrupt mechanism to schedule high-priority modules, and use the polling mechanism to schedule low-priority modules to ensure timely transmission of key information and avoid Bus blocked.
It avoids bus blocking under the interrupt mechanism, and at the same time ensures timely transmission of key information under the polling mechanism, ensuring the bus load balancing of the baseboard management control chip and the timeliness of information transmission to the greatest extent.
Smart Images

Figure CN2024087284_24102024_PF_FP_ABST
Abstract
Description
Bus scheduling method, device and equipment, medium and baseboard management control chip
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on April 21, 2023, with application number 202310431057.6, and application name “Bus Scheduling Method, Device and Equipment, Medium and Baseboard Management Control Chip”, all contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of computer technology, and more specifically, to a bus scheduling method, apparatus and device, medium, and baseboard management control chip. Background Art
[0004] Traditional baseboard management chips use two scheduling management strategies for the system bus: interrupt and polling. In the interrupt mode, the bus arbitration module sets interrupt priorities for each peripheral module connected to the bus. When a module wants to transmit data via the bus, it reports an interrupt to the bus arbitration module. The bus arbitration module then prioritizes and weights the bus controller for each submodule based on the module's priority settings. The polling mode has the CPU (Central Processing Unit) sequentially query each peripheral at a certain cycle to see if there are any data input or output requests. If so, it performs the corresponding input / output services. If not, or the data transmission is complete, the CPU proceeds to query the next peripheral.
[0005] Traditional baseboard management control chips typically use a polling method to manage bus occupancy for each peripheral to prevent bus congestion. For example, a high-priority peripheral continuously transmits data, occupying the system bus, while a low-priority module has urgent data to transmit but cannot obtain bus control and thus cannot pass data through the bus, resulting in delayed delivery of critical information. However, the disadvantage of this polling method is that urgent data cannot be delivered immediately. For example, if module A is currently occupying the bus, but module B needs to transmit urgent data, such as a motherboard overtemperature warning message, but cannot obtain bus control, this can have extremely serious consequences, such as burning out the server motherboard's CPU or rendering the entire motherboard useless, resulting in serious and irreparable damage.
[0006] Therefore, how to avoid bus congestion under the interrupt mechanism and at the same time avoid the failure to transmit key information in a timely manner under the polling mechanism is a technical problem that needs to be solved by those skilled in the art.
[0007] Summary of the Invention
[0008] The purpose of this application is to provide a bus scheduling method, device, electronic device and computer-readable storage medium, which avoid bus congestion under an interrupt mechanism and avoid the failure to transmit key information in a timely manner under a polling mechanism.
[0009] To achieve the above objectives, the present application provides a bus scheduling method, comprising:
[0010] Divide multiple functional modules connected to the system bus in the baseboard management control chip into multiple categories, and assign different priorities to functional modules of different categories;
[0011] When receiving an interrupt request from a first target functional module with a priority higher than a preset priority, allocating control of the system bus to the first target functional module;
[0012] When no interrupt request is received from a first target functional module with a higher priority than the preset priority, the functional modules with a lower priority than the preset priority are polled to see whether there is a data transmission demand. When a second target functional module with a data transmission demand is polled, the control of the system bus is allocated to the second target functional module.
[0013] The multiple functional modules connected to the system bus in the baseboard management control chip are divided into multiple categories, and different priorities are assigned to the functional modules of different categories, including:
[0014] The multiple functional modules in the baseboard management control chip connected to the system bus except the central processing unit and the storage module are divided into multiple categories, and different priorities are assigned to the functional modules of different categories.
[0015] Among them, multiple functional modules in the baseboard management control chip connected to the system bus except the central processing unit and the storage module are divided into multiple categories, and different priorities are assigned to functional modules of different categories, including:
[0016] The multiple functional modules in the baseboard management control chip connected to the system bus, excluding the central processing unit and the storage module, are divided into a first category, a second category, and a third category; wherein the first category includes functional modules that interact with the storage module, the second category includes functional modules that interact with the host end, and the third category includes key information detection modules;
[0017] Different priorities are assigned to functional modules of different categories; wherein the priority of the functional modules of the third category is higher than that of the functional modules of the second category, and the priority of the functional modules of the second category is higher than that of the functional modules of the first category.
[0018] The storage module is specifically a double data rate synchronous dynamic random access memory.
[0019] The functional modules of the first category include any one or a combination of any two of the following: a video graphics array module, an image file module, and a display interface module.
[0020] The second category of functional modules includes any one or a combination of any two of the following: an LPC bus module, a universal serial bus module, an H2B module, and a management component transfer protocol module.
[0021] The third category of functional modules includes any one or a combination of any two of a multi-master-slave serial bus module, a universal asynchronous receiver-transmitter module, and a pulse width modulation module.
[0022] The multi-master-slave serial bus module is used to detect any one or a combination of the motherboard temperature, motherboard voltage, fan speed, and central processing unit information.
[0023] When an interrupt request from a first target functional module with a priority higher than a preset priority is received, the control right of the system bus is allocated to the first target functional module, including:
[0024] When an interrupt request of the first target functional module of the second category or the third category is received, the control right of the system bus is allocated to the first target functional module.
[0025] When no interrupt request is received from a first target functional module with a higher priority than a preset priority, polling a functional module with a lower priority than the preset priority to determine whether it has a data transmission requirement; and when a second target functional module with a data transmission requirement is polled, allocating control of the system bus to the second target functional module, including:
[0026] When no interrupt request is received from the first target functional module of the second or third category, the functional module of the first category is polled to determine whether there is a data transmission requirement. When a second target functional module with a data transmission requirement is polled, control of the system bus is allocated to the second target functional module.
[0027] When an interrupt request from a first target functional module with a priority higher than a preset priority is received, the control right of the system bus is allocated to the first target functional module, including:
[0028] When interrupt requests from a plurality of first target functional modules with priorities higher than a preset priority are received, the control right of the system bus is allocated to the first target functional module with the highest priority.
[0029] Among them, also include:
[0030] The multiple functional modules connected to the system bus in the baseboard management control chip are divided into multiple groups, and different priorities are assigned to the functional modules in different groups.
[0031] Each group contains functional modules of all categories.
[0032] When receiving interrupt requests from multiple first target functional modules with higher priority than a preset priority, allocating control of the system bus to the first target functional module with the highest priority includes:
[0033] Using the sub-scheduling units corresponding to different groups, respectively receiving the interrupt requests of a plurality of first target functional modules with higher priority than a preset priority in different groups, and determining the first target functional module with the highest priority in each group;
[0034] The overall scheduling unit is used to determine the first target functional module with the highest priority among the first target functional modules with the highest priority determined by different sub-scheduling units, and the control right of the system bus is allocated to the first target functional module with the highest priority.
[0035] The method of polling a function module with a lower priority than a preset priority to determine whether it has a data transmission requirement, and when a second target function module with a data transmission requirement is found, allocating control of the system bus to the second target function module, includes:
[0036] The general scheduling unit is used to poll the function modules with lower priority than the preset priority to see whether they have data transmission requirements. When a second target function module with data transmission requirements is polled, the control right of the system bus is allocated to the second target function module.
[0037] Among them, also include:
[0038] During data transmission by the third target functional module, if an interrupt request from a fourth target functional module having a higher priority than a preset priority is received, determining whether the priority of the fourth target functional module is higher than the priority of the third target functional module;
[0039] If it is higher, the control right of the system bus is switched to the fourth target functional module.
[0040] After switching the control right of the system bus to the fourth target functional module, the method further includes:
[0041] When the data transmission of the fourth target functional module is completed, the control right of the system bus is switched to the third target functional module.
[0042] To achieve the above objectives, the present application provides a bus scheduling device, comprising:
[0043] A first division module is used to divide multiple functional modules connected to the system bus in the baseboard management control chip into multiple categories, and assign different priorities to functional modules of different categories;
[0044] a first allocation module, configured to allocate the control right of the system bus to the first target functional module when receiving an interrupt request from the first target functional module having a higher priority than a preset priority;
[0045] The second allocation module is used to poll the function modules with a lower priority than the preset priority to see whether there is a data transmission demand when no interrupt request is received from the first target function module with a higher priority than the preset priority, and when the second target function module with a data transmission demand is polled, allocate the control right of the system bus to the second target function module.
[0046] To achieve the above objectives, the present application provides an electronic device, comprising:
[0047] memory for storing computer programs;
[0048] A processor is used to implement the steps of the above bus scheduling method when executing a computer program.
[0049] To achieve the above objectives, the present application provides a non-volatile readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above bus scheduling method are implemented.
[0050] To achieve the above objectives, the present application provides a baseboard management control chip, comprising multiple functional modules, multiple sub-scheduling units, and a master scheduling unit. The multiple functional modules are divided into multiple categories, and functional modules of different categories correspond to different priorities. Multiple functional modules of the same category are divided into multiple groups, and functional modules of different groups correspond to different priorities. Each group contains functional modules of all categories.
[0051] The sub-scheduling unit is used to receive interrupt requests from a plurality of first target functional modules with higher priority than a preset priority in a corresponding group, and determine the first target functional module with the highest priority in each group;
[0052] The overall scheduling unit is used to determine the first target functional module with the highest priority among the first target functional modules with the highest priority determined by different sub-scheduling units, and allocate the control right of the system bus to the first target functional module with the highest priority;
[0053] The general scheduling unit is also used to poll the function modules with lower priority than the preset priority to see whether there is a data transmission requirement when no interrupt request is received from the first target function module with higher priority than the preset priority; and when a second target function module with data transmission requirement is polled, control of the system bus is allocated to the second target function module.
[0054] From the above scheme, it can be seen that a bus scheduling method provided by the present application includes: dividing multiple functional modules connected to the system bus in the baseboard management control chip into multiple categories, and assigning different priorities to functional modules of different categories; when an interrupt request from a first target functional module with a priority higher than a preset priority is received, the control right of the system bus is assigned to the first target functional module; when an interrupt request from the first target functional module with a priority higher than the preset priority is not received, polling whether there is a data transmission requirement for the functional modules with a priority lower than the preset priority, and when polling a second target functional module with a data transmission requirement, the control right of the system bus is assigned to the second target functional module.
[0055] The beneficial effects of the present application are: according to the characteristics of each functional module in the baseboard management control chip, each functional module is classified, and different priorities are assigned to functional modules of different categories. The functional modules with higher priorities are scheduled using an interrupt mechanism to ensure that key information can be transmitted in a timely manner, and the functional modules with lower priorities are scheduled using a polling mechanism to avoid system bus congestion. It can be seen that the bus scheduling method provided by the present application adopts a comprehensive scheduling strategy of local scheduling combined with overall scheduling, and polling and interruption are organically coordinated, that is, there is a timely exit detection mechanism for sudden interruptions, which ensures that urgent data is output first while preventing bus congestion, so as to maximize the bus load of the baseboard management control chip. The present application also discloses a bus scheduling device, an electronic device, and a computer-readable storage medium, which can also achieve the above-mentioned technical effects.
[0056] It should be understood that the foregoing general description and the following detailed description are merely illustrative and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings required for the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. The drawings are used to provide a further understanding of the present disclosure and constitute part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure, but do not constitute a limitation of the present disclosure. In the drawings:
[0058] FIG1 is a diagram of a system bus arbitration management architecture in a baseboard management control in the related art;
[0059] FIG2 is a flow chart showing a bus scheduling method according to an exemplary embodiment;
[0060] FIG3 is a flow chart showing another bus scheduling method according to an exemplary embodiment;
[0061] FIG4 is a diagram showing a bus load balancing architecture of a baseboard management control chip according to an exemplary embodiment;
[0062] FIG5 is a structural diagram of a bus scheduling device according to an exemplary embodiment;
[0063] FIG6 is a structural diagram of an electronic device according to an exemplary embodiment;
[0064] FIG7 is a schematic diagram of a non-volatile readable storage medium provided in this application. DETAILED DESCRIPTION
[0065] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application. In addition, in the embodiments of the present application, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0066] In the related art, the system bus arbitration management architecture diagram in the baseboard management control is shown in Figure 1. The processor of the baseboard management control chip (BMC CPU) is connected to the system bus, and then other sub-modules of the chip are mounted on the system bus, such as DDR (Double Data Rate Synchronous Dynamic Random Access Memory, Double Data Rate SDRAM), IIC (Inter-Integrated Circuit, multi-master-slave serial bus module), UART (Universal Asynchronous Receiver / Transmitter), SPI (serial peripheral interface, serial peripheral interface) Flash, H2B (Host2BMC, the control module for the server host to access the BMC internal registers), VGA (Video Graphics Array, video graphics array), JPEG (video compression), EMAC (Ethernet Media Access Controller, Ethernet media access controller), USB (Universal Serial Bus, universal serial bus), MCTP (Management Component Transport Protocol, management component transport protocol), SRAM (Static Random-Access Memory), DMA (Direct Memory Access, direct memory access), AXI2AHB and dozens of other sub-modules.
[0067] In order to prevent high-priority interrupts from occupying the bus for a long time and causing bus congestion, the traditional solution adopts a polling method. For example, the CPU queries the IIC to see if there is data to be transmitted. If so, it passes it on. If not, it checks the UART, and so on. There is no concept of priority between these sub-modules, and they are carried out completely in a predetermined order, thus avoiding bus congestion. This is also a relatively common and reasonable approach.
[0068] However, the above solution has huge drawbacks. For example, when module A encounters an emergency and urgent information needs to be transmitted, if A is not polled at this time, the urgent information cannot be transmitted to the upper-level software in the first time, and the user cannot process it in time. For example, the IIC detects that the temperature of the host CPU is abnormally high and needs to transmit the information in time, and the upper-level software needs to process it in time. However, if the IIC is not polled at this time, for example, the CPU of the baseboard management control chip is processing the UART data, the UART may only transmit ordinary data. In such a scenario, it will cause very serious consequences, that is, the urgent information cannot be transmitted in time, causing damage to the host CPU or the server motherboard, resulting in irreparable losses.
[0069] The embodiment of the present application discloses a bus scheduling method, which avoids bus blocking under an interrupt mechanism and avoids the failure to transmit key information in a timely manner under a polling mechanism.
[0070] Referring to FIG2 , a flow chart of a bus scheduling method according to an exemplary embodiment is shown. As shown in FIG2 , the method includes:
[0071] S101: Divide multiple functional modules connected to the system bus in the baseboard management control chip into multiple categories, and assign different priorities to functional modules of different categories;
[0072] In this step, multiple functional modules in the baseboard management control chip connected to the system bus, excluding the central processing unit (CPU) and the storage module, are divided into multiple categories, and different priorities are assigned to functional modules in different categories. The classification of the remaining functional modules in the baseboard management control chip, excluding the BMC CPU and DDR, can be performed based on the number and function of the modules and their application scenarios, which is not specifically limited in this embodiment.
[0073] As a feasible implementation method, multiple functional modules other than the central processing unit and the storage module in the baseboard management control chip connected to the system bus are divided into multiple categories, and different priorities are assigned to functional modules of different categories, including: dividing multiple functional modules other than the central processing unit and the storage module in the baseboard management control chip connected to the system bus into a first category, a second category and a third category; wherein the first category includes functional modules that interact with the storage module, the second category includes functional modules that interact with the host end, and the third category includes key information detection modules; different priorities are assigned to functional modules of different categories; wherein the priority of the functional modules of the third category is higher than the priority of the functional modules of the second category, and the priority of the functional modules of the second category is higher than the priority of the functional modules of the first category.
[0074] The first category includes modules with large data volumes, primarily interacting with and reading data from storage modules, such as video graphics array (VGA) modules, image file modules (JPEG) modules, and display interface modules (DP). The second category includes functional modules that interact with the host, such as any one or a combination of the following: the Linear Predictive Coding (LPC) bus (Low Pin Count Bus) module, the Universal Serial Bus (USB) module, the H2B module, and the Management Component Transport Protocol (MCTP) module. The third category includes critical information detection modules, such as the Multi-Master-Slave Serial Bus (IIC) module, the Universal Asynchronous Receiver / Transmitter (UART) module, and the Pulse Width Modulation (PWM) module. The Multi-Master-Slave Serial Bus module is used to monitor motherboard temperature, motherboard voltage, fan speed, and CPU information. These modules are characterized by their monitoring and management functions, monitoring information on the host and server motherboard, and transmitting this information to the application layer of the baseboard management control chip for user access. They also receive configurations from upper-layer software to manage related components on the server motherboard.
[0075] Furthermore, different priorities are assigned to functional modules of different categories. This embodiment does not limit the priority setting method, and users can flexibly set it according to specific application scenarios. For example, under the above classification method, the priority of the functional modules in the third category is set higher than the priority of the functional modules in the second category, and the priority of the functional modules in the second category is set higher than the priority of the functional modules in the first category.
[0076] S102: when receiving an interrupt request from a first target functional module with a higher priority than a preset priority, allocating control of the system bus to the first target functional module;
[0077] In this step, an interrupt mechanism is used for function modules with higher priority than a preset priority. When the baseboard management control chip receives an interrupt request from a first target function module with higher priority than the preset priority, the control right of the system bus is allocated to the first target function module.
[0078] Under the premise of the above classification and priority setting methods, when an interrupt request from a first target functional module of the second category or the third category is received, the control right of the system bus is allocated to the first target functional module.
[0079] It should be noted that, when interrupt requests from multiple first target functional modules with priorities higher than a preset priority are received, the control right of the system bus is allocated to the first target functional module with the highest priority.
[0080] S103: When no interrupt request is received from the first target functional module with a higher priority than the preset priority, poll the functional modules with a lower priority than the preset priority to see whether there is a data transmission demand. When a second target functional module with a data transmission demand is polled, control of the system bus is allocated to the second target functional module.
[0081] In this step, when no interrupt occurs, a polling mechanism is adopted, that is, a polling mechanism is adopted for functional modules with a priority lower than the preset priority. When a second target functional module with data transmission requirements is polled, control of the system bus is allocated to the second target functional module.
[0082] Under the premise of the above-mentioned classification method and priority setting method, when no interrupt request is received from the first target functional module of the second category or the third category, the functional module of the first category is polled to see whether there is a data transmission requirement. When the second target functional module with a data transmission requirement is polled, the control of the system bus is allocated to the second target functional module.
[0083] Based on this embodiment, as an implementation method, the method further includes: during data transmission by the third target functional module, if an interrupt request is received from a fourth target functional module having a higher priority than a preset priority, determining whether the priority of the fourth target functional module is higher than the priority of the third target functional module; if so, switching control of the system bus to the fourth target functional module. After data transmission by the fourth target functional module is completed, switching control of the system bus to the third target functional module.
[0084] In a specific implementation, when a high-priority interrupt occurs while low-priority data is being transmitted, the low-priority program must give up bus control until the high-priority interrupt is processed before it can regain bus control.
[0085] The bus scheduling method provided in the embodiment of the present application classifies each functional module according to the characteristics of each functional module in the baseboard management control chip, and assigns different priorities to functional modules of different categories. The interrupt mechanism is used to schedule the functional modules with higher priorities to ensure that key information can be transmitted in a timely manner. The polling mechanism is used to schedule the functional modules with lower priorities to avoid system bus congestion. It can be seen that the bus scheduling method provided in the embodiment of the present application adopts a comprehensive scheduling strategy of local scheduling combined with overall scheduling, and polling and interruption are organically coordinated, that is, there is a timely exit detection mechanism for sudden interruptions, which ensures that urgent data is output first while preventing bus congestion, so as to maximize the bus load of the baseboard management control chip.
[0086] The embodiment of the present application discloses a bus scheduling method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically:
[0087] Referring to FIG3 , a flow chart of another bus scheduling method according to an exemplary embodiment is shown. As shown in FIG3 , the method includes:
[0088] S201: Divide multiple functional modules connected to the system bus in the baseboard management control chip into multiple categories, and assign different priorities to functional modules of different categories;
[0089] S202: Divide multiple functional modules in the baseboard management control chip connected to the system bus into multiple groups, and assign different priorities to the functional modules in different groups.
[0090] In this embodiment, the multiple functional modules connected to the system bus in the baseboard management control chip are divided into multiple categories, and different priorities are assigned to the functional modules in different categories. Furthermore, the multiple functional modules connected to the system bus in the baseboard management control chip are divided into multiple groups, and different priorities are assigned to the functional modules in different groups. Each group contains functional modules from all categories.
[0091] For example, the functional modules in the baseboard management control chip, excluding the BMC CPU and DDR, are divided into three categories: A, B, and C. Category A modules correspond to modules with large data volumes and primarily interact with and read data from the DDR. Category B modules interact with the host, and Category C modules detect critical information on the motherboard. The modules in categories A, B, and C are grouped as follows: Group 1: A0, B0, C0; Group 2: A1, B1, C1; Group 3: A2, B2, C2; and Group 4: A3, B3, C3. The grouping criteria are that each group contains modules from categories A, B, and C. These groups are virtual, as all modules are still connected to the system bus. For example, A0 is VGA, A1 is JPEG, A2 is DP, A3 is EMAC, B0 is LPC, B1 is USB, B2 is H2B, B3 is MCTP, C0 is IIC, C1 is UART, C2 is PWM, and C3 is I3C.
[0092] S203: using the sub-scheduling units corresponding to different groups to respectively receive interrupt requests from a plurality of first target functional modules with higher than preset priorities in different groups, and determining the first target functional module with the highest priority in each group;
[0093] S204: using the overall scheduling unit to determine the first target functional module with the highest priority among the first target functional modules with the highest priority determined by different sub-scheduling units, and allocating control rights of the system bus to the first target functional module with the highest priority.
[0094] S205: Utilize the general scheduling unit to poll the function modules with lower priority than the preset priority to see whether they have data transmission requirements. When a second target function module with data transmission requirements is polled, control of the system bus is allocated to the second target function module.
[0095] In practice, the baseboard management and control chip's CPU polls each functional module sequentially using a round-robin approach. Figure 4 shows the baseboard management and control chip bus load balancing architecture. The virtual groups described above correspond to bus arbitration priorities: Class C has the highest priority, Class B has the second highest priority, and Class A has the lowest. Within Class C, C0 has the highest priority, followed by C1, and so on. When interrupts are generated in group 0, i.e., both B0 and C0, requiring access to the system bus controller, the LOCAL_SCH module (sub-scheduling unit) performs analysis. At this point, C0 has the highest priority. C0 monitors key components on the server motherboard. The conditions for C0 to generate an interrupt are: Compared to traditional solutions, C0 requires additional anomaly detection functionality and receives register configurations from the baseboard management control chip (CPU). For example, C0 is responsible for detecting the host CPU's temperature, requiring an additional hardware anomaly detection module. This module receives a threshold temperature configured in registers, such as 80 degrees Celsius. It then checks the host CPU temperature information read back by C0. If the temperature is normally below 80 degrees Celsius, no interrupt is generated. If the temperature is above 80 degrees Celsius, it indicates excessive temperature, requiring immediate processing by upper-layer software. C0 must immediately obtain bus control, breaking the polling mechanism and entering a priority mechanism. Furthermore, this anomaly detection module monitors the interface between C0 and the system bus. Upon detecting that anomaly information has been read by upper-layer software, it exits interrupt mode and relinquishes bus control. B0 corresponds to the module that interacts with the host side, such as LPC. This type of information is not available all the time, so under normal circumstances, polling is sufficient. If it is available, an interrupt is triggered. Therefore, it is also necessary to add a corresponding data detection function, that is, to detect whether the data valid signal of the corresponding port is pulled high or the transmission enable signal is pulled high. When data is detected from the host side or the baseboard management control chip sends data to the host side, an interrupt must be reported. After the data is transmitted, the interrupt must be exited in time to give up bus control. The data corresponding to A0 is to be written to or read from the storage module (DDR). This type of data is often large in volume, so the interrupt of the local scheduling module is not set. The priority is set in the CENTER_SCH module. That is, only when there are no interrupts for C0, C1, C2, B0, B1, and B2, A0, A1, and A2 are polled and detected.
[0096] The bus control rights allocation, scheduling, and recovery of functional modules are completed by sub-scheduling unit 0 (LOCAL_SCH0). The situations and descriptions of A1, B1, C1 of group 1, A2, B2, C2 of group 2, and A3, B3, C3 of group 3 are the same as those of A0, B0, C0 of group 0, except that the sub-scheduling units correspond to sub-scheduling unit 1 (LOACL_SCH1), sub-scheduling unit 2 (LOCAL_SCH2), and sub-scheduling unit 3 (LOCAL_SCH3) respectively. CENTER_SCH is the overall scheduling unit. The function completed by this module is to collect and summarize the scheduling information of the four sub-scheduling units LOCAL_SCH0, LOCAL_SCH1, LOCAL_SCH2, and LOCAL_SCH3 for final allocation, scheduling, and recovery. The final bus control right can be determined by an arbitration mechanism with group 0 having the highest priority, followed by groups 1, 2, and 3, that is, C0 in class C has the highest priority, B0 in class B has the highest priority, and A0 in class A has the highest priority. The interrupt exit of each corresponding local scheduling unit can be detected in time. When the high-priority group interrupt exits, the bus control right is given to the next priority group.
[0097] It can be seen that this embodiment provides a comprehensive scheduling strategy for the baseboard management control chip system bus that combines local scheduling with overall scheduling, avoids bus blocking under the interrupt mechanism, and at the same time avoids the disadvantage of key information not being able to be transmitted in time under the polling mechanism, and proposes an interruption timely exit mechanism under the autonomous detection mode, which greatly improves the bus load balancing capability of the baseboard management control chip, improves bus utilization, and ensures the timely transmission of key information.
[0098] The present application discloses a baseboard management control chip, including multiple functional modules, multiple sub-scheduling units, and a master scheduling unit. The multiple functional modules are divided into multiple categories, and functional modules of different categories correspond to different priorities. Multiple functional modules of the same category are divided into multiple groups, and functional modules of different groups correspond to different priorities. Each group contains functional modules of all categories.
[0099] The sub-scheduling unit is used to receive interrupt requests from a plurality of first target functional modules with higher priority than a preset priority in a corresponding group, and determine the first target functional module with the highest priority in each group;
[0100] The overall scheduling unit is used to determine the first target functional module with the highest priority among the first target functional modules with the highest priority determined by different sub-scheduling units, and allocate the control right of the system bus to the first target functional module with the highest priority;
[0101] The general scheduling unit is also used to poll the function modules with lower priority than the preset priority to see whether there is a data transmission requirement when no interrupt request is received from the first target function module with higher priority than the preset priority; and when a second target function module with data transmission requirement is polled, control of the system bus is allocated to the second target function module.
[0102] As shown in Figure 4, LOCAL_SCH0, LOACL_SCH1, LOCAL_SCH2, and LOCAL_SCH3 are four sub-scheduling units, and CENTER_SCH is the overall scheduling unit. All functional modules are divided into three categories, with Class C having the highest priority, Class B having the second highest priority, and Class A having the lowest priority. At the same time, all functional modules are divided into four groups, with the group scheduled by LOCAL_SCH0 having the highest priority, and the group scheduled by LOCAL_SCH1 having the second highest priority, and they are set in order. The overall scheduling unit CENTER_SCH collects and summarizes the scheduling information of the four sub-scheduling units LOCAL_SCH0, LOCAL_SCH1, LOCAL_SCH2, and LOCAL_SCH3 for final allocation scheduling and recovery.
[0103] A bus scheduling device provided in an embodiment of the present application is introduced below. The bus scheduling device described below and the bus scheduling method described above can be referenced to each other.
[0104] Referring to FIG5 , a structural diagram of a bus scheduling device according to an exemplary embodiment is shown. As shown in FIG5 , the device includes:
[0105] A first division module 501 is configured to divide multiple functional modules connected to the system bus in the baseboard management control chip into multiple categories, and assign different priorities to functional modules of different categories;
[0106] A first allocation module 502 is configured to allocate the control right of the system bus to the first target functional module when receiving an interrupt request from the first target functional module with a priority higher than a preset priority;
[0107] The second allocation module 503 is used to poll the function modules with a lower priority than the preset priority to see whether there is a data transmission demand when no interrupt request is received from the first target function module with a higher priority than the preset priority, and when the second target function module with a data transmission demand is polled, allocate the control right of the system bus to the second target function module.
[0108] The bus scheduling device provided in the embodiment of the present application classifies each functional module according to the characteristics of each functional module in the baseboard management control chip, and assigns different priorities to functional modules of different categories. The interrupt mechanism is used to schedule the functional modules with higher priorities to ensure that key information can be transmitted in a timely manner, and the polling mechanism is used to schedule the functional modules with lower priorities to avoid system bus congestion. It can be seen that the bus scheduling device provided in the embodiment of the present application adopts a comprehensive scheduling strategy of local scheduling combined with overall scheduling, and polling and interruption are organically coordinated, that is, there is a timely exit detection mechanism for sudden interruptions, which ensures that urgent data is output first while preventing bus congestion, so as to maximize the bus load of the baseboard management control chip.
[0109] Based on the above embodiments, as an implementation method, the first division module 501 is specifically used to: divide multiple functional modules other than the central processing unit and the storage module in the baseboard management control chip connected to the system bus into multiple categories, and assign different priorities to functional modules of different categories.
[0110] Based on the above embodiments, as an implementation method, the first division module 501 is specifically used to: divide multiple functional modules other than the central processing unit and the storage module in the baseboard management control chip connected to the system bus into a first category, a second category and a third category; wherein the first category includes functional modules that interact with the storage module, the second category includes functional modules that interact with the host end, and the third category includes key information detection modules; assign different priorities to functional modules of different categories; wherein the priority of the functional modules of the third category is higher than the priority of the functional modules of the second category, and the priority of the functional modules of the second category is higher than the priority of the functional modules of the first category.
[0111] Based on the above embodiment, as an implementation method, the storage module is specifically a double data rate synchronous dynamic random access memory.
[0112] Based on the above embodiment, as an implementation method, the functional modules of the first category include any one or a combination of any several of the following: a video graphics array module, an image file module, and a display interface module.
[0113] Based on the above embodiment, as an implementation method, the second category of functional modules includes any one or a combination of any several of the following: an LPC bus module, a universal serial bus module, an H2B module, and a management component transfer protocol module.
[0114] Based on the above embodiment, as an implementation method, the third category of functional modules includes any one or a combination of any two of a multi-master-slave serial bus module, a universal asynchronous receiver / transmitter module, and a pulse width modulation module.
[0115] Based on the above embodiment, as an implementation method, a multi-master-slave serial bus module is used to detect any one or a combination of mainboard temperature, mainboard voltage, fan speed, and central processing unit information.
[0116] Based on the above embodiment, as an implementation method, the first allocation module 502 is specifically configured to allocate control of the system bus to the first target functional module upon receiving an interrupt request from the first target functional module of the second or third category.
[0117] Based on the above embodiment, as an implementation method, the second allocation module 503 is specifically used to: when no interrupt request is received from the first target functional module of the second category or the third category, poll the functional module of the first category to see whether there is a data transmission requirement, and when the second target functional module with a data transmission requirement is polled, allocate control of the system bus to the second target functional module.
[0118] Based on the above embodiment, as an implementation method, the first allocation module 502 is specifically used to: when receiving interrupt requests from multiple first target functional modules with higher than preset priorities, allocate control of the system bus to the first target functional module with the highest priority.
[0119] Based on the above embodiment, as an implementation method, the following is further included:
[0120] The second dividing module is used to divide multiple functional modules connected to the system bus in the baseboard management control chip into multiple groups, and assign different priorities to the functional modules in different groups.
[0121] Based on the above embodiment, as an implementation method, each group includes functional modules of all categories.
[0122] On the basis of the above embodiments, as an implementation method, the first allocation module 502 is specifically used to: use the sub-scheduling units corresponding to different groups to respectively receive interrupt requests from multiple first target function modules with higher than preset priorities in different groups, and determine the first target function module with the highest priority in each group; use the general scheduling unit to determine the first target function module with the highest priority among the first target function modules with the highest priority determined by different sub-scheduling units, and allocate control of the system bus to the first target function module with the highest priority.
[0123] Based on the above embodiment, as an implementation method, the second allocation module 503 is specifically used to: when no interrupt request is received from the first target functional module with a higher priority than the preset priority, use the general scheduling unit to poll the functional modules with a lower priority than the preset priority to see whether there is a data transmission demand; when the second target functional module with a data transmission demand is polled, the control of the system bus is allocated to the second target functional module.
[0124] Based on the above embodiment, as an implementation method, the following is further included:
[0125] The first switching module is used to determine whether the priority of the fourth target function module is higher than the priority of the third target function module if an interrupt request from the fourth target function module with a higher priority than a preset priority is received during data transmission by the third target function module; if so, switch control of the system bus to the fourth target function module.
[0126] The second switching module is configured to switch the control right of the system bus to the third target functional module when the data transmission of the fourth target functional module is completed.
[0127] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0128] Based on the hardware implementation of the above program modules and in order to implement the method of the embodiment of the present application, the embodiment of the present application further provides an electronic device. FIG6 is a structural diagram of an electronic device according to an exemplary embodiment. As shown in FIG6 , the electronic device includes:
[0129] Communication interface 1, capable of exchanging information with other devices such as network devices;
[0130] The processor 2 is connected to the communication interface 1 to implement information exchange with other devices and is used to execute the bus scheduling method provided by one or more of the above technical solutions when running a computer program. The computer program is stored in the memory 3.
[0131] Of course, in actual applications, the various components in the electronic device are coupled together via bus system 4. It will be appreciated that bus system 4 is used to enable communication between these components. In addition to a data bus, bus system 4 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in FIG6 , all of these buses are labeled as bus system 4.
[0132] The memory 3 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program used to operate on the electronic device.
[0133] It is understood that the memory 3 can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a magnetic disk memory or a magnetic tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memory 3 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memories.
[0134] The method disclosed in the above-mentioned embodiment of the present application can be applied to processor 2 or implemented by processor 2. Processor 2 may be an integrated circuit chip with signal processing capabilities. During the implementation process, each step of the above-mentioned method can be completed by the integrated logic circuit of the hardware in processor 2 or instructions in the form of software. The above-mentioned processor 2 can be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 2 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in memory 3. Processor 2 reads the program in memory 3 and completes the steps of the above-mentioned method in combination with its hardware.
[0135] When the processor 2 executes the program, the corresponding processes in each method of the embodiment of the present application are implemented. For the sake of brevity, they are not repeated here.
[0136] As shown in FIG7 , an embodiment of the present application further provides a non-volatile readable storage medium, specifically a non-volatile readable storage medium, which includes, for example, a memory 3 storing a computer program. The computer program can be executed by a processor 2 to perform the aforementioned method steps. The non-volatile readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, CD-ROM, or the like.
[0137] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: mobile storage devices, ROM, RAM, disks or optical disks, etc. Various media that can store program codes.
[0138] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for an electronic device (which can be a personal computer, server, network device, etc.) to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0139] The above are only specific embodiments of the present application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A bus scheduling method, characterized in that: include: Divide multiple functional modules in the baseboard management control chip connected to the system bus into multiple categories, and assign different priorities to functional modules of different categories; When receiving an interrupt request from a first target functional module with a priority higher than a preset priority, allocating control of the system bus to the first target functional module; When no interrupt request is received from a first target functional module with a priority level higher than the preset priority, the functional modules with a priority level lower than the preset priority are polled to determine whether there is a data transmission requirement, and when a second target functional module with a data transmission requirement is polled, control of the system bus is allocated to the second target functional module.
2. The bus scheduling method according to claim 1, characterized in that: The method of dividing the multiple functional modules connected to the system bus in the baseboard management control chip into multiple categories and assigning different priorities to the functional modules of different categories includes: The multiple functional modules in the baseboard management control chip connected to the system bus except the central processing unit and the storage module are divided into multiple categories, and different priorities are assigned to the functional modules of different categories.
3. The bus scheduling method according to claim 2, characterized in that: The method divides the multiple functional modules in the baseboard management control chip connected to the system bus except the central processing unit and the storage module into multiple categories, and assigns different priorities to the functional modules of different categories, including: Divide multiple functional modules in the baseboard management control chip connected to the system bus except the central processing unit and the storage module into a first category, a second category and a third category; wherein the first category includes functional modules interacting with the storage module, the second category includes functional modules interacting with the host end, and the third category includes a key information detection module; Different priorities are assigned to functional modules of different categories; wherein the priority of the functional modules of the third category is higher than that of the functional modules of the second category, and the priority of the functional modules of the second category is higher than that of the functional modules of the first category.
4. The bus scheduling method according to claim 2, characterized in that: The storage module is specifically a double rate synchronous dynamic random access memory.
5. The bus scheduling method according to claim 3, characterized in that: The functional modules of the first category include any one or a combination of any two of a video graphics array module, an image file module, and a display interface module.
6. The bus scheduling method according to claim 3, characterized in that: The functional modules of the second category include any one or a combination of any two of the following: an LPC bus module, a universal serial bus module, an H2B module, and a management component transfer protocol module.
7. The bus scheduling method according to claim 3, characterized in that: The functional modules of the third category include any one or a combination of any several of the following: a multi-master-slave serial bus module, a universal asynchronous receiver-transmitter module, and a pulse width modulation module.
8. The bus scheduling method according to claim 7, characterized in that: The multi-master-slave serial bus module is used to detect any one or a combination of the mainboard temperature, mainboard voltage, fan speed, and central processing unit information.
9. The bus scheduling method according to claim 3, characterized in that: When receiving an interrupt request from a first target functional module having a priority higher than a preset priority, allocating control of the system bus to the first target functional module comprises: When receiving an interrupt request from the first target functional module of the second category or the third category, The control right of the system bus is allocated to the first target functional module.
10. The bus scheduling method according to claim 3, characterized in that: The method of polling a function module with a lower priority than the preset priority for data transmission when no interrupt request from the first target function module with a higher priority than the preset priority is received, and when a second target function module with a data transmission demand is polled, allocating control of the system bus to the second target function module comprises: When no interrupt request is received from the first target functional module of the second category or the third category, the functional modules of the first category are polled to determine whether there is a data transmission demand; when a second target functional module with a data transmission demand is polled, control of the system bus is allocated to the second target functional module.
11. The bus scheduling method according to claim 1, characterized in that: When receiving an interrupt request from a first target functional module having a priority higher than a preset priority, allocating control of the system bus to the first target functional module comprises: When interrupt requests from a plurality of first target functional modules with priorities higher than a preset priority are received, the control right of the system bus is allocated to the first target functional module with the highest priority.
12. The bus scheduling method according to claim 11, characterized in that: Also includes: A plurality of functional modules connected to the system bus in the baseboard management control chip are divided into a plurality of groups, and different priorities are assigned to the functional modules in different groups.
13. The bus scheduling method according to claim 12, characterized in that: Each grouping contains functional modules of all categories.
14. The bus scheduling method according to claim 12, characterized in that: When receiving interrupt requests from a plurality of first target function modules with higher priority than a preset priority, allocating the control right of the system bus to the first target function module with the highest priority, comprises: Using the sub-scheduling units corresponding to different groups, respectively receiving the interrupt requests of a plurality of first target function modules with higher priority than a preset priority in different groups, and determining the first target function module with the highest priority in each group; The overall scheduling unit is used to determine the first target functional module with the highest priority among the first target functional modules with the highest priority determined by different sub-scheduling units, and the control right of the system bus is allocated to the first target functional module with the highest priority.
15. The bus scheduling method according to claim 14, characterized in that: The polling of whether a function module with a lower priority than the preset priority has a data transmission demand, and when a second target function module with a data transmission demand is polled, allocating the control right of the system bus to the second target function module, comprises: The general scheduling unit is used to poll the function modules with a lower priority than the preset priority to see whether there is a data transmission demand. When a second target function module with a data transmission demand is polled, the control right of the system bus is allocated to the second target function module.
16. The bus scheduling method according to claim 1, characterized in that: Also includes: During data transmission by the third target functional module, if an interrupt request from a fourth target functional module having a priority higher than the preset priority is received, determining whether the priority of the fourth target functional module is higher than the priority of the third target functional module; If it is higher, the control right of the system bus is switched to the fourth target functional module.
17. The bus scheduling method according to claim 16, characterized in that: After switching the control right of the system bus to the fourth target functional module, the method further includes: When the data transmission of the fourth target functional module is completed, the control right of the system bus is switched to the The third target functional module.
18. A bus scheduling device, characterized in that: include: A first division module is used to divide a plurality of functional modules connected to the system bus in the baseboard management control chip into a plurality of categories, and assign different priorities to functional modules of different categories; A first allocation module, configured to allocate the control right of the system bus to the first target functional module when receiving an interrupt request of the first target functional module with a higher priority than a preset priority; A second allocation module is configured to poll the function modules with a lower priority than the preset priority to see whether there is a data transmission demand when no interrupt request from the first target function module with a higher priority than the preset priority is received, and when a second target function module with a data transmission demand is polled, allocate the control right of the system bus to the second target function module.
19. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the bus scheduling method as claimed in any one of claims 1 to 17 when executing the computer program.
20. A non-volatile readable storage medium, characterized in that: The non-volatile readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the bus scheduling method according to any one of claims 1 to 17 are implemented.
21. A baseboard management control chip, characterized in that: It includes multiple functional modules, multiple sub-scheduling units and a general scheduling unit, wherein the multiple functional modules are divided into multiple categories, and the functional modules of different categories correspond to different priorities. The multiple functional modules of the same category are divided into multiple groups, and the functional modules of different groups correspond to different priorities. Each of the groups contains functional modules of all categories. The sub-scheduling unit is used to receive interrupt requests from a plurality of first target function modules with higher priority than a preset priority in a corresponding group, and determine the first target function module with the highest priority in each group; The general scheduling unit is used to determine the first target function module with the highest priority among the first target function modules with the highest priority determined by different sub-scheduling units, and allocate the control right of the system bus to the first target function module with the highest priority; The general scheduling unit is also used to poll the function modules with a lower priority than the preset priority to see whether there is a data transmission demand when no interrupt request from the first target function module with a higher priority than the preset priority is received, and when a second target function module with a data transmission demand is polled, allocate control of the system bus to the second target function module.
Citation Information
Patent Citations
MAC address free bus family wired control network plug and play method
CN101266490A
Motor FOC control and operation method and device, electronic equipment and medium
CN113419450A
Motor group network management and control integrated configuration monitoring based on MM440USS protocol
CN113917883A
Substrate management control chip
CN114020489A
Network request processing method and device and electronic equipment
CN114285901A
Cited By
BMC chip and electronic equipment
CN120849332A
