# US 2021/0240251 A1 · Multi-thread power limiting via shared limit

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0240251 A1
- Document ID: US20210240251A1
- Status: Published application
- Kind: A1
- Application number: 16/829,942
- Filed: 2020-03-25
- Published: 2021-08-05
- Earliest claimed: 2020-02-04
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Eric Wayne Mahurin; Vijay Kiran Kalyanam
- Web page: https://patentgrep.com/patent/US20210240251A1

## CPC

- G06F 1/3228: Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
- G06F 1/3287: by switching off individual functional units in the computer system
- G01R 21/133: by using digital technique
- G06F 1/324: by lowering clock frequency
- G06F 1/3243: {Power saving in microcontroller unit}
- G06F 1/329: by task scheduling
- G06F 1/3296: by lowering the supply or operating voltage
- G06F 9/5094: {where the allocation takes into account power or heat criteria (power management in computers in general G06F1/3203; thermal management in computers in general G06F1/206)}
- H03H 17/04: Recursive filters
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G01R: MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES (indicating correct tuning of resonant circuits H03J3/12)
- H03H: IMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS (waveguides, resonators, lines or other devices of the waveguide type H01P)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Systems and methods for multi-thread power limiting via a shared limit estimates power consumed in a processing core on a thread-by-thread basis by counting how many power events occur in each thread. Power consumed by each thread is approximated based on the number of power events that have occurred. Power consumed by individual threads is compared to a shared power limit derived from a sum of the power consumed by all threads. Threads that are above the shared power limit are stalled while threads below the shared power limit are allowed to continue without throttling. In this fashion, the most power intensive threads are throttled to stay below the shared power limit while still maintaining performance.

## Claims

### Claim 1

A method for controlling power consumption in a computing device, the method comprising:
measuring power on a thread-by-thread basis for a plurality of threads at a plurality of thread execution circuits in the computing device;
calculating a total power consumed by all threads of the plurality of threads;
generating a shared power limit based on the total power and a predefined limit;
comparing a value associated with power consumed by an individual thread of the plurality of threads to the shared power limit; and
when the power consumed by the individual thread exceeds the shared power limit, stalling the individual thread at the plurality of thread execution circuits.

### Claim 2 (depends on 1)

The method of claim 1, wherein the predefined limit is a finite value.

### Claim 3 (depends on 1)

The method of claim 1, wherein the predefined limit is a value output by a configurable total limit circuit.

### Claim 4 (depends on 1)

The method of claim 1, wherein measuring the power comprises measuring power events with a digital power meter.

### Claim 5 (depends on 4)

The method of claim 4, further comprising scaling an output of the digital power meter with a scaling circuit to provide the value associated with the power consumed prior to comparing.

### Claim 6 (depends on 1)

The method of claim 1, wherein generating the shared power limit comprises filtering an output of an injector circuit controlled by a comparator that receives the predefined limit.

### Claim 7 (depends on 1)

The method of claim 1, wherein generating the shared power limit comprises calculating an average thread power.

### Claim 8 (depends on 1)

The method of claim 1, wherein generating the shared power limit comprises accumulating a difference of the total power and a value from a configurable total limit circuit.

### Claim 9 (depends on 1)

The method of claim 1, wherein generating the shared power limit further comprises using an injector circuit to provide one of a maximum value and a minimum value to a filter.

### Claim 10 (depends on 1)

The method of claim 1, further comprising, when the power consumed by the individual thread is less than the shared power limit, not stalling the individual thread.

### Claim 11

A method for controlling power consumption in a computing device, the method comprising:
measuring power on a core-by-core basis for a plurality of processing cores in the computing device;
calculating a total power consumed by all processing cores;
generating a shared power limit based on the total power and a predefined limit;
comparing a value associated with power consumed by an individual processing core of the plurality of processing cores to the shared power limit; and
when the power consumed by the individual processing core exceeds the shared power limit, stalling the individual processing core.

### Claim 12

An integrated circuit (IC) comprising:
a multi-thread processing core comprising:
a thread logic;
a plurality of digital power meters configured to measure power on a thread-by-thread basis at the thread logic;
a summation circuit configured to sum outputs from the plurality of digital power meters;
a first comparator configured to compare an output of the summation circuit to a predefined limit; and
a second comparator configured to compare an output of a digital power meter of the plurality of digital power meters to a shared power limit derived from an output of the first comparator.

