Power management for peripheral component interconnects
By monitoring the service activities of the PCIe link and dynamically managing the power of the sending and receiving lines, the problem of low power management efficiency of PCIe links in the prior art during low activity periods is solved, and more efficient power management and energy efficiency improvement is achieved.
Patent Information
- Application Number
- CN202380029411.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-04-07
- Filing Date
- 2023-02-28
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2043-02-28
AI Technical Summary
Existing PCIe links are difficult to effectively manage power during low active periods, resulting in excessive hardware consumption, and bandwidth negotiation is usually conducted for the entire link, which cannot adapt to asymmetric transmission and reception usage scenarios.
By monitoring sending and receiving service activities, independently managing the power of the sending and receiving lines, dynamically adjusting the number of active lines and communication parameters in each direction, bandwidth-based power management is realized, allowing links to operate in different states to optimize device power Consumption.
It realizes power savings in low active periods, reduces current leakage and heat generation, adapts to power management in different business scenarios, and improves the energy efficiency of the link.
Smart Images

Figure CN118922823A_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This patent application claims priority to pending U.S. non-provisional application No. 17 / 715,792, filed on April 7, 2022, which is assigned to the assignee of the present application and is hereby expressly incorporated herein by reference as if fully set forth below and for all applicable purposes. Background Art
[0003] Aspects of the present disclosure relate generally to peripheral component interconnect express (PCIe) devices, and more specifically to managing link power of PCIe devices. High-speed interfaces are often used between circuits and components of mobile wireless devices and other complex systems. For example, some devices may include processing, communication, storage and / or display devices that interact with each other through one or more high-speed interfaces. Some of these devices, including synchronous dynamic random access memory (SDRAM), may be able to provide or use data and control information at the processor clock rate. Other devices (e.g., display controllers) may use variable amounts of data at relatively low video refresh rates.
[0004] The Peripheral Component Interconnect Express (PCIe) standard is a popular high-speed interface that supports high-speed links capable of sending data at speeds of several gigabits per second. The interface also has multiple standby modes for when the link is inactive. PCIe provides lower latency and higher data transfer rates than parallel buses. PCIe is specified for communication between a wide variety of different devices. Typically, one device (e.g., a processor or a hub) acts as a host, which communicates with multiple devices (called endpoints) over a PCIe link. Peripheral devices or components can include graphics adapter cards, network interface cards (NICs), storage accelerator devices, mass storage devices, input / output interfaces, and other high-performance peripherals.
[0005] The connection between any two PCIe devices is called a link. PCIe links are built around duplex, serial (1-bit), differential, point-to-point connections called channels. With PCIe, data is transmitted over two signal pairs: two lines (wires, circuit board traces, etc.) for transmission and two lines for reception. The transmit and receive pairs are separate differential pairs for a total of four data lines per channel. The link consists of a set of channels, and each channel is capable of simultaneously transmitting and receiving data packets between the host and the endpoint.
[0006] As currently defined, a PCIe link can scale from one lane to 32 separate lanes. Common deployments have 1, 2, 4, 8, 12, 16, or 32 lanes, which may be labeled x1, x2, x4, x8, x12, x16, or x32, respectively, where the number is actually the number of lanes. In one example, a PCIe x1 implementation has four lanes to connect a lane pair in each direction, while a PCIe x16 implementation has 16 times that number, 16 lanes, or 64 lanes. Summary of the invention
[0007] The following content presents a summary of one or more implementations in order to provide a basic understanding of such implementations. This summary is not an exhaustive overview of all contemplated implementations, and is not intended to identify key or important elements of all implementations, nor is it intended to delineate the scope of any or all implementations. Its sole purpose is to present some concepts of one or more implementations in a simplified form as a preface to the more detailed description that is subsequently presented.
[0008] In one example, a device having an interface circuit and a controller for a peripheral component interconnect express (PCIe) link is disclosed. The device includes an interface circuit and a controller configured to provide an interface with a peripheral component interconnect express (PCIe) link. The controller is configured to: monitor the transmission business activity of the link; monitor the reception business activity of the link; manage the first power of the transmission line of the link as a transmission group according to the transmission business activity; and manage the second power of the reception line of the link as a reception group according to the reception business activity independently of the power of the transmission line.
[0009] Another example provides a method comprising: monitoring transmit business activity of a Peripheral Component Interconnect Express (PCIe) link; monitoring receive business activity of the link; managing a first power of a transmit line of the link as a transmit group based on the transmit business activity; and managing a second power of a receive line of the link as a receive group based on the receive business activity, independent of the power of the transmit line.
[0010] Another example provides a non-transitory computer-readable medium storing instructions for causing a processor of an interconnect link to perform operations including: monitoring transmit business activity of a Peripheral Component Interconnect Express (PCIe) link; monitoring receive business activity of the link; managing a first power of a transmit line of the link as a transmit group based on the transmit business activity; and managing a second power of a receive line of the link as a receive group based on the receive business activity, independent of the power of the transmit line.
[0011] To achieve the foregoing and related purposes, one or more specific implementations include the features fully described below and specifically pointed out in the claims. The following description and accompanying illustrations set forth in detail certain illustrative aspects of the one or more specific implementations. However, these aspects are merely indicative of several of the various ways in which the principles of various implementations may be employed, and the described implementations are intended to cover all such aspects and their equivalents. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a block diagram of a computing architecture with a PCIe interface suitable for use with various aspects of the present disclosure.
[0013] Figure 2 is a block diagram of a system including a host system and an endpoint device system according to aspects of the present disclosure.
[0014] Figure 3 is a diagram of channels and corresponding drivers in a link according to aspects of the present disclosure.
[0015] Figure 4 is a state diagram illustrating the operation of a power management state machine in accordance with aspects of the present disclosure.
[0016] Figure 5 is a block diagram of a duplex traffic channel of a link between a host and an endpoint in accordance with aspects of the present disclosure.
[0017] Figure 6 is a block diagram of a duplex traffic channel of a link grouped into a transmit group and a receive group in accordance with aspects of the present disclosure.
[0018] Figure 7 is an example of a lookup table that maps a business activity to a number of activity lines according to certain aspects of the present disclosure.
[0019] Figure 8 is a table of link activity status in a x4 link according to aspects of the present disclosure.
[0020] Fig. 9 is a state diagram illustrating a portion of a power management protocol for a transmit state and a receive state of a x4 link in accordance with aspects of the present disclosure.
[0021] Fig.10 is a block diagram of a PCIe link interface processing circuit according to aspects of the present disclosure.
[0022] Fig.11 is a flow chart of an exemplary method for bandwidth-based power management according to aspects of the present disclosure. DETAILED DESCRIPTION
[0023] The detailed description set forth below in conjunction with the accompanying drawings is intended as a description of various configurations and is not intended to represent the only configurations in which the concepts described herein may be practiced. In order to provide a comprehensive understanding of the various concepts, the specific embodiments include specific details. However, these concepts may be practiced without these specific details. In some cases, in order to avoid blurring such concepts, known structures and components are shown in block diagram form.
[0024] One aspect relates to a system for managing power across a wired peripheral component interconnect link (e.g., PCIe). A first power of a transmit line is managed as a transmit group according to a transmit business activity, and a second power of a receive line is managed as a receive group according to a receive business activity. The power of the receive line of the link is managed independently of the power of the transmit line of the link. Power can be managed by controlling the number of active lines in each direction and other communication parameters. In some aspects, each line is placed in an active or standby state. In some aspects, each group is placed in one of an active or multiple standby states, depending on the number of lines in the active state.
[0025] Various aspects of the present disclosure provide bandwidth-based PCIe power management for each direction of the link. Independent active line scaling can be used in each direction. The following uses the example of a x4 link in PCIe Gen 5 to discuss various aspects of the present disclosure. However, the present disclosure is not limited to these examples. The present disclosure can be used to provide power management for future implementations of the PCIe standard (e.g., GEN6 and above). In addition, although the present disclosure is discussed with respect to PCIe links, the basic principles of the disclosed systems and methods can be implemented in other types of peripheral component interconnect (PCI) links or even in other physical serial interconnects between a host and a client device.
[0026] Various aspects of the present disclosure relate to dynamically changing the power state of a peripheral component interconnect express (PCIe) link to optimally save device power. The PCIe specification allows an active state (e.g., L0) and one or more standby states (e.g., L1, L2, L3) and sub-states (e.g., L1.1, L1.2). In an example, each channel of a link may have a different active state. As an example, a x4 link with 4 channels may operate with zero, one, two, three, or all four channels active, thereby giving five possible active states but sixteen possible active implementations, depending on which channels are active. As an example, a state with one active channel can be implemented in four different ways by making any one of the four channels an active channel. Each active state also allows a different link speed, also referred to as a data rate, which depends on the specified speed capability of the link. PCIe GEN1 allows 2.5 gigatransfers per second (GT / s), PCIe GEN2 allows 5 GT / s, PCIe GEN3 allows 8 GT / s, PCIe GEN4 allows 16 GT / s, PCIe GEN5 allows 32 GT / s, and subsequent versions may provide higher data rates for each lane of the link.
[0027] Power management and bandwidth negotiation as defined in current standards are performed at link initialization, but may be repeated at a later time. During negotiation, each link partner may advertise the number of lanes supported (e.g., link width) and the bandwidth desired to operate. For example, the link partners may agree to operate at the highest bandwidth supported by both partners. The link partners negotiate that a certain number of lanes of the link are active, and that number of lanes may be changed to a lower rate for reasons of link stability. In one example, the link width may be changed autonomously by hardware. As the number of lanes increases, the power required to operate the link also increases. Therefore, in some cases, a x16 link may operate as a x1 link at lower power. This reduces the power consumed by the supporting hardware during periods of low activity.
[0028] As defined in the current standards, power management and bandwidth negotiation are performed for the entire link. Transmit data and receive data are handled in the same way. For example, if the negotiated receive bandwidth is larger, the power allocated to the transmit bandwidth will also be larger. However, in some cases, the transmit and receive usage or requirements are different. As an example, the traffic flow may be largely unidirectional, with no reverse traffic. For example, this may happen if the link is used for data storage and there are a lot of write operations to the data storage. In another example, the receive bandwidth usage may be large, while the transmit usage may be very low. For example, this may happen if the link is used to download video files over a wireless network link, in which only a small number of acknowledgment packets are transmitted in the transmit direction. There are many other scenarios where asymmetric bandwidth usage also exists. Additional power savings can be achieved by handling power management and bandwidth negotiation in another direction independently of one direction.
[0029] In some examples, the transmit lines of all lanes in a PCIe link are managed as a transmit group, and the receive lines of all lanes in a PCIe link are managed as a receive group. Separate power management and bandwidth negotiation are performed for transmit and receive, and the results are set in transmit and receive registers maintained at the host and endpoint. This allows the transmit group to operate at low power, such as two or four active lines with the rest in standby, even if the receive group has more active lines and operates at high power, such as 8 or 16 receive lines, and vice versa.
[0030] Figure 1 1 is a block diagram of an example computing architecture using a PCIe interface. The computing architecture 100 operates using multiple high-speed PCIe interface serial links. The PCIe interface can be characterized as an apparatus including a point-to-point topology, in which a separate serial link connects each device to a host, which is referred to as a root complex 104. In the computing architecture 100, the root complex 104 couples the processor 102 to a memory device (e.g., a memory subsystem 108) and a PCIe switching circuit 106. In some instances, the PCIe switching circuit 106 includes cascaded switching devices. One or more PCIe endpoint devices 110 can be directly coupled to the root complex 104, while other PCIe endpoint devices 112-1, 112-2, ..., 112-N can be coupled to the root complex 104 through the PCIe switching circuit 106. The root complex 104 can be coupled to the processor 102 using a proprietary local bus interface or a standard defined local bus interface. Root complex 104 may control configuration and data transactions over a PCIe interface and may generate transaction requests for processor 102. In some examples, root complex 104 is implemented in the same integrated circuit (IC) device that includes processor 102. Root complex 104 supports multiple PCIe ports.
[0031] The root complex 104 may control communication between the processor 102 and a memory subsystem 108, which is one example of an endpoint. The root complex 104 also controls communication between the processor 102 and other PCIe endpoint devices 110, 112-1, 112-2, ..., 112-N. The PCIe interface may support full-duplex communication between any two endpoints, with no inherent restrictions on concurrent access across multiple endpoints. Data packets may carry information over any PCIe link. In a multi-lane PCIe link, packet data may be striped across multiple lanes. The number of lanes in a multi-lane link may be negotiated during device initialization and may be different for different endpoints.
[0032] When one or both traffic directions of the lanes of a PCIe link are underutilized by low-bandwidth applications that can be adequately served by fewer lanes, the root complex 104 and endpoints may operate the link with more or fewer transmit and receive lines in one or both directions. In some embodiments, the lines of the link may be placed in one or more standby states in which some or all of the lines operate in a low-power or no-power mode. Changing the number of active lines for low-bandwidth applications reduces the power to operate the link. Providing less power reduces current leakage, heat, and power consumption.
[0033] Figure 2 205 is a block diagram of an exemplary PCIe system in which aspects of the present disclosure may be implemented. System 205 includes a host system 210 and an endpoint device system 250. Host system 210 may be integrated on a first chip (e.g., a system on a chip or SoC), and endpoint device system 250 may be integrated on a second chip. Alternatively, the host system and / or the endpoint device system may be integrated in a first package and a second package (e.g., a SiP), a first system board and a second system board having multiple chips, or in other hardware or any combination. In this example, host system 210 and endpoint device system 250 are coupled via PCIe link 285.
[0034] The host system 210 includes one or more host clients 214. Each of the one or more host clients 214 can be implemented on a processor executing software that performs the functions of the host client 214 discussed herein. For examples of more than one host client, the host clients can be implemented on the same processor or on different processors. The host system 210 also includes a host controller 212 that can perform root complex functions. The host controller 212 can be implemented on a processor executing software that performs the functions of the host controller 212 discussed herein.
[0035] The host system 210 includes a PCIe interface circuit 216, a system bus interface 215, and a host system memory 240. The system bus interface 215 can interface one or more host clients 214 with the host controller 212, and each of the one or more host clients 214 and the host controller 212 with the PCIe interface circuit 216 and the host system memory 240. The PCIe interface circuit 216 provides an interface to the PCIe link 285 to the host system 210. In this regard, the PCIe interface circuit 216 is configured to send data (e.g., from the host client 214) to the endpoint device system 250 via the PCIe link 285 and receive data from the endpoint device system 250 via the PCIe link 285. The PCIe interface circuit 216 includes a PCIe controller 218, a physical interface 220 for a PCI Express (PIPE) interface, a physical (PHY) transmit (TX) block 222, a clock generator 224, and a PHY receive (RX) block 226. PIPE interface 220 provides a parallel interface between PCIe controller 218 and PHY TX block 222 and PHY RX block 226. PCIe controller 218 (which may be implemented in hardware) may be configured to perform transaction layer, data link layer, and control flow functions specified in the PCIe specification, as discussed further below.
[0036] The host system 210 also includes an oscillator (e.g., a crystal oscillator or "XO") 230 configured to generate a reference clock signal 232. In one example, the reference clock signal 232 may have a frequency of 19.2 MHz, but is not limited to this frequency. The reference clock signal 232 is input to the clock generator 224, which generates a plurality of clock signals based on the reference clock signal 232. In this regard, the clock generator 224 may include one or more phase-locked loops (PLLs), each of which generates a respective one of the plurality of clock signals by multiplying the frequency of the reference clock signal 232.
[0037] The endpoint device system 250 includes one or more device clients 254. Each device client 254 may be implemented on a processor executing software that performs the functions of the device client 254 discussed herein. For examples of more than one device client 254, the device clients 254 may be implemented on the same processor or on different processors. The endpoint device system 250 also includes a device controller 252. The device controller 252 may be configured to receive bandwidth requests from one or more device clients and determine whether to change the number of transmit lines or the number of receive lines based on the bandwidth request. The device controller 252 may be implemented on a processor executing software that performs the functions of the device controller.
[0038] The endpoint device system 250 includes a PCIe interface circuit 260, a system bus interface 256, and an endpoint system memory 274. The system bus interface 256 may interface one or more device clients 254 with the device controller 252, and interface each of the one or more device clients 254 and the device controller 252 with the PCIe interface circuit 260 and the endpoint system memory 274. The PCIe interface circuit 260 provides an interface to a PCIe link 285 to the endpoint device system 250. In this regard, the PCIe interface circuit 260 is configured to send data (e.g., from the device client 254) to a host system 210 (also referred to as a host device) through the PCIe link 285 and receive data from the host system 210 via the PCIe link 285. The PCIe interface circuit 260 includes a PCIe controller 262, a PIPE interface 264, a PHY TX block 266, a PHY RX block 270, and a clock generator 268. PIPE interface 264 provides a parallel interface between PCIe controller 262 and PHY TX block 266 and PHY RX block 270. PCIe controller 262 (which may be implemented in hardware) may be configured to perform transaction layer, data link layer, and control flow functions.
[0039] The host system memory 240 and the endpoint system memory 274 at the endpoint can be configured to contain registers for the status of each transmit line and receive line of the PCIe link 285. The transmit line can be configured as a differential transmit line pair, and the receive line can be configured as a differential receive line pair. These registers include a group control register and a group status register. In an example, both the host system memory 240 and the endpoint system memory 274 have a transmit group control register, a transmit group status register, and a transmit group capability register, etc., for the transmit group. Both the host system memory 240 and the endpoint system memory 274 also have a receive group control register, a receive group status register, and a receive group capability register, etc., for the receive group.
[0040] The endpoint device system 250 also includes an oscillator (eg, a crystal oscillator) 272 configured to generate a stable reference clock signal 273 for an endpoint system memory 274. Figure 2In the example of , the clock generator 224 at the host system 210 is configured to generate a stable reference clock signal 273, which is forwarded by the PHY RX block 226 to the endpoint device system 250 via the differential clock line 288. At the endpoint device system 250, the PHY RX block 270 receives the EP reference clock signal on the differential clock line 288 and forwards the EP reference clock signal to the clock generator 268. The EP reference clock signal may have a frequency of 100 MHz, but is not limited to this frequency. The clock generator 268 is configured to generate a plurality of clock signals based on the EP reference clock signal from the differential clock line 288, as discussed further below. In this regard, the clock generator 268 may include a plurality of PLLs, each of which generates a respective one of the plurality of clock signals by multiplying the frequency of the EP reference clock signal.
[0041] The system 205 also includes a power management integrated circuit (PMIC) 290 coupled to a power source 292 (e.g., a mains voltage, a battery, or other power source). The PMIC 290 is configured to convert the voltage of the power source 292 to a plurality of supply voltages (e.g., using a switching regulator, a linear regulator, or any combination thereof). In this example, the PMIC 290 generates a voltage 242 for the oscillator 230, a voltage 244 for the PCIe controller 218, and a voltage 246 for the PHY TX block 222, the PHY RX block 226, and the clock generator 224. The voltages 242, 244, and 246 may be programmable, wherein the PMIC 290 is configured to set the voltage levels (angles) of the voltages 242, 244, and 246 according to instructions (e.g., from the host controller 212).
[0042] The PMIC 290 also generates a voltage 280 for the oscillator 272, a voltage 278 for the PCIe controller 262, and a voltage 276 for the PHY TX block 266, the PHY RX block 270, and the clock generator 268. The voltages 280, 278, and 276 may be programmable, wherein the PMIC 290 is configured to set the voltage levels (angles) of the voltages 280, 278, and 276 according to instructions (e.g., from the device controller 252). The PMIC 290 may be implemented on one or more chips. Although the PMIC 290 may be implemented on a single chip, the PMIC 290 may be implemented on a single chip. Figure 2 290 is shown as one PMIC, but it should be understood that PMIC 290 may be implemented by two or more PMICs. For example, PMIC 290 may include a first PMIC for generating voltages 242, 244, and 246 and a second PMIC for generating voltages 280, 278, and 276. In this example, both the first PMIC and the second PMIC may be coupled to the same power supply 292 or different power supplies.
[0043] In operation, the PCIe interface circuit 216 on the host system 210 can send data from one or more host clients 214 to the endpoint device system 250 via the PCIe link 285. When the host controller negotiates bandwidth for the link, data from the one or more host clients 214 can be directed to the PCIe interface circuit 216 according to the PCIe mapping established by the host controller 212 during initial configuration (sometimes referred to as link initialization). In an example, the host controller negotiates a first bandwidth for a transmit group of the link and a second bandwidth for a receive group of the link. At the PCIe interface circuit 216, the PCIe controller 218 can perform transaction layer and data link layer functions on the data, such as packetizing the data, generating error correction codes to be sent with the data, etc.
[0044] The PCIe controller 218 outputs the processed data to the PHY TX block 222 via the PIPE interface 220. The processed data includes data from one or more host clients 214 and overhead data (e.g., packet headers, error correction codes, etc.). In one example, the clock generator 224 may generate a clock 234 for an appropriate data rate or transfer rate based on the reference clock signal 232, and input the clock 234 to the PCIe controller 218 to time the operation of the PCIe controller 218. In this example, the PIPE interface 220 may include a 22-bit parallel bus that transmits 22 bits of data in parallel to the PHY TX block for each cycle of the clock 234. At a frequency of 250 MHz, the transfer rate is approximately 8 GT / s.
[0045] The PHY TX block 222 serializes the parallel data from the PCIe controller 218 and drives the PCIe link 285 with the serialized data. In this regard, the PHY TX block 222 may include one or more serializers and one or more drivers. The clock generator 224 may generate a high frequency clock for the one or more serializers based on the reference clock signal 232.
[0046] At the endpoint device system 250, the PHY RX block 270 receives the serialized data via the PCIe link 285 and deserializes the received data into parallel data. In this regard, the PHY RX block 270 may include one or more receivers and one or more deserializers. The clock generator 268 may generate a high frequency clock for the one or more deserializers based on the EP reference clock signal. The PHY RX block 270 transmits the deserialized data to the PCIe controller 262 via the PIPE interface 264. The PCIe controller 262 may recover data from the one or more host clients 214 from the deserialized data and forward the recovered data to the one or more device clients 254.
[0047] On the endpoint device system 250, the PCIe interface circuit 260 may send data from one or more device clients 254 to the host system memory 240 via a PCIe link 285. In this regard, the PCIe controller 262 at the PCIe interface circuit 260 may perform transaction layer and data link layer functions on the data, such as packetizing the data, generating error correction codes to be sent with the data, etc. The PCIe controller 262 outputs the processed data to the PHY TX block 266 via the PIPE interface 264. The processed data includes data from the one or more device clients 254 and overhead data (e.g., packet headers, error correction codes, etc.). In one example, the clock generator 268 may generate a clock based on the EP reference clock via a differential clock line 288 and input the clock to the PCIe controller 262 to time the operation of the PCIe controller 262.
[0048] The PHY TX block 266 serializes the parallel data from the PCIe controller 262 and drives the PCIe link 285 with the serialized data. In this regard, the PHY TX block 266 may include one or more serializers and one or more drivers. The clock generator 268 may generate a high frequency clock for the one or more serializers based on the EP reference clock signal.
[0049] At the host system 210, the PHY RX block 226 receives the serialized data via the PCIe link 285 and deserializes the received data into parallel data. In this regard, the PHY RX block 226 may include one or more receivers and one or more deserializers. The clock generator 224 may generate a high frequency clock for the one or more deserializers based on the reference clock signal 232. The PHY RX block 226 transmits the deserialized data to the PCIe controller 218 via the PIPE interface 220. The PCIe controller 218 may recover data from the one or more device clients 254 from the deserialized data and forward the recovered data to the one or more host clients 214.
[0050] Figure 3 is available in Figure 1 and Figure 22 is a diagram of channels in a link 385 (e.g., PCIe link 285) used in a system of FIG. 210. In this example, link 385 includes a plurality of channels 310-1 to 310-n, where each channel includes a respective first differential line pair 312-1 to 312-n for transmitting data from a host system 210 to an endpoint device system 250, and a respective second differential line pair 315-1 to 315-n for transmitting data from the endpoint device system to the host system 210. From the perspective of the host system, the first channel 310-1 is dual simplex, where the first differential line pair 312-1 acts as a transmit line and the second differential line pair 315-1 acts as a receive line. From the perspective of the endpoint device system, the first channel 310-1 has a receive line and a transmit line. The first differential line pair 312-1 to 312-n and the second differential line pair 315-1 to 315-n may be implemented with metal trace lines on a substrate (e.g., a printed circuit board), wherein the host system may be integrated on a first chip mounted on the substrate, and the endpoint device is integrated on a second chip mounted on the substrate. Alternatively, the link may be implemented through an adapter card slot, a cable, or a combination of different media. The link may also include an optical portion in which the PCIe packets are encapsulated within different systems. In this example, when data is transmitted from the host system to the endpoint device system across multiple channels, the PHYTX block 222 may include logic for dividing data between channels. Similarly, when data is transmitted from the endpoint device system to the host system 210 across multiple channels, the PHY TX block 266 may include logic for dividing data between channels.
[0051] Figure 2 The PHY TX block 222 of the host system 210 shown in FIG. 1 may be implemented to include a transmission driver 320-1 to 320-n for driving each first differential line pair 312-1 to 312-n to transmit data, and Figure 2 The PHYRX block 270 of the host shown in the figure may be implemented to include receivers 340-1 to 340-n (e.g., amplifiers) for driving each second differential line pair 312-1 to 312-n to receive data. Each transmit driver 320-1 to 320-n is configured to drive the corresponding differential line pair 312-1 to 312-n with data, and each receiver 340-1 to 340-n is configured to receive data from the corresponding first differential line pair 312-1 to 312-n. In addition, in Figure 2In the embodiment of the present invention, the PHY TX block 266 of the endpoint device system 250 may include a transmit driver 345-1 to 345-n for each second differential line pair 315-1 to 315-n, and the PHY RX block 226 of the host system 210 may include a receiver 325-1 to 325-n (e.g., an amplifier) for each second differential line pair 315-1 to 315-n. Each transmit driver 345-1 to 345-n is configured to drive the corresponding second differential line pair 315-1 to 315-n with data, and each receiver 325-1 to 325-n is configured to receive data from the corresponding second differential line pair 315-1 to 315-n.
[0052] In some aspects, the width of the link 385 can be scaled to match the capabilities of the host system and the endpoints. The link can use one lane 310-1 for a x1 link, two lanes 310-1, 310-2 for a x2 link, or multiple lanes for wider links, up to n lanes from 310-1 to 310-n. Current links are defined as 1, 2, 4, 8, 16, and 32 lanes, but different numbers of lanes can be used to suit a particular implementation.
[0053] In one example, the host system 210 may include a power switch circuit 350 configured to individually control power to the transmit drivers 320-1 to 320-n and the receivers 325-1 to 325-n from the PMIC 290. Thus, in this example, the number of drivers and receivers powered is proportional to the width of the link 385. Similarly, Figure 2 The endpoint device system 250 shown in FIG. 2 may include a power switch circuit 360 configured to individually control power supply from the PMIC 290 to the transmit drivers 345-1 to 345-n and the receivers 340-1 to 340-n. In this manner, the host system sets the number of multiple drivers to be selectively powered by the power switch circuit to change the number of active transmit or receive lines based on the number of lines powered. Using differential signaling, the lines will be set to active or standby states in pairs.
[0054] Figure 44 is a state diagram 400 illustrating the operation of a power management state machine according to certain aspects disclosed herein. The active state power management (ASPM) protocol is a state machine method for reducing power based on link activity detected on a PCIe link between a root complex and an endpoint PCIe device. The state diagram is consistent with the link training and state state machine (LTSSM) defined for PCIe. However, other methods may be used alternatively. In this method, when data is being transmitted through a PCIe link, the link operates in an L0 power state (i.e., a link operation state). In this example, L0 state 404 and L1 state 406 are shown. The ASPM protocol may also support additional active and standby states and sub-states, such as L1.1 and L1.2 sub-states, etc. As shown, L1 state 406 can only be accessed through a connection to L0 state 404. When a condition on a link indicates or suggests a need or appropriate transition between states, an ASPM state change may be initiated. When the condition is normal, both communication partners on the link may initiate a power state change request.
[0055] When the link is idle (e.g., in a short time interval between data bursts), the link can enter a standby state L0s 402 from the L0 state 404, which can only be accessed through a connection to the L0 state 404. In this example, L0s 402 is a low-power standby state of L0 404. L1 state 406 is a standby state with lower latency than L0s state 402. L0s state 402 is used as a standby state and is also used as an initialization state after power-on, system reset, or after an error condition is detected. In L0s 402, device discovery and bus configuration processes can be implemented before the link transitions 422 to L0 404. In L0 404, PCIe devices can be active and respond to PCIe transactions, and / or can request or initiate PCIe transactions. L1 state 406 is the main standby state and allows a quick return to L0 state 404. When the PCIe device determines that there are no outstanding PCIe requests or pending transactions, it can enter the L1 state 406 through transition 424. Power consumption can be reduced by disabling or idling transceivers in the PCIe bus interface, disabling, gating or slowing down the clock used by the PCI device, and disabling the PLL circuit used to generate the clock for receiving data. The PCIe device can make the transition 424 to the L1 state 406 through the operation of the hardware controller or some combination of the operating system and the hardware control circuit.
[0056] When the PCIe link is inactive for a longer period of time, the link can enter the L2 state 416 or L3 state 418 through the L2 / L3 ready state 412 to achieve even lower power consumption. The L2 / L3 ready state 412 is a pseudo state that prepares the link components for loss of power and loss of reference clock. The L2 state 416 and L3 state 418 are further reduced in power and have longer latency than the L1 state 406. Additional lower power states may be provided to accommodate other specific implementations.
[0057] When a PCIe link becomes active while a device is operating in L2 state 412 or L3 state L3 418, a return to L0 state 404 is initiated for the device. A direct transition to L0 state 404 may not be available. The PCIe link may transition 416 to a recovery state, LDn state 420, in which the transceivers in the PCIe bus interface, the clocks used by the PCI devices, and / or PLL circuits are enabled. When it is determined that the transceivers and other circuits are functional, a transition 422 from LDn state 420 to L0 state 404 may be initiated. LDn state 420 may also be entered by a reset or link disable operation.
[0058] In some examples, the ASPM protocol determines whether a transition 424 to the L1 state 406 should be initiated based on a limited time interval or threshold defined as the L1 entry delay. Similar thresholds may be defined for the L2 state 416, the L3 state 418, and other states. The L1 state 406 is a link power state that does not allow data transmission over the PCIe link. Whenever the PCIe link is inactive for a given L1 entry delay duration, the PCIe controller may request the link partner to enter a low-power link state in order to save power. In some instances, the L1 entry delay duration is selected based on overall system parameters, activity, and / or pending operations. In some operating modes, the ASPM protocol may be configured to save power by reducing the transmission time during which the PCIe link is active and consumes power. During high bandwidth bursts, some modes may be configured to avoid link transitions to low power states, which would otherwise extend the transmission time. The ASPM may initiate a transition to a low power state transition after the observed link inactivity time. The specific entry delay duration may be adjusted to accommodate different system architectures and device characteristics. In some implementations, the packet latency between read / write requests in a PCIe interface may vary between, for example, 1 μs and 40 μs.
[0059] By reducing the link width during low throughput data traffic scenarios, the subsystem of the PCIe link reduces the voltage level (e.g., to a lower operating level that satisfies the current throughput on the PCIe link). The reduced voltage level or levels reduce power consumption (e.g., reduces leakage current during sustained low throughput traffic or in idle use cases). The number of channels also affects power consumption. In practice, there is an L0, L1 transition state diagram for each channel.
[0060] Figure 5 is a diagram of a link 504 such as a PCIe link of a duplex traffic channel between a host 502 and an endpoint 506. A duplex traffic channel may have Figure 3 , but is generalized to show how the lanes are grouped in a typical configuration. Link 504 includes four lanes 511, 512, 513, 514, but more or fewer lanes may be used. Each lane includes two transmit lanes as differential lane pairs and two receive lanes as differential lane pairs, for a total of four lanes per lane and sixteen lanes for a x4 link. Figure 3 In the example, Figure 2 The PHY TX block 222 shown in FIG. 1 may be implemented to include a transmit driver for each differential pair of two transmit lines, and Figure 2 The PHYRX block 270 shown in FIG. 2 may be implemented to include a receiver for each differential pair of two receive lines.
[0061] In some aspects, the width of the link 504 can be scalable by controlling the number of channels 511, 512, 513, 514 that are active. The host 502 or endpoint 506 can configure the link width by configuring the number of traffic channels that are powered to send and receive data over the link 504. In the case of high transmit or receive traffic, all traffic channels are activated. If both transmit and receive traffic are low or if there is no traffic activity, one or more duplex traffic channels can be placed in a low power state, such as an L1 state.
[0062] Figure 6 6 is a diagram of a duplex traffic channel of a link 604 between a host 602 and an endpoint 606 grouped into a send group 610 and a receive group 620. The link may be a PCIe link, which may have Figure 3, but wherein the channels have been logically grouped into a group for a host transmit group 610 and a group for a host receive group 620. A host transmit packet (B0) is also an endpoint receive packet, and a host receive packet (B1) is also an endpoint transmit packet. In this example, link 604 includes four channels, but more or fewer channels may be used. Transmit group 610 includes four transmit differential line pairs 611, 612, 613, 614, each of the four channels corresponds to a transmit differential line pair, which are logically grouped into the host transmit group 610 for transmitting data from the host 602 to the endpoint 606. Receive group 620 includes four receive differential line pairs 621, 622, 623, 624, which are logically grouped into the host receive group 620 for receiving data from the endpoint 606 at the host 602. Using Figure 6 , PHY TX block 222 may include logic for dividing data between transmit lanes of transmit group 610, and PHY RX block 226 may include logic for dividing data between receive lanes of receive group 620 independently of the transmit group. Similarly, when data is transmitted from endpoint 606 to host 602 across multiple lanes, PHY TX block 266 may include logic for dividing data between transmit lanes of the transmit group independently of receive lanes of the receive group.
[0063] As described above, each differential line pair includes a driver and a receiver, so that if any of the differential line pairs in either direction is placed in a low power or standby state, the power is reduced. In this example, for the transmit group 610 within the link 604, the number of active transmit lines is scalable, regardless of the power of the receive lines of the receive group 620. Similarly, the number of active receive lines within the receive group 620 is scalable, regardless of the power of the transmit lines of the transmit group 610.
[0064] As described above, the host system 210 may include a power switch circuit 350 configured to individually control power from the PMIC 290 to the transmit drivers 320-1 to 320-n and the receivers 325-1 to 325-n. In this regard, the power switch circuit 350 may couple the transmit drivers and receivers of the active lines to the voltage 246 and decouple the transmit drivers and receivers of the inactive lines from the voltage 246. Thus, the number of transmit drivers and receivers that are powered is proportional to the number of active lines in the transmit group and the number of active lines in the receive group. The endpoint may also include a power switch circuit 360 for individually controlling the power of the transmit and receive drivers. For ease of illustration, Figure 6 The individual connections or couplings between the power switch circuit, driver and receiver are not shown.
[0065] In some examples, a threshold process can be used to determine whether to transition to or from a standby state for any specific transmission line or receiving line or for a transmission group or receiving group as a whole. As an example, a process can be to monitor the transmission business activity of a link, compare the transmission business activity of the link with a threshold, and manage the first power of the transmission line of the link as a transmission group according to the transmission business activity. The process can manage the first power by placing one or more transmission lines in a transmission line or one or more differential line pairs of a transmission line in a standby substate in response to the transmission business activity being less than a threshold. The standby substate is a power state lower than the standby state. Alternatively, business inactivity can be compared with a threshold. The receiving business at the endpoint corresponds to the transmission business at the host, so that either process or both processes can be used to determine the appropriate power management of the link.
[0066] The process can be represented as Thread 0 as shown below. LINK_STATE_B0 refers to the link state of the sending group B0, which has an active state L0 B0, an inactive state L1 B0, and an inactive substate L1SS B0, but there may be multiple substates with different numbers of inactive sending lines. EP refers to the endpoint, and RX_traffic_inactivity_at_EP refers to the monitored amount of receive traffic activity at the endpoint, which corresponds to the transmit traffic inactivity at the receiver. changeLinkState refers to a command from the process to the link controller. In the example of the Thread 0 process, the process can be applied when the link state of the sending group B0 is in the L1 standby state or the L1SS standby substate. The process compares the receive traffic inactivity at the endpoint with the threshold of the L1SS substate. If the receive traffic inactivity is greater than the threshold, the link state is set to the standby substate L1SS, and if not, the link state is set to the standby state L1.
[0067]
[0068] A similar process may be performed for receiving traffic at a host by comparing activity or inactivity to a threshold. In one example, the process is to monitor the receive traffic activity of a link, compare the receive traffic activity of the link to a threshold, and manage the second power of the receive line of the link as a receive group based on the receive traffic activity. The process may manage the second power by placing the receive traffic line of the link in a standby state or standby sub-state (e.g., L1 or L1SS) in response to the receive traffic activity being less than the threshold.
[0069] This process can be represented as Thread 1 below. In the example of the Thread 1 process, the process can be applied when the link state of the transmission group B1 is in the L1 standby state or the L1SS standby substate. The process compares the reception service inactivity at the host or receiver with the threshold of the L1SS substate. If the reception service inactivity is greater than the threshold, the link state is set to the standby substate L1SS, if not, the link state is set to the standby state L1.
[0070]
[0071] Additional thresholding procedures may be established for each link width transition in each direction. Figure 7 700 is an example of a table, such as a lookup table for mapping the monitored business activity to a certain number of active differential line pairs using or setting. On the transmitting side, the monitored transmission business activity is applied to one or more thresholds in the first column 710. For the case of multiple clients, the monitored business activity may be an aggregate bandwidth. The business may be measured as a data rate (e.g., Mbps or another format), an interval between packets, or in other units. Alternatively, business inactivity may be used, and business inactivity may be measured in time units, data rates, or other units. The thresholds in the first column 710 are used to convert the transmission business activity to a certain number of active differential line pairs in the second column 720 through a lookup table. The second column 720 has a corresponding number of active differential line pairs (labeled as "1" to "32"), and the first column provides a threshold that triggers a transition from a number of active differential line pairs to another number of active differential line pairs for each range of business activity between these thresholds. A x4 link may support 1, 2, 3, or 4 active differential line pairs, depending on the business or business inactivity. Although the second column provides a number of active differential line pairs, it does not provide which of the available differential line pairs are selected for the active state.
[0072] The third column 730 provides thresholds for comparing the monitored receive business activities. These receive business activity thresholds are also mapped to a certain number of active differential line pairs in the fourth column 740 in the same manner. There may be different tables for sending and receiving, or the same table may be used to solve for both the send and receive numbers of active differential line pairs. The thresholds may be the same or different. For send business activities, the controller places a determined number of active send differential line pairs in an active state based on a response threshold, and places the remaining send differential line pairs in a standby sub-state. For receive business activities, the controller places a determined number of active receive differential line pairs in an active state based on a response threshold, and places the remaining send differential line pairs in a standby sub-state.
[0073] Table 700 may be pre-stored in a memory of a bandwidth solver coupled to PCIe controllers 218, 262. When the bandwidth solver monitors the sending business activities and receiving business activities from one or more clients. The bandwidth solver may convert the monitored business activities into a certain number of active sending differential line pairs and active receiving differential line pairs by applying one of these thresholds. Table 700 may be generated based on computer simulation of the system and / or power measurement results of the system for various business activities and active line scenarios. In this example, based on simulation results and / or power measurement results, the number of active lines with the lowest power resulting in a specific bandwidth may be mapped to the appropriate business activity threshold in table 700.
[0074] Figure 8 Table 800 is a power mode applicable to a transmitting group (designated here as B0) or a receiving group (designated here as B1). In this example, there are four differential line pairs, however, more or fewer differential line pairs may be used. The differential line pairs are designated as L1, L2, L3, and L4 in Table 800. Each differential line pair can be in an inactive state (indicated as "1") or an active state (indicated as "0"). Referring to Table 800, there is a unique state, indicated as 0x0, in which all lines are active. In this state, no line is configured to a low power state, such as L1. This can be used as a default state for quick response. There is a unique state, indicated as 0x9, in which all lines are inactive. All lines can be in a low power state, such as L1. This state can be used when monitoring traffic and comparing traffic activity or inactivity to thresholds (such as Figure 7 The other states correspond to one inactive differential line pair (two lines) indicated by 0x1, two inactive differential line pairs (four lines) indicated by 0x3, and three inactive differential line pairs (6 lines) indicated by 0x7. For PCIe links configured as x1, x2, x8, x16, or x32, etc., other codes can be used to accommodate more or fewer states. The codes are stored in registers with the host or endpoint controller to control the state of the transmit and receive lines. Figure 8 Shown for Figure 7 For each number of differential line pairs, there may be multiple possible configurations of a set of differential line pairs. A value such as 0x7 corresponds to a number such as "1" from threshold table 700. The sequence or order in which the lines are placed in active or standby states may be adjusted to suit a particular configuration and implementation.
[0075] Fig. 91 is a state diagram illustrating a portion of a power management protocol in which there are five inactive sub-states of the L1 state. These states and sub-states are independently applicable to the transmit group and the receive group. On the transmit side, for the logical transmit packet B0, there is an active L0 B0 state 902, which is consistent with the Figure 4 The L0 state 404 is the same or similar to the L0 state 404 described above, but is only used to send packets. The transition between the L0B0 state 902 and the inactive or standby L1 B0 state 904 is also similar to Figure 4 The standby state L0 B0 904 has four sub-states. These four sub-states correspond to, for example, Figure 8 The codes 0x0, 0x1, 0x3, 0x7, 0x9 indicate the number of active transmit differential line pairs, as measured using a threshold (e.g. Figure 7 The controller (e.g., a PCIe controller) places at least one of the transmission differential line pairs in a standby state in response to the negotiated bandwidth or the selected bandwidth. The selected at least one transmission differential line pair may be any one of the transmission differential line pairs of the transmission group.
[0076] The first standby substate L1-1 B0 911 for 0x9 is the state of the four standby differential line pairs of the transmission group. There is no active line in the transmission group. This state corresponds to the standard standby state L1 B0904 and can be replaced by this state. The second standby substate L1-2 B0 911 is the state of 0x7 for three standby differential line pairs and one active differential line pair of the transmission group. The third standby substate L1-3 B0 913 for 0x3 is the state for two standby differential line pairs and two active differential line pairs. The fourth standby substate L1-4 B0 914 is the state of 0x1 for one standby differential line pair and four active differential line pairs. The fifth state of 0x0, where all lines are active lines, corresponds to L0 B0 902. In this example, there are four substates in the x4 link. There may be more or fewer substates to adapt to different numbers of lines and different specific implementations. In some examples, not every combination is used. As an example, a x16 link can support 17 different numbers of standby line combinations, however, for simplicity, the system may be configured to use only 8 or another number of line combinations less than the maximum number.
[0077] On the receive side, for a logical receive packet B1, there is an active L0 B1 state 922 in which all four receive differential line pairs are active, which is consistent with the state regarding Figure 4The L0 state 404 is the same or similar to the L0 state 404 described above, but is only used to receive packets. The transition between the L0 B1 state 922 and the inactive or standby L1 B1 state 924 is also similar to Figure 4 The L1 B1 state is the same or similar to the L1 state 406 of 0x9, but is only used to receive packets. The controller (e.g., a PCIe controller) then uses thresholding and business activity to place at least one of the receive differential line pairs in the standby state. The at least one transmit differential line pair can be selected based on channel sequence negotiation or in another manner. The L1 B1 state is used for 0x9, where all lines are inactive or can be used as a transition state to enter a substate. The standby state L1 B1 924 has four substates. These four substates correspond to, for example, Figure 8 The codes 0x0, 0x1, 0x3, 0x7, 0x9 indicate the number of active receive traffic lines, as indicated by the use of thresholds (e.g. Figure 7 The first standby sub-state L1-1 B1 931 for 0x9 is the state of four standby differential line pairs of the receiving group. There is no active line in the receiving group. This state corresponds to the standard standby state L1 B1 924 and can be replaced by this state. The second standby sub-state L1-2 B1931 is the state of 0x7 for three standby differential line pairs and one active differential line pair of the receiving group. The third standby sub-state L1-3 B1 933 for 0x3 is the state for two standby differential line pairs and two active differential line pairs. The fourth standby sub-state L1-4 B1 934 is the state of 0x1 for one standby differential line pair and three active differential line pairs. There may be more or less than four sub-states to accommodate different numbers of lines and different specific implementations, and not every combination is used in every example. Although these sub-states are shown as corresponding sub-states of the standby state 904 , 924 , these sub-states have a mix of the standby state and the active state, and may alternatively be sub-states of the active state 902 , 922 .
[0078] Fig.10 1004 is a block diagram of a link interface processing circuit. Processing circuit 1004 is a device that can be part of a host or an endpoint. The processing circuit is coupled to a link 1002 having multiple duplex channels, such as a PCIe link. Link 1002 is coupled to another PCIe device, such as an endpoint or a host, at the opposite end. Data and control information transmitted as packets through link 1002 are coupled to link 1020, which provides a PHY level interface to link 1002 and converts baseband signals into packets. Data and control packets are transmitted to other components of processing circuit 1004 through bus 1010 via link 1020. Link 1020 has a direct connection to interface configuration block 1018 for configuration and control settings for the operation of link 1020.
[0079] The processing circuit 1004 includes blocks and memory. A timer module / circuit block 1012 is coupled to the bus 1010 for timing latency, inactivity, acknowledgment, and driving a standby state. The timer module / circuit block 1012 accesses a computer-readable storage medium 1008 to access code 1032 for managing the timer. In various aspects, the storage medium is a non-transitory computer-readable medium. The timer module / circuit block 1012 may also access registers in the storage medium 1008 to measure duration within the PCIe link, the registers containing a receive traffic timing threshold 1034 and a transmit traffic timing threshold 1034, such as the L1 B0_THRESHOLD or L1 B1_THRESHOLD discussed above or as described above. Figure 7 Other thresholds in .
[0080] Also within the processing circuit 1004, a power management block 1014 manages power to each line and to other components of the PCIe system. The power management block 1014 accesses code 1040 for managing PCIe power and a transmit line status register 1042 and a receive line status register 1044 through the bus 1010. These registers can be used to store the status of each transmit line and each receive line, each transmit group and each receive group, or the transmit side of a link and the receive side of a link. The status can be determined using code 1032 for managing a timer, code 1040 for managing PCIe power, or in another manner.
[0081] The TX / RX link traffic monitoring block 1016 within the processing circuit 1004 can access the bus 1010 to monitor the transmit traffic activity on the link 1002 and monitor the receive traffic activity on the link 1002. Traffic activity and traffic inactivity can be monitored. The TX / RX link traffic monitoring block 1016 can access the code for monitoring the TX / RX link traffic 1050 in the storage medium 1008, and can also access registers to store results and obtain traffic activity thresholds. The transmit traffic activity threshold 1052 and the receive traffic activity threshold 1054 (e.g., Figure 7 The thresholds of the first column 710 of FIG. 1014 may be used to compare the traffic activity with the thresholds for both the transmit traffic activity and the receive traffic activity. The power management block 1014 may manage the power of the transmit line and the power of the receive line according to the transmit traffic activity and the receive traffic activity. The interface configuration block 1018 may modify the configuration in response to the power management block 1014.
[0082] The interface configuration block 1018 is coupled to the bus as is the TX / RX link traffic monitoring block 1016, the power management block 1014, and the timer module / circuit block 1012, so that each of these blocks can communicate with each other, with the storage medium 1008, and with the processor 1006. The processor 1006 controls the operation of the other blocks and starts an instance of each block according to the operation of the processing circuit 1004. The interface configuration block 1018 can also access the code for configuring the PCIe interface 1060. When executing the code, the interface configuration block 1018 reads and writes values from various configuration registers. These registers include the transmit control, status and capability register 1062 and the receive control, status and capability register. These registers can be accessed and read at the beginning of link initialization, and then updated with the results of the initialization. The registers can also be modified in response to power management and bandwidth negotiation or changing the state of one or more transmit lines or receive lines of the link 1002.
[0083] The processing circuit 1004 can initialize the link 1002, manage power, and change the number of active lines of the link 1002. In operation, a bandwidth request can also be received from a host or an endpoint. The bandwidth request may cause a bandwidth negotiation, followed by a change in the values set to the control, status, and capability registers. Then, the number of active lines can be changed in response to the transmit business activity and the receive business activity. The TX / RX link business monitoring block 1016 also monitors the transmit business activity of the transmit lines of the link 1002, and monitors the receive business activity of the receive lines of the link 1002. Evaluate the transmit business activity and the receive business activity to determine the change in the number of active lines. The power management block 1014 can put one or more transmit lines or receive lines in a standby state. The state change can then be recorded in the transmit line state register 1042 and the receive line state register 1044. The evaluation can be performed in different ways. In some examples, at the TX / RX link business monitoring block 1016, the transmit business activity is compared with one or more thresholds in the transmit business threshold register 1052, and the receive business activity is compared with one or more thresholds in the receive business threshold register 1054. The message may then be transmitted via link 1002 to a connected device, host or endpoint.
[0084] After changing the number of active lines, the power management block 1014 may change the voltage level of one or more of the voltages 276, 278, and 280 by instructing the PMIC 290 to set the voltage level of one or more of the voltages provided by the PMIC 290, such as Figure 2. The power management block 1014 may also connect or disconnect power to the drivers and receivers of the affected lines based on the new number of active lines. As an example, if the number of active lines decreases, the power management block 1014 may power down the drivers in the PHY TX block 222 and / or the receivers in the PHY RX block 226 corresponding to the lines in the link 1002 that are deactivated due to the change. The power management block 1014 may power down the selected drivers and / or receivers by transmitting an instruction to the power switch circuit to turn off the selected drivers and / or receivers. Thus, power according to the negotiated bandwidth is managed by providing one or more voltages to the interface circuit of the link and by setting the level of the one or more voltages.
[0085] Fig.11 A flow chart of a method 1100 for transaction-based power management of a link (e.g., a PCIe link) according to aspects of the present disclosure is illustrated. In certain aspects, the method 1100 implements scaling of the number of active lines, such as reducing the number of powered transmit lines and powered receive lines (e.g., selectively powering on or off a driver 320 or 345).
[0086] The method 1100 includes monitoring transmit traffic activity of a link at block 1102. As described, the link is a PCIe link, however, the method may be adapted to accommodate other links having transmit lines and receive lines. The method 1100 includes the process of monitoring receive traffic activity of the link at block 1104. The method 1100 includes the process of managing a first power of transmit lines of the link as a transmit group based on the transmit traffic activity at block 1106. The method 1100 includes the process of managing a second power of receive lines of the link as a receive group based on the receive traffic activity, independent of the power of the transmit lines, at block 1108.
[0087] An overview of various examples of the disclosure is provided below.
[0088] Embodiment 1: A device comprises: an interface circuit, the interface circuit being configured to provide an interface with a peripheral component interconnect express (PCIe) link; and a controller, the controller being configured to: monitor the sending business activity of the link; monitor the receiving business activity of the link; manage a first power of a sending line of the link as a sending group according to the sending business activity; and manage a second power of a receiving line of the link as a receiving group independently of the power of the sending line according to the receiving business activity.
[0089] Embodiment 2: The apparatus according to embodiment 1, wherein the controller is configured to set a transmit group link control register to store the number of active transmit lines according to the transmit business activity, and to set a receive group link control register to store the number of active receive lines according to the receive business activity.
[0090] Embodiment 3: The apparatus according to embodiment 1 or 2, wherein the controller is configured to set a sending group capability register to store the capability of the sending line according to the sending service activity, and to set a receiving group capability register to store the capability of the receiving line according to the receiving service activity.
[0091] Embodiment 4: The device according to any one or more of the above embodiments, wherein the controller is configured to manage the first power, including placing the selected at least one transmission line of the transmission group in a standby state.
[0092] Embodiment 5: An apparatus according to embodiment 4, wherein the controller is configured to: compare the sending service activity of the link with a threshold; and in response to the sending service activity being less than the threshold, place the sending line in a standby sub-state, wherein the standby sub-state is a lower power state than the standby state.
[0093] Embodiment 6: The apparatus according to any one or more of the above embodiments, wherein the controller is configured to manage the second power by placing the selected at least one receiving line of the receiving group in a standby state.
[0094] Embodiment 7: The apparatus according to embodiment 6, wherein the controller is further configured to: compare the receiving service activity of the link with a threshold; and in response to the receiving service activity being less than the threshold, place the receiving line in a standby sub-state, wherein the standby sub-state is a lower power state than the standby state.
[0095] Embodiment 8: The apparatus according to any one or more of the above embodiments 1, wherein managing the first power comprises managing the number of active transmission lines of the transmission group of the link.
[0096] Embodiment 9: An apparatus according to any one or more of the above embodiments, wherein the controller is configured to manage the first power by: providing one or more voltages or clocks to an interface circuit, the interface circuit being configured to provide an interface with the link; and setting the levels of the one or more voltages provided to the interface circuit based on the first power.
[0097] Embodiment 10: A method, comprising: monitoring the sending business activity of a Peripheral Component Interconnect Express (PCIe) link; monitoring the receiving business activity of the link; managing a first power of the sending line of the link as a sending group based on the sending business activity; and managing a second power of the receiving line of the link as a receiving group independently of the power of the sending line based on the receiving business activity.
[0098] Embodiment 11: According to the method described in Embodiment 10, the method further comprises: setting a sending group link control register according to the sending service activity, and setting a receiving group link control register according to the receiving service activity.
[0099] Embodiment 12: According to the method described in Embodiment 10 or 11, the method further comprises: setting a sending group link status register according to the sending service activity, and setting a receiving group link status register according to the receiving service activity.
[0100] Embodiment 13: The method according to any one or more of Embodiments 10 to 12, wherein managing the first power includes placing the selected at least one transmission line of the transmission group in a standby state.
[0101] Embodiment 14: According to the method described in Embodiment 13, the method further includes: comparing the sending business activity of the link with a threshold; and in response to the sending business activity being less than the threshold, placing the sending line in a standby sub-state, wherein the standby sub-state is a lower power state than the standby state.
[0102] Embodiment 15: The method according to any one or more of the above embodiments, wherein managing the second power includes placing the selected at least one receiving line of the receiving group in a standby state.
[0103] Embodiment 16: According to the method described in Embodiment 15, the method further includes: comparing the receiving service activity of the link with a threshold; and in response to the receiving service activity being less than the threshold, placing the receiving line in a standby sub-state, wherein the standby sub-state is a lower power state than the standby state.
[0104] Embodiment 17: The method according to any one or more of the above embodiments, wherein managing the second power includes managing the number of active receive lines of the receive group of the link.
[0105] Embodiment 18: A method according to any one or more of the above embodiments, wherein managing the second power includes: providing one or more voltages or clocks to an interface circuit, the interface circuit being configured to provide an interface with the link; and setting the levels of the one or more voltages provided to the interface circuit based on the second power.
[0106] Embodiment 19: A non-transitory computer-readable medium storing instructions for causing a processor of an interconnect link to perform operations including: monitoring the transmit business activity of a Peripheral Component Interconnect Express (PCIe) link; monitoring the receive business activity of the link; managing a first power of a transmit line of the link as a transmit group based on the transmit business activity; and managing a second power of a receive line of the link as a receive group independently of the power of the transmit line and based on the receive business activity.
[0107] Embodiment 20: According to the computer-readable medium described in Embodiment 19, the computer-readable medium also includes: comparing the sending business activity of the link with a threshold; and in response to the sending business activity being less than the threshold, placing at least one selected sending line of the sending group in a standby state, wherein the standby state is a low power state.
[0108] It should be understood that the present disclosure is not limited to the exemplary terms used above to describe aspects of the present disclosure. For example, bandwidth may also be referred to as throughput, data rate, or another term.
[0109] Although aspects of the present disclosure are discussed above using the example of the PCIe standard, it should be understood that the present disclosure is not limited to this example and may be used with other standards.
[0110] Each of the host client 214, host controller 212, device controller 252, and device client 254 discussed above may be implemented using a controller or processor configured to perform the functions described herein by executing software including code for performing the functions described herein. The software may be stored on a non-transitory computer-readable storage medium, such as RAM, ROM, EEPROM, optical disk, and / or magnetic disk, shown as host system memory 240, endpoint system memory 274, or another memory.
[0111] Any reference to an element using designations such as "first," "second," etc. herein does not generally limit the number or order of those elements. Rather, these designations are used herein as a convenient method of distinguishing two or more elements or instances of elements. Thus, reference to a first element and a second element does not mean that only two elements can be used or that the first element must be located before the second element.
[0112] Within this disclosure, the word "exemplary" is used to mean "serving as an example, instance, or illustration." Any specific implementation or aspect described herein as "exemplary" is not necessarily to be construed as preferred or superior to other aspects of the disclosure. Likewise, the term "aspect" does not require that all aspects of the disclosure include the discussed feature, advantage, or mode of operation. The term "coupled" is used herein to refer to a direct or indirect electrical or other communicative coupling between two structures. Additionally, the term "approximately" means within ten percent of a stated value.
[0113] The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be apparent to those skilled in the art, and the general principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples described herein, but should be granted the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A device, comprising: an interface circuit configured to provide an interface with a Peripheral Component Interconnect Express (PCIe) link; and A controller, the controller being configured to: monitoring the transmission traffic activity of the link; monitoring the link for receive traffic activity; managing a first power of a transmission line of the link as a transmission group according to the transmission service activity; as well as Independently of the power of the transmit line, a second power of the receive line of the link is managed as a receive group according to the receive traffic activity.
2. The apparatus of claim 1 , wherein the controller is configured to set a transmit group link control register to store the number of active transmit lines based on the transmit service activity, and to set a receive group link control register to store the number of active receive lines based on the receive service activity.
3. The apparatus according to claim 1, wherein the controller is configured to set a transmit group capability register to store the capability of the transmit line according to the transmit service activity, and to set a receive group capability register to store the capability of the receive line according to the receive service activity. 4 . The apparatus of claim 1 , wherein the controller is configured to manage the first power, including placing the selected at least one transmission line of the transmission group in a standby state.
5. The apparatus according to claim 4, wherein the controller is configured to: comparing the transmit traffic activity of the link to a threshold; and In response to the transmit traffic activity being less than the threshold, placing the transmit circuitry in a standby sub-state, wherein the standby sub-state is a lower power state than the standby state. 6 . The apparatus according to claim 1 , wherein the controller is configured to manage the second power by placing the selected at least one receiving line of the receiving group in a standby state.
7. The apparatus according to claim 6, wherein the controller is further configured to: comparing the received traffic activity of the link to a threshold; and In response to the receive traffic activity being less than the threshold, the receive circuit is placed in a standby sub-state, wherein the standby sub-state is a lower power state than the standby state.
8. The apparatus of claim 1, wherein managing the first power comprises managing a number of active transmit lines of the transmit group of the link.
9. The apparatus according to claim 1, wherein the controller is configured to manage the first power by: providing one or more voltages or clocks to an interface circuit configured to provide an interface with the link; and A level of the one or more voltages provided to the interface circuit is set based on the first power.
10. A method comprising: Monitors the transmit traffic activity of a Peripheral Component Interconnect Express (PCIe) link; monitoring the link for receive traffic activity; managing a first power of a transmission line of the link as a transmission group according to the transmission service activity; as well as Independently of the power of the transmit line, a second power of the receive line of the link is managed as a receive group according to the receive traffic activity.
11. The method according to claim 10, further comprising: A sending group link control register is set according to the sending service activity, and a receiving group link control register is set according to the receiving service activity.
12. The method according to claim 10, further comprising: A sending group link status register is set according to the sending service activity, and a receiving group link status register is set according to the receiving service activity.
13. The method of claim 10, wherein managing the first power comprises placing the selected at least one transmit line of the transmit group in a standby state.
14. The method according to claim 13, further comprising: comparing the sending traffic activity of the link with a threshold; as well as In response to the transmit traffic activity being less than the threshold, placing the transmit circuitry in a standby sub-state, wherein the standby sub-state is a lower power state than the standby state.
15. The method of claim 10, wherein managing the second power comprises placing the selected at least one receive line of the receive group in a standby state.
16. The method according to claim 15, further comprising: comparing the received traffic activity of the link to a threshold; as well as In response to the receive traffic activity being less than the threshold, the receive circuit is placed in a standby sub-state, wherein the standby sub-state is a lower power state than the standby state.
17. The method of claim 10, wherein managing the second power comprises managing a number of active receive lines of the receive group of the link.
18. The method of claim 10, wherein managing the second power comprises: providing one or more voltages or clocks to an interface circuit configured to provide an interface with the link; as well as A level of the one or more voltages provided to the interface circuit is set based on the second power.
19. A non-transitory computer-readable medium having stored therein instructions for causing a processor of an interconnect link to perform operations including: Monitors the transmit traffic activity of a Peripheral Component Interconnect Express (PCIe) link; monitoring the link for receive traffic activity; managing first powers of the transmission lines of the link as a transmission group according to the transmission traffic activity; and Independently of the power of the transmit line, a second power of the receive line of the link is managed as a receive group according to the receive traffic activity.
20. The non-transitory computer readable medium of claim 19, further comprising instructions for causing the processor of the interconnect link to perform operations comprising: comparing the transmit traffic activity of the link to a threshold; and In response to the transmit traffic activity being less than the threshold, the selected at least one transmit line of the transmit group is placed in a standby state, wherein the standby state is a low power state.
Citation Information
Patent Citations
Adaptive low-power link-state entry policy for active interconnect link power management
CN104246652A
Bandwidth based power management for peripheral component interconnect express devices
CN113826086A
Dynamic network controller power management
US20210041929A1
Asymmetrical bus
US7469311B1
Dynamic link width adjustment
WO2013095422A1
