# US 10,955,901 B2 · Saving power in the command processor using queue based watermarks

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

- Number: US 10,955,901 B2
- Document ID: US10955901B2
- Status: Granted
- Kind: B2
- Application number: 15/721,109
- Filed: 2017-09-29
- Published: 2019-04-04
- Granted: 2021-03-23
- Earliest claimed: 2017-09-29
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Alexander Fuad Ashkar; Angel E. Socarras; Rex Eldon McCrary
- Web page: https://patentgrep.com/patent/US10955901B2

## CPC

- G06F 1/3243: {Power saving in microcontroller unit}
- G06F 1/324: by lowering clock frequency
- G06F 1/3287: by switching off individual functional units in the computer system
- G06F 1/3296: by lowering the supply or operating voltage
- G06F 1/3203: Power management, i.e. event-based initiation of a power-saving mode
- 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)
- 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, apparatuses, and methods for dynamically adjusting the power consumption of prefetch engines are disclosed. In one embodiment, a processor includes one or more prefetch engines, a draw completion engine, and a queue in between the one or more prefetch engines and the draw completion engine. If the number of packets stored in the queue is greater than a high watermark, then the processor reduces the power state of the prefetch engine(s). By decreasing the power state of the prefetch engine(s), power consumption is reduced. Additionally, this power consumption reduction is achieved without affecting performance, since the queue has a high occupancy and the draw completion engine can continue to read packets out of the queue. If the number of packets stored in the queue is less than a low watermark, then the processor increases the power state of the prefetch engine(s).

## Claims

### Claim 1

A system comprising:
a queue;
one or more prefetch engines configured to write packets into the queue; and
a draw completion engine configured to read packets out of the queue;
wherein the system is configured to:
program a low watermark based on a rate at which the draw completion engine reads packets out of the queue;
monitor an occupancy of the queue;
dynamically adjust a clock rate of the one or more prefetch engines based on the occupancy of the queue; and
reduce a power state of the one or more prefetch engines while the power state for the draw completion engine remains unchanged, responsive to determining that the occupancy of the queue is greater than a high watermark.

### Claim 2 (depends on 1)

The system as recited in claim 1, wherein the system is configured to increase the power state of the one or more prefetch engines while the power state for the draw completion engine remains unchanged responsive to determining that the occupancy of the queue is less than a low watermark.

### Claim 3 (depends on 1)

The system as recited in claim 1, wherein the one or more prefetch engines have a different power supply from the draw completion engine.

### Claim 4 (depends on 1)

The system as recited in claim 1, wherein the one or more prefetch engines have a different clock domain from the draw completion engine.

### Claim 5 (depends on 1)

The system as recited in claim 1, wherein the clock rate of the one or more prefetch engines is adjusted in inverse proportion to the occupancy of the queue.

### Claim 6 (depends on 1)

The system as recited in claim 1, further comprising a data structure configured to associate an application type with a corresponding high watermark and a corresponding low watermark, wherein in response to executing a given application, the system is configured to:
access the data structure;
identify watermarks corresponding to the given application; and
program the queue using the watermarks.

### Claim 7

A method comprising:
writing packets, by one or more prefetch engines, into a queue;
reading packets, by a draw completion engine, out of the queue;
programming, by a control unit, a low watermark based on a rate at which the draw completion engine reads packets out of the queue;
monitoring, by the control unit, an occupancy of the queue;
dynamically adjusting a clock rate of the one or more prefetch engines based on the occupancy of the queue; and
reducing, by the control unit, a power state of one or more prefetch engines while the power state for the draw completion engine remains unchanged responsive to determining that the occupancy of the queue is greater than a high watermark.

### Claim 8 (depends on 7)

The method as recited in claim 7, further comprising increasing the power state of the one or more prefetch engines while the power state for the draw completion engine remains unchanged responsive to determining that the occupancy of the queue is less than a low watermark.

### Claim 9 (depends on 7)

The method as recited in claim 7, wherein the one or more prefetch engines have a different power supply from the draw completion engine.

### Claim 10 (depends on 7)

The method as recited in claim 7, wherein the one or more prefetch engines have a different clock domain from the draw completion engine.

### Claim 11 (depends on 7)

The method as recited in claim 7, further comprising adjusting the clock rate of the one or more prefetch engines in inverse proportion to the occupancy of the queue.

### Claim 12 (depends on 7)

The method as recited in claim 7, further comprising:
associating, by a data structure, an application type with a corresponding high watermark and a corresponding low watermark;
in response to executing a given application:
accessing the data structure;
identifying watermarks corresponding to the given application; and
programming the queue using the watermarks.

### Claim 13

An apparatus comprising:
a queue;
one or more prefetch engines comprising circuitry configured to write packets into the queue; and
a draw completion engine different from the one or more prefetch engines comprising circuitry configured to read packets out of the queue;
wherein the apparatus is configured to:
program a low watermark based on a rate at which the draw completion engine reads packets out of the queue;
monitor an occupancy of the queue;
dynamically adjust a clock rate of the one or more prefetch engines based on the occupancy of the queue; and
reduce a power state of the one or more prefetch engines while the power state for the draw completion engine remains unchanged responsive to determining that the occupancy of the queue is greater than a high watermark.

### Claim 14 (depends on 13)

The apparatus as recited in claim 13, wherein the apparatus is configured to increase the power state of the one or more prefetch engines while the power state for the draw completion engine remains unchanged responsive to determining that the occupancy of the queue is less than a low watermark.

### Claim 15 (depends on 13)

The apparatus as recited in claim 13, wherein the one or more prefetch engines have a different power supply from the draw completion engine.

### Claim 16 (depends on 13)

The apparatus as recited in claim 13, wherein the one or more prefetch engines have a different clock domain from the draw completion engine.

### Claim 17 (depends on 13)

The apparatus as recited in claim 13, wherein the clock rate of the one or more prefetch engines is adjusted in inverse proportion to the occupancy of the queue.