### Claim 13 (depends on 12)

The IC of claim 12 integrated into a mobile terminal or a server.

### Claim 14 (depends on 12)

The IC of claim 12 integrated into a computing device.

### Claim 15 (depends on 12)

The IC of claim 12, further comprising a scaling circuit configured to scale the outputs of the plurality of digital power meters.

### Claim 16 (depends on 15)

The IC of claim 15, wherein the scaling circuit provides a scaling value based on a thread priority.

### Claim 17 (depends on 12)

The IC of claim 12, further comprising a configurable total limit circuit associated with the output of the summation circuit.

### Claim 18 (depends on 17)

The IC of claim 17, wherein the predefined limit is provided by the configurable total limit circuit.

### Claim 19 (depends on 17)

The IC of claim 17, wherein the configurable total limit circuit is coupled to a delta accumulator circuit operating on the output of the summation circuit.

### Claim 20 (depends on 12)

The IC of claim 12, wherein the predefined limit is a finite value.

### Claim 21 (depends on 12)

The IC of claim 12, further comprising a delta accumulator circuit operating on the output of the summation circuit.

### Claim 22 (depends on 12)

The IC of claim 12, further comprising an averaging circuit operating on the output of the summation circuit.

### Claim 23 (depends on 22)

The IC of claim 22, wherein the averaging circuit comprises an infinite impulse response (IIR) filter.

### Claim 24 (depends on 12)

The IC of claim 12, further comprising an injector circuit coupled to the first comparator.

### Claim 25 (depends on 12)

The IC of claim 12, wherein the second comparator comprises a plurality of comparators used on respective threads.

### Claim 26 (depends on 12)

The IC of claim 12 integrated into a device selected from the group consisting of: a set top box; an entertainment unit; a navigation device; a communications device; a fixed location data unit; a mobile location data unit; a global positioning system (GPS) device; a mobile phone; a cellular phone; a smart phone; a session initiation protocol (SIP) phone; a tablet; a phablet; a server; a computer; a portable computer; a mobile computing device; a wearable computing device; a desktop computer; a personal digital assistant (PDA); a monitor; a computer monitor; a television; a tuner; a radio; a satellite radio; a music player; a digital music player; a portable music player; a digital video player; a video player; a digital video disc (DVD) player; a portable digital video player; an automobile; a vehicle component; avionics systems; a drone; and a multicopter.

### Claim 27

An integrated circuit (IC) comprising:
a multi-thread processing core comprising:
a plurality of thread execution circuits;
a plurality of digital power meters configured to measure power on a thread-by-thread basis at a corresponding thread execution circuit;
a summation circuit configured to sum outputs from the plurality of digital power meters;
a manipulation circuit configured to operate on the sum;
a first comparator configured to compare an output of the manipulation circuit to a predefined limit;
a multiplexor configured to use the compare result from the first comparator to select a minimum limit or a maximum limit;
a circuit that uses a multiplexor output to generate a shared power limit; and
a second comparator configured to compare an output of a digital power meter of the plurality of digital power meters to the shared power limit.

### Claim 28 (depends on 27)

The IC of claim 27, further comprising an injector circuit coupled to the first comparator.

### Claim 29 (depends on 27)

The IC of claim 27, wherein the manipulation circuit comprises one of an averaging circuit or a delta accumulator circuit.

### Claim 30 (depends on 28)

The IC of claim 28 integrated into a device selected from the group consisting of: a set top box; an entertainment unit; a navigation device; a communications device; a fixed location data unit; a mobile location data unit; a global positioning system (GPS) device; a mobile phone; a cellular phone; a smart phone; a session initiation protocol (SIP) phone; a tablet; a phablet; a server; a computer; a portable computer; a mobile computing device; a wearable computing device; a desktop computer; a personal digital assistant (PDA); a monitor; a computer monitor; a television; a tuner; a radio; a satellite radio; a music player; a digital music player; a portable music player; a digital video player; a video player; a digital video disc (DVD) player; a portable digital video player; an automobile; a vehicle component; avionics systems; a drone; and a multicopter.
