The present application generally relates to the field of computing devices and more particularly to reducing power consumption in a serial bus link.
Peripheral connectors such as those which follow the Universal Serial Bus (USB) specifications have rapidly evolved and gained acceptance in the computing industry. These connectors allow a host computer to exchange data with a variety of peripheral devices such as a keyboard, mouse, video camera, printer, portable media player, display device, or external storage device. However, various challenges are presented in reducing the power consumption in the host computer when these connectors are used.
The embodiments of the disclosure will be understood more fully from the detailed description given below and from the accompanying drawings of various embodiments of the disclosure, which, however, should not be taken to limit the disclosure to the specific embodiments, but are for explanation and understanding only.
As mentioned at the outset, various challenges are presented reducing power consumption in a host computer which is connected to peripheral devices via USB and other connector standards.
USB and related technologies such as Intel® Thunderbolt™ have rapidly evolved and been adapted by the industry in the past few years. These technologies provide high-speed data transfer as well as charging of the host computer or peripheral. Thunderbolt™ technology is a universal cable connectivity solution which uses the same Type-C connector as other USB Type-C (USB-C) ports.
The latest USB standard, USB4, uses the same cable and connector technology for data exchange between a host computer and a wide range of simultaneously accessible peripherals. USB4 v2 is the next generation USB4 technology that increases the USB4 bandwidth from 40 Gbps to 80 or 120 Gbps. USB4 v2 controllers provide the best-in-class display throughput (e.g., using DisplayPort 2.1) over Type C connectors by increasing the bandwidth to 3× over USB4 v1 and 1.5× over traditional native display ports. DisplayPort (DP) is a digital display interface developed by a consortium of personal computer (PC) and chip manufacturers and standardized by the Video Electronics Standards Association. It is primarily used to connect a video source to a display device such as a computer monitor. It can also carry audio, USB, and other forms of data.
The existing bandwidth allocation mechanism for USB4 prioritizes Display and Isochronous traffic over Peripheral Component Interconnect Express (PCIe) and USB bulk traffic. The PCIe standard defines four link power state levels that are software controlled. These power states are, from highest to lowest power state: fully active state (L0), electrical idle or standby state (L0s), L1 (lower power standby/slumber state), L2 (low power sleep state), and L3 (off state). Furthermore, L1 sub-states L1.1 and L1.2 can be used to turn off additional analog circuits in the PHY. In particular, L1.1 allows the common-mode voltage to be maintained, while L1.2 allows all high-speed circuits to be turned off.
However, with the increase in bandwidth, there is also an increase in power consumption for similar workloads/use cases due to an increase in power consumption by the physical layer (PHY) and controller. A PHY is an electronic circuit, e.g., integrated circuit, used to implement physical layer functions of the Open Systems Interconnection (OSI) model in a network interface controller.
One possible solution is to statically configure the PCIe host controller of a discrete USB or Thunderbolt™ controller to PCIe Gen 4x4 (generation 4 using 4 lanes) or PCIe Gen3x4 (generation 3 using 4 lanes) for USB4 v2 and USB4 v1 implementations, respectively. However, display data is sent over a Type C connector either as tunneled traffic or native traffic which is separate from the PCIe link and doesn't required PCIe bandwidth. There are other prominent use cases like USB camera that would be prioritized over PCIe or USB bulk traffic. In these cases, power consumption is not optimized because existing solutions do not change the PCIe host controller bandwidth or link speed. Instead, the existing power management policies of discrete host controllers are limited to downstream link power management (up-to the L1.sub-state) which is dependent on sink device latencies. Moreover, there are commercial devices available in the market that do not adhere to specifications or lower latencies, thereby penalizing the host from entering any lower link states. This negatively impacts battery life and thermal performance. With these solutions, there is no concept of upstream link power management to save power depending on bandwidth requirement.
There is no dynamic speed change of the upstream link with PCIe PHY supporting only up to the L1.sub-state.
For discrete host configurations, USB2 is routed from SoC South or the Platform Controller Hub (PCH) extensible Host Controller Interface (xHCI) controller. This is done because Human Interfaces Devices (HID) devices, e.g., keyboards, mice and game controllers, consume significant power from the PCIe interface if USB2 is routed from the discrete controller.
To address the above and other issues, the power consumption of a PCIe link can be optimized for different workloads depending on the bandwidth consumption (data rate) and use cases. For both mobile and desktop systems with discrete USB, Thunderbolt™ or other configurations, beyond the link power management policies which exists today, the underlying software framework can be used to improve core and graphics performance and to preserve the battery by reducing the host controller link speed or turning off the host controller PCIe interface to reduce power consumption. This will maximize SoC performance and prevent over-stressing of the power delivery solution of the platform.
This approach can improve platform performance and battery life for discrete USB4 connector configurations on mobile and desktop platforms including USB4 v1 and v2 and Thunderbolt™.
For desktop and mobile systems that have a discrete configuration, e.g., where the SoC or other circuit is separate from a discrete host controller, a mechanism is provided between the discrete (e.g., USB4 or Thunderbolt™) host router, a software connection manager, and a native PCIe driver to allow the host controller link speed to be scaled down or up based on system level policies and application needs.
The solution provides a number of advantages. First, power consumption of the SoC or other circuit is reduced during active use cases including Type C use cases. This power savings can be used to improve core/graphics processor performance and/or extend battery life, for example. The maximum power savings can be, e.g., in the range of hundreds of milliwatts per discrete host controller. Second, customer's systems can route earlier versions of USB such as USB2 from the discrete controller directly, thereby simplifying platform routing and reducing costs for add-in card (AIC) implementations.
The above and other advantages will be further apparent in view of the following discussion.
The number of lanes in the link is indicated by the PCIe configuration, e.g., x1, x4, x8, x16, x32. The number after the x indicates the number of lanes. Each lane can move data at one bit per cycle. A lane typically include four wires, two for downstream communications, from the PCIe PHY I/F 130 to the PCIe PHY I/F 140, and two for upstream communications, from the PCIe PHY I/F 140 to the PCIe PHY I/F 130.
The PCIe root port 120 may be responsive to instructions from the CPU 110 to transmit data in the memory 125 downstream on the link. The PCIe root may also store data which is received on the link in the memory 125 and notify the CPU. The CPU 110 is a processor which is to execute instructions stored in an associated memory 111. The CPU may implement an operating system 112 which includes drivers 113 and a software connection manager (mgr) 114, discussed further below.
Counters 131 may be associated with the PCIe PHY I/F 130 to count a bit rate (data rate) of downstream communications over the link, in one possible approach. See also
The circuit 101 may further includes a graphics processor 135 to transmit video/graphics data according to the DisplayPort standard, for example, to DPin adapters 176 and 177 via paths 167 and 168, respectively. This data is communicated separately from the PCIe link 103. An example routing path 176a in the USB4 router 170 allows the DPin adapter 176 to communicate with the USB4 port 179 which, in turn, is coupled to a display device 182 via a dock 181.
In the discrete host 102, the PCIe PHY I/F 140 may include or communicate with counters 141 to determine a bit rate (data rate) of the link 103 and to adjust a bandwidth of the link in response. See also
The ports 153 and 154 are coupled to PCIe adapters 173 and 174, respectively, via paths 164 and 165, respectively. These adapters provide tunneling of load/store (PCIe) information over the USB4 format. For example, the storage device 180 could be coupled to the adapter 173 via a routing path 173a in the USB4 router 170.
The port 155 is coupled to a host I/F adapter 175 via a path 166. This adapter can be coupled to a peripheral which provides data which is already in the USB4 format, for example, and therefore does not require tunneling4.
The adapters depicted are an example only, as other types and combinations of types of adapters can be used. The adapters can be coupled to the USB4 ports 178 and 179 by a switching fabric of the USB4 router 170.
The PCIe switch 150 is in a four lane or x4 configuration, in this example. Accordingly, each lane of the link is used by a corresponding one of the downstream ports 152-155. The bandwidth of the link 103 is divided into four separate portions to carry four bits in total per cycle. The bandwidth represents a maximum available data rate of the link.
The USB4 router 170 includes switching logic which routes data packets between the adapters 171-177 and the USB4 ports 178 and 179, which are externally accessible, typically at the side or back of the computing device. A peripheral device can be coupled to the computing device by plugging a cable into one of the USB4 ports 178 and 179. In practice, the port 178 can be coupled to one of the adapters 171-177 and the port 179 can be coupled to another of the adapters 171-177 at a given time. In this example, the USB4 port 178 is coupled to an external storage device 180 such as a hard drive or solid-state drive (SSD). The storage device can be used to transfer data such as files to the circuit 101, or to receive and store data from the circuit 101. The USB4 port is coupled to a dock 181, also referred to as a docking station. This can be a USB4 compatible docking station in one possible approach. The dock, in turn, is coupled to a display device 182, e.g., a monitor, a keyboard 183 and a mouse 184. A docking station expands the number of ports which are available to plug in peripheral devices.
USB4 supports PCIe, DP and USB tunneling protocols. Tunneling allows multiple protocols to be combined over a single interface to increase flexibility. In one approach, the circuit 101 can monitor/measure the actual PCIe bandwidth consumed by the downstream devices through the PCIe upstream port 151. It can use the software connection manager 114 to notify a native PCIe bus driver (among the drivers 113) of the monitored bandwidth. A mechanism in the native PCIe bus driver can expose the interfaces to throttle the PCIe link 103 at the PCIe root port. The CPU 110 thus can instruct the PCIe root port to throttle the PCIe link 103 based on the magnitude of the consumed bandwidth/data rate relative to various bandwidth thresholds, such as described in the flowcharts of
An additional communication path 104 can also be provided which allows the CPU 110 to communicate with the USB4 router 170 such as to receive a notification of when a peripheral device is connected to one of the USB4 ports 178 and 179, e.g., directly or via the dock 181, and the type of the device. The connecting of the peripheral can trigger an evaluation of a data rate on the link 103 such as discussed below in connection with
The link 103 includes example bidirectional lanes 200, . . . 210, where each lane includes downstream and upstream paths. For example, the lane 200 includes a downstream path 201 and an upstream path 202, and the lane 210 includes a downstream path 211 and an upstream path 212. Additionally, at one end of the link, the PCIe PHY I/F 130 includes transmitters (Tx) 130a, . . . , 130c coupled to the paths 201, . . . , 211, respectively, and receivers (Rx) 130b, . . . , 130d coupled to the paths 202 . . . 212, respectively. At the other end of the link, the PCIe PHY I/F 140 includes transmitters 140b, . . . 140d coupled to the paths 202, . . . 212, respectively, and receivers 140a . . . , 140c coupled to the paths 201, . . . 211, respectively. The transmitters and receivers each receive the common clock signal Clk to transmit or receive data at the corresponding clock rate.
This example further depicts individual counters 131a, . . . , 131n associated with each transmitter 130a, . . . 130c of the PCIe PHY I/F 130. These counters are part of the counters 131 of
In one approach. DR is passed on a path 230 to the CPU via the PCIe root port to follow the process of
In a further option, counters in the PCIe PHY I/F 130 could be associated with the receivers 130b . . . 130d to determine a data rate. In another option, as part of the counters 141 of
The counts determined for each lane in
The process can be repeated periodically in consecutive evaluation cycles to determine in each cycle whether the bandwidth can be reduced. Once the bandwidth is reduced in a cycle, it may remain at the reduced level until the next cycle, in one approach. In one approach, a determination is made as to whether the bandwidth should be adjusted in each evaluation cycle of a plurality of consecutive evaluation cycles.
In one approach, an evaluation cycle is triggered by connection of a display peripheral to the discrete USB host.
In one approach, an evaluation cycle is triggered by connection of a keyboard or mouse/pointing device peripheral to the discrete USB host.
In one approach, an evaluation cycle is triggered by connection of any peripheral to the discrete USB host.
Different bandwidths are associated with different configurations of the PCIe link, as discussed in connection with
If the decision operation 331 is false (F), a decision operation 332 determines whether Th3≤DR<Th2, where Th3 is the bandwidth of Gen. 2, for example (500 Mbps). If the decision operation 332 is true (T), operation 337 includes reducing the PCIe link BW to the Gen. 3 level (1 Gbps). In this case, the maximum DR of a lane is between 500 Mbps and 1 Gbps, so the BW of 1 Gbps is optimal.
If the decision operation 332 is false (F), a decision operation 333 determines whether Th4≤DR<Th3, where Th4 is the bandwidth of Gen. 1, for example (250 Mbps). If the decision operation 333 is true (T), operation 338 includes reducing the PCIe link BW to the Gen. 2 level (500 Mbps). In this case, the maximum DR of a lane is between 250 Mbps and 500 Mbps, so the BW of 500 Mbps is optimal.
If the decision operation 333 is false, operation 334 indicates DR<Th4. In this case, operation 335 includes reducing the PCIe link BW to the Gen. 1 level (250 Mbps). In this case, the maximum DR of a lane is between 0 and 250 Mbps, so the BW of 250 Mbps is optimal. The process then continues at operation 330. The determination of whether to adjust the BW can be made periodically at specified intervals, e.g., multiple times per second or less frequently.
The reducing of the BW can be carried out by reducing a clock rate (see the clock signal Clk in
In one option, instead of the DR representing the maximum count of the lanes of the link, it can represent the sum of the counts across the lanes, as mentioned. In this case, the thresholds used in
Additionally, a hysteresis can be implemented to prevent the BW from changing too frequently. For example, a rule may be imposed that the BW cannot change until after a number N1>1 of consecutive data rate readings have been obtained. Another rule may be imposed that a change in bandwidth must be warranted by N2>1 consecutive data rate readings. Another rule may be imposed that a change in bandwidth must be warranted by at least N3>1 out of N4>1 consecutive data rate readings (e.g., 4 out of 5). Additionally, a rule may be imposed regarding the degree to which the BW is changed in a single step. For example, a rule may be imposed that the BW may change by only X≥1 levels (generations) in an evaluation cycle when a change is indicated by one or more consecutive data readings. Other variations are possible as well.
Note that if there is a need to increase the BW from a reduced level, this can be determined in the next evaluation cycle. Any data packets which are waiting to be transmitted downstream can be buffered in the memory 125, for example, until the next interval when the clock rate/bandwidth can be increased.
In one approach, a circuit (e.g., PCIe PHY I/F 130) is to adjust the bandwidth in each evaluation cycle of a plurality of consecutive evaluation cycles.
In one approach, the circuit is to adjust the bandwidth based on a comparison of a maximum data rate of the respective data rates to one or more thresholds.
In one approach, the circuit is to reduce the bandwidth when the maximum data rate is below the one or more thresholds.
In one approach, the one or more thresholds correspond to unidirectional per lane bandwidths of different generations of the PCIe standard.
In one approach, the one or more thresholds correspond to different consecutive ranges of data rates, e.g., Th2 to Th1, Th3 to Th2, and Th4 to Th3.
With DP tunneling over USB4, the DP protocol packets are sent from the graphics processor to the DP IN adapter in the USB4 Host Router. Before the USB4 router sends the packets to the destination display peripheral, the DPin adapter converts the packets to USB4 packets. DP tunneling uses a side channel (e.g., path 167 or 168 in
DP Alt Mode allows a USB-C equipped computer to connect directly (natively) to a display or monitor which has a USB-C port. This mode uses the same side channel discussed above to establish a connection between the display source and the display sink device. The display data path bandwidth for the DP tunneling and DP Alt modes depends on the capability of the graphics processor 135 or other display source but not on the bandwidth of the link 103, since a side channel is used. In some implementations, the PCIe link cannot reach the L2/L3 Ready state due to low bandwidth activity and is not fully power gated. Hence, there is opportunity to downscale the link speed to lower the bandwidth to save power. The power savings from the PHY circuits alone when downscaling from Gen. 4 to Gen. 1 is expected to be around about 250 mW.
With the above in mind, the process of the flowchart proceeds as follows. At operation 400, the computing device is booted to load the operating system (OS). The OS can be loaded into the computer's main memory or RAM. The operating system 112 can include drivers 113 and a connection manager 114 such as depicted in
In one approach, a first physical interface circuit (e.g., PCIe PHY I/F 130) increases a power state of the serial bus link, e.g., from an L2/L3 state to an L1 sub state, in response to the connection of a DisplayPort peripheral to the one or more USB ports.
The USB standard defines four link power states: U0 (active), U1 (standby with fast exit), U2 (standby with slower exit), and U3 (suspended). Since legacy USB devices do not support lower U1/U2 USB link states, the PCIe host controller will operate in the L0 link state. One approach to avoid is to route USB2 on SoC South PCH (Platform Controller Hub) xHCI (extensible Host Controller Interface) controller to avoid keeping the PCIe link powered up. This approach introduces additional complexity in routing and reduces the SoC xHCI controller capabilities since two ports from SoC xHCI controller are used, resulting in less than complete utilization of the USB4 discrete host.
On the other hand, by reducing the PCIe link bandwidth, the USB2 peripherals are routed to the USB4 discrete host xHCI controller, thereby maximizing the input-output configuration with minimal power impact (e.g., 50 mW).
With the above in mind, the process of the flowchart proceeds as follows. At operation 500, the computing device is booted to load the operating system (OS). Initially after boot up, operation 501 indicates the PCIe link BW is at the Gen. 4 level and the link is in the L2 state (lower power sleep state) or L3 state (off state). Operation 502 includes connecting a USB keyboard and/or mouse to a USB Type-C port. Operation 503 indicates that the PCIe link BW remains at the Gen. 4 level while the link state changes to L0 (fully active). The link therefore wakes up to a more active state to prepare for the transmission of the keyboard/mouse data. At operation 504, the circuit 101 and/or USB4 discrete host monitor the link BW and trigger throttling of the BW if appropriate, such as based on the process of
In one approach, the first physical interface circuit (e.g., PCIe PHY I/F 130) increases a power state of the serial bus link from an L2/L3 state to an L0 state in response to the connection of a keyboard or mouse peripheral to the one or more USB ports.
The computing system 650 may be powered by a power delivery subsystem 651 and include any combinations of the hardware or logical components referenced herein. The components may be implemented as ICs, portions thereof, discrete electronic devices, or other modules, instruction sets, programmable logic or algorithms, hardware, hardware accelerators, software, firmware, or a combination thereof adapted in the computing system 650, or as components otherwise incorporated within a chassis of a larger system. For one embodiment, at least one processor 652 may be packaged together with computational logic 682 and configured to practice aspects of various example embodiments described herein to form a System in Package (SiP) or a System on Chip (SoC).
The system 650 includes processor circuitry in the form of one or more processors 652. The processor circuitry 652 includes circuitry such as, but not limited to one or more processor cores and one or more of cache memory, low drop-out voltage regulators (LDOs), interrupt controllers, serial interfaces such as SPI, I2C or universal programmable serial interface circuit, real time clock (RTC), timer-counters including interval and watchdog timers, general purpose I/O, memory card controllers such as secure digital/multi-media card (SD/MMC) or similar, interfaces, mobile industry processor interface (MIPI) interfaces and Joint Test Access Group (JTAG) test access ports. In some implementations, the processor circuitry 652 may include one or more hardware accelerators (e.g., same or similar to acceleration circuitry 664), which may be microprocessors, programmable processing devices (e.g., FPGA, ASIC, etc.), or the like. The one or more accelerators may include, for example, computer vision and/or deep learning accelerators. In some implementations, the processor circuitry 652 may include on-chip memory circuitry, which may include any suitable volatile and/or non-volatile memory, such as DRAM, SRAM, EPROM, EEPROM, Flash memory, solid-state memory, and/or any other type of memory device technology, such as those discussed herein
The processor circuitry 652 may include, for example, one or more processor cores (CPUs), application processors, GPUs, RISC processors, Acorn RISC Machine (ARM) processors, CISC processors, one or more DSPs, one or more FPGAs, one or more PLDs, one or more ASICs, one or more baseband processors, one or more radio-frequency integrated circuits (RFIC), one or more microprocessors or controllers, a multi-core processor, a multithreaded processor, an ultra-low voltage processor, an embedded processor, or any other known processing elements, or any suitable combination thereof. The processors (or cores) 652 may be coupled with or may include memory/storage and may be configured to execute instructions stored in the memory/storage to enable various applications or operating systems to run on the platform 650. The processors (or cores) 652 is configured to operate application software to provide a specific service to a user of the platform 650. In some embodiments, the processor(s) 652 may be a special-purpose processor(s)/controller(s) configured (or configurable) to operate according to the various embodiments herein.
As examples, the processor(s) 652 may include an Intel® Architecture Core™ based processor such as an i3, an i5, an i7, an i9 based processor; an Intel® microcontroller-based processor such as a Quark™, an Atom™, or other MCU-based processor; Pentium® processor(s), Xeon® processor(s), or another such processor available from Intel® Corporation, Santa Clara, California. However, any number other processors may be used, such as one or more of Advanced Micro Devices (AMD) Zen® Architecture such as Ryzen® or EPYC® processor(s), Accelerated Processing Units (APUs), MxGPUs, Epyc® processor(s), or the like; A5-A12 and/or S1-S4 processor(s) from Apple® Inc., Snapdragon™ or Centriq™ processor(s) from Qualcomm® Technologies, Inc., Texas Instruments, Inc.® Open Multimedia Applications Platform (OMAP)™ processor(s); a MIPS-based design from MIPS Technologies, Inc. such as MIPS Warrior M-class, Warrior I-class, and Warrior P-class processors; an ARM-based design licensed from ARM Holdings, Ltd., such as the ARM Cortex-A, Cortex-R, and Cortex-M family of processors; the ThunderX2® provided by Cavium™, Inc.; or the like. In some implementations, the processor(s) 652 may be a part of a system on a chip (SoC), System-in-Package (SiP), a multi-chip package (MCP), and/or the like, in which the processor(s) 652 and other components are formed into a single integrated circuit, or a single package, such as the Edison™ or Galileo™ SoC boards from Intel® Corporation. Other examples of the processor(s) 652 are mentioned elsewhere in the present disclosure.
The system 650 may include or be coupled to acceleration circuitry 664, which may be embodied by one or more AI/ML accelerators, a neural compute stick, neuromorphic hardware, an FPGA, an arrangement of GPUs, one or more SoCs (including programmable SoCs), one or more CPUs, one or more digital signal processors, dedicated ASICs (including programmable ASICs), PLDs such as complex (CPLDs) or high complexity PLDs (HCPLDs), and/or other forms of specialized processors or circuitry designed to accomplish one or more specialized tasks. These tasks may include AI/ML processing (e.g., including training, inferencing, and classification operations), visual data processing, network data processing, object detection, rule analysis, or the like. In FPGA-based implementations, the acceleration circuitry 664 may comprise logic blocks or logic fabric and other interconnected resources that may be programmed (configured) to perform various functions, such as the procedures, methods, functions, etc. of the various embodiments discussed herein. In such implementations, the acceleration circuitry 664 may also include memory cells (e.g., EPROM, EEPROM, flash memory, static memory (e.g., SRAM, anti-fuses, etc.) used to store logic blocks, logic fabric, data, etc. in LUTs and the like.
In some implementations, the processor circuitry 652 and/or acceleration circuitry 664 may include hardware elements specifically tailored for machine learning and/or artificial intelligence (AI) functionality. In these implementations, the processor circuitry 652 and/or acceleration circuitry 664 may be, or may include, an AI engine chip that can run many different kinds of AI instruction sets once loaded with the appropriate weightings and training code. Additionally or alternatively, the processor circuitry 652 and/or acceleration circuitry 664 may be, or may include, AI accelerator(s), which may be one or more of the aforementioned hardware accelerators designed for hardware acceleration of AI applications. As examples, these processor(s) or accelerators may be a cluster of artificial intelligence (AI) GPUs, tensor processing units (TPUs) developed by Google® Inc., Real AI Processors (RAPS™) provided by AlphaICs®, Nervana™ Neural Network Processors (NNPs) provided by Intel® Corp., Intel® Movidius™ Myriad™ X Vision Processing Unit (VPU), NVIDIA® PX™ based GPUs, the NM500 chip provided by General Vision®, Hardware 3 provided by Tesla®, Inc., an Epiphany™ based processor provided by Adapteva®, or the like. In some embodiments, the processor circuitry 652 and/or acceleration circuitry 664 and/or hardware accelerator circuitry may be implemented as AI accelerating co-processor(s), such as the Hexagon 685 DSP provided by Qualcomm®, the PowerVR 2NX Neural Net Accelerator (NNA) provided by Imagination Technologies Limited®, the Neural Engine core within the Apple® A11 or A12 Bionic SoC, the Neural Processing Unit (NPU) within the HiSilicon Kirin 970 provided by Huawei®, and/or the like. In some hardware-based implementations, individual subsystems of system 650 may be operated by the respective AI accelerating co-processor(s), AI GPUs, TPUs, or hardware accelerators (e.g., FPGAs, ASICs, DSPs, SoCs, etc.), etc., that are configured with appropriate logic blocks, bit stream(s), etc. to perform their respective functions.
The system 650 also includes system memory 654. Any number of memory devices may be used to provide for a given amount of system memory. As examples, the memory 654 may be, or include, volatile memory such as random access memory (RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), RAMBUS® Dynamic Random Access Memory (RDRAM®), and/or any other desired type of volatile memory device. Additionally or alternatively, the memory 654 may be, or include, non-volatile memory such as read-only memory (ROM), erasable programmable ROM (EPROM), electrically erasable programmable (EEPROM), flash memory, non-volatile RAM, ferroelectric RAM, phase-change memory (PCM), flash memory, and/or any other desired type of non-volatile memory device. Access to the memory 654 is controlled by a memory controller. The individual memory devices may be of any number of different package types such as single die package (SDP), dual die package (DDP) or quad die package (Q17P). Any number of other memory implementations may be used, such as dual inline memory modules (DIMMs) of different varieties including but not limited to microDIMMs or MiniDIMMs.
Storage circuitry 658 provides persistent storage of information such as data, applications, operating systems and so forth. In an example, the storage 658 may be implemented via a solid-state disk drive (SSDD) and/or high-speed electrically erasable memory (commonly referred to as “flash memory”). Other devices that may be used for the storage 658 include flash memory cards, such as SD cards, microSD cards, XD picture cards, and the like, and USB flash drives. In an example, the memory device may be or may include memory devices that use chalcogenide glass, multi-threshold level NAND flash memory, NOR flash memory, single or multi-level Phase Change Memory (PCM), a resistive memory, nanowire memory, ferroelectric transistor random access memory (FeTRAM), anti-ferroelectric memory, magnetoresistive random access memory (MRAM) memory that incorporates memristor technology, phase change RAM (PRAM), resistive memory including the metal oxide base, the oxygen vacancy base and the conductive bridge Random Access Memory (CB-RAM), or spin transfer torque (STT)-MRAM, a spintronic magnetic junction memory based device, a magnetic tunneling junction (MTJ) based device, a Domain Wall (DW) and Spin Orbit Transfer (SOT) based device, a thyristor based memory device, a hard disk drive (HDD), micro HDD, of a combination thereof, and/or any other memory. The memory circuitry 654 and/or storage circuitry 658 may also incorporate three-dimensional (3D) cross-point (XPOINT) memories from Intel® and Micron®.
The memory circuitry 654 and/or storage circuitry 658 is/are configured to store computational logic 683 in the form of software, firmware, microcode, or hardware-level instructions to implement the techniques described herein. The computational logic 683 may be employed to store working copies and/or permanent copies of programming instructions, or data to create the programming instructions, for the operation of various components of system 650 (e.g., drivers, libraries, application programming interfaces (APIs), etc.), an operating system of system 650, one or more applications, and/or for carrying out the embodiments discussed herein. The computational logic 683 may be stored or loaded into memory circuitry 654 as instructions 682, or data to create the instructions 682, which are then accessed for execution by the processor circuitry 652 to carry out the functions described herein. The processor circuitry 652 and/or the acceleration circuitry 664 accesses the memory circuitry 654 and/or the storage circuitry 658 over the interconnect (IX) 656. The instructions 682 direct the processor circuitry 652 to perform a specific sequence or flow of actions, for example, as described with respect to flowchart(s) and block diagram(s) of operations and functionality depicted previously. The various elements may be implemented by assembler instructions supported by processor circuitry 652 or high-level languages that may be compiled into instructions 688, or data to create the instructions 688, to be executed by the processor circuitry 652. The permanent copy of the programming instructions may be placed into persistent storage devices of storage circuitry 658 in the factory or in the field through, for example, a distribution medium (not shown), through a communication interface (e.g., from a distribution server (not shown)), over-the-air (OTA), or any combination thereof.
The IX 656 couples the processor 652 to communication circuitry 666 for communications with other devices, such as a remote server (not shown) and the like. The communication circuitry 666 is a hardware element, or collection of hardware elements, used to communicate over one or more networks 663 and/or with other devices. In one example, communication circuitry 666 is, or includes, transceiver circuitry configured to enable wireless communications using any number of frequencies and protocols such as, for example, the Institute of Electrical and Electronics Engineers (IEEE) 802.11 (and/or variants thereof), IEEE 802.23.4, Bluetooth® and/or Bluetooth® low energy (BLE), ZigBee®, LoRaWAN™ (Long Range Wide Area Network), a cellular protocol such as 3GPP LTE and/or Fifth Generation (5G)/New Radio (NR), and/or the like. Additionally or alternatively, communication circuitry 666 is, or includes, one or more network interface controllers (NICs) to enable wired communication using, for example, an Ethernet connection, Controller Area Network (CAN), Local Interconnect Network (LIN), DeviceNet, ControlNet, Data Highway+, or PROFINET, among many others.
The IX 656 also couples the processor 652 to interface circuitry 670 that is used to connect system 650 with one or more external devices 672. The external devices 672 may include, for example, sensors, actuators, positioning circuitry (e.g., global navigation satellite system (GNSS)/Global Positioning System (GPS) circuitry), client devices, servers, network appliances (e.g., switches, hubs, routers, etc.), integrated photonics devices (e.g., optical neural network (ONN) integrated circuit (IC) and/or the like), and/or other like devices.
In some optional examples, various input/output (I/O) devices may be present within or connected to, the system 650, which are referred to as input circuitry 686 and output circuitry 684. The input circuitry 686 and output circuitry 684 include one or more user interfaces designed to enable user interaction with the platform 650 and/or peripheral component interfaces designed to enable peripheral component interaction with the platform 650. Input circuitry 686 may include any physical or virtual means for accepting an input including, inter alia, one or more physical or virtual buttons (e.g., a reset button), a physical keyboard, keypad, mouse, touchpad, touchscreen, microphones, scanner, headset, and/or the like. The output circuitry 684 may be included to show information or otherwise convey information, such as sensor readings, actuator position(s), or other like information. Data and/or graphics may be displayed on one or more user interface components of the output circuitry 684. Output circuitry 684 may include any number and/or combinations of audio or visual display, including, inter alia, one or more simple visual outputs/indicators (e.g., binary status indicators (e.g., light emitting diodes (LEDs)) and multi-character visual outputs, or more complex outputs such as display devices or touchscreens (e.g., Liquid Crystal Displays (LCD), LED displays, quantum dot displays, projectors, etc.), with the output of characters, graphics, multimedia objects, and the like being generated or produced from the operation of the platform 650. The output circuitry 684 may also include speakers and/or other audio emitting devices, printer(s), and/or the like. Additionally or alternatively, sensor(s) may be used as the input circuitry 684 (e.g., an image capture device, motion capture device, or the like) and one or more actuators may be used as the output device circuitry 684 (e.g., an actuator to provide haptic feedback or the like). Peripheral component interfaces may include, but are not limited to, a non-volatile memory port, a USB port, an audio jack, a power supply interface, etc. In some embodiments, a display or console hardware, in the context of the present system, may be used to provide output and receive input of an edge computing system; to manage components or services of an edge computing system; identify a state of an edge computing component or service; or to conduct any other number of management or administration functions or service use cases.
The components of the system 650 may communicate over the IX 656. The IX 656 may include any number of technologies, including ISA, extended ISA, I2C, SPI, point-to-point interfaces, power management bus (PMBus), PCI, PCIe, PCIx, Intel® UPI, Intel® Accelerator Link, Intel® CXL, CAPI, OpenCAPI, Intel® QPI, UPI, Intel® OPA IX, RapidIO™ system IXs, CCIX, Gen-Z Consortium IXs, a HyperTransport interconnect, NVLink provided by NVIDIA®, a Time-Trigger Protocol (TTP) system, a FlexRay system, PROFIBUS, and/or any number of other IX technologies. The IX 656 may be a proprietary bus, for example, used in a SoC based system.
The number, capability, and/or capacity of the elements of system 650 may vary, depending on whether computing system 650 is used as a stationary computing device (e.g., a server computer in a data center, a workstation, a desktop computer, etc.) or a mobile computing device (e.g., a smartphone, tablet computing device, laptop computer, game console, IoT device, etc.). In various implementations, the computing device system 650 may comprise one or more components of a data center, a desktop computer, a workstation, a laptop, a smartphone, a tablet, a digital camera, a smart appliance, a smart home hub, a network appliance, and/or any other device/system that processes data.
The techniques described herein can be performed partially or wholly by software or other instructions provided in a machine-readable storage medium (e.g., memory). The software is stored as processor-executable instructions (e.g., instructions to implement any other processes discussed herein). Instructions associated with the flowchart (and/or various embodiments) and executed to implement embodiments of the disclosed subject matter may be implemented as part of an operating system or a specific application, component, program, object, module, routine, or other sequence of instructions or organization of sequences of instructions.
The storage medium can be a tangible machine readable medium such as read only memory (ROM), random access memory (RAM), flash memory devices, floppy and other removable disks, magnetic storage media, optical storage media (e.g., Compact Disk Read-Only Memory (CD ROMS), Digital Versatile Disks (DVDs)), among others.
The storage medium may be included, e.g., in a communication device, a computing device, a network device, a personal digital assistant, a manufacturing tool, a mobile communication device, a cellular phone, a notebook computer, a tablet, a game console, a set top box, an embedded system, a TV (television), or a personal desktop computer.
Some non-limiting examples of various embodiments are presented below.
Example 1 includes an apparatus, comprising: a memory to store instructions; and a processor coupled to the memory, wherein the processor is to: determine a data rate associated with a Peripheral Component Interconnect Express (PCIe) link in an evaluation cycle, wherein the link has a bandwidth at a start of the evaluation cycle, and the bandwidth represents a maximum available data rate of the link; perform a comparison of the data rate to one or more thresholds; and reduce the bandwidth when the comparison indicates the data rate is below the one or more thresholds.
Example 2 includes the apparatus of Example 1, wherein the data rate is a maximum data rate of a plurality of downstream paths of the PCIe link.
Example 3 includes the apparatus of Example 2, wherein the plurality of downstream paths are to transmit data from a system-on-a-chip to one or more peripherals via a discrete Universal Serial Bus host.
Example 4 includes the apparatus of any one of Examples 1 to 3, wherein: the PCIe link is to transmit data from a system-on-a-chip to a discrete Universal Serial Bus host; and the evaluation cycle is triggered by connection of a peripheral to the discrete Universal Serial Bus host.
Example 5 includes the apparatus of any one of Examples 1 to 4, wherein the PCIe link is to transmit data from a system-on-a-chip to a discrete Universal Serial Bus (USB) host, and the processor is to increase a power state of the PCIe link in response to connection of a peripheral to the USB host.
Example 6 includes the apparatus of Example 5, wherein the processor is to increases the power state from an L2/L3 state to an L1 sub state when the peripheral comprises a DisplayPort peripheral.
Example 7 includes the apparatus of Example 5 or 6, wherein the processor is to increases the power state from an L2/L3 state to an L0 state when the peripheral comprises a keyboard or mouse.
Example 8 includes an apparatus, comprising: a plurality of transmitters, wherein each transmitter of the plurality of transmitters is to transmit data on a respective downstream path of a bidirectional link; a plurality of counters, wherein each counter of the plurality of counters is coupled to a respective transmitter of the plurality of transmitters to determine a respective data rate of the respective downstream path; and a circuit to adjust a bandwidth of the respective downstream paths based on the respective data rates.
Example 9 includes the apparatus of Example 8, wherein to adjust the bandwidth, the circuit is to adjust a clock rate of a common clock signal of the plurality of transmitters.
Example 10 includes the apparatus of Example 8 or 9, wherein: the bidirectional link is a Peripheral Component Interconnect Express (PCIe) link comprising a plurality of bidirectional lanes; and each respective downstream path is in a respective lane of the plurality of bidirectional lanes.
Example 11 includes the apparatus of any one of Examples 8 to 10, wherein: the plurality of transmitters, the plurality of counters and the circuit are in a first physical interface circuit; the first physical interface circuit is on a system-on-a-chip; and the bidirectional link is to couple the first physical interface circuit to a second physical interface circuit on a discrete Universal Serial Bus host.
Example 12 includes the apparatus of any one of Examples 8 to 11, wherein: the circuit is to adjust the bandwidth in an evaluation cycle; and the evaluation cycle includes a data rate calculation period in which the respective data rates are determined and a remainder in which the bandwidth is adjusted.
Example 13 includes the apparatus of any one of Examples 8 to 12, wherein the circuit is to adjust the bandwidth based on a comparison of a maximum data rate of the respective data rates to one or more thresholds.
Example 14 includes the apparatus of Example 13, wherein: the bidirectional link is provided according to a Peripheral Component Interconnect Express (PCIe) standard; and the one or more thresholds correspond to unidirectional per lane bandwidths of different generations of the PCIe standard.
Example 15 includes an apparatus, comprising: a system-on-a-chip (SoC) comprising a first physical interface circuit; a Universal Serial Bus (USB) discrete host comprising a second physical interface circuit; and a serial bus link to couple the first physical interface circuit to the second physical interface circuit, wherein the first physical interface circuit is to determine a data rate associated with the link, compare the data rate to one or more thresholds, and reduce an available bandwidth of the link when the data rate is below the one or more thresholds.
Example 16 includes the apparatus of Example 15, wherein: the link comprises a plurality of downstream paths extending from the first physical interface circuit to the second physical interface circuit; and the data rate associated with the link is a maximum per downstream path data rate of the plurality of downstream paths.
Example 17 includes the apparatus of Example 15 or 16, wherein: the USB discrete host comprises a switch coupled to the second physical interface circuit, and a USB router coupled to the switch; the USB router comprises one or more adapters and one or more USB ports; and the determining of the data rate of the link and the comparing of the data rate to the one or more thresholds is triggered by connection of a peripheral to the one or more USB ports.
Example 18 includes the apparatus of Example 17, wherein the first physical interface circuit increases a power state of the serial bus link in response to the connection of the peripheral to the one or more USB ports.
Example 19 includes the apparatus of Example 17 or 18, wherein: the peripheral comprises a DisplayPort peripheral; and the first physical interface circuit increases a power state of the serial bus link from an L2/L3 state to an L1 sub state in response to the connection of the DisplayPort peripheral to the one or more USB ports.
Example 20 includes the apparatus of any one of Examples 17 to 19, wherein: the peripheral comprises a keyboard or mouse; and the first physical interface circuit increases a power state of the serial bus link from an L2/L3 state to an L0 state in response to the connection of the keyboard or the mouse to the one or more USB ports.
Example 21 includes a method performed by a processor or other circuit or computing device comprising: determining a data rate associated with a Peripheral Component Interconnect Express (PCIe) link in an evaluation cycle, wherein the link has a bandwidth at a start of the evaluation cycle, and the bandwidth represents a maximum available data rate of the link; comparing the data rate to one or more thresholds; and reducing the bandwidth in a remainder of the evaluation cycle based at least in part on whether the comparison indicates the data rate is below the one or more thresholds.
Example 22 includes an apparatus comprising means to perform the method of Example 21.
Example 23 includes non-transitory machine-readable storage including machine-readable instructions that, when executed, cause a processor or other circuit or computing device to implement the method of Example 21.
Example 24 includes a computer program comprising instructions which, when the program is executed by a computer, cause the computer to carry out the method of Example 21.
In the present detailed description, reference is made to the accompanying drawings that form a part hereof wherein like numerals designate like parts throughout, and in which is shown by way of illustration embodiments that may be practiced. It is to be understood that other embodiments may be utilized and structural or logical changes may be made without departing from the scope of the present disclosure. Therefore, the following detailed description is not to be taken in a limiting sense, and the scope of embodiments is defined by the appended claims and their equivalents.
Various operations may be described as multiple discrete actions or operations in turn, in a manner that is most helpful in understanding the claimed subject matter. However, the order of description should not be construed as to imply that these operations are necessarily order dependent. In particular, these operations may not be performed in the order of presentation. Operations described may be performed in a different order than the described embodiment. Various additional operations may be performed and/or described operations may be omitted in additional embodiments.
The terms “substantially,” “close,” “approximately,” “near,” and “about,” generally refer to being within +/−10% of a target value. Unless otherwise specified the use of the ordinal adjectives “first,” “second,” and “third,” etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking or in any other manner.
For the purposes of the present disclosure, the phrases “A and/or B” and “A or B” mean (A), (B), or (A and B). For the purposes of the present disclosure, the phrase “A, B, and/or C” means (A), (B), (C), (A and B), (A and C), (B and C), or (A, B, and C).
The description may use the phrases “in an embodiment,” or “in embodiments,” which may each refer to one or more of the same or different embodiments. Furthermore, the terms “comprising,” “including,” “having,” and the like, as used with respect to embodiments of the present disclosure, are synonymous.
As used herein, the term “circuitry” may refer to, be part of, or include an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (shared, dedicated, or group), a combinational logic circuit, and/or other suitable hardware components that provide the described functionality. As used herein, “computer-implemented method” may refer to any method executed by one or more processors, a computer system having one or more processors, a mobile device such as a smartphone (which may include one or more processors), a tablet, a laptop computer, a set-top box, a gaming console, and so forth.
The terms “coupled,” “communicatively coupled,” along with derivatives thereof are used herein. The term “coupled” may mean two or more elements are in direct physical or electrical contact with one another, may mean that two or more elements indirectly contact each other but still cooperate or interact with each other, and/or may mean that one or more other elements are coupled or connected between the elements that are said to be coupled with each other. The term “directly coupled” may mean that two or more elements are in direct contact with one another. The term “communicatively coupled” may mean that two or more elements may be in contact with one another by a means of communication including through a wire or other interconnect connection, through a wireless communication channel or link, and/or the like.
Reference in the specification to “an embodiment,” “one embodiment,” “some embodiments,” or “other embodiments” means that a particular feature, structure, or characteristic described in connection with the embodiments is included in at least some embodiments, but not necessarily all embodiments. The various appearances of “an embodiment,” “one embodiment,” or “some embodiments” are not necessarily all referring to the same embodiments. If the specification states a component, feature, structure, or characteristic “may.” “might,” or “could” be included, that particular component, feature, structure, or characteristic is not required to be included. If the specification or claim refers to “a” or “an” element, that does not mean there is only one of the elements. If the specification or claims refer to “an additional” element, that does not preclude there being more than one of the additional elements.
Furthermore, the particular features, structures, functions, or characteristics may be combined in any suitable manner in one or more embodiments. For example, a first embodiment may be combined with a second embodiment anywhere the particular features, structures, functions, or characteristics associated with the two embodiments are not mutually exclusive.
While the disclosure has been described in conjunction with specific embodiments thereof, many alternatives, modifications and variations of such embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. The embodiments of the disclosure are intended to embrace all such alternatives, modifications, and variations as to fall within the broad scope of the appended claims.
In addition, well-known power/ground connections to integrated circuit (IC) chips and other components may or may not be shown within the presented figures, for simplicity of illustration and discussion, and so as not to obscure the disclosure. Further, arrangements may be shown in block diagram form in order to avoid obscuring the disclosure, and also in view of the fact that specifics with respect to implementation of such block diagram arrangements are highly dependent upon the platform within which the present disclosure is to be implemented (i.e., such specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the disclosure, it should be apparent to one skilled in the art that the disclosure can be practiced without, or with variation of, these specific details. The description is thus to be regarded as illustrative instead of limiting.
An abstract is provided that will allow the reader to ascertain the nature and gist of the technical disclosure. The abstract is submitted with the understanding that it will not be used to limit the scope or meaning of the claims. The following claims are hereby incorporated into the detailed description, with each claim standing on its own as a separate embodiment.