A power consumption control method, device, equipment, medium and product in cross-domain transmission

By integrating a power control unit within a non-transparent endpoint device, dynamically adjusting the step level, and employing clock gating technology, the fine-grained control and real-time performance issues of traditional NTEP power management are resolved, enabling efficient cross-domain transmission.

CN120750681BActive Publication Date: 2026-01-09SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511172593.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-08-21
Publication Date
2026-01-09
Estimated Expiration
2045-08-21

AI Technical Summary

Technical Problem

Traditional NTEP power management is difficult to achieve fine-grained control, and the wake-up process is time-consuming, which cannot meet the requirements of cross-domain transmission scenarios with high real-time requirements.

Method used

A power consumption control unit is integrated inside the non-transparent endpoint device. By monitoring the number of idle cycles in the data path, the step level threshold is dynamically adjusted. Clock gating and low-power control technologies are used for fine-grained power consumption management, and the device configuration is automatically restored when cross-domain transmission requests are made.

Benefits of technology

It achieves fine-grained power consumption control of the internal transmission function of NTEP, shortens the wake-up latency, ensures the real-time and high efficiency of cross-domain transmission, and avoids energy waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120750681B_ABST
    Figure CN120750681B_ABST
Patent Text Reader

Abstract

The application discloses a power consumption control method and device in cross-domain transmission, equipment, medium and product, relates to the technical field of hardware interconnection, and is applied to a power consumption control unit. The power consumption control unit is integrated in a non-transparent end point device. The method comprises the following steps: comparing the current idle period number of a local data path with a current step level threshold value to determine a current first step level of the non-transparent end point device; the current step level threshold value is calculated based on idle period sample values in a current sliding window; a target power consumption control strategy corresponding to the current first step level is used to perform a power consumption control operation on the non-transparent end point device; a current second step level of the non-transparent end point device is determined when a wake-up signal sent by a target slave interface is acquired; the target slave interface sends the wake-up signal after detecting a cross-domain transmission request; and a target recovery strategy corresponding to the current second step level is used to control the non-transparent end point device to recover to an original configuration corresponding to the cross-domain transmission request.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of hardware interconnection technology, and in particular to a power consumption control method, apparatus, device, medium and product for cross-domain transmission. Background Technology

[0002] PCIe (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) is the current mainstream high-speed serial bus standard, supporting high-speed data transmission between devices. NTB (Non-Transparent Bridge), as a special type of PCIe bridging device, allows transparent communication between two independent PCIe domains (such as different hosts), enabling cross-domain device sharing. The basic structure of a traditional NTB consists of a source NTEP (Non-Transparent Endpoint) and a destination NTEP, forming an NTEP pair. This pair is responsible for key functions such as address translation and ID translation, ensuring that intra-domain and inter-domain access is considered intra-domain access from the perspective of the host / virtual machine or the endpoint device within the same domain.

[0003] by Figure 1 For example, host A can access host B across domains through two NTEP pairs: an NTEP pair consisting of NTEP_A and NTEP_B (1), and an NTEP pair consisting of NTEP_A and NTEP_C (2). When host A initiates a cross-domain memory read / write operation, its cross-domain access address is still considered an address within domain A from host A's perspective. After passing through NTB, its access address is converted from a domain A address to a domain B address. After entering domain B, since the address has been converted to a domain B address by NTB, its access is also considered a domain access from host B's perspective. Similar to address translation, NTB completes the request ID conversion from the access initiator to the access destination and the response ID conversion from the access destination to the access initiator during cross-domain transmission, so that from the perspective of the two hosts involved in the access, both use their respective domain's BDF (bus number, device number, and function number) for access.

[0004] Currently, traditional NTEP power management relies on the device-level power states (D0-D3) of the PCIe standard. This method can only control the on / off state of the entire device and is insufficient for fine-grained power control of the internal transmission functions of the NTEP. Furthermore, waking up from the D3 state requires operating system intervention, which is time-consuming and unsuitable for cross-domain transmission scenarios with high real-time requirements. Even if the NTB has no data transmission during a certain period, if only one host is active, it still needs to maintain full power consumption, resulting in energy waste.

[0005] In summary, how to perform fine-grained power consumption control on the transmission function inside the NTEP and ensure the real-time transmission is a problem to be solved at present. SUMMARY

[0006] Therefore, the purpose of the present application is to provide a power consumption control method, device, equipment, medium and product in cross-domain transmission, which can perform fine-grained power consumption control on the transmission function inside the NTEP and ensure the real-time transmission. The specific scheme is as follows:

[0007] In a first aspect, the present application discloses a power consumption control method in cross-domain transmission, applied to a power consumption control unit, the power consumption control unit is integrated inside a non-transparent end point device, each non-transparent end point device is connected with a host through a PCIe link and used to realize cross-domain transmission between different hosts, and the method comprises:

[0008] monitoring a current idle cycle number of a local data path, and comparing the current idle cycle number with a current step level threshold to determine a current first step level of the non-transparent end point device; the current step level threshold is calculated based on each idle cycle sample value in a current sliding window;

[0009] performing corresponding power consumption control operation on the non-transparent end point device by using a target power consumption control strategy corresponding to the current first step level;

[0010] determining a current second step level of the non-transparent end point device when a wake-up signal sent by a target slave interface is acquired; the target slave interface sends the wake-up signal after detecting a cross-domain transmission request;

[0011] controlling the non-transparent end point device to recover to an original configuration corresponding to the cross-domain transmission request by using a target recovery strategy corresponding to the current second step level; wherein, the original configuration is a configuration of the non-transparent end point device under the condition that no power consumption control operation is performed.

[0012] Optionally, the step level thresholds include a first level threshold, a second level threshold and a third level threshold in turn according to the order from small to large in value, and the step levels include an active level, a logical idle level, a local keep level and a deep sleep level in turn according to the order from low to high in idle degree of the data path.

[0013] Optionally, comparing the current idle cycle number with the current step level threshold to determine the current first step level of the non-transparent end point device comprises:

[0014] if the current idle cycle number is less than the first level threshold, determining that the current first step level of the non-transparent end point device is the active level;

[0015] If the current idle period number is not less than the first level threshold and less than the second level threshold, the current first step level of the non-transparent end point device is determined as a logical idle level;

[0016] If the current idle period number is not less than the second level threshold and less than the third level threshold, the current first step level of the non-transparent end point device is determined as a local keep level;

[0017] If the current idle period number is not less than the third level threshold, the current first step level of the non-transparent end point device is determined as a deep sleep level.

[0018] Optionally, a target power consumption control strategy corresponding to the current first step level is used to perform a corresponding power consumption control operation on the non-transparent end point device, including:

[0019] If the current first step level is the active level, the non-transparent end point device is maintained in normal operation;

[0020] If the current first step level is the logical idle level, the dynamic power consumption of the non-transparent end point device is reduced based on a clock gating technology;

[0021] If the current first step level is the local keep level, the dynamic power consumption and the static power consumption of the non-transparent end point device are respectively reduced based on the clock gating technology and a first low power consumption control technology;

[0022] If the current first step level is the deep sleep level, the dynamic power consumption and the static power consumption of the non-transparent end point device are respectively reduced based on the clock gating technology and a second low power consumption control technology.

[0023] Optionally, the dynamic power consumption of the non-transparent end point device is reduced based on the clock gating technology, including:

[0024] The clock of the core logic in the non-transparent end point device is closed by using a clock enable signal, and the clock of the target slave interface is maintained for detecting a cross-domain transmission request.

[0025] Optionally, the dynamic power consumption and the static power consumption of the non-transparent end point device are respectively reduced based on the clock gating technology and the first low power consumption control technology, including:

[0026] The clock of the core logic in the non-transparent end point device is closed by using a clock enable signal, and the clock of the target slave interface is maintained for detecting a cross-domain transmission request;

[0027] The target configuration information corresponding to the cross-domain transmission is stored to a preset low-speed backup storage, and the power supply of the core logic in the non-transparent end point device is closed by using a preset power supply switch.

[0028] Optionally, the second low-power control technology and the clock gating technology are respectively used to reduce the dynamic power consumption and the static power consumption of the non-transparent endpoint device, comprising:

[0029] The clock of the core logic in the non-transparent endpoint device is turned off by using the clock enable signal, and the clock of the target slave interface is maintained for detecting the cross-domain transmission request;

