How to power off management devices, chips, PCIe cards, and service processing devices
By designing and managing the connection between the PCIe device, clock buffer and power supply module, and combining software logic, the power-down control of the PCIe device is realized, solving the problem of high power consumption of PCIe devices in low business volume or idle states. On different models of host equipment.
Patent Information
- Application Number
- CN202210615460.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-31
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2042-05-31
AI Technical Summary
In the prior art, PCIe equipment is difficult to implement power-down processing when the traffic volume is small or idle, resulting in high power consumption and lack of power-down methods suitable for different types of host equipment.
Design a management device to realize resetting the PCIe device, invalid clock signal and power supply control through connection with the host device, service processing device, clock buffer and power supply module, combined with software logic, and to realize power supply control of the service processing device. ability.
It realizes power-down operation of PCIe equipment, reduces power consumption, saves energy, and is suitable for different models of host equipment, expanding the scope of power-down.
Smart Images

Figure CN115017079B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of chip technology, and in particular to a method for powering off a management device, a chip, a PCIe card, and a business processing device. Background Art
[0002] PCIe devices consume a lot of power. Therefore, if the PCIe devices can be powered off when the traffic is low or even idle, the power consumption can be effectively reduced. In the related art, the PCIe devices can only be powered off by a specific type of host device. This PCIe device power-off method has a small scope of application. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a power-off method and device for a management device, a chip, a PCIe card, and a business processing device.
[0004] In a first aspect, the present disclosure provides a management device, the management device is used to control a service processing device to be powered off, and after being powered on, the service processing device is synchronized with a signal of a host device in response to a clock signal output by a clock buffer under power supply by a power supply module; the management device includes:
[0005] A first input port, connected to the host device, and used to obtain a reset signal from the host device;
[0006] A first output port, connected to a service processing device, and configured to control the service processing device to reset in response to the first input port receiving the reset signal;
[0007] A second output port, connected to a clock buffer, for invalidating a clock signal output by the clock buffer to the service processing device in response to a successful reset of the service processing device;
[0008] The third output port is connected to the power supply module and is used to control the power supply module to stop supplying power to the business processing device in response to the clock signal output by the clock buffer to the business processing device being invalid.
[0009] Optionally, in some embodiments of the present disclosure, the service processing device includes at least one of a PCIe device or a switch.
[0010] Optionally, in some embodiments of the present disclosure, there are multiple power supply modules, each of which is connected to one of the business processing devices; the third output port controls the power supply module connected to the target business processing device to stop supplying power based on an instruction for specifying the target business processing device received by the first input port, and the instruction is sent by the host device.
[0011] Optionally, in some embodiments of the present disclosure, the number of the service processing devices is greater than or equal to 1, and the number of the first output port, the second output port, and the third output port of the management device are all adapted to the number of the service processing devices;
[0012] Each first output port corresponds to one of the business processing devices, and is used to control the corresponding business processing device to reset; each second output port corresponds to one of the business processing devices, and is used to control the clock signal input to the corresponding business processing device to be invalid; each third output port corresponds to one of the business processing devices, and is used to control the power supply module connected to the corresponding business processing device to stop supplying power.
[0013] Optionally, in some embodiments of the present disclosure, when the reset signal is in an invalid state, the management device adjusts the level state of the reset signal to a valid state based on an instruction sent by the host device; when the reset signal is in a valid state, the first output port controls the reset of the business processing device.
[0014] Optionally, in some embodiments of the present disclosure, the first input port is also used to receive a clock output enable signal sent by a host device, and the second output port is used to send the clock output enable signal to the clock buffer in response to a successful reset of the business processing device, so as to invalidate the clock signal output by the clock buffer to the business processing device.
[0015] Optionally, in some embodiments of the present disclosure, the first input port is also used to receive a power output enable signal sent by a host device, and the third output port is used to send the power output enable signal to the power supply module in response to the clock signal output by the clock buffer to the business processing device being invalid, so as to control the power supply module to stop supplying power to the business processing device.
[0016] Optionally, in some embodiments of the present disclosure, the first output port is used to send the reset signal to the service processing device in response to the first input port receiving the reset signal, so as to control the service processing device to reset.
[0017] In a second aspect, the present disclosure provides a chip, comprising the management device described in the first aspect.
[0018] In a third aspect, the present disclosure provides a PCIe card, the PCIe card comprising:
[0019] A service processing device, used for processing service data sent by a host device;
[0020] A clock buffer, used to output a clock signal to the service processing device;
[0021] A power supply module, used to supply power to the service processing device;
[0022] And the management device described in the first aspect above is used to control the power off of the business processing device.
[0023] In a fourth aspect, the present disclosure provides an electronic device, wherein the electronic device is provided with a PCIe slot, wherein the slot is used to insert the PCIe card described in the third aspect.
[0024] In a fifth aspect, the present disclosure provides a method for powering off a service processing device, which is applied to the management device described in the first aspect, and the method includes:
[0025] Receive a reset signal sent by a host device;
[0026] In response to receiving the reset signal, controlling the service processing device to reset;
[0027] In response to the service processing device being successfully reset, invalidating a clock signal output by a clock buffer to the service processing device;
[0028] In response to the clock signal output by the clock buffer to the service processing device being invalid, the power supply module is controlled to stop supplying power to the service processing device.
[0029] In a sixth aspect, the present disclosure provides a power-off method for a service processing device, which is applied to a host device, wherein the host device is communicatively connected to the management device described in the first aspect, and the method includes:
[0030] Sending a reset signal to the management device so that the management device controls the service processing device to reset;
[0031] Sending a clock output enable signal to the management device, so that the management device performs invalid processing on the clock signal output by the clock buffer to the service processing device when the service processing device is successfully reset;
[0032] A power output enable signal is sent to the management device, so that the management device controls the power supply module to stop supplying power to the business processing device when the clock signal output by the clock buffer to the business processing device is invalid.
[0033] In a seventh aspect, the present disclosure provides a power-off device for a service processing device, which is applied to the management device described in the first aspect, and the device includes:
[0034] A receiving module, used for receiving a reset signal sent by a host device;
[0035] A first control module, configured to control the service processing device to reset in response to receiving the reset signal;
[0036] A second control module, configured to, in response to the service processing device being successfully reset, invalidate a clock signal output by a clock buffer to the service processing device;
[0037] The third control module is used to control the power supply module to stop supplying power to the business processing device in response to the clock signal output by the clock buffer to the business processing device being invalid.
[0038] In an eighth aspect, the present disclosure provides a power-off device for a service processing device, which is applied to a host device, wherein the host device is communicatively connected to the management device described in the first aspect, and the device includes:
[0039] A first sending module, configured to send a reset signal to the management device so that the management device controls the service processing device to reset;
[0040] A second sending module, used for sending a clock output enable signal to the management device, so that the management device performs invalid processing on the clock signal output by the clock buffer to the service processing device when the service processing device is reset successfully;
[0041] The third sending module is used to send a power output enable signal to the management device, so that the management device controls the power supply module to stop supplying power to the business processing device when the clock signal output by the clock buffer to the business processing device is invalid.
[0042] In a ninth aspect, the present disclosure provides a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in any one of the fifth or sixth aspects is implemented.
[0043] In a tenth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the methods described in the fifth or sixth aspects above. The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
[0044] The first output port of the management device is connected to the business processing device, the second output port is connected to the clock buffer, and the third output port is connected to the power supply module, so that the management device has the structural basis for powering off the business processing device. Through software logic, the management device can realize reset control, invalid control of clock signals and power-off control of the business processing device based on the above connection relationship, so that the management device has the ability to control the power-off of the business processing device, realize the power-off operation of the business processing device, and then reduce the power consumption of the business processing device and save energy. It can be seen that the present disclosure adjusts the structure of the management device and combines software logic to control the power-off of the business processing device, and has no special requirements for the model of the host device, and has a wide range of applications.
[0045] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0047] Figure 1A The invention is a schematic diagram of a circuit structure of a PCIe card including a PCIe device.
[0048] Figure 1B The invention is a circuit structure diagram of a PCIe card including multiple PCIe devices.
[0049] Figure 1C The figure is a schematic diagram of a connection relationship of a management device for controlling power-off of a single PCIe device according to an exemplary embodiment of the present disclosure.
[0050] Figure 1D The diagram is a connection relationship diagram of a management device for controlling power-off of multiple PCIe devices according to an exemplary embodiment of the present disclosure.
[0051] Figure 1E The present invention is a schematic diagram showing a connection relationship between a power supply module and a service processing device according to an exemplary embodiment.
[0052] Figure 2A It is a schematic diagram of the connection relationship of the first output port of a management device in a scenario of multiple PCIe devices according to an exemplary embodiment of the present disclosure.
[0053] Figure 2B It is a schematic diagram of the connection relationship of the second output port of a management device in a scenario of multiple PCIe devices according to an exemplary embodiment of the present disclosure.
[0054] Figure 2CIt is a schematic diagram of the connection relationship of the third output port of a management device in a scenario of multiple PCIe devices according to an exemplary embodiment of the present disclosure.
[0055] Figure 3A The present invention is a flowchart of a method for powering off a service processing device according to an exemplary embodiment of the present invention.
[0056] Figure 3B The present invention is a flowchart of a method for powering off a service processing device according to another exemplary embodiment of the present invention.
[0057] Figure 4 It is a hardware structure diagram of a computer device where a power-off device of a business processing device shown in the present disclosure is located.
[0058] Figure 5A The present disclosure provides a block diagram of a device for powering off a service processing device according to an exemplary embodiment.
[0059] Figure 5B The present disclosure provides a block diagram of another device for powering off a service processing device according to an exemplary embodiment. DETAILED DESCRIPTION
[0060] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0061] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0062] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0063] PCIe (Peripheral Component Interconnect Express) is a high-speed serial computer expansion bus standard. Devices that comply with the PCIe bus standard are PCIe devices, such as PCIe graphics cards, PCIe network cards, PCIe sound cards, FPGA (Field Programmable Gate Array) chips, etc. PCIe devices are generally integrated into PCIe cards. PCIe cards are printed circuit boards with integrated PCIe devices and PCIe interfaces. They are inserted into the PCIe slots of host devices for use, such as Figure 1A and Figure 1B , which is a schematic diagram of the structure of a PCIe card including a PCIe device.
[0064] Figure 1A The structure diagram of the PCIe card includes a PCIe device. The PCIe device 110 is connected to the host device 120 through a gold finger (not shown in the figure) to obtain the service data to be processed, the reset signal and the clock signal sent by the host device 120. The transmission of the service data to be processed, the reset signal and the clock signal corresponds to a signal channel respectively. Among them, the service data to be processed is related to the service scenario of the PCIe device. For example, when applied to the GPU (Graphic Processing Unit, Graphics Processing Unit) accelerated computing scenario, the service data to be processed can be the image data to be displayed. When applied to the FPGA accelerated computing scenario, the service data to be processed can be the relevant data for training the neural network. The function of the reset signal is to control the PCIe device to restore the initial state. The reset signal is generally valid when it is at a low level. The function of the clock signal is to ensure the synchronization of the PCIe device and the host device signal, so that the PCIe device and the host device process data at the same frequency and cycle. The management device 130 is connected to the host device 120 through the gold finger and receives the control instructions sent by the host device via the SMBUS signal channel. The power supply module 140 is connected to the PCIe device 110 to supply power to the PCIe device. The power supply 150 is provided by the host device 120. The power supply module 140 converts the power (eg, 3.3V, 3.3V AUX, 12V) provided by the host device 120 into the voltage required by the PCIe device 110 and then outputs it.
[0065] Figure 1B A schematic diagram of the structure of a PCIe card including multiple PCIe devices. Figure 1AThe structure shown further includes a switch 160 and a clock buffer 170. The switch 160 and the clock buffer 170 are connected to the host device 120 through a gold finger (not shown in the figure), and are respectively connected to each PCIe device 110. The switch 160 distributes the service data to be processed sent by the host device to each PCIe device, and the clock buffer 170 distributes the clock signal sent by the host device to each PCIe device 110 and the switch 160.
[0066] When the PCIe device is working, the reset signal is in an invalid state, and the service data sent by the host device is processed based on the frequency provided by the clock signal. Among them, the reset signal is directly input into the PCIe device through the gold finger, the service data to be processed is directly input into the PCIe device through the gold finger or forwarded by the switch to the PCIe device (in the case of multiple PCIe devices), and the clock signal is directly input into the PCIe device through the gold finger or forwarded by the clock buffer (in the case of multiple PCIe devices). In the related art, the power consumption of PCIe devices is relatively large. Therefore, in some states with less business volume or even idle, if the PCIe device can be powered off, the power consumption can be effectively reduced. According to the PCIE CEM specification, the power-off process of the PCIe device needs to perform the following steps in sequence: stop processing business data, reset to the initial state, invalid clock signal, and power-off operation. In the related art, the PCIe device can only be powered off through a specific model of host device with hot-swappable function. The mainstream host device does not have the ability to power off the PCIe device, resulting in the problem of energy waste caused by high power consumption of PCIe devices in low business volume or idle state. There is a lack of a power-off method for PCIe devices that is universal for different models of host devices. In addition, the switch will also generate a certain amount of power consumption when it is in working state. If the switch is also powered off when the PCIe device is powered off in idle state, the energy consumption can be further reduced.
[0067] In view of the problems in the above-mentioned related technologies, the present disclosure proposes a management device for controlling the power-off of a service processing device. On the basis of adjusting the connection relationship between the management device and the host device, the service processing device, the clock buffer, and the power supply module, the management device is provided with the ability to control the power-off of the service processing device by adding software logic for controlling the power-off of the service processing device in the management device. The service processing device can be a PCIe device or a switch. The following description takes the service processing device as a PCIe device as an example.
[0068] The number of PCIe devices controlled by the management device can be one or more. Figure 1CAs shown is a connection relationship diagram of a management device for controlling the power-off of a single PCIe device according to an exemplary embodiment of the present disclosure, the first input port 131 of the management device 130 is connected to the host device, and is used to receive a reset signal sent by the host device; the first output port 132 is connected to the PCIe device 110, and transmits the received reset signal to the PCIe device 110, and controls the PCIe device 110 to reset based on the reset signal received by the first input port 131; the second output port 133 is connected to the clock buffer 170, and when the PCIe device 110 is reset successfully, the clock signal output by the clock buffer 170 to the PCIe device 110 is controlled to be invalid; the third output port 134 is connected to the power supply module, and when the clock signal output by the clock buffer 170 to the PCIe device 110 is invalid, the power supply module 140 is controlled to stop supplying power to the PCIe device 110.
[0069] Compared with the connection relationship of the management device in the related art, the connection between the management device and the clock buffer, the management device and the power supply module, and the management device and the PCIe device is added, so that the management device has the structural basis for powering off the PCIe device. In addition, through software logic, the management device can control the clock signal output from the clock buffer to the PCIe device, the power supply state of the PCIe device by the power supply module, and the reset of the PCIe device based on the above connection relationship, thereby realizing the power-off processing of the PCIe device. It can be seen that the present disclosure adjusts the structure of the management device and controls the power-off of the PCIe device in combination with the software logic. There is no special requirement for the model of the host device, and it is suitable for different models of host devices to realize the power-off of the PCIe device.
[0070] As mentioned above, when the PCIe device is working normally, the reset signal output by the management device to the PCIe device is in an invalid state, and the PCIe device processes the service data sent by the host device based on the frequency of the clock signal sent by the clock buffer. When the business volume is small or even idle, or when triggered by other trigger conditions, it may be necessary to reduce the power consumption of the PCIe device. At this time, the PCIe device can be powered off by the management device. First, the host device stops sending service data to the PCIe device, and then the host device controls the PCIe device to power off by sending a control signal or control instruction to the management device. The specific power-off process is as follows:
[0071] (1) The first input port of the management device receives the reset signal sent by the host device, and sends the reset signal to the PCIe device through the first output port to control the reset of the PCIe device. The PCIe device can be successfully reset only when the reset signal is in a valid state. Generally, whether the reset signal is valid is determined by the level of the reset signal. When the low level is valid, the host device sends a low-level reset signal to the management device to control the first output port of the management device to output a low-level reset signal to the PCIe device to reset the PCIe device.
[0072] In addition, the method of controlling the reset of the PCIe device can also be that when the reset signal currently outputted from the first output port to the PCIe device is in an invalid state (such as a high level state), the host device sends a control instruction to the management device, and the management device adjusts the level state of the reset signal outputted from the first output port to the PCIe device to a valid state (such as a low level state) based on the control instruction. It should be noted that the control instruction sent by the host device is transmitted to the management device based on the SMBUS channel, and the hardware logic and port state of the successfully reset PCIe device are restored to the initial state.
[0073] (2) The first input port of the management device receives the clock output enable signal sent by the host device. When the PCIe device is successfully reset, the second output port sends the clock output enable signal to the clock buffer to invalidate the clock signal output by the clock buffer to the PCIe device. The clock output enable signal is a control signal that controls the clock signal to be in a valid or invalid state and is transmitted to the management device based on the SMBUS channel. When the clock signal is in an invalid state, the PCIe device maintains the initial state and no longer updates the state.
[0074] (3) The first input port of the management device receives the power output enable signal sent by the host device. When the clock signal output by the clock buffer to the PCIe device is invalid, the third output port sends the power output enable signal to the power supply module, so that the power supply module stops supplying power to the PCIe device. The power output enable signal is a control signal that controls the clock signal to be in a valid or invalid state, and is transmitted to the management device based on the SMBUS channel. After the PCIe device loses power supply, it no longer consumes energy, thereby saving energy.
[0075] In the scenario where the management device controls the power-off of multiple PCIe devices, the service processing device also includes a switch. Figure 1D FIG. 1 is a schematic diagram showing a connection relationship of a management device for controlling power-off of multiple PCIe devices according to an exemplary embodiment of the present disclosure. The management device is based on Figure 1CThe connection relationship shown controls each PCIe device. On this basis, the management device also has the following connection relationship to control the power off of the switch: the first output port 132 of the management device 130 is connected to the switch 160, and controls the reset of the switch 160 based on the reset signal received by the first input port 131; the second output port 133 is also used to invalidate the clock signal output by the clock buffer 170 to the switch 160 when the PCIe device 110 is successfully reset; the third output port 134 is also used to control the power supply module 140 to stop supplying power to the switch 160 when the clock signal output by the clock buffer 170 to the switch 160 is invalid. In addition, the switch 160 is respectively connected to each PCIe device 110 to send service data to each PCIe device 110. It should be noted that Figure 1D The connection relationship shown only shows one possible connection relationship and does not limit the number of the first output port, the second output port and the third output port of the management device. The number of the first output port, the second output port and the third output port in the management device can be one or more.
[0076] When the switch is in working state, it will also generate certain power consumption. When the PCIe device is idle, or under other triggering conditions, the PCIe device is powered off and the switch is also powered off to further reduce energy consumption. The process of controlling the switch to power off through the management device is similar to the specific process of controlling the PCIe device to power off, and the present disclosure will not repeat it here.
[0077] In the scenario where the management device controls the power off of multiple service processing devices, the power supply module supplies power to multiple PCIe devices and switches. The number of power supply modules can be one or more. When there are multiple power supply modules, each power supply module can only supply power to one service processing device (PCIe device or switch). The power supply modules connected to each service processing device are different, and the same service processing device can be connected to multiple power supply modules. Figure 1EThe figure shows a schematic diagram of the connection relationship between a power supply module and a business processing device. The business processing device 180 is connected to six power supply modules 140 to obtain power support. The power supply 150 can be any one of 3.3V, 3.3V AUX, and 12V provided by the host device. The business processing device 180 can be a PCIe device or a switch. When the power supply modules connected to each business processing device are independent of each other, the power-off of each business processing device can be controlled separately. For example, the management device controls the power-off of PCIe device #1, PCIe device #2, and the switch. When the business volume is small, the management device can only control the power supply module connected to PCIe device #1 to stop supplying power to PCIe device #1 to save energy, while the power supply modules connected to PCIe device #2 and the switch maintain the power supply state.
[0078] The process of the management device controlling a single business processing device is as follows: the host device sends an instruction for specifying the target business processing device to the management device, and the management device performs power-off processing on the target business processing device based on the power-off process of the aforementioned PCIe device. The host device may send an instruction for specifying the target business processing device before sending a reset signal to the management device, or may send an instruction for specifying the target business processing device while sending a reset signal, a clock output enable signal, and a power output enable signal to the management device. The host device may specify the target business processing device by carrying the identifier of the target business processing device in the instruction. The identifier of the target business processing device may be a MAC address, an IP address, or other identifiers used to distinguish different business processing devices. The number of target business processing devices may be one or more. Assuming that there are three PCIe devices applied to the GPU accelerated computing scenario, when there is less image data to be processed, only one PCIe device is needed to complete the rendering and display of the image data. In this case, at least one of the other two PCIe devices may be powered off to reduce energy consumption.
[0079] In the scenario where the management device controls the power-off of multiple business processing devices, the number of the first output port, the second output port, and the third output port in the management device can be adapted to the number of business processing devices. Adapting to the number of business processing devices means that the number of the first output port, the second output port, and the third output port are not less than the number of business processing devices, and each business processing device corresponds to a first output port, a second output port, and a third output port, respectively. The management device controls the power-off of the business processing device through the output port corresponding to the business processing device. Next, combined with Figure 2A , Figure 2B and Figure 2CThe connection relationship of the management device when the first port, the second port and the third port are adapted to the number of service processing devices is described respectively, wherein the service processing device includes a PCIe device and a switch.
[0080] like Figure 2A The figure shows a schematic diagram of the connection relationship of the first output ports of the management device in a scenario of multiple PCIe devices according to an exemplary embodiment of the present disclosure. The management device 130 has three first output ports 132, namely, the first output port a, the first output port b and the first output port c. The expression "first output port 132" hereinafter means any one of the first output port a, the first output port b or the first output port c, and the expression "PCIe device 110" means any one of the PCIe device B or the PCIe device C. Each first output port 132 is connected to a PCIe device 110 or a switch 160, and is used to control the reset of the corresponding PCIe device 110 or switch 160. Among them, the first output port a is connected to the switch 160, the first output port b is connected to the PCIe device B, and the first output port c is connected to the PCIe device C.
[0081] like Figure 2B The figure shows a schematic diagram of the connection relationship of the second output port of the management device in a scenario of multiple PCIe devices according to an exemplary embodiment of the present disclosure. The management device 130 has three second output ports 133, namely, the second output port d, the second output port e, and the second output port f. The clock buffer 170 has three clock input ports 171, namely, the clock input port d2, the clock input port e2, and the clock input port f2; and also has three clock output ports 172, namely, the clock output port d3, the clock output port e3, and the clock output port f3. In the following text, the expression "second output port 133" means any one of the second output port d, the second output port e and the second output port f; the expression "clock input port 171" means any one of the clock input port d2, the clock input port e2 and the clock input port f2; the expression "clock output port 172" means any one of the clock output port d3, the clock output port e3 and the clock output port f3; the expression "PCIe device 110" means any one of the PCIe device E or the PCIe device F.
[0082] Each second output port 133 is connected to a clock input port 171 of a clock buffer, and each clock input port 171 corresponds to a clock output port 172 connected to a PCIe device 110 or a switch 160, and is used to control the clock output enable signal of the clock buffer 170 to output an invalid clock signal to the PCIe device 110 or the switch 160, which is output from the second output port 133 to the clock input port 171, and the clock buffer 170 performs invalid processing on the clock signal sent to the PCIe device 110 or the switch 160 through the clock output port 172. Among them, the second output port d is connected to the clock input port d2 of the clock buffer, corresponding to the clock output port d3 of the clock buffer 170, and the clock output port d3 is connected to the switch 160; the second output port e is connected to the clock input port e2 of the clock buffer 170, corresponding to the clock output port e3 of the clock buffer 170, and the clock output port e3 is connected to the PCIe device E; the second output port f of the management device 130 is connected to the clock input port f2 of the clock buffer 170, corresponding to the clock output port f3 of the clock buffer 170, and the clock output port f3 is connected to the PCIe device F.
[0083] like Figure 2C The figure shows a connection relationship diagram of the third output port of the management device in a scenario of multiple PCIe devices according to an exemplary embodiment of the present disclosure. The management device 130 has three third output ports 134, namely, the third output port g, the third output port h and the third output port i. The expression "third output port 134" hereinafter means any one of the third output port g, the third output port h and the third output port i, and the expression "PCIe device 110" means any one of the PCIe device H or the PCIe device I. Each third output port 134 is connected to a power supply module for supplying power to a PCIe device 110 or a switch 160, and is used to control the power supply module connected thereto to stop supplying power to the corresponding PCIe device 110 or the switch 160. Among them, the third output port g is connected to the power supply module 141 corresponding to the switch 160; the third output port h is connected to the power supply module 142 corresponding to the PCIe device H, and is used to send a power output enable signal to the power supply module 142 to control the power supply module 142 to stop supplying power; the third output port i is connected to the power supply module 143 corresponding to the PCIe device I, and is used to send a power output enable signal to the power supply module 143 to control the power supply module 143 to stop supplying power.
[0084] The management device is usually integrated in a chip and used as a component of a PCIe card, and starts working when the PCIe card is inserted into a PCIe slot provided by a host device. The present disclosure also provides a chip including the management device described in any of the aforementioned embodiments, a PCIe card including the management device described in any of the aforementioned embodiments, and an electronic device having a slot for inserting the PCIe card.
[0085] Corresponding to the specific process of controlling power-off of the aforementioned management device, the present disclosure also provides a method for powering off a service processing device of the management device in any of the aforementioned embodiments, including: Figure 3A Steps shown:
[0086] Step 301, receiving a reset signal sent by a host device;
[0087] Step 302, after receiving the reset signal, control the service processing device to reset;
[0088] Step 303, when the service processing device is reset successfully, the clock signal output by the clock buffer to the service processing device is invalidated;
[0089] Step 304: When the clock signal output by the clock buffer to the service processing device is invalid, control the power supply module to stop supplying power to the service processing device.
[0090] Accordingly, the present disclosure also provides a method for powering off a service processing device of a host device connected to a management device in any of the above embodiments, comprising: Figure 3B Steps shown:
[0091] Step 305, sending a reset signal to the management device so that the management device controls the service processing device to reset;
[0092] Step 306, sending a clock output enable signal to the management device, so that the management device disables the clock buffer from outputting a clock signal to the service processing device when the service processing device is successfully reset;
[0093] Step 307: Send a power output enable signal to the management device, so that the management device controls the power supply module to stop supplying power to the service processing device when the clock signal output by the clock buffer to the service processing device is invalid.
[0094] The process of powering off a single service processing device is performed according to the following steps:
[0095] Step 310, the host device sends a valid reset signal and an identifier of the target service processing device to the management device;
[0096] Step 311: The management device outputs a reset signal to the target service processing device through a first output port connected to the target service processing device to reset the target service processing device.
[0097] Step 312, the host device sends a clock output enable signal to the management device;
[0098] Step 313, when the target service processing device is successfully reset, the management device sends a clock output enable signal to the clock buffer through the second output port corresponding to the target service processing device, so as to invalidate the clock signal output by the clock buffer to the target service processing device;
[0099] Step 314: the host device sends a power output enable signal to the management device.
[0100] Step 315: When the clock signal output by the clock buffer to the target business processing device is invalid, the management device sends a power output enable signal to the power supply module of the target business processing device through the third output port corresponding to the target business processing device to control the power supply module to stop supplying power to the target business processing device.
[0101] As for the method embodiment, since it basically corresponds to the embodiment of the aforementioned management device, the relevant parts may be referred to the partial description of the embodiment of the management device, which will not be repeated here.
[0102] Corresponding to the embodiments of the aforementioned method, the present disclosure also provides an embodiment of a power-off device of a service processing equipment and a terminal to which the device is applied.
[0103] The embodiments of the power-off device for a business processing device disclosed in the present invention can be applied to electronic devices. The device embodiments can be implemented by software, or by hardware, or by a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by a processor reading the corresponding computer program instructions in the non-volatile memory into the memory and running them. From the hardware level, if Figure 4 As shown, it is a hardware structure diagram of an electronic device where the power-off device of the service processing device in the embodiment of the present disclosure is located. Figure 4 In addition to the processor 410, memory 430, network interface 420, and non-volatile memory 440 shown, the electronic device where the device 431 is located in the embodiment may also include other hardware according to the actual function of the electronic device, which will not be described in detail.
[0104] like Figure 5A As shown, Figure 5A is a block diagram of a power-off device of a service processing device according to an exemplary embodiment of the present disclosure, which is applied to the management device described in any of the above embodiments, and the device includes:
[0105] The receiving module 510 is used to receive a reset signal sent by a host device;
[0106] A first control module 520, configured to control the service processing device to reset in response to receiving the reset signal;
[0107] A second control module 530 is used to invalidate a clock signal output by the clock buffer to the service processing device in response to the service processing device being successfully reset;
[0108] The third control module 540 is configured to control the power supply module to stop supplying power to the service processing device in response to the clock signal output by the clock buffer to the service processing device being invalid.
[0109] like Figure 5B As shown, Figure 5B This is a block diagram of a power-off device of a service processing device according to another exemplary embodiment of the present disclosure, which is applied to a host device, and the host device is communicatively connected with the management device described in any of the aforementioned embodiments, and the device includes:
[0110] A first sending module 550 is used to send a reset signal to the management device so that the management device controls the service processing device to reset;
[0111] The second sending module 560 is used to send a clock output enable signal to the management device, so that the management device can invalidate the clock signal output by the clock buffer to the service processing device when the service processing device is successfully reset;
[0112] The third sending module 570 is used to send a power output enable signal to the management device, so that the management device controls the power supply module to stop supplying power to the service processing device when the clock signal output by the clock buffer to the service processing device is invalid.
[0113] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0114] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art can understand and implement it without paying creative labor.
[0115] Accordingly, this specification also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in any of the foregoing method embodiments when executing the program. In addition, this specification also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by the processor, the method described in any of the foregoing method embodiments is implemented.
[0116] The above describes specific embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0117] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0118] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
[0119] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the scope of protection of the present disclosure.
Claims
1. A management device, It is characterized in that The management device is used to control the service processing device to power off, and after being powered on, the service processing device is synchronized with the signal of the host device in response to the clock signal output by the clock buffer under the power supply of the power supply module; The management device comprises: A first input port, connected to the host device, and used to obtain a reset signal from the host device; A first output port, connected to a service processing device, and configured to control the service processing device to reset in response to the first input port receiving the reset signal; A second output port, connected to a clock buffer, for invalidating a clock signal output by the clock buffer to the service processing device in response to a successful reset of the service processing device; The third output port is connected to the power supply module and is used to control the power supply module to stop supplying power to the business processing device in response to the clock signal output by the clock buffer to the business processing device being invalid.
2. The management device according to claim 1, It is characterized in that The service processing device includes at least one of a PCIe device and a switch.
3. The management device according to claim 2, It is characterized in that There are multiple power supply modules, each of which is connected to one of the business processing devices; the third output port controls the power supply module connected to the target business processing device to stop supplying power based on the instruction for specifying the target business processing device received by the first input port, and the instruction is sent by the host device.
4. The management device according to any one of claims 1 to 3, It is characterized in that The number of the service processing devices is greater than or equal to 1, and the number of the first output port, the second output port and the third output port of the management device are all adapted to the number of the service processing devices; Each first output port corresponds to one of the business processing devices, and is used to control the corresponding business processing device to reset; each second output port corresponds to one of the business processing devices, and is used to control the clock signal input to the corresponding business processing device to be invalid; each third output port corresponds to one of the business processing devices, and is used to control the power supply module connected to the corresponding business processing device to stop supplying power.
5. The management device according to claim 1, It is characterized in that When the reset signal is in an invalid state, the management device adjusts the level state of the reset signal to a valid state based on the instruction sent by the host device; When the reset signal is in a valid state, the first output port controls the service processing device to reset.
6. The management device according to claim 1, It is characterized in that The first input port is also used to receive a clock output enable signal sent by a host device, and the second output port is used to send the clock output enable signal to the clock buffer in response to a successful reset of the business processing device, so as to invalidate the clock signal output by the clock buffer to the business processing device.
7. The management device according to claim 1, It is characterized in that The first input port is also used to receive a power output enable signal sent by a host device, and the third output port is used to send the power output enable signal to the power supply module in response to the clock signal output by the clock buffer to the business processing device being invalid, so as to control the power supply module to stop supplying power to the business processing device.
8. The management device according to claim 1, It is characterized in that The first output port is used for sending the reset signal to the service processing device in response to the first input port receiving the reset signal, so as to control the service processing device to reset.
9. A chip, It is characterized in that Comprising the management device described in any one of claims 1-8.
10. A PCIe card, It is characterized in that include: A service processing device, used for processing service data sent by a host device; A clock buffer, used to output a clock signal to the service processing device; A power supply module, used to supply power to the service processing device; as well as The management device according to any one of claims 1 to 8 is used to control the power off of the business processing device.
11. An electronic device, It is characterized in that The electronic device is provided with a PCIe slot, and the slot is used to insert the PCIe card according to claim 10.
12. A method for powering off a business processing device, It is characterized in that Applied to the management device according to any one of claims 1 to 8, the method comprising: Receive a reset signal sent by a host device; In response to receiving the reset signal, controlling the service processing device to reset; In response to the service processing device being successfully reset, invalidating a clock signal output by a clock buffer to the service processing device; In response to the clock signal output by the clock buffer to the service processing device being invalid, the power supply module is controlled to stop supplying power to the service processing device.
13. A power-off device for a business processing device, It is characterized in that Applied to the management device according to any one of claims 1 to 8, the device comprising: A receiving module, used for receiving a reset signal sent by a host device; A first control module, configured to control the service processing device to reset in response to receiving the reset signal; A second control module, configured to, in response to the service processing device being successfully reset, invalidate a clock signal output by a clock buffer to the service processing device; The third control module is used to control the power supply module to stop supplying power to the business processing device in response to the clock signal output by the clock buffer to the business processing device being invalid.
14. A power-off device for a business processing device, It is characterized in that Applied to a host device, the host device is communicatively connected to the management device according to any one of claims 1 to 8, and the device comprises: A first sending module, configured to send a reset signal to the management device so that the management device controls the service processing device to reset; A second sending module, used for sending a clock output enable signal to the management device, so that the management device performs invalid processing on the clock signal output by the clock buffer to the service processing device when the service processing device is reset successfully; The third sending module is used to send a power output enable signal to the management device, so that the management device controls the power supply module to stop supplying power to the business processing device when the clock signal output by the clock buffer to the business processing device is invalid.
15. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to claim 12 is implemented.
