Summary of the invention
The embodiment of the invention provides a kind of PCI high-speed bus system and energy management method thereof, can not realize system capacity management, the defective that cuts down the consumption of energy in the prior art to solve.
The embodiment of the invention provides a kind of PCI high-speed bus energy management method, be applied to comprise in the distributed system of master control borad and a plurality of business boards, described master control borad is by PCI high-speed bus and business board swap data, by Ethernet and the mutual control information of business board, said method comprising the steps of:
Whether described master control borad detects described business board on the throne, if not on the throne, then be not described business board power supply, and the PCI high-speed bus link of described business board correspondence would be set to the link off-position;
If it is on the throne, it then is described business board power supply, and interface board is on the throne to be connected just often with physical interface when described business board detects, the PCI high-speed bus link of described business board correspondence is set to link working state, and the PCI high-speed bus port of described business board is set to equipment working state.
Also comprise:
Whether described business board detects the interface board of this plate on the throne, if not on the throne, then be not described interface board power supply, the PCI high-speed bus port of described business board is set to the equipment electricity-saving state;
If it is on the throne, it then is described interface board power supply, whether the connection that described business board detects the physical interface on the described interface board is normal, if it is normal, then notify the PCI high-speed bus link of the described business board correspondence of described master control borad to be set to link working state, and the PCI high-speed bus port of business board is provided with equipment working state.
The PCI high-speed bus link of described business board correspondence is set to link working state, and the PCI high-speed bus port of described business board is set to also comprise after the equipment working state:
Described business board detects the not on the throne or physical interface of interface board when undesired, notifies the PCI high-speed bus link of the described business board correspondence of described master control borad to be set to the link off-position, and the PCI high-speed bus port of business board is provided with the equipment electricity-saving state.
When described link off-position and equipment electricity-saving state, reduce the operating frequency of described business board CPU; When described link working state and equipment working state, recover the operating frequency of described business board CPU.
Described equipment electricity-saving state comprises thermal center electricity condition or cold electricity-saving state; Described thermal center electricity condition keeps the internal storage content, and being converted to does not need initial configuration in the equipment working state process, and described cold electricity-saving state does not keep the internal storage content, and being converted in the equipment working state process needs initial configuration.
The present invention also provides a kind of PCI high-speed bus EMS, comprises master control borad and a plurality of business board, and described master control borad passes through PCI high-speed bus and business board swap data, by Ethernet and the mutual control information of business board,
Described master control borad, be used to detect described business board when not on the throne, the PCI high-speed bus link of described business board correspondence is set to the link off-position, it is on the throne to detect described business board, and described business board is determined that its interface board is on the throne and is connected just often with physical interface, the PCI high-speed bus link of described business board correspondence is set to link working state, and notifies described business board PCI high-speed bus port to be set to equipment working state;
Described business board, be used for determining that interface board own is on the throne is connected just often with physical interface, notify the PCI high-speed bus link of described master control borad correspondence to be set to link working state, and be set to equipment working state according to described master control borad indication PCI high-speed bus port.
Described master control borad specifically comprises:
PCI high-speed bus interchanger is used for and the business board interaction data;
Ethernet switch hub is used for and the mutual control information of business board;
The master control borad controller, be connected with described ethernet switch hub with described PCI high-speed bus interchanger respectively, be used to detect described business board when not on the throne, the PCI high-speed bus link of controlling the described business board correspondence of described PCI high-speed bus interchanger is set to the link off-position; It is on the throne to detect described business board, and described business board is determined that its interface board is on the throne and is connected just often with physical interface, notify the PCI high-speed bus link of the described business board correspondence of described PCI high-speed bus interchanger to be set to link working state, and notify described business board PCI high-speed bus port to be set to equipment working state by described ethernet switch hub.
Described master control borad controller specifically comprises:
Detecting unit is used to detect described business board state on the throne;
Link State is provided with the unit, is connected with described detecting unit, is used for described business board when not on the throne, and control be that described business board is powered, and the PCI high-speed bus link of described business board correspondence is set to the link off-position; When described business board is on the throne, be described business board power supply, and interface board is on the throne to be connected just often with physical interface when described business board detects, the PCI high-speed bus link of described business board correspondence is set to link working state;
The equipment state control unit is provided with the unit with described Link State and is connected, and when being used for PCI high-speed bus link and being operating state, notifies described business board PCI high-speed bus port to be set to equipment working state.
Described business board specifically comprises:
PCI high-speed bus port is used for and the master control borad interaction data;
The business board controller, be connected with described PCI high-speed bus port, be used for determining that interface board own is on the throne is connected just often with physical interface, notify the PCI high-speed bus link of described master control borad correspondence to be set to link working state, and be set to equipment working state according to described master control borad indication PCI high-speed bus port.
Described business board controller specifically comprises:
The interface board detecting unit, whether be used to detect interface board on the throne;
The physical interface detecting unit is connected with described interface board detecting unit, and whether the connection that is used for determining detecting when interface board is on the throne physical interface is normal;
Notification unit, be connected with the physical interface detecting unit with described interface board detecting unit, it is on the throne to be used for described business board, and described business board determines that its interface board is on the throne and be connected just often with physical interface, notifies the PCI high-speed bus link of described master control borad correspondence to be set to link working state;
PCI high-speed bus port status control unit is used for being set to equipment working state according to described master control borad indication PCI high-speed bus port.
Described business board controller also comprises the frequency switch unit, is used for reducing the operating frequency of described business board CPU when described link off-position and equipment electricity-saving state; When described link working state and equipment working state, recover the operating frequency of described business board CPU.
In the embodiments of the invention, for switching equipment based on PCI Express bus, the IPC passage that has existed by system cooperates the transmission of realization information, make the states such as physical interface in-place detection of business board in-place detection, interface board in-place detection and interface board, PCI Express bus links and equipment state on the control system enter low power consumpting state, can realize energy-conservation energy management.And this energy management does not influence the operate as normal of system, has especially proposed the awakening method of system under the energy management situation.
Embodiment
Be elaborated below in conjunction with specific embodiment.
The invention provides a kind of PCI high-speed bus energy management method, be applied to transmit on backboard and carry out the distributed system of data forwarding by Switch or bridge joint device based on PCI Express bus, this system comprises master control borad and a plurality of business board.Wherein, each business board generally have independent CPUs as the classification of data message forwarding, function such as search.CPU on the business board after powering on, also can realize self system management, control the PCI Express bus apparatus of this business board and backplane interface, this equipment is entered withdraws from different equipment working states or equipment electricity-saving state.Master control borad is generally realized the maintenance and the control of the initialization of the PCI Express of system link and state variation, configuration variation.The SerDes link that corresponding each the different business plate of Switch device on the master control borad or bridge joint device can be set enters or withdraws from the conversion between different link working states or link off-position and these states.
This method may further comprise the steps as shown in Figure 2:
Whether step s201, master control borad detect certain business board (can be a business board, also can be the polylith business board) on the throne, if not on the throne, then changes step s202, if on the throne, changeing step s203.
Step s202, master control borad control is not this business board power supply, and the PCI high-speed bus link of this business board correspondence is set to the link off-position.
Step s203, master control borad is this business board power supply, and interface board is on the throne to be connected just often with physical interface when this business board detects, the PCI high-speed bus link of this business board correspondence is set to link working state, and notifies this business board PCI high-speed bus port to be set to equipment working state.Wherein business board detects and specifically comprises on the throne the connection normally with physical interface of interface board: whether business board detects the interface board of this plate on the throne, if interface board is not on the throne, then be not this interface board power supply, the PCI high-speed bus port of business board is set to the equipment electricity-saving state; If interface board is on the throne, then be this interface board power supply, whether the connection that business board detects the physical interface on this interface board is normal, if the connection of physical interface is normal, then notify the PCI high-speed bus link of master control borad business board correspondence to be set to link working state, and the PCI high-speed bus port of business board is set to equipment working state.
Step s204, when business board, interface board and physical interface all after the operate as normal, business board detects the interface board and the physical interface of this plate in real time or regularly, if detect the not on the throne or physical interface malunion of interface board often, notify the PCI high-speed bus link of the described business board correspondence of described master control borad to be set to the link off-position, and the PCI high-speed bus port of business board is provided with the equipment electricity-saving state.In addition, for business board, can also realize the function that further cut down the consumption of energy by the operating frequency of dynamic reduction CPU being under the power save mode, and in case detect under interface board and the normal situation of interface physical interface and can also dynamically switch to normal dominant frequency operating state.
By the IPC passage, the schematic flow sheet of the energy management of the design of hardware and software of coupled system realization complication system may further comprise the steps as shown in Figure 3 among the present invention:
Step s301, system's complete machine powering.
Whether step s302, master control borad detect certain business board n on the throne, and whether decision controls this business board powers on, if not on the throne, then changes step s303, if on the throne, then changes step s304.
Step s303, this business board does not power on, and the power supply that the CPU of master control borad controls this business board by the Switch device cuts off fully, keeps the no power waste state; Be link off-position L3 for PCI Express bus links on the backboard of business board n correspondence not on the throne by bridge sheet or the Switch device control setting that master control borad CPU controls master control borad simultaneously.
Step s304, for business board on the throne, the CPU of master control borad controls this business board by the Switch device and powers on.
Step s305 provides the interface board of physical interface, in addition as the communication interface plate of Ethernet electrical interface plate or various optical-fiber networks on each business board of normal conditions.For the on the throne and normal business board n that powers on, whether on the throne, if interface board is on the throne, then change step s308 if needing CPU on the business board n to detect the interface board of this intralamellar part, if interface board is not on the throne, then change step s306.
Step s306, business board control this interface board and do not power on, and simultaneously this business board are normally gone up electrical information and pass to master control borad CPU by the IPC passage.The PCI Express link that master control borad CPU controls this business board n correspondence by exchange device on the master control borad or bridge device still remains link off-position L3, and the PCI Express equipment of this business board control and master control borad interface is set to the D3 state.Wherein, the D3 state is divided into two kinds of D3hot and D3cold according to whether cutting off the power supply that offers this equipment.At the D3hot state, the content of device interior memory is retained, can " 1 " writes the D0 status command, makes that device translates is that init state D0 does not need to carry out again initial configuration by writing bit=in the power management of equipment and status register NO_SOFT_RESET territory; The D3cold state is except that the memory content of necessity of PME support needs, and the content of every other memory loses.
Step s307, whether on the throne, wait for that the interface board of this business board is on the throne if constantly detecting interface board, if, then change step s308, if not, then continue to detect, on the throne and normally power on up to interface board.
Step s308, if confirm that this interface board is on the throne, then business board CPU controls this interface board and powers on.
Step s309, whether after interface board powered on, the CPU of this business board n continue detected the physical interface on the interface board, on the throne and normally be connected with physical interface as optical fiber interface or electrical interface etc.If be judged as abnormal the connection, then change step s310; If connect normally, then change step s312.For example, the function of input is provided as optical module interface commonly used, optical fiber normal be connected with the optical module of interface board and receive light signal after can send a level index signal on electric, by this signal, the CPU on this business board can know that whether the physical interface of interface board normally connects; For some electric interfaces, generally be the discrimination bit that is set in place on cable equally, by the level state difference of this discrimination bit, the CPU of business board can know also whether cable connects normally.
The physical interface that step s310, above-mentioned PCI Express equipment state and the Link State of this business board n remain unchanged up to interface board normally is connected work.
Step s311 waits for that this interface board physical interface is normal, if undesired, then continues to detect, if normal, then changes step s312.
Step s312, when business board n with and interface board and physical interface all normal after, this business board CPU sends the normal message information of this business board hardware system by the IPC passage, and this information finally is delivered to the ethernet switch hub spare of master control borad by the ethernet link of backboard.
Step s313, the message information finally uplink port by ethernet switch hub spare are connected to CPU on the master control borad.
Step s314 informs that master control borad CPU corresponding service plate n has finished all normal hardware initialization processes and can work.The PCI Express bus links that master control borad CPU controls this business board n correspondence by backboard exchange device or bridge device is converted to normal operating conditions L0, and the All Activity of link and operating function are normal the supports.And then inform that by the IPC passage corresponding service plate n link is normal, the PCI Express bus port that business board CPU controls the interface of this plate and backboard is converted to the D0 state, wherein, the D0 state comprises the D0uninitialized of no initializtion and the sub-state of D0active of activation, after initially powering on, equipment enters D0uninitialized, enter D0active after finishing equipment search and configuration initialization, the D0active state can be realized whole functions of the equipments down.PCI Express bus apparatus on master control borad and this business board n waits process through consultation afterwards, and this moment, this system entered normal operating conditions.As mentioned above, L0, D0 state are PCI Express system operate as normal, support the state of data transmit-receive, and other states can be realized the demand of low-power consumption, can satisfy the energy saving of system requirement, and can realize that in conjunction with the cooperation of software and hardware the operate as normal function of system do not suffer a loss in the present invention.
Step s315, for the system of operate as normal, entering the PCIE link detecting (detects by the ethernet ip C-channel, the PCIE link only carries out data passes), physical training condition such as poll and configuration, interface board or physical interface at business board occur under the situation not on the throne, and master control borad CPU is set to corresponding state according to the PCIE bus apparatus and the link of different this business board of business board State Control n correspondences.
The present invention also provides a kind of PCI high-speed bus EMS, comprises master control borad and a plurality of business board, and master control borad is by PCI high-speed bus and business board swap data, by Ethernet and the mutual control information of business board.Master control borad, be used to detect business board when not on the throne, the PCI high-speed bus link of business board correspondence is set to the link off-position, the detection business board is on the throne, and business board is determined that its interface board is on the throne and is connected just often with physical interface, the PCI high-speed bus link of business board correspondence is set to link working state, and informing business plate PCI high-speed bus port is set to equipment working state; Business board is used for determining that interface board own is on the throne is connected just often with physical interface, and the PCI high-speed bus link of informing business plate correspondence is set to link working state, and indicates PCI high-speed bus port to be set to equipment working state according to master control borad.
Wherein, master control borad specifically comprises as shown in Figure 4: PCI high-speed bus interchanger 10 is used for and the business board interaction data, each business board is coupled together by the wiring of the SerDes on the backboard, make each business board to intercourse data by this Switch device; Ethernet switch hub 20 is used for and the mutual control information of business board; Master control borad controller 30, for example as the RC of system initialization and configuration management, this RC generally is arranged in the CPU of master control borad, be connected with ethernet switch hub with PCI high-speed bus interchanger respectively, be used to detect business board when not on the throne, the PCI high-speed bus link of control PCI high-speed bus interchanger business board correspondence is set to the link off-position; The detection business board is on the throne, and business board is determined that its interface board is on the throne and is connected just often with physical interface, the PCI high-speed bus link of notice PCI high-speed bus interchanger business board correspondence is set to link working state, and is set to equipment working state by ethernet switch hub informing business plate PCI high-speed bus port.
Master control borad controller 30 specifically comprises: detecting unit 31 is used to detect business board state on the throne; Link State is provided with unit 32, is connected with detecting unit 31, is used for business board when not on the throne, be not the business board power supply, and the PCI high-speed bus link of business board correspondence is set to the link off-position; When business board is on the throne, be the business board power supply, and interface board is on the throne to be connected just often with physical interface when business board detects, the PCI high-speed bus link of business board correspondence is set to link working state; Equipment state control unit 33 is provided with unit 32 with Link State and is connected, and when being used for PCI high-speed bus link and being operating state, informing business plate PCI high-speed bus port is set to equipment working state.
Business board specifically comprises as shown in Figure 5: PCI high-speed bus port one 00 is used for and the master control borad interaction data; Business board controller 200, be connected with PCI high-speed bus port one 00, be used for determining that interface board own is on the throne is connected just often with physical interface, the PCI high-speed bus link of informing business plate correspondence is set to link working state, and is set to equipment working state according to master control borad indication PCI high-speed bus port.
Business board controller 200 specifically comprises: interface board detecting unit 210, and whether be used to detect interface board on the throne; Physical interface detecting unit 220 is connected with interface board detecting unit 210, and whether the connection that is used for determining detecting when interface board is on the throne physical interface is normal; Notification unit 230 is connected with physical interface detecting unit 220 with interface board detecting unit 210, is used for when all on the throne, and the PCI high-speed bus link of informing business plate correspondence is set to link working state; PCI high-speed bus port status control unit 240 is used for being set to equipment working state according to master control borad indication PCI high-speed bus port; Frequency switch unit 250 is used for when link off-position and equipment electricity-saving state, reduces the operating frequency of business board CPU; When link working state and equipment working state, recover the operating frequency of business board CPU.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the memory interface, comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.