[0030] The target configuration information corresponding to the cross-domain transmission stored in the preset low-speed backup storage is stored to an external storage, and the power supply of the core logic, the low-speed backup storage and the internal storage in the non-transparent endpoint device is turned off by using the preset power switch.

[0031] Optionally, the dynamic power consumption is determined based on the signal flip frequency, the load capacitance, the power supply voltage and the clock frequency; and the static power consumption is determined based on the transistor leakage current and the power supply voltage.

[0032] Optionally, the current second step level is any one of an active level, a logical idle level, a local keep level and a deep sleep level, and the current second step level is the same as or different from the current first step level.

[0033] Optionally, after the non-transparent endpoint device is controlled by using the target power consumption control strategy corresponding to the current first step level, before the current second step level of the non-transparent endpoint device is determined after the wake-up signal sent by the target slave interface is acquired, the method further comprises:

[0034] The current latest idle period number of the local data path and the current latest step level threshold are compared every preset time period to determine the current latest step level of the non-transparent endpoint device, and the non-transparent endpoint device is controlled by using the target power consumption control strategy corresponding to the current latest step level; wherein the current latest step level is any one of an active level, a logical idle level, a local keep level and a deep sleep level.

[0035] Optionally, the non-transparent endpoint device is controlled to recover to the original configuration corresponding to the cross-domain transmission request by using the target recovery strategy corresponding to the current second step level, comprising:

[0036] If the current second step level is an active level, the non-transparent endpoint device is maintained to be normally operated;

[0037] If the current second step level is a logical idle level, a local keep level or a deep sleep level, the current second step level is recovered to an active level by using the target recovery strategy corresponding to the current second step level, so as to recover the non-transparent endpoint device to the original configuration corresponding to the cross-domain transmission request.

[0038] Optionally, if the current second step level is a logical idle level, the current second step level is recovered to an active level by using a target recovery strategy corresponding to the current second step level, including:

[0039] If the current second step level is a logical idle level, the clock of the core logic in the non-transparent end-point device is started to switch the current second step level to the active level.

[0040] Optionally, if the current second step level is a local hold level, the current second step level is recovered to an active level by using a target recovery strategy corresponding to the current second step level, including:

[0041] If the current second step level is a local hold level, the power supply of the core logic in the non-transparent end-point device is recovered, the target configuration information corresponding to the cross-domain transmission is read from the preset low-speed backup memory, and the clock of the core logic in the non-transparent end-point device is started to switch the current second step level to the active level.

[0042] Optionally, if the current second step level is a deep sleep level, the current second step level is recovered to an active level by using a target recovery strategy corresponding to the current second step level, including:

[0043] If the current second step level is a deep sleep level, the power supply of the core logic, the preset low-speed backup memory and the internal memory in the non-transparent end-point device is recovered, the target configuration information corresponding to the cross-domain transmission is read from the external memory, and the clock of the core logic in the non-transparent end-point device is started to switch the current second step level to the active level.

[0044] Optionally, the current step level threshold is calculated based on each idle period sample value in the current sliding window, including:

[0045] Each idle period sample value in the current sliding window is obtained; wherein each idle period sample value is the number of idle periods in a preset number of clock periods;

[0046] The mean value operation and the standard deviation operation are performed on each idle period sample value to obtain the corresponding idle period mean value and the idle period standard deviation;

[0047] The current step level threshold is calculated based on the idle period mean value and the idle period standard deviation.

[0048] Optionally, the current step level threshold is calculated based on the idle period mean value and the idle period standard deviation, including:

[0049] The third level threshold is calculated based on the idle period mean value, the idle period standard deviation and a preset adjustment coefficient;

[0050] The first grade threshold is calculated based on a first preset proportion coefficient and the third grade threshold, and the second grade threshold is calculated based on a second preset proportion coefficient and the third grade threshold; the first preset proportion coefficient is less than the second preset proportion coefficient.

[0051] In a second aspect, the application discloses a power consumption control device in cross-domain transmission, which is applied to a power consumption control unit, the power consumption control unit is integrated in a non-transparent end point device, each non-transparent end point device is connected with a host through a PCIe link and is used for realizing cross-domain transmission between different hosts, and the device comprises:

[0052] A first determination module is configured to monitor a current idle cycle number of a local data path, and compare the current idle cycle number with a current step grade threshold to determine a current first step grade of the non-transparent end point device; the current step grade threshold is calculated based on idle cycle sample values in a current sliding window;

[0053] A power consumption control module is configured to perform a corresponding power consumption control operation on the non-transparent end point device by using a target power consumption control strategy corresponding to the current first step grade;

[0054] A second determination module is configured to determine a current second step grade of the non-transparent end point device when a wake-up signal sent by a target slave interface is acquired; the target slave interface sends the wake-up signal after detecting a cross-domain transmission request;

[0055] A cross-domain transmission recovery module is configured to control the non-transparent end point device to recover to an original configuration corresponding to the cross-domain transmission request by using a target recovery strategy corresponding to the current second step grade; the original configuration is a configuration of the non-transparent end point device without performing any power consumption control operation.

[0056] In a third aspect, the application discloses an electronic device, comprising:

[0057] A memory is configured to save a computer program;

[0058] A processor is configured to execute the computer program to realize steps of the power consumption control method in cross-domain transmission disclosed above.

[0059] In a fourth aspect, the application discloses a computer readable storage medium, configured to store a computer program; when the computer program is executed by a processor, steps of the power consumption control method in cross-domain transmission disclosed above are realized.

[0060] In a fifth aspect, the application discloses a computer program product, comprising a computer program / instruction, when the computer program / instruction is executed by a processor, steps of the power consumption control method in cross-domain transmission disclosed above are realized.

[0061] It can be seen that the power consumption control unit in the application is integrated in the non-transparent endpoint device, each non-transparent endpoint device is connected with the host through a PCIe link and is used to implement cross-domain transmission between different hosts, the power consumption control unit determines the current first step level of the non-transparent endpoint device by monitoring the current number of idle cycles of the local data path and comparing the current number of idle cycles with the current step level threshold, the current step level threshold is calculated based on each idle cycle sample value in the current sliding window, the non-transparent endpoint device is executed with the corresponding power consumption control operation by using the target power consumption control strategy corresponding to the current first step level, the current second step level of the non-transparent endpoint device is determined when the wake-up signal sent by the target slave interface is acquired, the target slave interface sends the wake-up signal after detecting the cross-domain transmission request, the non-transparent endpoint device is controlled to recover to the original configuration corresponding to the cross-domain transmission request by using the target recovery strategy corresponding to the current second step level, and the original configuration is the configuration of the non-transparent endpoint device under the condition that no power consumption control operation is executed.

[0062] Beneficial effects: the power consumption control unit in the present application can calculate the current step level threshold value in real time according to the idle period sample values in the current sliding window, so that the step level threshold value can be dynamically adjusted in real time to follow the actual idle state of the local data path, avoiding misjudgment caused by the fixed step level threshold value. Further, by comparing the current idle period number of the monitored local data path with the current step level threshold value, the current first step level of the non-transparent endpoint device can be determined. Different power consumption control strategies correspond to different step levels, so after determining the current first step level, the present application uses the target power consumption control strategy corresponding to the current first step level to perform targeted power consumption control operation on the non-transparent endpoint device, that is, the present application can adopt differentiated power consumption control according to the idle degree of the data path, thereby realizing fine power consumption control of the transmission function inside the non-transparent endpoint device, rather than a single full power operation or full shutdown state. Then, the target slave interface will send a wake-up signal to the power consumption control unit after detecting the cross-domain transmission request, and the power consumption control unit will determine the current second step level of the non-transparent endpoint device to control the non-transparent endpoint device to recover to the original configuration corresponding to the cross-domain transmission request, that is, to recover to the configuration of the non-transparent endpoint device without executing any power consumption control operation. In this process, the wake-up signal is triggered by the target slave interface directly after detecting the cross-domain transmission request, and the recovery strategy is bound to the current second step level, and the whole process is completed independently by the power consumption control unit inside the device, without relying on the host software intervention, thereby significantly shortening the wake-up delay, ensuring that the device can quickly recover to the working state when the cross-domain transmission request arrives, meeting the requirement of high real-time performance. The power consumption control unit is integrated inside the non-transparent endpoint device and independently completes the monitoring, comparison, control, wake-up, and recovery processes without the participation of the host in decision-making or the sending of control instructions, avoiding the instruction delay caused by cross-host communication and ensuring the real-time performance of the transmission. BRIEF DESCRIPTION OF DRAWINGS

