Clock control scheme for graphics processing unit
By employing independently controllable clock signals for shader and non-shader engine modules in GPUs, dynamic frequency scaling addresses inefficiencies in thermal and power consumption, optimizing performance based on workload variations.
Patent Information
- Application Number
- JP2024114543
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2020-09-25
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2041-03-05
AI Technical Summary
Conventional GPUs in mobile devices face inefficiencies in thermal and power consumption due to the use of a single universal clock signal that fails to adapt to varying processing workloads, particularly between shader engine and non-shader engine modules, leading to suboptimal performance.
Implementing independently controllable clock signals for shader engine and non-shader engine modules within GPUs, using programmable dividers to adjust frequencies based on performance counter data, allowing dynamic frequency scaling according to workload demands.
This approach improves thermal and power efficiency by optimizing clock frequencies for different GPU components, reducing power consumption and enhancing performance by aligning clock rates with workload imbalances.
Smart Images

Figure 2024138525000001_ABST
Abstract
Description
[Background technology]
[0001] Computer processing systems generally use graphics processing units (GPUs) to perform graphics operations such as texture mapping, rendering, vertex transformations, etc. Performance requirements or specifications for a GPU may vary depending on the type of electronic device involved. For example, a GPU in a mobile device has features and requirements that may deviate significantly from other platforms. Performance, battery life, and thermal are generally important criteria for mobile device platforms, with better sustained performance and low idle power consumption being desirable. Clocking of GPU components, in conjunction with both frequency and voltage scaling of the GPU components during device operation, impacts each of these operational aspects of a mobile device.
[0002] The present disclosure may be better understood, and its features and advantages made apparent to those skilled in the art, by reference to the accompanying drawings, in which: The use of the same reference numbers in different drawings indicates similar or identical items. [Brief description of the drawings]
[0003] [Figure 1] FIG. 1 is a block diagram illustrating a graphics processing unit (GPU) including a divider for selectively adjusting the frequency of a clock signal used to clock a shader engine module (SE) and a non-shader-engine module (nSE) of the GPU, in accordance with some embodiments. [Diagram 2] FIG. 1 is a block diagram illustrating a GPU including multiple dividers disposed in individual tiles of the SE and nSE of the GPU to selectively adjust the frequency of a clock signal used to clock the SE and nSE in accordance with some embodiments. [Diagram 3]2 is a block diagram illustrating a clock divider usable for the GPU of FIG. 1 in accordance with some embodiments. [Figure 4] 1 is an exemplary graph illustrating an example of a difference between SE and nSE performance counter data over time, according to some embodiments. [Diagram 5] 1 is a flow diagram illustrating a method for adjusting the frequency of clock signals used for clocks SE and nSE based on corresponding performance counter data according to some embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0004] Processing workloads in mobile devices vary widely from shader heavy to memory bound to sparsely loaded states (i.e., when workload intensity changes from memory intensive to shader intensive and vice versa). Conventional single / universal clock schemes in which a single clock signal is used to clock all components in a system limit device performance across such changed processing workload states because these schemes do not allow for differentiation of clock frequencies between various system components based on their respective workloads. Using the techniques described herein, changes in processing workload that disproportionately affect certain groups of device components are accounted for by providing separate clocking for different groups of components in a GPU, thereby allowing the frequency of the clock signal used to clock a group of components having a lighter processing workload to be reduced while the frequency of the clock signal used to clock a group of components having a relatively heavier processing workload to be increased or left unchanged. By reducing the clock frequency of components having a lighter workload, the power and thermal efficiency of the system including the components is improved relative to that of a single / universal clock scheme.
[0005] Two groups of device components that typically experience processing workload imbalances are the shader engine modules and non-shader engine modules of a graphics processing unit (GPU). As used herein, a "shader engine module" refers to a module of a GPU that is typically part of a shader engine and is used to perform frequently repeated designated tasks for generating and manipulating graphical objects. In some embodiments, such tasks include texture mapping, rendering, vertex transformation, and the like. As used herein, a "non-shader engine module" of a GPU refers to circuitry and modules that are not included in a shader engine of a GPU.
[0006] For example, shader engine modules of a GPU in a mobile device are more active than non-shader engine modules when the GPU processes a shader-heavy processing workload. Thus, in a universal clock scheme, increasing the frequency of the clock signal for the shader engine modules to better process the shader-heavy processing workload also unnecessarily increases the clock frequency of the non-shader engine modules, resulting in suboptimal thermal and power performance. In contrast, clocking the shader engine modules and non-shader engine modules of a GPU with individually controllable clock signals results in improved thermal and power performance since the non-shader engine modules are clocked at a lower frequency during shader-heavy processing workloads while the clock frequency of the shader engine modules is increased or remains unchanged.
[0007] In some embodiments, similar techniques are applied to selectively set different clock frequencies for memory-bound processing workloads that require significantly more activity from non-shader engine modules than from shader engine modules. When implementing a universal clock scheme, increasing the frequency of the clock signal of the non-shader engine modules to better handle memory-heavy processing workloads (e.g., processing workloads that involve significantly more activity in the non-shader engine storage devices of the GPU than in the shader engine modules of the GPU) would unnecessarily increase the frequency at which the shader engines are clocked, resulting in suboptimal thermal and power performance. In contrast, by clocking the shader engine and non-shader engine modules of a GPU with individually controllable clock signals, the shader engine components are clocked at a lower frequency during memory-heavy processing workloads, while the clock frequency of the non-shader engine modules is increased or left unchanged, resulting in improved thermal and power performance.
[0008] The GPU uses one or more programmable dividers to set the frequency of each independently controllable clock signal provided to different groups of components of the GPU. For example, in some embodiments, the dividers are interposed between a clock source, such as a phase locked loop (PLL), and the shader engine modules and non-shader engine modules. Each divider receives a clock signal (sometimes referred to as an "input clock signal" CLK) from the clock source and outputs a first clock signal and a second clock signal at an independently selectable frequency, the first clock signal being output to the shader engine module and the second clock signal being output to the non-shader engine module. The dividers receive control signals from a controller that set the frequencies of the first and second clock signals. The controller selects values of the control signals based on a set of performance counter data indicative of the relative workloads at the shader engine modules and the non-shader engine modules. For example, if the performance counter data indicates a heavier processing workload at the shader engine modules for longer than a predetermined period of time, the frequency of the second clock signal is decreased to reduce the speed at which the non-shader engine modules are clocked. For example, if the performance counter data indicates a heavier processing workload in the non-shader engine modules for more than a predetermined period of time, the frequency of the first clock signal is decreased to reduce the speed at which the shader engine modules are clocked. For example, if the performance counter data indicates that the difference in processing workload between the shader engine modules and the non-shader engine modules is within a predetermined range (sometimes referred to herein as a "guard band"), the first clock signal and the second clock signal are set to the same frequency (e.g., the frequency of the input clock signal).
[0009] FIG. 1 is a diagram illustrating an example GPU 100 having different groups of components, shader engine modules (SE) and non-shader engine modules (nSE), each clocked with a different configurable clock signal.
[0010] In some embodiments, GPU 100 is included in a processing system that includes at least one central processing unit (CPU), a memory device, and a storage device, such as an embedded system, a mobile device, a personal computer, a server, a workstation, or a game console, etc. GPU 100 is a specialized electronic device configured to perform mathematical calculations at high frequencies for the purpose of rendering images that are displayed on an electronic screen coupled to the processing system.
[0011] Because the hardware components in a GPU are designed for the specific purpose of performing mathematical calculations required for image rendering, GPUs generally tend to perform graphics processing tasks faster and more efficiently than CPUs designed to handle general purpose calculations. In a conventional GPU, all components of the system are clocked using a single universal clock signal. In one example, a conventional GPU includes a clock source, a controller, an SE, and an nSE. The controller of a conventional GPU directly controls the clock source to adjust the frequency of the clock signal output by the clock source. The clock signal is the only clock signal used to clock both the SE and nSE of the conventional GPU. The clock signal of the conventional GPU is distributed to the SE and nSE via an H-tree or mesh clock distribution network, which ensures that the routing of the clock signal occurs with equal propagation delays to each component of the SE and nSE, creating a synchronous timing relationship between the SE and nSE of the conventional GPU. However, due to the use of a single universal clock signal to clock both the SE and nSE, dynamic frequency scaling cannot be performed between the SE and nSE based on the respective workloads, creating thermal and power consumption inefficiencies. In contrast, GPU 100 includes an SE and an nSE that are clocked with individually controllable clock signals output by a divider, allowing dynamic frequency scaling to be performed between the SE and nSE based on their respective workloads, improving thermal and power consumption efficiency compared to conventional GPUs with a universal clock scheme.
[0012] The GPU 100 includes a phase-locked loop (PLL) module 102, an SE 104, an nSE 106, a controller 108, a performance counter 109, a divider 110, and a first-in-first-out (FIFO) memory module 112. In the GPU 100, all of the SEs 104 are clocked using a first clock signal CLKA, and all of the nSEs 106 are clocked using a second clock signal CLKB, such that clock frequency scaling may be implemented between the SEs 104 and the nSEs 106. In some embodiments, each of the SEs 104 includes, for example, a geometry processor, a primitive unit, multiple computation units, a rasterizer, a render output unit (ROP), an L1 cache, etc. In some embodiments, the nSE 106 includes memory resources such as a command processor, a shader resource arbiter, a dispatch controller, an L1 cache, an L2 cache, a ring buffer, etc. FIFO memory module 112 passes data between SE 104 and nSE 106. Because the phase relationship between SE 104 and nSE 106 is known, FIFO memory module 112 does not need to synchronize data transmission between the clock domains of SE 104 and nSE 106, and therefore does not require a synchronizer.
[0013] The PLL module 102 generates a clock signal CLK having a specified frequency and outputs it to an input of the divider 110. The divider 110 receives the clock signal CLK and outputs clock signals CLKA and CLKB to clock the SEs 104 and nSEs 106. The respective frequencies of CLKA and CLKB are set based on control signals S0 and S1 output by the controller 108 to the divider 110. The frequencies of CLKA and CLKB are set based on the specified frequency of the clock signal CLK. For example, in some embodiments, CLKA and CLKB are set to either the frequency of CLK or the frequency of CLK / 2 by the divider 110 in response to the control signals S0 and S1, respectively. In some embodiments, each control signal S0 and S1 carries multiple bits of control data, and multiple flip-flops are included in the divider 110 to allow any of three or more clock frequencies (e.g., CLK, CLK / 2, CLK / 4, CLK / 8, etc.) to be selected for CLKA and CLKB. Thus, divider 110 allows SE 104 and nSE 106 to be selectively clocked with clock signals of the same frequency or different frequencies.
[0014] In some embodiments, the controller 108 is configured to determine a ratio of frequencies between CLKA and CLKB output by the divider 110 based on respective sets of performance counter data obtained from performance counters associated with the SEs 104 and nSEs 106. The controller 108 receives the performance counter data from the performance counters 109, the SE p and nSE p and sets the values of the control signals S0 and S1 based on the performance counter data. In some embodiments, each performance counter 109 is a register implemented in hardware or software that stores performance counter data, including performance counter values corresponding to one or more events occurring within the GPU 100. In some embodiments, the utilization counter, active capacitance (C ac) busy signals or streaming performance counters may additionally or alternatively be used to identify and quantify activity occurring within the SE 104. In one example, a first set of performance counters coupled to the controller 108 may generate first performance counter data, SE p In some embodiments, the first performance counter data, SE p includes performance counter values received from a first set of performance counters, or is a sum of performance counter values, where the first set of performance counters tracks the respective amounts of particular events occurring in the SE 104. In some embodiments, the SE 104 includes a ring buffer (RB) and an L1 cache. In some embodiments, the performance counters and corresponding performance counter data, the SE p may include or otherwise indicate vector and scalar arithmetic logic unit (ALU) activity, pixel rate, L1 cache hit rate, and / or shader memory access rate. For example, a second set of performance counters coupled to the controller 108 may generate second performance counter data, nSE p In some embodiments, the second performance counter data, nSE p includes or is a sum of performance counter values received from a second set of performance counters, the second set of performance counters tracking respective amounts of certain events occurring in one or more non-shader components, such as a command processor, a shader resource arbiter, a dispatch controller, and memory resources, such as an L2 cache. In some embodiments, the performance counters and corresponding performance counter data, nSEp, include or otherwise indicate a vertex rate, a primitive rate, and / or an L2 cache access rate. The controller 108 determines a difference between the first performance counter data and the second performance counter data, SE p -nSE p In some embodiments, the raw difference SEp -nSE p Rather than using a hysteresis filter, the controller 108 periodically updates (i.e., recalculates) the difference value and selects values for the control signals S0 and S1 based on the difference value over time. For example, if the controller 108 determines that the difference is within a range of predefined values between upper and lower thresholds, referred to herein as a guard band, the controller 108 selects values for S0 and S1 such that CLKA and CLKB have a 1:1 clock ratio (i.e., the frequency of CLKA is equal to the frequency of CLKB). In some embodiments, the range of difference values that defines the guard band is selected based on the switching latency or the time required to force a change in clock frequency. If the controller 108 determines that the difference is higher than the upper guard band threshold for more than a predetermined continuous period, generally indicating that a shader-intensive workload is being processed by the GPU 100, the controller 108 selects values of S0 and S1 such that CLKA has a higher frequency than CLKB (e.g., sets the frequency of CLKA to the frequency of CLK and the frequency of CLKB to the frequency of CLK / 2). In this manner, the clock of the SE 104 is scaled down (i.e., frequency is reduced) when the workload of the GPU 100 involves relatively high non-shader engine (e.g., memory) activity, while the clock of the nSE 106 is scaled down (i.e., frequency is reduced) when the workload of the GPU 100 involves relatively high shader activity, thereby reducing the power consumption of the GPU 100 compared to an implementation in which a single universal clock is used for both the SE and the nSE.
[0015] In some embodiments, GPU 100 includes multiple shader engines, each having a shader engine module. In some embodiments, the shader engine modules included in a given shader engine of GPU 100 are replicated or cloned across all shader engines of the GPU. In such embodiments, an asymmetric workload may be assigned to each shader engine, and the clock frequency scaling methods described herein are applied according to a global scheme, such that the clock frequencies of the clock signals provided to the shader engine modules of each shader engine in GPU 100 can be individually selected. In other embodiments, the shader engines of GPU 100 are assigned a symmetric workload and are all clocked using the same clock frequency according to the clock frequency scaling methods described herein.
[0016] 2 illustrates an exemplary GPU 200 in which clock frequency scaling is implemented between the SE and the nSE via a divider located on each tile of the SE and the nSE. The GPU 200 includes a phase-locked loop (PLL) module 202, an SE 204, an nSE 206, a controller 208, a performance counter 209, a FIFO memory module 212, and a clock mesh 214. In some embodiments, each of the SEs 204 includes a geometry processor, a primitive unit, multiple computation units, a rasterizer, a render output unit (ROP), a ring buffer (RB), an L1 cache, etc. In some embodiments, the nSE 206 includes memory resources such as a command processor, a shader resource arbiter, a dispatch controller, an L2 cache, etc.
[0017] The SE 204 is implemented on N tiles 216, each of which includes a respective divider 210, where "tile" refers to a spatially coherent grouping of processing and / or memory elements (e.g., computational units, memory cells, etc.), into which the elements of the SE 204 and nSE 206 are divided in this embodiment. The nSE 206 is implemented on M tiles 217, each of which includes a respective divider 211. In some embodiments, each of the dividers 210 and 211 corresponds to the divider 310 of FIG. 3, but is modified to include only a single clock signal output, and optionally, modified to include additional flip-flops for additional selectable clock division.
[0018] The PLL module 202 generates a clock signal CLK and outputs it to the input of the clock mesh 214. The clock mesh 214 distributes the clock signal CLK to multiple outputs, each coupled to the clock input of a respective divider 210 or divider 211. Each of the dividers 210 and 211 receives the clock signal CLK and outputs a clock signal having a selected frequency selected from CLK, CLK / 2, CLK / 4, or another desired division of the frequency of CLK to clock the SEs 204 and nSEs 206 in their corresponding tiles 216 and 217, respectively. In this embodiment, all the dividers 210 output the same clock signal CLKA, while all the dividers 211 output the same clock signal CLKB, where CLKA and CLKB will have the same or different frequencies depending on the values of the control signals S0 and S1 output by the controller 208. For example, the frequency CLKA is controllable independently from the frequency of CLKB. For example, the clock signal frequency for CLKA is selected based on a control signal S0 output by controller 208 to divider 210, and the clock signal frequency for CLKB is selected based on a control signal S1 output by controller 208 to divider 211. In some embodiments, each control signal S0 and S1 carries multiple bits of control data, and multiple flip-flops are included in each of dividers 210 and 211 to allow any of three or more clock frequencies (e.g., CLK, CLK / 2, CLK / 4, CLK / 8, etc.) to be selected for clocking SE 204 and nSE 206. Divider 210 and divider 211 therefore allow SE 204 and nSE 206 to be selectively clocked with clock signals of the same or different frequencies.
[0019] In some embodiments, controller 208 is configured to determine a ratio of frequencies between CLKA and CLKB output by divider 210 and divider 211, respectively, based on respective sets of performance counter data obtained from performance counters associated with SE 204 and nSE 206. Controller 208 determines a ratio of frequencies between CLKA and CLKB output by divider 210 and divider 211, respectively, from a first and second set of performance counters of performance counters 209, as described in connection with FIG. p , and second performance counter data nSE p and sets values of the control signals S0 and S1 based on the performance counter data. The controller 208 determines a difference between the first and second performance counter data, SE p -nSE pThe controller 208 periodically updates (i.e., recalculates) the difference value and selects values of the control signals S0 and S1 based on the difference value over time. For example, if the controller 208 determines that the difference is within a predefined guard band, then the controller 208 selects values of S0 and S1 such that CLKA and CLKB have a 1:1 clock ratio (i.e., the frequency of CLKA is equal to the frequency of CLKB). If the controller 208 determines that the difference is higher than the upper threshold of the guard band for more than a predefined continuous period of time, generally indicating that a shader-intensive workload is being processed by the GPU 200, then the controller 208 selects values of S0 and S1 such that CLKA has a higher frequency than CLKB (e.g., sets the frequency of CLKA to the frequency of CLK and the frequency of CLKB to the frequency of CLK / 2). In this way, when the GPU 200 workload involves relatively high non-shader engine (e.g., memory) activity, the clock of the SE 204 is scaled down (i.e., frequency is reduced), while when the GPU 200 workload involves relatively high shader activity, the clock of the nSE 206 is scaled down (i.e., frequency is reduced), thereby reducing the power consumption of the GPU 200 compared to an implementation in which a single, universal clock is used for both the SE and the nSE. When compared to the GPU 100 of FIG. 1, the GPU 200 generally has increased latency for clock frequency changes due to the distance between the dividers 210, 211 and the controller 208, offset by the relatively low clock tree branching of the GPU 200.
[0020] 3 illustrates an exemplary block diagram of a divider 310. In some embodiments, the divider 310 corresponds in whole or in part to one or more of the divider 110 of FIG. 1 and the dividers 210 and 211 of FIG. 2. As illustrated, the divider 310 includes a delay circuit 322, a flip-flop 320, a first multiplexer 324, and a second multiplexer 326. The divider 310 receives a clock signal CLK at a clock input. The clock signal CLK is then received by the delay circuit 322 and the flip-flop 320. The flip-flop 320 halves the frequency of the clock signal CLK to generate a clock signal CLK / 2. The delay circuit 322 provides a delay to the clock signal CLK, which is equal to the delay introduced to the clock signal CLK by the flip-flop 320 to generate the clock signal CLK / 2, so that the clock signal CLK output by the delay circuit 322 is synchronized with the clock signal CLK / 2 output by the flip-flop 320. The first multiplexer 324 receives the delayed clock signal CLK, the clock signal CLK / 2, and a control signal S0. The first multiplexer 324 outputs a clock signal CLKA, which is a selected one of the delayed clock signals CLK and the clock signal CLK / 2, selected based on the control signal S0. The second multiplexer 326 receives the delayed clock signal CLK, the clock signal CLK / 2, and a control signal S1. The second multiplexer 326 outputs a clock signal CLKB, which is a selected one of the delayed clock signals CLK and the clock signal CLK / 2, selected based on the control signal S1. The multiplexers 324 and 326 receive control signals S0 and S1, respectively, from an external controller. In some embodiments, the external controller corresponds to either of the controllers 108 and 208 of FIGS.
[0021] FIG. 4 illustrates the difference 402 between the first and second performance counter data, SE p -nSE pGraph 400 illustrating how σ varies over time for an upper threshold A and a lower threshold B for a given guard band 404. Graph 400 is described with respect to the example implementation of GPU 100 of FIG. 1, but is also applicable to GPU 200 of FIG.
[0022] Starting at point 406, the controller 108 receives the performance counter data SE p and nSE p Based on the performance counter 109 providing the controller 108 with the difference SE p -nSE p In some embodiments, the controller 108 periodically calculates the difference 402, such that the calculated value of the difference 402 is periodically updated by the controller 108. In some embodiments, the controller 108 periodically calculates the difference 402 by updating the calculated value of the difference 402. p and nSE p is provided to controller 108 by performance counter 109. In this embodiment, the frequencies of CLKA and CLKB output by divider 110 are assumed to be equal at point 406.
[0023] At point 408, controller 108 determines that difference 402 is below lower threshold B of guard band 404 for more than the predetermined period of time, indicating that a majority of the workload being processed by graphics processing unit 100 is being executed by nSE 106 for more than the predetermined period of time. In response to determining that difference 402 is below lower threshold B for more than the predetermined period of time, controller 108 modifies control signal S1 to reduce the frequency of clock signal CLKB used to clock nSE 106 to a lower frequency, such as CLK / 2.
[0024] At point 410, controller 108 determines that difference 402 crosses above lower threshold B, in this case indicating a more balanced workload between nSE 106 and SE 104. In response to determining that difference 402 crosses above lower threshold B, controller 108 modifies control signal S1 to increase the frequency of clock signal CLKB to be equal to the frequency of clock signal CLKA used to clock SE 104.
[0025] At point 412, the controller 108 determines that the difference 402 crosses above the upper threshold A of the guardband 404, indicating that a majority of the workload processed by the GPU 100 is being executed by the SEs 104.
[0026] At point 414, controller 108 determines that difference 402 remains above upper threshold A for more than the predetermined period of time. In response to determining that difference 402 remains above upper threshold A of guard band 404 for more than the predetermined period of time, controller 108 modifies control signal S0 to decrease the frequency of clock signal CLKA to a lower frequency, such as CLK / 2.
[0027] At point 416, controller 108 determines that difference 402 has dropped from above upper threshold A to below lower threshold B, indicating an abrupt shift in the processing workload from processing primarily by SE 104 to processing primarily by nSE 106. In response to determining that difference 402 has dropped from above upper threshold A to below lower threshold B, controller 108 modifies control signal S0 to increase the frequency of CLKA to match the frequency of CLKB.
[0028] At point 418, the controller 108 determines that the difference 402 remains below the lower threshold B for more than a predetermined period of time. In response, the controller modifies the control signal S1 to decrease the frequency of CLKB.
[0029] 5 illustrates an example process flow for a method 500 for selectively modifying clock signals provided to the SE and nSE of a GPU, according to some embodiments. The method 500 is described with respect to an example implementation in the GPU 100 of FIG. 1 and its components.
[0030] In block 502, a first set of performance counters 109 is configured to generate first performance counter data, SE p In some embodiments, the first performance counter data, SE p includes or indicates scalar and vector ALU activity, pixel rate, L1 cache hit rate, and / or shader memory access rate.
[0031] In block 504, a second set of performance counters 109 is configured to determine a second performance counter, nSE p In some embodiments, the second performance counter data, SE p indicates whether vertex speed, primitive speed, and / or L2 cache access speed are included.
[0032] In block 506, the controller 108 receives the SE performance counter data, p and nSE performance counter data, nSE p The difference between,SE p -nSE p In some embodiments, SE p is the sum of a number of performance counter values corresponding to counts for various defined events occurring in the SE 104, and nSE p is the sum of multiple performance counter values corresponding to counts of various defined events occurring in the nSE 106. Thus, the difference, SE p -nSE p represents the difference in processing workload between the SE 104 and the nSE 106.
[0033] In block 508, the controller 108 p -nSE p remains below a lower threshold of a predetermined guard band for longer than a predetermined threshold period. p -nSE p If SE remains below the lower threshold for more than the predetermined period of time, method 500 proceeds to block 510. p -nSE p If does not exceed the lower threshold or remain below the lower threshold for more than the predetermined period of time, method 500 proceeds to block 512 .
[0034] At block 510, the controller 108 decreases the frequency of one or more clock signals provided to the nSE 106. In some embodiments, to decrease the frequency of the clock signals provided to the nSE 106, the controller 108 modifies the control signal S1 to cause the divider 110 to output a clock signal at a lower frequency. In some embodiments, such modification of the clock signal S1 changes the frequency of the clock signal CLKB output by the divider 110 from the frequency of the clock signal CLK received at the clock signal input of the divider 110 to half that frequency (i.e., CLK / 2).
[0035] In block 512, the controller 108 p -nSE p remains above a predefined guard band upper threshold for longer than a predefined threshold period. p -nSE p If remains above the upper threshold for more than the predetermined period, method 500 proceeds to block 514. p -nSE pfalls below the upper threshold or does not remain above the upper threshold for longer than the predetermined period, method 500 proceeds to block 516. In some embodiments, the predetermined threshold period associated with the upper threshold of the guard band is the same as the predetermined threshold period associated with the lower threshold of the guard band, while in other embodiments, the predetermined threshold periods are different.
[0036] At block 514, controller 108 decreases the frequency of one or more clock signals provided to SE component 104. In some embodiments, to decrease the frequency of the clock signals provided to SE component 104, controller 108 modifies control signal S0 to cause divider 110 to output a clock signal at a lower frequency. In some embodiments, such modification of clock signal S0 changes the frequency of clock signal CLKA output by divider 110 from the frequency of clock signal CLK received at the clock signal input of divider 110 to half that frequency (i.e., CLK / 2).
[0037] At block 516, controller 108 sets a 1:1 frequency ratio for the clock signals provided to SE 104 and nSE 106. In some embodiments, controller 108 modifies one or both of control signals S0 and S1 to change the frequency of clock signals CLKA and CLKB output by divider 110 to be the same frequency to SE 104 and nSE 106, respectively. In some embodiments, controller 108 modifies control signals S0 and S1 to change the frequency of clock signals CLKA and CLKB to be equal to the frequency of clock signal CLK input to divider 110 by PLL 102.
[0038] Although the method 500 is described with reference to the GPU 100 of FIG. 1, those skilled in the art will appreciate that the method 500 is also applicable to the GPU 200 of FIG.
[0039] As disclosed herein, in some embodiments, a method includes independently adjusting at least one of a first frequency of a first clock signal received by one or more shader engine modules and a second frequency of a second clock signal received by one or more non-shader engine modules of a graphics processing unit based on a first workload of the one or more shader engine modules and a second workload of the one or more non-shader engine modules. In one aspect, independently adjusting at least one of the first frequency and the second frequency is based on first performance counter data indicative of the first workload and second performance counter data indicative of the second workload, the method further including calculating a difference between the first performance counter data and the second performance counter data, and independently adjusting at least one of the first frequency and the second frequency is performed based on the difference. In another aspect, the method includes determining that the difference is less than a lower threshold of a predetermined guard band for greater than a predetermined period of time, and independently adjusting at least one of the first frequency and the second frequency includes independently adjusting a first frequency of the first clock signal without adjusting a second frequency of the second clock signal.
[0040] In one aspect, the method includes determining that the difference is greater than an upper threshold of a pre-defined guard band for more than a pre-defined period of time, and independently adjusting at least one of the first frequency and the second frequency includes independently adjusting the second frequency of the second clock signal without adjusting the first frequency of the first clock signal. In another aspect, independently adjusting at least one of the first frequency and the second frequency includes determining that the difference is between an upper threshold and a lower threshold of a pre-defined guard band, and independently adjusting at least one of the first frequency and the second frequency includes adjusting the first frequency of the first clock signal to match the second frequency of the second clock signal. In another aspect, independently adjusting at least one of the first frequency and the second frequency includes sending at least one control signal to a divider, sending a first clock signal having the first frequency to one or more shader engine modules based on the at least one control signal with the divider, and sending a second clock signal having the second frequency to one or more non-shader engine modules based on the at least one control signal with the divider. In yet another aspect, independently adjusting at least one of the first frequency and the second frequency includes sending the first control signal to a first plurality of dividers, sending the second control signal to a second plurality of dividers, sending the first clock signal having the first frequency to one or more shader engine modules based on the first control signal with the first plurality of dividers, and sending the second clock signal having the second frequency to one or more non-shader engine modules based on the second control signal with the second plurality of dividers.
[0041] In some embodiments, a graphics processing unit (GPU) includes a divider, a plurality of shader engine modules coupled to the divider and configured to receive a first clock signal from the divider, a plurality of non-shader engine modules coupled to the divider and configured to receive a second clock signal from the divider, and a controller configured to output a first control signal and a second control signal to the divider to selectively control a first frequency of the first clock signal and a second frequency of the second clock signal based on a first detected workload of the plurality of shader engine modules and a second detected workload of the plurality of non-shader engine modules. In one aspect, the GPU includes a first plurality of performance counters configured to generate first performance counter data indicative of the first detected workload of the plurality of shader engine modules and a second plurality of performance counters configured to generate second performance counter data indicative of the second detected workload of the plurality of non-shader engine modules.
[0042] In one aspect, the controller is further configured to receive first performance counter data from the first plurality of performance counters, receive second performance counter data from the second plurality of performance counters, and independently adjust at least one of the first frequency and the second frequency based on the first performance counter data and the second performance counter data. In another aspect, the controller is further configured to calculate a difference between the first performance counter data and the second performance counter data, and independently adjust at least one of the first frequency and the second frequency based on the difference. In yet another aspect, the controller is further configured to determine that the difference is less than a lower threshold of a predetermined guard band for more than a predetermined period of time, and independently adjust the first frequency of the first clock signal without adjusting the second frequency of the second clock signal. In another aspect, the controller is further configured to determine that the difference is greater than an upper threshold of a predefined guard band for greater than a predefined period of time and to independently adjust the second frequency of the second clock signal without adjusting the first frequency of the first clock signal. In yet another aspect, the controller is further configured to determine that the difference is between an upper threshold and a lower threshold of a predefined guard band and to adjust the first frequency of the first clock signal to match the second frequency of the second clock signal.
[0043] In some embodiments, a graphics processing unit (GPU) includes a plurality of dividers, a plurality of shader engine modules configured to receive a first clock signal having a first frequency from a first subset of the plurality of dividers, a plurality of non-shader engine modules configured to receive a second clock signal having a second frequency from a second subset of the plurality of dividers, and a controller configured to output a first control signal to the first subset of the plurality of dividers to selectively control a first frequency of the first clock signal and output a second control signal to the second subset of the plurality of dividers to selectively control a second frequency of the second clock signal based on a first detected workload of the plurality of shader engine modules and a second detected workload of the plurality of non-shader engine modules. In another aspect, the GPU includes a first plurality of performance counters configured to generate first performance counter data indicative of the first detected workload of the plurality of shader engine modules and a second plurality of performance counters configured to generate second performance counter data indicative of the second detected workload of the plurality of non-shader engine modules.
[0044] In one aspect, the controller is further configured to receive first performance counter data from the first plurality of performance counters, receive second performance counter data from the second plurality of performance counters, calculate a difference between the first performance counter data and the second performance counter data, and independently adjust at least one of the first frequency and the second frequency based on the difference. In yet another aspect, the controller is further configured to determine that the difference is less than a lower threshold of a predefined guard band for more than a predefined period of time, and independently adjust the first frequency without adjusting the second frequency. In another aspect, the controller is further configured to determine that the difference is greater than an upper threshold of a predefined guard band for more than a predefined period of time, and independently adjust the second frequency without adjusting the first frequency. In another aspect, the controller is further configured to determine that the difference is between an upper threshold and a lower threshold of a predefined guard band, and adjust the first frequency to match the second frequency.
[0045] In some embodiments, the above-described apparatus and techniques are implemented in a system that includes one or more integrated circuit (IC) devices (also referred to as integrated circuit packages or microchips), such as the GPUs described above with reference to FIGS. 1 and 2. Electronic design automation (EDA) and computer-aided design (CAD) software tools are used to design and manufacture these IC devices. These design tools are typically represented as one or more software programs. The one or more software programs include code executable by a computer system to operate the computer system to operate on code representing circuits of one or more IC devices to perform at least a portion of a process for designing or adapting a manufacturing system for manufacturing the circuits. This code may include instructions, data, or a combination of instructions and data. The software instructions representing the design tool or manufacturing tool are typically stored in a computer-readable storage medium accessible to the computing system. Similarly, code representing one or more stages of the design or manufacture of the IC device is stored in and accessed from the same computer-readable storage medium or a different computer-readable storage medium.
[0046] A computer-readable storage medium includes any non-transitory storage medium or combination of non-transitory storage media that can be accessed by a computer system during use to provide instructions and / or data to the computer system. Such storage media may include, but are not limited to, optical media (e.g., compact discs (CDs), digital versatile discs (DVDs), Blu-ray discs), magnetic media (e.g., floppy disks, magnetic tape, magnetic hard drives), volatile memory (e.g., random access memory (RAM) or cache), non-volatile memory (e.g., read-only memory (ROM) or flash memory), or micro-electromechanical systems (MEMS) based storage media. The computer-readable storage medium (e.g., system RAM or ROM) may be internal to the computing system, the computer-readable storage medium (e.g., a magnetic hard drive) may be permanently attached to the computing system, the computer-readable storage medium (e.g., an optical disk or Universal Serial Bus (USB)-based flash memory) may be removably attached to the computing system, or the computer-readable storage medium (e.g., network-accessible storage (NAS)) may be coupled to the computer system via a wired or wireless network.
[0047] In some embodiments, some aspects of the above techniques may be implemented by one or more processors of a processing system executing software. The software includes one or more sets of executable instructions stored in or tangibly embodied on a non-transitory computer-readable storage medium. The software may include instructions and specific data that, when executed by one or more processors, operate the one or more processors to perform one or more aspects of the above techniques. The non-transitory computer-readable storage medium may include, for example, a magnetic or optical disk storage device, a solid-state storage device such as a flash memory, a cache, a random access memory (RAM), or one or more other non-volatile memory devices, etc. The executable instructions stored on the non-transitory computer-readable storage medium may be source code, assembly language code, object code, or other instruction formats that can be interpreted or executed by one or more processors.
[0048] In addition to the above, it should be noted that not all activities or elements described in the summary description are required, some of the specific activities or devices may not be required, one or more additional activities may be performed, and one or more additional elements may be included. Furthermore, the order in which the activities are listed is not necessarily the order in which they are performed. Also, the concepts have been described with reference to specific embodiments. However, those skilled in the art will appreciate that various changes and modifications can be made without departing from the scope of the invention as set forth in the claims. Thus, the specification and drawings should be regarded in an illustrative rather than a restrictive sense, and all such modifications are intended to be included within the scope of the invention.
[0049] Benefits, other advantages, and solutions to problems have been described above with respect to specific embodiments. However, the benefits, advantages, solutions to problems, and features by which any benefit, advantage, or solution may occur or be manifested are not to be construed as critical, essential, or essential features of any or all claims. Moreover, the specific embodiments described above are illustrative only, as the disclosed invention may be modified and practiced in different but similar manners apparent to those skilled in the art having the benefit of the teachings herein. No limitations are intended to the details of construction or design herein shown, other than as set forth in the appended claims. It is therefore apparent that the specific embodiments described above may be altered or modified, and all such variations are considered to be within the scope of the disclosed invention. Accordingly, the protection sought herein is set forth in the appended claims.
Claims
1. A graphics processing unit (GPU), A divider; a first set of circuitry coupled to the divider and configured to receive a first clock signal from the divider having a first frequency; a second set of circuitry coupled to the divider and configured to receive a second clock signal from the divider having a second frequency; a controller configured to selectively control the first frequency independently of the second clock signal based at least in part on respective workloads associated with the first set of circuits and the second set of circuits. GPU.
2. the first set of circuits includes one or more shader engines; 2. The GPU of claim 1.
3. the second set of circuits includes one or more non-shader engine modules; 2. The GPU of claim 1.
4. the controller is configured to selectively control the first frequency based at least in part on a volume of events associated with the respective workload.
2. The GPU of claim 1.
5. the controller is configured to selectively control the first frequency based at least in part on a difference between performance counter data associated with the respective workloads.
2. The GPU of claim 1.
6. Selectively controlling the first frequency includes: transmitting at least one control signal to the divider; transmitting, with the divider, the first clock signal having the first frequency to the first set of circuits based on the at least one control signal; and transmitting, with the divider, the second clock signal having the second frequency to the second set of circuits based on the at least one control signal.
2. The GPU of claim 1.
7. a first plurality of dividers; a second plurality of dividers; Selectively controlling the first frequency includes: transmitting a first control signal to the first plurality of dividers; transmitting a second control signal to the second plurality of dividers.
2. The GPU of claim 1.
8. 1. A method comprising: providing a first clock signal having a first frequency to a first set of circuits of a graphics processing unit (GPU); providing a second clock signal having a second frequency to a second set of circuitry of the GPU; and selectively adjusting the first frequency independent of the second clock signal based at least in part on respective workloads associated with the first set of circuits and the second set of circuits. method.
9. Providing the first clock signal to the first set of circuits comprises: providing the first clock signal to one or more shader engines of the GPU; The method of claim 8.
10. Providing the second clock signal to the second set of circuits includes: providing the second clock signal to non-shader engine circuitry of the GPU; The method of claim 8.
11. adjusting the first frequency is based at least in part on a volume of events associated with the respective workload. The method of claim 8.
12. adjusting the first frequency is based at least in part on a difference between performance counter data associated with the respective workloads. The method of claim 8.
13. Adjusting the first frequency includes: transmitting at least one control signal to a splitter; transmitting, with the divider, the first clock signal having the first frequency to the first set of circuits based on the at least one control signal; and transmitting, with the divider, the second clock signal having the second frequency to the second set of circuits based on the at least one control signal. The method of claim 8.
14. Adjusting the first frequency includes: transmitting a first control signal to a first plurality of dividers; transmitting a second control signal to a second plurality of dividers; transmitting the first clock signal having the first frequency to the second set of circuits based on the first control signal using the first plurality of dividers; transmitting, using the second plurality of dividers, the second clock signal having the second frequency to the second set of circuits based on the second control signal. The method of claim 8.
15. 1. A system comprising: one or more processors; one or more memories communicatively coupled to the one or more processors; a graphics processing unit (GPU) communicatively coupled to the one or more processors; The GPU is a first set of circuitry configured to receive a first clock signal having a first frequency from the divider; a second set of circuitry configured to receive a second clock signal having a second frequency from the divider; a controller configured to selectively control the first frequency independently of the second clock signal based at least in part on respective workloads associated with the first set of circuits and the second set of circuits. system.
16. the first set of circuits includes one or more shader engines; 16. The system of claim 15.
17. the second set of circuits includes one or more non-shader engine modules; 16. The system of claim 15.
Citation Information
Patent Citations
Power management system and method for a processor
US20140089699A1
Fine-grained speed binning in an accelerated processing device
US20190129463A1
