# US 9,354,681 B2 · Protected power management mode in a processor

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

- Number: US 9,354,681 B2
- Document ID: US9354681B2
- Status: Granted
- Kind: B2
- Application number: 13/930,044
- Filed: 2013-06-28
- Published: 2015-01-01
- Granted: 2016-05-31
- Earliest claimed: 2013-06-28
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: William C. Rash; Martin G. Dixon; Yazmin A. Santiago
- Web page: https://patentgrep.com/patent/US9354681B2

## CPC

- G06F 1/3287: by switching off individual functional units in the computer system
- G06F 1/26: Power supply means, e.g. regulation thereof (for memories G11C)
- G06F 1/3203: Power management, i.e. event-based initiation of a power-saving mode
- G06F 1/3206: Monitoring of events, devices or parameters that trigger a change in power modality
- G06F 1/3234: Power saving characterised by the action undertaken
- G06F 1/3246: by software initiated power-off
- G06F 1/3275: {Power saving in memory, e.g. RAM, cache}
- G06F 9/30083: {Power or thermal control instructions}
- G06F 9/30101: {Special purpose registers}
- G06F 9/30189: {according to execution mode, e.g. mode flag}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In an embodiment, a processor includes a plurality of cores. Each core includes a core power unit to detect one or more power management events, and in response to the one or more power management events, initiate a protected power management mode in the core. Software interrupts to the core may be disabled during the protected power management mode. The core is to execute power management code during the protected power management mode. Other embodiments are described and claimed.

## Claims

### Claim 1

A processor comprising:
a plurality of cores, each core including a core power unit to:
detect one or more power management events; and
in response to the one or more power management events, initiate a protected power management mode in the core, wherein software interrupts to the core are disabled during the protected power management mode, wherein the core is to execute power management code during the protected power management mode, wherein the core power unit comprises a dedicated memory to store the power management code, wherein the core is to, during the protected power management mode, directly access the dedicated memory without using intervening memory components.

### Claim 2 (depends on 1)

The processor of claim 1, wherein the core power unit comprises one or more event detectors to detect the one or more power management events.

### Claim 3 (depends on 1)

The processor of claim 1, wherein the one or more power management events comprise at least one of a temperature event, a voltage event, and a timing event.

### Claim 4 (depends on 1)

The processor of claim 1, wherein the core power unit comprises an operating system interface to enable direct communication with an operating system.

### Claim 5 (depends on 4)

The processor of claim 4, wherein the software interrupts disabled during the protected power management mode comprise interrupts not received through the operating system interface.

### Claim 6 (depends on 1)

The processor of claim 1, wherein the core power unit comprises protected power management mode logic to disable the software interrupts responsive to the at least one power management event.

### Claim 7 (depends on 1)

The processor of claim 1, wherein the core power unit is further to, in response to the at least one power management event, store an execution state of the core in one or more dedicated power management registers of the core power unit.

### Claim 8 (depends on 1)

The processor of claim 1, wherein the dedicated memory of the core power unit comprises a set of registers to store the power management code.

### Claim 9 (depends on 1)

The processor of claim 1, wherein the power management code is implemented using macroinstructions.

### Claim 10 (depends on 1)

The processor of claim 1, wherein the core power unit is further to redefine a function of at least one instruction during the protected power management mode.

### Claim 11

A system comprising:
a processor including a plurality of cores, each core comprising:
at least one event detector to detect one or more power management events;
a dedicated memory to persistently store a power management program;
protected power management mode logic to, responsive to the one or more power management events:
initiate a protected power management mode in the core;
store an execution state of the core;
disable software interrupts to the core;
initiate execution of the power management program by the core, wherein the core is to, during the protected power management mode, directly access the dedicated memory without using intervening memory components; and
a dynamic random access memory (DRAM) coupled to the processor.

### Claim 12 (depends on 11)

The system of claim 11, wherein the processor includes a processor power unit to coordinate power management across the plurality of cores.

### Claim 13 (depends on 11)

The system of claim 11, wherein the one or more power management events comprise receiving a power management interrupt from an operating system.

### Claim 14 (depends on 11)

The system of claim 11, each core further comprising:
a plurality of dedicated power management registers to store an execution state of the core prior to entering the protected power management mode.

### Claim 15 (depends on 11)

The system of claim 11, wherein the protected power management mode logic is further to redefine a meaning of at least one flag during the protected power management mode.

### Claim 16

A method, comprising:
receiving, by a core power unit included in a core, an indication of a first power management event, wherein the core is one of a plurality of cores included in a processor;
based on the indication of the first power management event, initiating a protected power management mode in the core, comprising:
storing an execution state of the core;
disabling software interrupts to the core; and
executing power management code stored in a dedicated memory of the core power unit by the core, wherein the core is to directly access the dedicated memory without using intervening memory components.

### Claim 17 (depends on 16)

The method of claim 16, wherein initiating the protected power management mode further comprises:
setting a protected power management mode flag to indicate that the core is operating in the protected power management mode; and
enabling one or more new instructions for use during the protected power management mode.

### Claim 18 (depends on 16)

The method of claim 16, further comprising:
receiving, by the protected power management mode logic, an indication of a second power management event;
based on the indication of the second power management event, terminating the protected power management mode in the core.

### Claim 19 (depends on 18)

The method of claim 18, wherein terminating the protected power management mode comprises:
enabling software interrupts to the core;
restoring the core according to the stored execution state; and setting a protected power management mode flag to indicate that the core is not operating in the protected power management mode.