[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only embodiments of the present application, and those skilled in the art can obtain other drawings according to the provided drawings without creating any inventive labor.

[0064] Figure 1 A cross-domain transmission schematic diagram disclosed by the present application;

[0065] Figure 2 A power consumption control method flow chart in cross-domain transmission disclosed by the present application;

[0066] Figure 3A step level relationship and power consumption comparison diagram disclosed by the present application;

[0067] Figure 4 A system topology diagram disclosed by the present application;

[0068] Figure 5 A power consumption distribution comparison diagram before and after power consumption control disclosed by the present application;

[0069] Figure 6 A sliding window diagram disclosed by the present application;

[0070] Figure 7 A step level threshold updating diagram disclosed by the present application;

[0071] Figure 8 A specific power consumption control method flow chart in cross-domain transmission disclosed by the present application;

[0072] Figure 9 A logic idle level corresponding power consumption control comparison diagram disclosed by the present application;

[0073] Figure 10 A circuit implementation comparison diagram before and after using gated clock technology disclosed by the present application;

[0074] Figure 11 A local retention level corresponding power consumption control comparison diagram disclosed by the present application;

[0075] Figure 12 A local retention level saving and recovery logic diagram disclosed by the present application;

[0076] Figure 13 A low power consumption control flow diagram of the local retention level disclosed by the present application;

[0077] Figure 14 A power consumption control comparison diagram for different step levels disclosed by the present application;

[0078] Figure 15 A deep sleep level saving and recovery logic diagram disclosed by the present application;

[0079] Figure 16 A deep sleep level low power consumption control flow diagram disclosed by the present application;

[0080] Figure 17 An NTEP design implementation diagram supporting transmission level power consumption control disclosed by the present application;

[0081] Figure 18A schematic diagram of an NTEP internal power domain disclosed in the present application;

[0082] Figure 19 A NTEP workflow diagram supporting transport-level power consumption control disclosed in the present application;

[0083] Figure 20 A data path diagram of Retention save and restore logic disclosed in the present application;

[0084] Figure 21 A data path diagram of External save and restore logic disclosed in the present application;

[0085] Figure 22 A device structure schematic diagram of power consumption control in cross-domain transmission disclosed in the present application;

[0086] Figure 23 An electronic device structure diagram disclosed in the present application. DETAILED DESCRIPTION

[0087] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present application.

[0088] Currently, the power consumption management of the traditional NTEP relies on the device-level power state (D0-D3) of the PCIe standard, which can only control the switching of the entire device and is difficult to perform fine power consumption control on the transmission function inside the NTEP. Moreover, the wake-up from the D3 state requires the intervention of the operating system, which takes a long time and is difficult to meet the real-time requirements of cross-domain transmission scenarios. Even if there is no data transmission in a certain period of time, such as only one side of the host being active, the full power consumption still needs to be maintained, resulting in energy waste.

[0089] Therefore, the embodiments of the present application disclose a power consumption control method, device, equipment, medium and product in cross-domain transmission, which can perform fine power consumption control on the transmission function inside the NTEP and ensure the real-time of transmission.

[0090] Referring to Figure 2 The embodiments of the present application disclose a power consumption control method in cross-domain transmission, applied to a power consumption control unit integrated in a non-transparent endpoint device. Each non-transparent endpoint device is connected with a host through a PCIe link and used to realize cross-domain transmission between different hosts. The method comprises the following steps:

[0091] Step S11: monitoring the current idle cycle number of the local data path, and comparing the current idle cycle number with the current step level threshold to determine the current first step level of the non-transparent endpoint device; the current step level threshold is calculated based on the idle cycle sample values within the current sliding window.

[0092] In this embodiment, the non-transparent endpoint device is directly connected to the Root Complex (RC) or PCIe Switch of the host through the PCIe link. In the cross-domain scenario, two NTEPs (such as NTEP1 and NTEP2) form an NTEP Pair and are connected to different host domains (such as host A and host B), thereby forming a communication bridge between the hosts. The NTEP realizes the isolation of the two host domains through address conversion and BDF (Bus number / Device number / Function number) conversion:

[0093] Host A perspective: the address of NTEP1 is the local address of the A domain;

[0094] Host B perspective: NTEP1 converts the address to the address of the B domain, and host B cannot perceive the original address.

[0095] Each non-transparent endpoint device is internally integrated with a power consumption control unit, which calculates the current step level threshold in real time according to the idle cycle sample values within the current sliding window, so that the step level threshold can be dynamically adjusted in real time to follow the actual idle state of the local data path, avoiding misjudgment caused by a fixed step level threshold. Further, the power consumption control unit compares the current idle cycle number of the local data path with the current step level threshold, thereby determining the current first step level of the non-transparent endpoint device.

[0096] It should be noted that the step level threshold includes the first level threshold, the second level threshold, and the third level threshold in order from small to large, and the step level includes the active level, the logic idle level, the partial retention level, and the deep sleep level in order from low to high according to the idle degree of the data path.

[0097] From the perspective of a single NTEP, according to the idle degree of the data path, four step levels are distinguished, namely, the active level, the logic idle level, the partial retention level, and the deep sleep level. The corresponding power consumption control strategies and methods are different, and the power consumption comparison is as follows: Figure 3The first level threshold is a step condition for the active level to jump to the logic idle level, denoted as The second level threshold is a step condition for the logic idle level to jump to the partial retention level, denoted as The third level threshold is a step condition for the partial retention level to jump to the deep sleep level, denoted as .

[0098] From the perspective of the system, the power consumption of the NTEP system can be reduced by this scheme. Taking the system topology in FIG. 6 as an example, host A accesses host B across domains through NTEP pair 1 and accesses host C across domains through NTEP pair 2. Assuming that the cross-domain transmission distribution of host A is that host A accesses host B across domains through NTEP pair 1 in time window 1, and accesses host C across domains through NTEP pair 2 in time window 2 and time window 3, then the power consumption of the NTEP system is as shown in FIG. 6. Figure 4 Figure 5 The power consumption distribution before and after the power consumption control is compared in FIG. 6. By using this scheme, NTEP pair 2 has no cross-domain transmission in time window 1, and NTEP 3 / 4 is in a non-active state, that is, in a logic idle, partial retention, or deep sleep state. NTEP pair 1 has no cross-domain transmission in time window 2 and time window 3, and NTEP 1 / 2 is in a non-active state. Figure 5

[0099] In the specific embodiment, the current step level threshold is calculated based on each idle period sample value in the current sliding window, including: obtaining each idle period sample value in the current sliding window; each idle period sample value is the number of idle periods in a preset number of clock periods; performing mean operation and standard deviation operation on each idle period sample value to obtain the corresponding idle period mean and idle period standard deviation; and calculating the current step level threshold based on the idle period mean and the idle period standard deviation.

[0100] ​​It is understood that this embodiment uses a sliding window to statistically analyze the idle status of the data path, thereby adaptively calculating the step level threshold based on the idle status of the data path and controlling the NTEP to be at different step levels. This embodiment needs to count the number of idle cycles within a preset number of clock cycles in real time to obtain a single idle cycle sample. When there is no TLP data packet transmission on the NTEP data path within a certain clock cycle, the internal statistical circuit records it as an idle cycle. There are multiple idle cycle samples within the current sliding window. By performing mean and standard deviation calculations on the idle cycle sample values ​​within the current sliding window, the corresponding idle cycle mean and idle cycle standard deviation are obtained. Finally, the current step level threshold is calculated based on the idle cycle mean and idle cycle standard deviation.

[0101] Taking a preset quantity of 2048 as an example, it can be understood as using the number of idle cycles of the data path within 2048 clock cycles as the statistical sample. For example, assuming the number of idle cycles of the data path in the first 2048 clock cycles is 800, the number of idle cycles in the second 2048 clock cycles is 480, and so on... Figure 6 The diagram shows 10 statistical samples obtained, denoted as [800, 480, 530, 784, 679, 956, 1100, 1270, 633, 1210]. Assume the sliding window size is 8. Figure 6 The diagram shows a sliding window. The window slides from left to right, and the mean and standard deviation within the window are calculated each time to dynamically calculate the current step level threshold.

[0102] In a specific implementation, calculating the current step level threshold based on the idle cycle mean and idle cycle standard deviation includes: calculating a third-level threshold based on the idle cycle mean, idle cycle standard deviation, and a preset adjustment coefficient; calculating a first-level threshold based on a first preset proportional coefficient and the third-level threshold; and calculating a second-level threshold based on a second preset proportional coefficient and the third-level threshold; wherein the first preset proportional coefficient is less than the second preset proportional coefficient. That is, in this embodiment, after obtaining the idle cycle mean and idle cycle standard deviation corresponding to the current sliding window, the third-level threshold is first calculated based on the idle cycle mean, idle cycle standard deviation, and a preset adjustment coefficient. Then, based on the third-level threshold, the first-level threshold is calculated using the first preset proportional coefficient and the second preset proportional coefficient, respectively. Second-level threshold The first preset proportional coefficient must be less than the second preset proportional coefficient.

[0103] Taking a preset adjustment coefficient of 2, a first preset proportional coefficient of 25%, and a second preset proportional coefficient of 75 as an example, Figure 6The step level threshold value of the first window is calculated as shown in Table 1.

[0104] Table 1: Step threshold value calculation of the first window

[0105]

[0106] Similarly, Figure 6 The step level threshold value of the second window is calculated as shown in Table 2.

[0107] Table 2: Step threshold value calculation of the second window

[0108]

[0109] It should be noted that the initial configuration value of the register is used for the initial power-on of the NTEP, and then the step level threshold value is adaptively and dynamically calculated according to the idle degree of the data path in a sliding window calculation manner, and the next window is assigned as the step level threshold value, as shown in Figure 7 Accordingly, the step level threshold value is continuously calculated and updated in the sliding window unit, so that the step level threshold value is always based on the actual idle state statistical result of the data path, rather than static configuration, and flexibly copes with the transmission characteristics of different system topologies.

[0110] In the specific embodiment, the current idle period number is compared with the current step level threshold value to determine the current first step level of the non-transparent endpoint device, including: if the current idle period number is less than the first level threshold value, it is determined that the current first step level of the non-transparent endpoint device is the active level; if the current idle period number is not less than the first level threshold value and less than the second level threshold value, it is determined that the current first step level of the non-transparent endpoint device is the logic idle level; if the current idle period number is not less than the second level threshold value and less than the third level threshold value, it is determined that the current first step level of the non-transparent endpoint device is the local hold level; and if the current idle period number is not less than the third level threshold value, it is determined that the current first step level of the non-transparent endpoint device is the deep sleep level.

[0111] That is, if the current idle period number is always less than the first level threshold value , it is determined that the current first step level of the non-transparent endpoint device is the active level, if the current idle period number is greater than or equal to the first level threshold value and less than the second level threshold value , it is determined that the current first step level of the non-transparent endpoint device is the logic idle level, and if the current idle period number is greater than or equal to the second level threshold value and less than the third level threshold value If the current first step level of the non-transparent endpoint device is determined to be the partial retention level, then if the current idle cycle count is greater than or equal to the third level threshold... If so, the current first step level of the non-transparent endpoint device is determined to be the deep sleep level.

[0112] Step S12: Perform corresponding power control operations on the non-transparent endpoint device using the target power control strategy corresponding to the current first step level.

[0113] In this embodiment, the step level threshold is adaptively calculated based on the idle level of the data path, thereby controlling the NTEP to be in different step levels. The power consumption control strategies corresponding to different step levels are different. Therefore, after determining the current first step level, this application uses the target power consumption control strategy corresponding to the current first step level to perform targeted power consumption control operations on the non-transparent endpoint device. That is, this application can adopt differentiated power consumption control based on the idle level of the data path, thereby achieving fine-grained power consumption control of the transmission function inside the non-transparent endpoint device, rather than a simple full-power operation or full shutdown state.

[0114] Step S13: Determine the current second step level of the non-transparent endpoint device when the wake-up signal sent by the target slave interface is obtained; the target slave interface sends a wake-up signal after detecting the cross-domain transfer request.

[0115] In this embodiment, after detecting a cross-domain transmission request, the target slave interface sends a wake-up signal to the power control unit. The power control unit then determines the current second-step level of the non-transparent endpoint device. The slave interface is responsible for responding to the master device's requests and executing corresponding operations. In this process, the wake-up signal is triggered directly by the target slave interface upon detecting the cross-domain transmission request. The entire process is autonomously completed by the device's internal power control unit without relying on host software intervention, thus significantly shortening the wake-up latency and ensuring that the device can quickly recover to its working state when the cross-domain transmission request arrives, meeting high real-time requirements.

[0116] It should be noted that the current second step level is any one of the active level, the logical idle level, the local keep level and the deep sleep level, and the current second step level is the same as or different from the current first step level. It can be understood that before the wake-up signal is obtained, the power consumption control unit will adaptively calculate the latest current step level threshold according to the data path idle degree, and compare the current idle period number of the local data path with the threshold, so that the NTEP flexibly jumps between different step levels to cope with the transmission characteristics of different system topologies. Therefore, after the wake-up signal sent by the target slave interface is obtained, it is necessary to determine what the current second step level is at this time, and the current second step level can be the same as or different from the current first step level.

[0117] Specifically, after the non-transparent endpoint device is executed with the corresponding power consumption control operation by using the target power consumption control strategy corresponding to the current first step level, before the current second step level of the non-transparent endpoint device is determined when the wake-up signal sent by the target slave interface is obtained, it further comprises: comparing the latest current idle period number of the monitored local data path with the latest current step level threshold every preset time period, to determine the latest current step level of the non-transparent endpoint device, and executing the corresponding power consumption control operation on the non-transparent endpoint device by using the target power consumption control strategy corresponding to the latest current step level; wherein the latest current step level is any one of the active level, the logical idle level, the local keep level and the deep sleep level. For example, when a new idle period sample value is generated every 2048 clock periods, the sliding window can be moved one bit to the right, so as to calculate the latest current step level threshold, and then compare the latest current idle period number of the monitored local data path with the latest current step level threshold, to determine the latest current step level of the non-transparent endpoint device, and then execute the corresponding power consumption control operation.

[0118] Step S14: controlling the non-transparent endpoint device to recover to the original configuration corresponding to the cross-domain transmission request by using the target recovery strategy corresponding to the current second step level; wherein the original configuration is the configuration of the non-transparent endpoint device without executing any power consumption control operation.

[0119] In this embodiment, after determining the current second step level of the non-transparent endpoint device, the non-transparent endpoint device is controlled to recover to the original configuration corresponding to the cross-domain transmission request, i.e., to the configuration of the non-transparent endpoint device without performing any power consumption control operation, by using the target recovery strategy corresponding to the current second step level. As can be seen from the above, the power consumption control unit is integrated in the non-transparent endpoint device, and independently completes the processes of monitoring, comparison, control, wake-up, and recovery, without the need for the host to participate in decision-making or send control instructions, thereby avoiding the instruction delay caused by cross-host communication and ensuring the real-time performance of transmission.

[0120] As can be seen, the power consumption control unit in the present application calculates the current step level threshold value in real time according to each idle period sample value in the current sliding window, so that the step level threshold value can be dynamically adjusted in real time to follow the actual idle state of the local data path, thereby avoiding misjudgment caused by a fixed step level threshold value. Further, by comparing the current number of idle periods of the monitored local data path with the current step level threshold value, the current first step level of the non-transparent endpoint device can be determined. Different power consumption control strategies correspond to different step levels, so after determining the current first step level, the non-transparent endpoint device is controlled to perform a targeted power consumption control operation by using the target power consumption control strategy corresponding to the current first step level, i.e., the present application can adopt differentiated power consumption control according to the idle degree of the data path, thereby achieving fine power consumption control of the transmission function inside the non-transparent endpoint device, rather than a single full-power operation or full-off state. Then, the target slave interface sends a wake-up signal to the power consumption control unit after detecting the cross-domain transmission request, and the power consumption control unit determines the current second step level of the non-transparent endpoint device, so as to control the non-transparent endpoint device to recover to the original configuration corresponding to the cross-domain transmission request, i.e., to the configuration of the non-transparent endpoint device without performing any power consumption control operation, by using the target recovery strategy corresponding to the current second step level. In this process, the wake-up signal is triggered by the target slave interface after detecting the cross-domain transmission request, and the recovery strategy is bound to the current second step level, and the entire process is completed autonomously by the power consumption control unit inside the device, without the need for host software intervention, thereby significantly shortening the wake-up delay, ensuring that the device can quickly recover to the working state when the cross-domain transmission request arrives, and meeting the requirement of high real-time performance. The power consumption control unit is integrated in the non-transparent endpoint device, and independently completes the processes of monitoring, comparison, control, wake-up, and recovery, without the need for the host to participate in decision-making or send control instructions, thereby avoiding the instruction delay caused by cross-host communication and ensuring the real-time performance of transmission.

[0121] Referring to Figure 8 As shown in FIG. 8, the embodiment of the present application discloses a specific power consumption control method in cross-domain transmission. Compared with the previous embodiment, the technical solution is further described and optimized in this embodiment. Specifically, the embodiment includes the following steps.

[0122] Step S21: monitoring the current idle cycle number of the local data path, and comparing the current idle cycle number with a current step level threshold to determine a current first step level of the non-transparent end point device; the current step level threshold is calculated based on the idle cycle sample values within a current sliding window.

[0123] Step S22: if the current first step level is an active level, maintaining normal operation of the non-transparent end point device.

[0124] In this embodiment, if the current first step level is an active level, the non-transparent end point device is maintained in normal operation, and no power consumption control is needed.

[0125] Step S23: if the current first step level is a logical idle level, reducing the dynamic power consumption of the non-transparent end point device based on a clock gating technique; if the current first step level is a local hold level, reducing the dynamic power consumption and static power consumption of the non-transparent end point device based on the clock gating technique and a first low power consumption control technique, respectively; if the current first step level is a deep sleep level, reducing the dynamic power consumption and static power consumption of the non-transparent end point device based on the clock gating technique and a second low power consumption control technique, respectively.

[0126] In the first specific implementation, if the current first step level is a logical idle level, the dynamic power consumption of the non-transparent end point device is reduced based on a clock gating technique. It can be understood that the clock gating technique enables the clock to be turned off by controlling the clock gating logic, thereby reducing the dynamic power consumption.

[0127] Specifically, reducing the dynamic power consumption of the non-transparent end point device based on the clock gating technique includes: turning off the clock of the core logic in the non-transparent end point device by using a clock enable signal, and maintaining the clock of the target slave interface for detecting the cross-domain transmission request. It is to be noted that the dynamic power consumption is determined based on the signal toggle frequency, the load capacitance, the power supply voltage, and the clock frequency. It is to be noted that the dynamic power consumption is defined as:

[0128] ;

[0129] wherein, represents the signal toggle frequency, C is the load capacitance, is the power supply voltage, and f is the clock frequency.

[0130] It is to be noted that in digital design, about 50% of the dynamic power consumption is derived from the clock network. When the current idle cycle number of the NTEP data path is greater than the first level threshold When the NTEP enters the logic idle step state, the clock enable signal is used to turn off the clock of the core logic in the non-transparent end point device, but the NTEP is in an active state from the interface, that is, the clock of the target slave interface is maintained, so that when the cross-domain transmission request reaches the NTEP, the power consumption control unit of the NTEP can wake up the core logic of the NTEP and turn on the working clock of the core logic.

[0131] Figure 9 A schematic diagram for reducing dynamic power consumption by using the clock gating technology for the logic idle step level, Figure 10 A schematic diagram for comparison of circuit implementation before and after using the clock gating technology for the logic idle step level.

[0132] In the second embodiment, if the current first step level is the local holding level, the dynamic power consumption and the static power consumption of the non-transparent end point device are reduced based on the clock gating technology and the first low power control technology, respectively. It can be understood that the low power control (power gating) technology is used to reduce the static power consumption in this embodiment. The power supply switch is controlled to turn off the power supply to reduce the static power consumption. The static power consumption refers to the power consumption of the circuit when it is not operated (i.e., the signal is stable), which is mainly caused by the transistor leakage current. The static power consumption is defined as:

[0133]

[0134] wherein, is the transistor leakage current, is the power supply voltage; that is, the static power consumption is determined based on the transistor leakage current and the power supply voltage.

[0135] Specifically, the dynamic power consumption and the static power consumption of the non-transparent end point device are reduced based on the clock gating technology and the first low power control technology, respectively, including: using the clock enable signal to turn off the clock of the core logic in the non-transparent end point device, and maintaining the clock of the target slave interface for detecting the cross-domain transmission request; storing the target configuration information corresponding to the cross-domain transmission to the preset low-speed backup storage, and using the preset power supply switch to turn off the power supply of the core logic in the non-transparent end point device. The way to reduce the dynamic power consumption is the same as described above, which will not be described here again; in order to reduce the static power consumption, the power gating technology is used to turn off the power supply of the core logic when the NTEP enters this step level, so as to reduce the static power consumption, as shown in Figure 11 . And before turning off, the target configuration information corresponding to the cross-domain transmission and the like are saved to the preset low-speed backup storage by the save method, and the target configuration information is read from the preset low-speed backup storage by the restore technology when the transmission level is woken up, so as to quickly recover the cross-domain transmission site.

[0136] ​As Figure 12 shown, the key cross-domain information and cross-domain interrupt binding relationship and other target configuration information will be saved to the preset low-speed backup memory through the Save logic. The NTEP from the interface is in an active state, supports transmission level wake-up, so that when the cross-domain transmission request reaches the NTEP, the NTEP core logic is woken up, the power supply and working clock of the core logic are turned on, and the restore logic is synchronized to restore from the preset low-speed backup memory. Among them Figure 12 ① represents the core logic save process before the power is turned off with the Retention_save flag, and ② represents the core logic restore process after the power is turned on with the Retention_restore flag.

[0137] Further, Figure 13 For the power gating scheme of the Partial retention step level, ① in the figure is the power switch (i.e. power supply switch) that controls the power supply of the NTEP core logic, which is controlled by the NTEP power consumption control unit. After entering this step level, the internal retention_save (③ in the figure) is started, and the power supply of the core logic (② in the figure) is turned off. After the subsequent transmission reaches the NTEP from the interface, the internal wake-up logic is triggered, the internal power supply and core logic clock are turned on, the retention_restore (④ in the figure) is started to restore the key information and configuration corresponding to the cross-domain transmission, and then the cross-domain transmission is processed.

[0138] In the third specific embodiment, if the current first step level is the deep sleep level, the dynamic power consumption and the static power consumption of the non-transparent end point device are reduced based on the clock gating technology and the second low power consumption control technology respectively. It can be understood that the second low power consumption control technology will further reduce the static power consumption compared with the first low power consumption control technology, as Figure 14 shown, Figure 14 is a comparison diagram of power consumption control of different step levels.

[0139] Specifically, the clock gating technology and the second low-power control technology are used to reduce the dynamic power consumption and the static power consumption of the non-transparent end point device respectively, including: using a clock enable signal to turn off the clock of the core logic in the non-transparent end point device, and maintaining the clock of the target slave interface for detecting the cross-domain transmission request; storing the target configuration information corresponding to the cross-domain transmission stored in the preset low-speed backup memory to an external memory, and using a preset power switch to turn off the power supply of the core logic, the preset low-speed backup memory and the internal memory in the non-transparent end point device. The way of reducing the dynamic power consumption is the same as the foregoing, which will not be described here again; in the deep sleep step level, the target configuration information such as the key cross-domain control information, the cross-domain address mapping table item and the like in the preset low-speed backup memory and the internal memory will be stored to the external memory through the external storage (External_Save) mode, the power consumption control unit of the NTEP will turn off the power supply (VDD) of the NTEP core logic and the memory power supply (VDDM) to further reduce the static power consumption, and after the internal wake-up logic is triggered when the transmission reaches the NTEP slave interface, the internal power supply and the core logic clock are turned on, and then the external restore is started to recover the cross-domain key information and process the cross-domain transmission, Figure 15 The above external_save / restore process is shown in the schematic diagram.

[0140] Further, as shown in Figure 16 the power consumption control unit of the NTEP turns off the power supply of the core logic, the preset low-speed backup memory and the internal memory through the power switch (①, ② and ③ in the figure) to further reduce the static power consumption. Before being turned off, the external save and restore logic (④ in the figure) of the NTEP reads (⑤ in the figure) the content of the preset low-speed backup memory and the internal memory, and stores the content to the external memory (⑥ in the figure), and after the internal wake-up logic is triggered when the transmission reaches the NTEP slave interface, the internal power supply is turned on through the power switch, and the core logic clock is turned on synchronously. Then the external restore (⑦ in the figure) is started to recover the cross-domain key information and process the cross-domain transmission.

[0141] Step S24: determining the current second step level of the non-transparent end point device when the wake-up signal sent by the target slave interface is acquired; the target slave interface sends the wake-up signal after detecting the cross-domain transmission request.

[0142] Step S25: if the current second step level is the active level, maintaining the normal operation of the non-transparent end point device.

[0143] In the embodiment, if the current second step level is the active level, the non-transparent end-point device can be maintained in normal operation, and since no power consumption control is performed at this level, no recovery is needed.

[0144] Step S26: If the current second step level is the logical idle level, the local hold level or the deep sleep level, the current second step level is recovered to the active level by using a target recovery strategy corresponding to the current second step level, so as to recover the non-transparent end-point device to the original configuration corresponding to the cross-domain transmission request.

[0145] In the embodiment, if the current second step level is the logical idle level, the local hold level or the deep sleep level, the current second step level is recovered to the active level by using a target recovery strategy corresponding to the current second step level, so as to recover the non-transparent end-point device to the original configuration corresponding to the cross-domain transmission request.

[0146] In the embodiment, if the current second step level is the logical idle level, the current second step level is recovered to the active level by using a target recovery strategy corresponding to the current second step level, including: if the current second step level is the logical idle level, the clock of the core logic in the non-transparent end-point device is started, so as to switch the current second step level to the active level. That is, if the current second step level is the logical idle level, the clock of the core logic in the non-transparent end-point device is started only, so as to switch the current second step level to the active level.

[0147] In the embodiment, if the current second step level is the local hold level, the current second step level is recovered to the active level by using a target recovery strategy corresponding to the current second step level, including: if the current second step level is the local hold level, the power supply of the core logic in the non-transparent end-point device is recovered, the target configuration information corresponding to the cross-domain transmission is read from the preset low-speed backup memory, and the clock of the core logic in the non-transparent end-point device is started, so as to switch the current second step level to the active level. That is, if the current second step level is the local hold level, in order to switch to the active level, in addition to starting the clock of the core logic in the non-transparent end-point device, the power supply of the core logic in the non-transparent end-point device is recovered, and the target configuration information corresponding to the cross-domain transmission is read from the preset low-speed backup memory, so as to recover the key configuration required for transmission.

[0148] In the specific embodiment, if the current second step level is the deep sleep level, the current second step level is restored to the active level by using the target recovery strategy corresponding to the current second step level, including: if the current second step level is the deep sleep level, the power supply of the core logic, the low-speed backup memory and the internal memory in the non-transparent end point device is restored, the target configuration information corresponding to the cross-domain transmission is read from the external memory, and the clock of the core logic in the non-transparent end point device is started, so as to switch the current second step level to the active level. That is, if the current second step level is the deep sleep level, not only the clock of the core logic in the non-transparent end point device is started, but also the power supply of the core logic, the low-speed backup memory and the internal memory in the non-transparent end point device is restored, and the target configuration information corresponding to the cross-domain transmission is read from the external memory, so as to restore the key configuration required for transmission.

[0149] In the specific embodiment, if the current second step level is the deep sleep level, the current second step level is restored to the active level by using the target recovery strategy corresponding to the current second step level, including: if the current second step level is the deep sleep level, the power supply of the core logic, the low-speed backup memory and the internal memory in the non-transparent end point device is restored, the target configuration information corresponding to the cross-domain transmission is read from the external memory, and the clock of the core logic in the non-transparent end point device is started, so as to switch the current second step level to the active level. That is, if the current second step level is the deep sleep level, not only the clock of the core logic in the non-transparent end point device is started, but also the power supply of the core logic, the low-speed backup memory and the internal memory in the non-transparent end point device is restored, and the target configuration information corresponding to the cross-domain transmission is read from the external memory, so as to restore the key configuration required for transmission.

[0150] It can be seen that the application introduces the concept of step level, uses different power consumption control strategies to control power consumption according to four types of step levels, flexibly copes with the transmission characteristics of different system topologies, and effectively reduces the power consumption overhead of NTEP. The scheme dynamically calculates the step level threshold by analyzing the idle state of the data path, controls the power consumption by using clock gating technology and low power control technology based on the step level. In order to support transmission level wake-up, the key cross-domain configuration is saved in the save mode before the corresponding power supply is turned off according to the step level, and the mapping target configuration information is mapped to the preset low-speed backup memory or external memory. After the subsequent cross-domain transmission arrives, the power supply is restarted according to the step level, the gated clock is started, and the key configuration corresponding to the cross-domain transmission is obtained from the preset low-speed backup memory or external memory according to the step level to restore the cross-domain field.

[0151] Figure 17 A design implementation diagram of the NTEP supporting transmission level power consumption control disclosed by the application mainly includes NTEP slave interface logic, NTEP power consumption control unit, NTEP core logic, NTEP retention save and restore logic, NTEP low-speed backup memory, NTEP internal memory, and NTEP external save and restore logic.

[0152] In addition, in the scheme, the NTEP is divided into three power domains, including NT_kernel, NT_Sub and NT_top, which are used to supply power to the core logic, the memory and the slave interface respectively. Figure 18To show the power domain inside NTEP and the design contained in it.

[0153] Wherein, the NTEP slave interface is configured based on the NTEP, used to receive the cross-domain transmission request initiated by the host, the virtual machine, and other devices in the domain.

[0154] The power consumption control unit is mainly used to analyze the working state of the NTEP slave interface, the NTEP core logic, and the host device, to calculate the step level threshold in real time, to control the clock gating technology and low power control technology for power consumption control; to coordinate the save and restore logic to save the target configuration information corresponding to the cross-domain transmission before the power is turned off, and to restore the target configuration information after the power is turned on, to restore the transmission site; when there is a new cross-domain transmission request from the NTEP slave interface, the recovery strategy is executed according to the current step level; at the same time, the slow frequency division clock required for internal backup storage is provided .

[0155] The NTEP core logic is used to complete the cross-domain address conversion, cross-domain BDF conversion, flow control, and other cross-domain core functions, and to send cross-domain data packets.

[0156] The NTEP retention save and restore logic is used to backup the key configuration and cross-domain binding information to the preset low-speed backup storage when jumping from the Logic idle level to the Partial retention level, and to read from the preset low-speed backup storage when recovering from the Partial retention level to the active level, so as to restore the key configuration required for transmission.

[0157] The NTEP low-speed backup storage is used to store the key configuration and cross-domain binding information, and other target configuration information.

[0158] The NTEP internal storage is used to store the cross-domain address mapping table and the ID mapping table.

[0159] The NTEP external save and restore logic is used to store the key configuration and cross-domain binding information from the preset low-speed backup storage to the external storage when jumping from the Partial retention step level to the Deep sleep level, and to store the NTEP internal storage address mapping table to the external storage. When recovering from the Deep sleep level to the active level, the key configuration required for transmission is restored by reading from the external storage.

[0160] In this application, the main working process of the NTEP supporting transmission level power consumption control is as shown in Figure 19 .

[0161] In the implementation process, as shown in Figure 20 the power consumption control unit of the NTEP jumps from logic idle to Partial retention according to the step level of the data path, the Retention save and restore logic is controlled by the power consumption control unit to read the core logic key configuration of the NTEP, the cross-domain binding relationship, and save to the low-speed backup memory through two-level access arbitration along the path shown in ① in the figure (i.e., the Retention save process). When the subsequent cross-domain transmission reaches the NTEP slave interface, the NTEP power consumption control unit obtains the slave interface state, transmits the wake-up data path, restores the power supply of the core logic of the NTEP, and closes the gated clock. The Retention save and restore logic reads the content of the low-speed backup memory, writes back to the NTEP core logic along the path shown in ② in the figure through two-level access arbitration (i.e., the Retention restore process), and restores the key configuration, cross-domain binding relationship, etc. After that (i.e., the Retention restore process), the step level jumps from Partial retention to Active, and the NTEP core logic processes the cross-domain data packet, address, ID conversion, etc. through the TLP (Transaction Layer Packet, transaction layer data packet) master interface to the opposite end.

[0162] In addition, as shown in Figure 21 the power consumption control unit of the NTEP jumps from Partial retention to Deep sleep, the External save and restore logic is controlled by the power consumption control unit of the NTEP to read the cross-domain key configuration, binding relationship through the internal bus along the path shown in ① in the figure, and obtain the cross-domain address mapping table, ID conversion table in the internal memory of the NTEP along the path shown in ② in the figure, and store them to the external memory through the external bus interface along the path shown in ③ in the figure (i.e., the External save process). When the subsequent cross-domain transmission reaches the NTEP slave interface, the NTEP power consumption control unit obtains the slave interface state, transmits the wake-up data path, restores the power supply of the core logic and memory of the NTEP, and closes the gated clock. The External save and restore logic reads the external memory through the internal interconnection path along the path shown in ④ in the figure, writes back to the NTEP internal memory along the path ⑤ to restore the cross-domain address mapping table and ID conversion table. After that, the step level jumps from Deep sleep to Active, and the NTEP core logic processes the cross-domain data packet, address, ID conversion, etc. through the TLP master interface to the opposite end.

[0163] Referring to Figure 22 As shown in the embodiments of the present application, a power consumption control device in cross-domain transmission is disclosed, which is applied to a power consumption control unit, the power consumption control unit is integrated in a non-transparent end point device, each non-transparent end point device is connected with a host through a PCIe link and is used to realize cross-domain transmission between different hosts, and the device comprises:

[0164] A first determination module 11 is configured to monitor a current idle cycle number of a local data path, and compare the current idle cycle number with a current step level threshold value to determine a current first step level of the non-transparent end point device, wherein the current step level threshold value is calculated based on idle cycle sample values in a current sliding window;

[0165] A power consumption control module 12 is configured to perform a corresponding power consumption control operation on the non-transparent end point device by using a target power consumption control strategy corresponding to the current first step level;

[0166] A second determination module 13 is configured to determine a current second step level of the non-transparent end point device when an awakening signal sent by a target slave interface is acquired, wherein the target slave interface sends the awakening signal after detecting a cross-domain transmission request;

[0167] A cross-domain transmission recovery module 14 is configured to control the non-transparent end point device to recover to an original configuration corresponding to the cross-domain transmission request by using a target recovery strategy corresponding to the current second step level, wherein the original configuration is a configuration of the non-transparent end point device under a condition that no power consumption control operation is performed.

[0168] It can be seen that the power consumption control unit in the present application can calculate the current step level threshold value in real time according to the idle period sample values in the current sliding window, so that the step level threshold value can be dynamically adjusted in real time to follow the actual idle state of the local data path, avoiding misjudgment caused by a fixed step level threshold value. Further, by comparing the current idle period number of the monitored local data path with the current step level threshold value, the current first step level of the non-transparent endpoint device can be determined. Different power consumption control strategies correspond to different step levels, so after determining the current first step level, the present application uses the target power consumption control strategy corresponding to the current first step level to perform targeted power consumption control operation on the non-transparent endpoint device, that is, the present application can adopt differentiated power consumption control according to the idle degree of the data path, thereby realizing fine power consumption control of the transmission function inside the non-transparent endpoint device, rather than a single full power operation or full shutdown state. Then, the target slave interface will send a wake-up signal to the power consumption control unit after detecting the cross-domain transmission request, and the power consumption control unit will determine the current second step level of the non-transparent endpoint device to control the non-transparent endpoint device to recover to the original configuration corresponding to the cross-domain transmission request, that is, to recover to the configuration of the non-transparent endpoint device without executing any power consumption control operation. In this process, the wake-up signal is triggered by the target slave interface directly after detecting the cross-domain transmission request, and the recovery strategy is bound to the current second step level, and the whole process is completed independently by the power consumption control unit inside the device, without relying on the host software intervention, thereby significantly shortening the wake-up delay, ensuring that the device can quickly recover to the working state when the cross-domain transmission request arrives, meeting the requirement of high real-time performance. The power consumption control unit is integrated inside the non-transparent endpoint device and independently completes the monitoring, comparison, control, wake-up, and recovery processes without the need for the host to participate in decision-making or send control instructions, avoiding the instruction delay caused by cross-host communication and ensuring the real-time performance of the transmission.

[0169] Since the embodiments of the device part correspond to the above-mentioned embodiments, the embodiments of the device part are described with reference to the embodiments of the method part described above, and will not be described here.

[0170] Figure 23 A structural schematic diagram of an electronic device provided by an embodiment of the present application is provided. Specifically, it can include at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the related steps in the power consumption control method in the cross-domain transmission performed by the electronic device disclosed in any of the preceding embodiments.

[0171] In this embodiment, the power supply 23 is configured to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 is configured to create a data transmission channel between the electronic device 20 and external devices, and the communication protocol followed by the communication interface 24 can be any communication protocol applicable to the technical solution of the present application, which will not be specifically limited herein; the input and output interface 25 is configured to obtain external input data or output data to the outside, and the specific interface type can be selected according to the specific application needs, which will not be specifically limited herein.

[0172] The processor 21 can include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one of a hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 21 can also include a main processor and a coprocessor. The main processor is a processor for processing data in a wake-up state, also known as a CPU (Central Processing Unit). The coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 can be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 can also include an AI (Artificial Intelligence) processor configured to process machine learning-related computing operations.

[0173] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a magnetic disk, or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222, and data 223, etc. The storage mode can be temporary storage or permanent storage.

[0174] The operating system 221 is used to manage and control each hardware device on the electronic device 20 and the computer program 222, so as to realize the operation and processing of the processor 21 on the mass data 223 in the memory 22, and can be Windows, Unix, Linux, etc. The computer program 222 can further include a computer program capable of completing other specific work in addition to the computer program capable of completing the power consumption control method in cross-domain transmission executed by the electronic device 20 disclosed in any one of the foregoing embodiments. The data 223 can include data transmitted into the electronic device by an external device received by the electronic device, and can also include data collected by the self input / output interface 25, etc.

[0175] Further, the embodiment of the present application further discloses a computer readable storage medium, the storage medium stores a computer program, and the computer program is loaded and executed by a processor to realize the power consumption control method in cross-domain transmission disclosed in any one of the foregoing embodiments.

[0176] The embodiment of the present application further discloses a computer program product, including computer programs / instructions, which are executed by a processor to realize the steps of the power consumption control method in cross-domain transmission disclosed in any one of the foregoing embodiments.

[0177] Each embodiment in the specification is described in a progressive manner, and each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the related parts can be referred to the method part.

[0178] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in the present application can be realized in electronic hardware, computer software or combination of the two. In order to clearly show the interchangeability of hardware and software, the components and steps of each example have been described in the above description. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0179] The steps of a method or algorithm described in connection with the embodiments disclosed herein can be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module can reside in Random Access Memory (RAM), flash memory, Read-Only Memory (ROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such that the processor can read information from, and write information to, the storage medium. In the alternative, hard disk can be used as a storage medium.

[0180] Finally, it should be noted that the terms "first" and "second", and the like, are used herein only to distinguish one entity or action from another, but do not necessarily require or imply any actual such relationship or order between such entities or actions. Also, the terms "comprises", "comprising", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element preceded by "comprises... a" does not, without more limitations, foreclose the existence of additional identical elements in the process, method, article, or apparatus that includes the recited element.

[0181] The above describes in detail the power consumption control method, device, equipment, medium and product provided by the present application in cross-domain transmission. The principles and implementation manners of the present application are described by using specific examples. The above description of the embodiments is only used to help understand the method of the present application and its core idea. Meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manner and application range can be changed. In summary, the content of the specification should not be understood as a limitation of the present application.

Claims

1. A method for power consumption control in cross-domain transmission, characterized in that, The method is applied to a power consumption control unit integrated in a non-transparent endpoint device, each of the non-transparent endpoint devices being connected to a host through a PCIe link and used to implement cross-domain transmission between different hosts, and the method comprises the following steps: monitoring a current idle cycle number of a local data path and comparing the current idle cycle number with a current step level threshold to determine a current first step level of the non-transparent endpoint device; the current step level threshold is calculated based on idle cycle sample values in a current sliding window; performing corresponding power consumption control operations on the non-transparent endpoint device by using a target power consumption control strategy corresponding to the current first step level; determining a current second step level of the non-transparent endpoint device when a wake-up signal sent by a target slave interface is acquired; the target slave interface sends the wake-up signal after detecting a cross-domain transmission request; controlling the non-transparent endpoint device to recover to an original configuration corresponding to the cross-domain transmission request by using a target recovery strategy corresponding to the current second step level; the original configuration is a configuration of the non-transparent endpoint device without performing any power consumption control operation.

2. The power consumption control method in cross-domain transmission according to claim 1, characterized in that, The step level thresholds include a first level threshold, a second level threshold and a third level threshold in order of values from small to large, and the step levels include an active level, a logical idle level, a local keep level and a deep sleep level in order of idle degrees of the data path from low to high.

3. The power consumption control method in cross-domain transmission according to claim 2, wherein, The comparison of the current idle cycle number with the current step level threshold to determine the current first step level of the non-transparent endpoint device comprises the following steps: if the current idle cycle number is smaller than the first level threshold, determining that the current first step level of the non-transparent endpoint device is the active level; if the current idle cycle number is not smaller than the first level threshold and smaller than the second level threshold, determining that the current first step level of the non-transparent endpoint device is the logical idle level; if the current idle cycle number is not smaller than the second level threshold and smaller than the third level threshold, determining that the current first step level of the non-transparent endpoint device is the local keep level; if the current idle cycle number is not smaller than the third level threshold, determining that the current first step level of the non-transparent endpoint device is the deep sleep level.

4. The power consumption control method in cross-domain transmission according to claim 3, characterized in that, The performance of the corresponding power consumption control operations on the non-transparent endpoint device by using the target power consumption control strategy corresponding to the current first step level comprises the following steps: if the current first step level is the active level, maintaining normal operation of the non-transparent endpoint device; if the current first step level is the logical idle level, reducing dynamic power consumption of the non-transparent endpoint device based on a clock gating technology; if the current first step level is the local keep level, respectively reducing dynamic power consumption and static power consumption of the non-transparent endpoint device based on the clock gating technology and a first low power consumption control technology; if the current first step level is the deep sleep level, respectively reducing dynamic power consumption and static power consumption of the non-transparent endpoint device based on the clock gating technology and a second low power consumption control technology.

5. The power consumption control method in cross-domain transmission according to claim 4, characterized in that, The clock gating technology reduces dynamic power consumption of the non-transparent endpoint device, comprising: clocks of core logic in the non-transparent endpoint device are closed by using clock enable signals, and clocks of the target slave interface are maintained for detecting the cross-domain transmission request.

6. The power consumption control method in cross-domain transmission according to claim 4, wherein, The clock gating technology and the first low power control technology respectively reduce dynamic power consumption and static power consumption of the non-transparent endpoint device, comprising: clocks of core logic in the non-transparent endpoint device are closed by using clock enable signals, and clocks of the target slave interface are maintained for detecting the cross-domain transmission request; target configuration information corresponding to the cross-domain transmission is stored in a preset low-speed backup storage, and power supply of the core logic in the non-transparent endpoint device is closed by using a preset power switch.

7. The power consumption control method in cross-domain transmission according to claim 4, wherein, The clock gating technology and the second low power control technology respectively reduce dynamic power consumption and static power consumption of the non-transparent endpoint device, comprising: clocks of core logic in the non-transparent endpoint device are closed by using clock enable signals, and clocks of the target slave interface are maintained for detecting the cross-domain transmission request; target configuration information corresponding to the cross-domain transmission stored in the preset low-speed backup storage is stored in an external storage, and power supply of the core logic, the preset low-speed backup storage and the internal storage in the non-transparent endpoint device is closed by using a preset power switch.

8. The power consumption control method in cross-domain transmission according to claim 4, characterized in that, The dynamic power consumption is determined based on signal flip frequency, load capacitance, power supply voltage and clock frequency; and the static power consumption is determined based on transistor leakage current and power supply voltage.

9. The power consumption control method in cross-domain transmission according to claim 2, wherein, The current second step level is any one of an active level, a logical idle level, a local keep level and a deep sleep level, and the current second step level is the same as or different from the current first step level.

10. The power consumption control method in cross-domain transmission according to claim 9, characterized in that, After the non-transparent endpoint device is controlled by using the target power control strategy corresponding to the current first step level, before the current second step level of the non-transparent endpoint device is determined when the wake-up signal sent by the target slave interface is acquired, the method further comprises: every preset time period, the current latest idle period number of the local data path monitored is compared with a current latest step level threshold to determine the current latest step level of the non-transparent endpoint device, and the non-transparent endpoint device is controlled by using a target power control strategy corresponding to the current latest step level; wherein the current latest step level is any one of an active level, a logical idle level, a local keep level and a deep sleep level.

11. The power consumption control method in cross-domain transmission according to claim 9, characterized in that, The non-transparent endpoint device is controlled to recover to the original configuration corresponding to the cross-domain transmission request by using a target recovery strategy corresponding to the current second step level, comprising: if the current second step level is an active level, the non-transparent endpoint device is maintained to normally operate; If the current second step level is a logic idle level, a local keep level or a deep sleep level, the current second step level is recovered to an active level by using a target recovery strategy corresponding to the current second step level, so as to recover the non-transparent endpoint device to the original configuration corresponding to the cross-domain transmission request.

12. The power consumption control method in cross-domain transmission according to claim 11, characterized in that, If the current second step level is a logic idle level, the current second step level is recovered to an active level by using a target recovery strategy corresponding to the current second step level, including: If the current second step level is a logic idle level, a clock of core logic in the non-transparent endpoint device is started to switch the current second step level to an active level.

13. The power consumption control method in cross-domain transmission according to claim 11, wherein, If the current second step level is a local keep level, the current second step level is recovered to an active level by using a target recovery strategy corresponding to the current second step level, including: If the current second step level is a local keep level, power supply of core logic in the non-transparent endpoint device is recovered, target configuration information corresponding to cross-domain transmission is read from a preset low-speed backup memory, and a clock of core logic in the non-transparent endpoint device is started to switch the current second step level to an active level.

14. The power consumption control method in cross-domain transmission according to claim 11, wherein, If the current second step level is a deep sleep level, the current second step level is recovered to an active level by using a target recovery strategy corresponding to the current second step level, including: If the current second step level is a deep sleep level, power supply of core logic, a preset low-speed backup memory and an internal memory in the non-transparent endpoint device is recovered, target configuration information corresponding to cross-domain transmission is read from an external memory, and a clock of core logic in the non-transparent endpoint device is started to switch the current second step level to an active level.

15. The power consumption control method in cross-domain transmission according to claim 2, wherein, A current step level threshold is calculated based on each idle period sample value in a current sliding window, including: Each idle period sample value in a current sliding window is obtained; each idle period sample value is a number of idle periods in a preset number of clock periods; Mean value operation and standard deviation operation are performed on each idle period sample value to obtain corresponding idle period mean value and idle period standard deviation; A current step level threshold is calculated based on the idle period mean value and the idle period standard deviation.

16. The power consumption control method in cross-domain transmission according to claim 15, wherein, The current step level threshold is calculated based on the idle period mean value and the idle period standard deviation, including: The third level threshold is calculated based on the idle period mean value, the idle period standard deviation and a preset adjustment coefficient; The first level threshold is calculated based on a first preset proportion coefficient and the third level threshold, and the second level threshold is calculated based on a second preset proportion coefficient and the third level threshold; the first preset proportion coefficient is smaller than the second preset proportion coefficient.

17. A power consumption control apparatus in cross-domain transmission, characterized by, The device is applied to a power consumption control unit, the power consumption control unit is integrated in a non-transparent endpoint device, each non-transparent endpoint device is connected with a host through a PCIe link and is used to realize cross-domain transmission between different hosts, and the device includes: The first determining module is configured to monitor a current number of idle periods of the local data path, and compare the current number of idle periods with a current step level threshold to determine a current first step level of the non-transparent endpoint device; the current step level threshold is calculated based on idle period sample values within a current sliding window; The power consumption control module is configured to perform a corresponding power consumption control operation on the non-transparent endpoint device by using a target power consumption control strategy corresponding to the current first step level; The second determining module is configured to determine a current second step level of the non-transparent endpoint device when an awakening signal sent by a target slave interface is acquired; the target slave interface sends the awakening signal after detecting a cross-domain transmission request; The cross-domain transmission recovery module is configured to control the non-transparent endpoint device to recover to an original configuration corresponding to the cross-domain transmission request by using a target recovery strategy corresponding to the current second step level; the original configuration is a configuration of the non-transparent endpoint device without performing any power consumption control operation.

18. An electronic device, comprising: The computer program is configured to be executed by the processor to implement the steps of the power consumption control method in cross-domain transmission according to any one of claims 1 to 16. The computer program is configured to be executed by the processor to implement the steps of the power consumption control method in cross-domain transmission according to any one of claims 1 to 16. The computer program / instruction is configured to be executed by the processor to implement the steps of the power consumption control method in cross-domain transmission according to any one of claims 1 to 16.

19. A computer-readable storage medium, characterized in that, ​ 20. A computer program product comprising computer programs / instructions, characterized in that, ​

Citation Information

Patent Citations

  • PCIe switch and data conversion method of terminal thereof

    CN116489114A

  • Data processing method and device, equipment, medium and program product

    CN120353602A