Power management system and method
By using signal transmission and status analysis between node logic controllers and power logic controllers in a multi-controller storage system, power management operations can be directly executed, solving the complex synchronization problem during master-slave node switching and achieving accurate power management and a simplified process.
Patent Information
- Application Number
- CN202511784263.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-28
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2045-11-28
AI Technical Summary
In multi-controller storage systems, when switching between master and slave nodes, power management operations need to synchronize operation information, which makes the process complex and prone to errors, potentially leading to power failure or loss of the storage management card.
By transmitting enable signals between the node logic controller and the power logic controller, and combining power status and data change information, the power logic controller directly performs power management operations, reducing data transmission volume and simplifying the process.
It achieves accurate power management during master-slave node switching, avoids power failure or loss of storage management card, simplifies the power management process, and reduces data transfer volume.
Smart Images

Figure CN121209676B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of server technology, and in particular to power management systems and methods. Background Technology
[0002] In a multi-controller storage system, a storage management card (SDC) is typically required. Multiple nodes are connected to the SDC, and the SDC is connected to multiple storage devices within the system, allowing each node to access these devices. Nodes can only access storage devices after the SDC is powered on. Therefore, a master node is usually negotiated among the nodes. The master node's node logic controller controls the power supply to the SDC, performing power-on and power-off operations. Because master-slave node switching can occur in this system, to ensure the new master node's node logic controller can correctly perform power management, the original master node's node logic controller needs to synchronize the operation information to the node logic controllers of all slave nodes after performing the power-on and power-off operations.
[0003] However, each time the master node's node logic controller performs a power management operation, it needs to synchronize the operation information to other nodes, making the power management operation process quite complex. Summary of the Invention
[0004] This application provides a power management system, method, storage medium, and program product to solve the problem of needing to synchronize operation information after performing power management operations.
[0005] This application provides a power management system, which includes multiple nodes and a storage management card. Each of the multiple nodes includes a management controller and a node logic controller, and the storage management card includes a power logic controller and a power supply.
[0006] The node logic controller is used to transmit the first enable signal to the power logic controller.
[0007] The target management controller is used to acquire power management information; based on the power management information, it performs data modification operations on the registers in the power logic controller to change the data in the registers. The target management controller is the management controller included in the master node among multiple nodes.
[0008] The power logic controller is used to acquire the data change information of the register and the power status of the storage management card after detecting a change in the data in the register; and to perform power management operations on the power supply based on the status of the first enable signal transmitted by at least one node logic controller, the power status, and the data change information.
[0009] The application provides a power management method, which is applied to the power management system, the power management system comprises a plurality of nodes and a storage management card, the storage management card comprises a power logic controller and a power supply, each of the plurality of nodes comprises a management controller and a node logic controller, and the method comprises the following steps of:
[0010] The node logic controller transmits a first enabling signal to the power logic controller.
[0011] The target management controller acquires power management information, and performs a data modification operation corresponding to the power management information on a register in the power logic controller according to the power management information, so that the data in the register changes, wherein the target management controller is a management controller included in a master node in the plurality of nodes.
[0012] After detecting that the data in the register changes, the power logic controller acquires data change information of the register and a power supply state of the storage management card, and performs a power management operation on the power supply according to the state of the first enabling signal transmitted by at least one node logic controller, the power supply state, and the data change information.
[0013] The application further provides a computer readable storage medium, and the computer readable storage medium stores a computer program, wherein the computer program is executed by a processor to realize the steps of any one of the power management methods.
[0014] The application further provides a computer program product comprising a computer program, and the computer program is executed by a processor to realize the steps of any one of the power management methods.
[0015] Through the application, the node logic controller can transmit a first enabling signal to the power logic controller, the target management controller included in the master node can modify data in the power logic controller according to the power management information after obtaining the power management information, so that the data in the register changes to notify the power logic controller to perform the power management operation. After monitoring that the data in the register changes, the power logic controller can obtain data change information of the register, and obtain the power state of the storage management card and the state of the first enabling signal transmitted by each node logic controller. Finally, the power logic controller can perform the power management operation on the power according to the state of the first enabling signal, the power state, and the data change information. In this way, any node as a master node can modify the data in the power logic controller based on the obtained power management information. Since the power state directly indicates whether the current power is in a start state or a shutdown state, the data change information can specifically indicate the type of the power management operation, and the state of the first enabling signal can indicate the working state of the node, therefore, the power logic controller can directly perform accurate power management operation on the power after analyzing the power state, the state of the first enabling signal, and the data change information, etc. without the need for the node logic controller on the master node to synchronize the operation information to the node logic controller on the slave node each time the power management operation is performed, which can reduce the data transmission amount, simplify the power management process, and be more convenient.
[0016] In addition, in the related art, if the synchronization of the operation information is not performed, other node logic controllers can perform incorrect power management operations, causing the power of the storage management card to fail or causing the storage management card to lose, but in the present application, the power logic controller can accurately perform the power management operation after analyzing the state of the first enabling signal transmitted by each node logic controller, the power state, etc., thereby avoiding such problems. BRIEF DESCRIPTION OF DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application, the drawings needed in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0018] Figure 1 The first power management system architecture diagram provided by the embodiments of the present application;
[0019] Figure 2 The second power management system architecture diagram provided by the embodiments of the present application;
[0020] Figure 3A third power management system architecture diagram provided by an embodiment of the present application is shown in FIG. 3.
[0021] Figure 4 A fourth power management system architecture diagram provided by an embodiment of the present application is shown in FIG. 4.
[0022] Figure 5 A flow diagram of a power management method provided by an embodiment of the present application is shown in FIG. 5. DETAILED DESCRIPTION
[0023] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.
[0024] It should be noted that, in the description of the present application, the terms "comprise", "contain" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment comprising a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or equipment. The terms "first", "second" and the like in the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence.
[0025] In order for those skilled in the art to better understand the technical solutions of the present application, the present application will be further described in detail below with reference to the drawings and specific embodiments.
[0026] The present application provides a power management system, as shown in FIG. 1, the power management system can include a plurality of nodes 10 and a storage management card 20. Figure 1 Each of the plurality of nodes 10 includes a management controller 101 and a node logic controller 102, for example, as shown in FIG. 2.
[0027] Each of the plurality of nodes 10 includes a management controller 101 and a node logic controller 102, for example, as shown in FIG. 2. Figure 1 The management controller 101 and the node logic controller 102 in the dashed box in FIG. 2 constitute a node 10.
[0028] The storage management card 20 comprises a power logic controller 201 and a power 202. The power logic controller 201 can be provided with a register 201a. For example, the management controller 101 can be a baseboard management controller (BMC) in a server, and the node logic controller 102 and the power logic controller 201 can each be a complex programmable logic device (CPLD) located on the mainboard of the server. The storage management card 20 can also be commonly referred to as a shared card.
[0029] The power logic controller 201 can be connected with the management controller 101 and the node logic controller 102 in each node 10 respectively, and connected with the power. The connection between the management controller 101 and the power logic controller can be realized through an I2C bus, and accordingly, the management controller 101 can perform a data modification operation on the register 201a of the power 202 logic controller through the I2C (Inter-Integrated Circuit) bus.
[0030] The node logic controller 102 can be configured to transmit a first enable signal (Enable, EN) to the power 202 logic controller.
[0031] The target management controller can be configured to obtain power management information. According to the power management information, a data modification operation corresponding to the power management information is performed on the register 201a in the power 202 logic controller, so that the data in the register 201a changes.
[0032] The power logic controller 201 can be configured to, after detecting that the data in the register 201a changes, obtain data change information of the register 201a and a power state of the storage management card 20. According to the state of the first enable signal transmitted by at least one node logic controller 102, the power state, and the data change information, a power management operation is performed on the power 202.
[0033] The target management controller is the management controller 101 included in the master node of the plurality of nodes 10.
[0034] Specifically, since the node 10 is possible to perform the subsequent power management operation as the master node only after starting working, the node logic controller 102 can set the state of the first enable signal based on the working state of the node 10 where the node logic controller 102 is located, and transmit the first enable signal with the set state to the power logic controller 201 (for example, the working state can be a normal working state, an unworking state, an abnormal state, etc., accordingly, when the node 10 is in the normal working state, the state of the first enable signal is set to the enable state, and when the node 10 is in the unworking state or the abnormal state, the state of the first enable signal is set to the non-enable state). The power logic controller 201 can receive the first enable signal transmitted by each node logic controller 102, and monitor the state of the first enable signal transmitted by each node logic controller 102.
[0035] The target management controller included in the node 10 as the master node has the management authority of the power 202 of the storage management card 20, accordingly, the target management controller can modify the data stored in the register 201a in the power logic controller 201 according to the power management information after obtaining the power management information, so that the data in the register 201a changes corresponding to the power management information.
[0036] The power logic controller 201 can monitor its own register 201a, and when the change of the data in the register 201a is monitored, the data change information can be recorded. Further, the power logic controller 201 can obtain the current power state of the storage management card 20, and identify the state of the first enable signal transmitted by each node logic controller 102.
[0037] Finally, the power logic controller 201 can determine whether to perform the power management operation based on the power state, the state of the first enable signal transmitted by each node logic controller 102, and the data change information after analyzing, and in the case of determining to perform the power management operation, determine the type of the power management operation, and then perform the power management operation of the corresponding type on the power 202.
[0038] The power management system of the embodiment of the present application, the node logic controller 102 can transmit a first enable signal to the power logic controller 201, the target management controller included in the master node can modify the data in the power logic controller 201 according to the power management information after obtaining the power management information, so that the data in the register 201a changes to notify the power logic controller 201 to perform the power management operation. After monitoring that the data in the register 201a changes, the power logic controller 201 can obtain the data change information of the register 201a, and obtain the power state of the storage management card 20 and the state of the first enable signal transmitted by each node logic controller 102. Finally, the power logic controller 201 can perform the power management operation on the power supply 202 according to the state of the first enable signal, the power state, and the data change information. In this way, any node 10 when acting as a master node can modify the data in the power logic controller 201 based on the obtained power management information. Since the power state directly indicates whether the current power supply 202 is in a start state or a shutdown state, the data change information can specifically indicate the type of power management operation, and the state of the first enable signal can indicate the working state of the node 10, therefore, the power logic controller 201 can directly perform accurate power management operation on the power supply 202 after analyzing the power state, the state of the first enable signal, and the data change information, etc., without the need for the node logic controller 102 on the master node to synchronize the operation information to the node logic controller 102 of the slave node 10 each time the power management operation is performed, which can reduce the amount of data transmission, simplify the power supply 202 management process, and be more convenient.
[0039] In addition, in the related art, if the synchronization of the operation information is not performed, it can cause other node logic controllers 102 to perform incorrect power management operations, resulting in the failure of the power supply 202 of the storage management card 20 or the loss of the storage management card 20, but in the present scheme, the power logic controller 201 can accurately perform the power management operation after analyzing the state of the first enable signal transmitted by each node logic controller 102, the power state, etc., thereby avoiding such problems.
[0040] Based on the foregoing embodiment, two specific power management systems and power management processes are introduced below.
[0041] Method one, the number of registers 201a is one.
[0042] The target management controller can be specifically used for:
[0043] In a case where the power management information is used to indicate the execution of the power-on operation, the first preset value is written into the register 201a, and then the second preset value is written into the register 201a to complete the data modification operation. Alternatively, in a case where the power management information is used to indicate the execution of the power-off operation, the first preset value is directly written into the register 201a to complete the data modification operation.
[0044] The power logic controller 201 is specifically configured to:
[0045] In a case where the first enable signal transmitted by the node logic controller 102 is in the enabled state, the storage management card 20 is in the power-off state, and the data change information changes from the first preset value to the second preset value, the second enable signal in the enabled state is transmitted to the power supply 202 to start the power supply 202 to supply power to the storage management card 20. Alternatively, in a case where the first enable signal transmitted by the node logic controller 102 is in the enabled state, the storage management card 20 is in the power-on state, and the data change information changes from the second preset value to the first preset value, the second enable signal in the disabled state is transmitted to the power supply 202 to turn off the power supply 202 to the storage management card 20.
[0046] The starting of the power supply 202 and the turning off of the power supply 202 can be power management operations.
[0047] Specifically, when the target management controller obtains the power management information, the target management controller can first determine the type of the power management information, and perform a data modification operation corresponding to the type on the register 201a based on the type of the power management information. The type of the power management information can be used to indicate the power-on operation or used to indicate the power-off operation. Accordingly, when the target management controller determines that the power management information is used to indicate the execution of the power-on operation, the first preset value can be written into the register 201a, and then the second preset value can be written into the register 201a after a preset time period. Alternatively, when the target management controller determines that the power management information is used to indicate the power-off operation, the first preset value can be directly written into the register 201a.
[0048] In the power-on operation process, there can be two cases for the value in the register 201a. First, the value in the register 201a can be the second preset value by default. After the first preset value is written into the register 201a in the power-on operation process, a change from the second preset value to the first preset value occurs, which can be detected by the power logic controller 201. In order to avoid the power logic controller 201 directly determining the change as a power-off operation, the power state is combined for determination, that is, only when the current power state is the power-on state, it is possible to determine the change from the second preset value to the first preset value as a power-off operation. If the current power state is the power-off state, the value in the register 201a changes from the second preset value to the first preset value, and the power logic controller 201 can not perform any processing. Second, the value in the register 201a can also be the first preset value, that is, there can be other nodes 10 that write the first preset value into the register 201a when acting as the master node, so as to perform a power-off operation. Therefore, the first preset value is written in the current power-on operation process, and the power logic controller 201 does not detect the change of the data in the register 201a, and thus does not perform any processing. After the second preset value is overwritten after the preset duration, a change from the first preset value to the second preset value occurs, and in combination with the current power state being the power-off state, it can be determined that the power-on operation is performed.
[0049] In the power-off operation process, the original value in the register 201a can only be the second preset value, that is, the second preset value can be a default value written without being modified by any node 10, or it can be the second preset value written after the current power-on operation. Therefore, when the power management information is determined to indicate a power-off operation, the first preset value can be directly overwritten into the register 201a, so that the data in the register 201a changes from the second preset value to the first preset value.
[0050] In addition, only when the state of the first enable signal of one node logic controller 102 is the enabled state, the node 10 acting as the master node to perform the power management operation exists. Specifically, when only the first enable signal of one node logic controller 102 is in the enabled state, the node 10 where the node logic controller 102 is located is the master node. When the first enable signals of multiple node logic controllers 102 are in the enabled state, the master node is one of the nodes 10 corresponding to the multiple node logic controllers 102.
[0051] Based on the above analysis, the power logic controller 201 can determine that the power supply operation to the storage management card 20 is needed in the case that the first enable signal transmitted by one of the node logic controllers 102 is detected to be in the enabled state, the storage management card 20 is detected to be in the power-off state, and the data change information is detected to be changed from the first preset value to the second preset value (which can be referred to as a power management rule). At this time, the second enable signal in the enabled state can be transmitted to the power supply 202. The power supply 202 can monitor the second enable signal transmitted by the power logic controller 201. After detecting the second enable signal in the enabled state, the power supply 202 can perform the power supply operation to the storage management card 20. For example, the enabled state can be a high level state, and the power logic controller 201 can pull up the second enable signal to the power supply 202.
[0052] Alternatively, the power logic controller 201 can determine that the power-off operation to the storage management card 20 is needed in the case that the second enable signal transmitted by one of the node logic controllers 102 is detected to be in the enabled state, the storage management card 20 is detected to be in the power-on state, and the data change information is detected to be changed from the second preset value to the first preset value (which can be referred to as a power management rule). At this time, the second enable signal in the disabled state can be transmitted to the power supply 202. After detecting the second enable signal in the disabled state, the power supply 202 can perform the power-off operation to the storage management card 20. For example, the disabled state can be a low level state, and the power logic controller 201 can pull down the enable signal to the power supply 202.
[0053] For example, the first preset value can be "0X55", and the second preset value can be "0X00". During the power-on operation, the data of the register 201a can have the following two changes, i.e., "0X00-0X55-0X00" or "0X55-0X55-0X00". Both of the two changes include the change from the second preset value to the first preset value "0X55-0X00", and after considering the power state as the power-off state, both of the two changes can be identified as the power-on operation. During the power-off operation, after considering the power state as the power-on state, "0X00-0X55" can be identified as the power-off operation, and the next time the power is turned on, "0X00-0X55-0X00" can appear, i.e., the first change described above.
[0054] In summary, only one register 201a needs to be set in the power logic controller 201 in the power management system, which can save hardware resources, and the power logic controller 201 only needs to monitor one register 201a, and the occupied computing resources are also relatively small. Further, the target management controller only needs to perform data modification operation on the register 201a in accordance with certain rules, and the power logic controller 201 only needs to determine which power management rule is met by combining the state of the enable signal, the power state, and the data change information of the register 201a, and perform corresponding power management operation based on the met power management rule. The switching operation of the master and slave nodes 10 does not need to be concerned among the plurality of nodes 10, and the data operation information does not need to be synchronized between the nodes 10 due to the existence of the master and slave node 10 switching scene, and the power logic controller 201 does not need to synchronize the power state to each node logic controller 102, which can greatly reduce the data transmission amount in the power management operation process.
[0055] In some optional embodiments, the power logic controller 201 can detect that the first enable signal transmitted by one node logic controller 102 is in the enabled state, the storage management card 20 is in the power-off state, and the data change information changes from the first preset value to the second preset value, and obtain the first interval time length between the first preset value and the second preset value, and then compare the first interval time length with the preset time length, and in the case that the absolute value of the difference between the first interval time length and the preset time length is less than the preset threshold, the second enable signal in the enabled state is transmitted to the power 202 again. In this way, only the data modification operation on the register 201a within a certain time error range can be considered as a power management operation, which can avoid identifying the data change of the register 201a caused by a fault as indication information of power-on and power-off, and further avoid the problem of performing power management operation incorrectly and affecting the task of the node 10.
[0056] Method two, the number of registers 201a is multiple, including power-on control register 201a1 and power-off control register 201a2, and correspondingly, the structure of the power management system can be as shown in Figure 2 .
[0057] The target management controller is specifically used for:
[0058] In a case where the power management information is used to indicate the execution of the power-on operation, after the third preset value is overwritten to the power-on control register 201a1, the fourth preset value is overwritten to the power-on control register 201a1 to complete the data modification operation. Alternatively, in a case where the power management information is used to indicate the execution of the power-off operation, after the third preset value is overwritten to the power-off control register 201a2, the fourth preset value is overwritten to the power-off control register 201a2 to complete the data modification operation.
[0059] The power logic controller 201 is specifically configured to:
[0060] In a case where the first enable signal transmitted by the node logic controller 102 is in the enabled state, the storage management card 20 is in the power-off state, and the data change information indicates that the value in the power-on control register 201a1 changes from the third preset value to the fourth preset value, the second enable signal in the enabled state is transmitted to the power supply 202 to start the power supply 202 to supply power to the storage management card 20. Alternatively, in a case where the first enable signal transmitted by the node logic controller 102 is in the enabled state, the storage management card 20 is in the power-on state, and the data change information indicates that the value in the power-off control register 201a2 changes from the third preset value to the fourth preset value, the second enable signal in the disabled state is transmitted to the power supply 202 to turn off the power supply 202 to power off the storage management card 20.
[0061] The starting of the power supply 202 and the turning off of the power supply 202 are both power management operations.
[0062] Specifically, when the power management information is obtained, the target management controller can first determine the type of the power management information, and based on the type of the power management information, determine the target register to be subjected to the data modification operation in the power-on control register 201a1 and the power-off control register 201a2, and perform the preset data modification operation on the data in the target register. The type of the power management information can be used to indicate the power-on operation or the power-off operation, and accordingly, when the target management controller determines that the power management information is used to indicate the execution of the power-on operation, the power-on control register 201a1 is determined as the target register, or when the target management controller determines that the power management information is used to indicate the power-off operation, the power-off control register 201a2 is determined as the target register. Further, the target management controller can first overwrite the third preset value to the target register, and after a preset time period, overwrite the fourth preset value to the target register to complete the preset data modification operation.
[0063] There are two cases for the value in the target register. The value in the target register can be the third preset value or the fourth preset value which is modified after the last power-on or power-off operation. In order to ensure the change from the third preset value to the fourth preset value, the third preset value is written into the target register before the fourth preset value is written into the target register in the above process.
[0064] Further, in some fault cases, the value in the target register can also change as described above. Therefore, similar to the first mode, the power management operation can be determined according to the state of the enable signal of each node logic controller 102 and the power state.
[0065] Based on the above analysis, the power logic controller 201 can determine that the power supply operation needs to be performed on the storage management card 20 when it is detected that there is one node logic controller 102 transmitting the first enable signal in the enabled state, the storage management card 20 is in the power-off state, and the change from the third preset value to the fourth preset value occurs in the power-on control register 201a1. At this time, the second enable signal in the enabled state can be transmitted to the power supply 202. The power supply 202 can perform the power supply operation on the storage management card 20 after detecting the second enable signal in the enabled state.
[0066] Alternatively, the power logic controller 201 can determine that the power-off operation needs to be performed on the storage management card 20 when it is detected that there is one node logic controller 102 transmitting the first enable signal in the enabled state, the storage management card 20 is in the power-on state, and the value in the power-off controller changes from the second preset value to the first preset value. At this time, the second enable signal in the disabled state can be transmitted to the power supply 202. The power supply 202 can perform the power-off operation on the storage management card 20 after detecting the second enable signal in the disabled state.
[0067] In summary, since the read and write operations need to be performed on the register 201a during the power management operation, the register 201a can be damaged. Therefore, by dividing the different power supply 202 management tasks between the two types of registers 201a, the damage to the register 201a can be reduced, and the service life of the storage management card 20 can be improved.
[0068] In some optional embodiments, in a case where it is detected that the first enable signal transmitted by one node logic controller 102 is in the enabled state, the storage management card 20 is in the powered-off state, and the data change information is that the value in the power-on control register 201a1 changes from the third preset value to the fourth preset value, or in a case where it is detected that the first enable signal transmitted by one node logic controller 102 is in the enabled state, the storage management card 20 is in the powered-on state, and the data change information is that the value in the power-off control register 201a2 changes from the third preset value to the fourth preset value, the second interval time length between the third preset value changing to the fourth preset value can be acquired first, and then the second interval time length and the preset time length are compared, and in a case where the absolute value of the difference between the second interval time length and the preset time length is less than the preset threshold, the enable signal in the enabled state is transmitted to the power supply 202 again. In this way, only the data modification operation on the register 201a within a certain time length error range can be considered as a power management operation, and the data change of the register 201a caused by a fault condition can be avoided to be identified as indication information of power-on and power-off, and thus the problem of incorrectly performing a power management operation to affect the task of the node 10 can be avoided.
[0069] In some optional embodiments, the power logic controller 201 described above can also be used for:
[0070] After it is detected that the first enable signal transmitted by all node logic controllers 102 is in the disabled state and changes to the enabled state of the first enable signal transmitted by at least one node logic controller 102, the second enable signal in the enabled state is transmitted to the power supply 202, so as to start the power supply 202 to supply power to the storage management card 20. Or, in a case where it is detected that the first enable signal transmitted by at least one node logic controller 102 is in the enabled state and changes to the disabled state of the first enable signal transmitted by all node logic controllers 102, the second enable signal in the disabled state is transmitted to the power supply 202, so as to turn off the power supply 202 to power off the storage management card 20.
[0071] Specifically, as long as there is one node logic controller 102 whose first enable signal is in the enable state, it indicates that there is one node 10 in the working state, and the node 10 in the working state can need to access the storage device in the process of executing the task, and the access to the storage device needs to pass through the storage management card 20. If the first enable signals transmitted by all node logic controllers 102 are in the non-enable state, it indicates that no node 10 needs to use the storage management card 20. Therefore, when it is detected that the state of the first enable signal transmitted by any node logic controller 102 changes from the non-enable state to the enable state, at this time, the enable signal in the enable state can be transmitted to the power supply 202, and the power supply 202 can perform the power supply operation on the storage management card 20 after detecting the enable signal in the enable state, so as to meet the access demand of the node 10 in the working state on the storage management card 20. The power-on operation process here can be the process of the first power-on operation on the storage management card 20. Correspondingly, the aforementioned power management operation performed by the power supply 202 according to the state of the enable signal transmitted by at least one node logic controller 102, the power supply state, and the data change information can be the non-first power-on operation on the storage management card 20.
[0072] Conversely, if the enable signals transmitted by one or more node logic controllers 102 all change from the enable state to the non-enable state, it can be determined that there is no access demand of the node 10 on the storage management card 20, at this time, the resource can be saved, and the enable signal in the non-enable state can be transmitted to the power supply 202, and the power supply 202 can perform the power-off operation on the storage management card 20 after detecting the enable signal in the non-enable state.
[0073] In this way, through the detection of the first enable signal, the node 10 in the working state can access the storage management card 20 in time to complete the access operation on the storage device, and in the case that there is no access demand on the storage management card 20, the power can be turned off in time to reduce the waste of resources.
[0074] In some optional embodiments, the node 10 can further include a central processing unit (CPU) 103, which can be connected with the management controller 101 in the node 10 to which the central processing unit 103 belongs and located on the mainboard of the server. Correspondingly, the structure of the data management system can be as shown in Figure 3 .
[0075] The target central processing unit can be used for:
[0076] sending the power management information to the target management controller.
[0077] The target central processing unit is the central processing unit 103 in the node 10 where the target management controller is located.
[0078] The target management controller is specifically used for:
[0079] Receiving the power management information sent by the target central processor to obtain the power management information.
[0080] Specifically, the target central processor can send the power management information to the target management controller according to the demand of executing tasks by itself, for example, sending the power management information for indicating to execute the power-off operation before the shutdown, and sending the power management information for indicating to execute the power-on operation after the startup. Correspondingly, the target management controller can receive the power management information and execute the subsequent power management operation based on the power management information.
[0081] In some optional embodiments, the central processor 103 is connected with the node logic controller 102 in the node 10 to which the central processor 103 itself belongs. Correspondingly, the structure of the data management system can be as shown in Figure 4 The target central processor can also be used for:
[0082] Sending a normal operation indication signal to the target node logic controller.
[0083] The target node logic controller is the node logic controller 102 in the node 10 where the target central processor is located.
[0084] The target node logic controller can be specifically used for:
[0085] When detecting that the in-place signal of the storage management card 20 is in place and detecting the normal operation indication signal sent by the target central processor, transmitting the enable signal in the enabled state to the power logic controller 201.
[0086] Specifically, the target central processor can send the normal operation indication information to the target node logic controller after normal startup. The target node logic controller can determine that the storage management card 20 is in place when detecting the in-place signal of the storage management card 20, and can determine that the node 10 where the target central processor is located is in the working state when receiving the normal operation indication signal sent by the target central processor. At this time, the enable signal in the enabled state can be transmitted to the power logic controller 201, so that the power logic controller 201 can accurately know which nodes are in the working state, so as to execute accurate power management operation.
[0087] Embodiments of the present application provide a power management method, which can be realized by mutual cooperation between various components in the above-mentioned power management system, as shown in Figure 5 The specific processing steps of the power management method can include:
[0088] Step S501, the node logic controller transmits a first enabling signal to the power logic controller.
[0089] Step S502, the target management controller acquires power management information.
[0090] The target management controller is a management controller included in a master node among the plurality of nodes.
[0091] Step S503, the target management controller performs a data modification operation corresponding to the power management information on a register in the power logic controller according to the power management information, so that the data in the register changes.
[0092] Step S504, after detecting that the data in the register changes, the power logic controller acquires data change information of the register and a power state of the storage management card.
[0093] Step S505, the power logic controller performs a power management operation on the power according to the state of the first enabling signal transmitted by at least one node logic controller, the power state, and the data change information.
[0094] The specific processing of steps S501 to S505 can refer to the specific processing of the foregoing embodiments, which will not be described here again.
[0095] The power management method of the embodiment of the present application, the node logic controller can transmit a first enabling signal to the power logic controller, the target management controller included in the master node can modify the data in the power logic controller according to the power management information after obtaining the power management information, so that the data in the register changes to notify the power logic controller to perform the power management operation. After monitoring that the data in the register changes, the power logic controller can obtain the data change information of the register and the power state of the storage management card and the state of the first enabling signal transmitted by each node logic controller. Finally, the power logic controller can perform the power management operation on the power according to the state of the first enabling signal, the power state, and the data change information. In this way, any node as a master node can modify the data in the power logic controller based on the obtained power management information. Since the power state directly indicates whether the current power is in a start state or a shutdown state, the data change information can specifically indicate the type of the power management operation, and the state of the first enabling signal can indicate the working state of the node, therefore, the power logic controller can directly perform accurate power management operation on the power after analyzing the power state, the state of the first enabling signal, and the data change information, without the need for the node logic controller on the master node to synchronize the operation information to the node logic controller on the slave node after performing the power management operation each time, which can reduce the data transmission amount, simplify the power management process, and be more convenient.
[0096] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be realized by means of software and the necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment.
[0097] The embodiment of the present application also provides a computer readable storage medium, the computer readable storage medium stores a computer program, and the computer program is arranged to execute the steps in any of the above power management method embodiments when running.
[0098] In an example embodiment, the above computer readable storage medium can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store computer programs.
[0099] The embodiment of the present application also provides a computer program product, the computer program product includes a computer program, and the computer program is executed by a processor to realize the steps in any of the above power management method embodiments.
[0100] Embodiments of the present application also provide another computer program product comprising a non-transitory computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of any of the above-mentioned power management method embodiments.
[0101] Those skilled in the art will further appreciate that the units and algorithm steps of the examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or both, and that the implementation decisions are within the skill of an informed technician. The exemplary configurations and steps have been described above generally, but separately, from their hardware and software implementations to reasonably illustrate the interchangeability of hardware and software. The decision to implement the described functions in hardware or in software is dependent upon the particular application and design constraints imposed on the overall system. Skilled artisans can implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
[0102] The above provides a power management system, method, storage medium and program product. The principles and implementation modes of the present application are described by applying specific examples. The above description of the examples is only to help understand the method and its core idea. It should be pointed out that for those skilled in the art, without departing from the principles of the present application, some improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A power management system, characterized by, The power management system comprises a plurality of nodes and a storage management card, each of the plurality of nodes comprises a management controller and a node logic controller, and the storage management card comprises a power logic controller and a power supply; The node logic controller is configured to transmit a first enable signal to the power logic controller; A target management controller is configured to obtain power management information; When the number of registers in the power logic controller is one, a first preset value is written to the register, and then a second preset value is written to the register, so that the data in the register changes, wherein the target management controller is a management controller included in a master node in the plurality of nodes; The power logic controller is configured to, after detecting that the data in the register changes, obtain data change information of the register and a power state of the storage management card; and when it is detected that the first enable signal transmitted by one node logic controller is in an enabled state, the storage management card is in a power-off state, and the data change information changes from the first preset value to the second preset value, transmit a second enable signal in an enabled state to the power supply, so as to start the power supply to supply power to the storage management card, wherein starting the power supply is a power management operation.
2. The power management system of claim 1, wherein, When the number of registers is one, the target management controller is further configured to: In a case where the power management information is used to indicate that a power-off operation is performed, the first preset value is directly written to the register.
3. The power management system of claim 2, wherein, The power logic controller is further configured to: In a case where it is detected that the first enable signal transmitted by one node logic controller is in the enabled state, the storage management card is in a power-on state, and the data change information changes from the second preset value to the first preset value, transmit the second enable signal in a non-enabled state to the power supply, so as to turn off the power supply to the storage management card; Wherein, turning off the power supply is the power management operation.
4. The power management system of claim 1, wherein, When the number of registers is a plurality, the registers comprise a power-on control register and a power-off control register; and the target management controller is specifically configured to: In a case where the power management information is used to indicate that a power-on operation is performed, a third preset value is written to the power-on control register, and then a fourth preset value is written to the power-on control register; Or, In a case where the power management information is used to indicate that a power-off operation is performed, the third preset value is written to the power-off control register, and then the fourth preset value is written to the power-off control register.
5. The power management system of claim 4, wherein, The power logic controller is specifically configured to: In a case where it is detected that the first enable signal transmitted by one node logic controller is in the enable state, the storage management card is in the power-off state, and the data change information is that a value in the power-on control register changes from the third preset value to the fourth preset value, the second enable signal in the enable state is transmitted to the power supply, so as to start the power supply to supply power to the storage management card. Or, In a case where it is detected that the first enable signal transmitted by one node logic controller is in the enable state, the storage management card is in the power-off state, and the data change information is that a value in the power-on control register changes from the third preset value to the fourth preset value, the second enable signal in the enable state is transmitted to the power supply, so as to start the power supply to supply power to the storage management card. Wherein, starting the power supply and closing the power supply are both the power management operations.
6. The power management system of any one of claims 1 to 5, wherein, The power logic controller is further configured to: After detecting that the first enable signals respectively transmitted by all node logic controllers are in the non-enable state and then the first enable signals respectively transmitted by at least one node logic controller are in the enable state, the second enable signal in the enable state is transmitted to the power supply, so as to start the power supply to supply power to the storage management card.
7. The power management system of claim 6, wherein, The power logic controller is further configured to: After detecting that the first enable signals respectively transmitted by at least one node logic controller are in the enable state and then the first enable signals respectively transmitted by all node logic controllers are in the non-enable state, the second enable signal in the non-enable state is transmitted to the power supply, so as to close the power supply to cut off power supply to the storage management card.
8. The power management system of claim 2 or 3, wherein, The node further comprises a central processor connected with a management controller in the node to which the central processor belongs; The target central processor is configured to: transmit the power management information to the target management controller, wherein the target central processor is a central processor in a node where the target management controller is located; and The target management controller is specifically configured to: receive the power management information transmitted by the target central processor, so as to obtain the power management information.
9. The power management system of claim 8, wherein, The central processor is connected with a node logic controller in the node to which the central processor belongs; The target central processor is further configured to: transmit a normal operation indication signal to a target node logic controller, wherein the target node logic controller is a node logic controller in the node where the target central processor is located; and The target node logic controller is specifically configured to: transmit the first enable signal in the enable state to the power logic controller when detecting the in-place signal of the storage management card and detecting the normal operation indication signal transmitted by the target central processor.
10. A power management method, characterized by, The method is applied to the power management system as claimed in any one of claims 1 to 9, the power management system comprising a plurality of nodes and a storage management card, the storage management card comprising a power logic controller and a power supply, each of the plurality of nodes comprising a management controller and a node logic controller; the method comprising: the node logic controller transmitting a first enable signal to the power logic controller; a target management controller acquiring power management information; when the number of registers in the power logic controller is one, a first preset value is overwritten and written to the register, and then a second preset value is overwritten and written to the register, so that the data in the register changes, wherein the target management controller is the management controller included in a master node among the plurality of nodes; after detecting that the data in the register changes, the power logic controller acquires data change information of the register and a power state of the storage management card; when it is detected that the first enable signal transmitted by one node logic controller is in an enabled state, the storage management card is in a power-off state, and the data change information changes from the first preset value to the second preset value, a second enable signal in an enabled state is transmitted to the power supply, so as to start the power supply to supply power to the storage management card, wherein starting the power supply is a power management operation.
Citation Information
Patent Citations
Control method and system for power management integrated chip of display panel
CN114237376A
Power management method and device, electronic equipment and storage medium
CN119396262A