# US 2015/0178091 A1 · Context save and restore

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

- Number: US 2015/0178091 A1
- Document ID: US20150178091A1
- Status: Published application
- Kind: A1
- Application number: 14/139,798
- Filed: 2013-12-23
- Published: 2015-06-25
- Earliest claimed: 2013-12-23
- Assignees: Intel Corporation
- Inventors: Zeev Offen; Inder M. Sodhi
- Web page: https://patentgrep.com/patent/US20150178091A1

## CPC

- G06F 9/3861: {Recovery, e.g. branch miss-prediction, exception handling (error detection or correction G06F11/00)}
- G06F 1/3287: by switching off individual functional units in the computer system
- G06F 15/7871: {Reconfiguration support, e.g. configuration loading, configuration switching, or hardware OS}
- 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

Processor context save latency is reduced by only restoring context registers with saved state that differs from the reset value of registers. A system agent monitors access to the design blocks and sets a dirty bit to indicate which design block has registers that have changed since the last context save. During a context save operation, the system agent bypasses design blocks that have not had context changes since the latest context save operation. During a context restore operation the system agent does not restore the context registers with saved context values that are equal to the reset value of the context register.

## Claims

### Claim 1

A processor comprising:
a plurality of processor cores;
a plurality of design blocks coupled to the plurality of processor cores, each design block including a set of registers coupled to gated power, the set of registers to store active context of the design block; and
logic circuitry coupled to the plurality of cores and the plurality of design blocks, to monitor access to the set of registers of each design block to detect a change in the active context, and to store an indication of one or more of the design blocks that includes the change in the active context.

### Claim 2 (depends on 1)

The processor as in claim 1 further comprising memory coupled to the logic circuitry, the plurality of design blocks, and ungated power, the memory to store the active context while the processor is in a reduced power state.

### Claim 3 (depends on 2)

The processor as in claim 2, wherein the logic circuitry further comprises a power manager to reduce voltage to the gated power when the processor is in the reduced power state, and wherein the voltage to the ungated power is not substantially reduced when the processor is the reduced power state.

### Claim 4 (depends on 3)

The processor as in claim 3, wherein the logic circuitry further comprises logic to save the active context of a design block to the memory according to the stored indication that the design block includes the change in context.

### Claim 5 (depends on 4)

The processor as in claim 4, wherein the logic circuitry further comprises logic to store an indication identifying a subset of registers in the set of registers that have changed from a reset value.

### Claim 6 (depends on 5)

The processor as in claim 5, wherein the logic circuitry further comprises logic to restore the gated power to an operational level, and restore the active context of a design block according to the stored indication of the subset of registers in the set of registers that have changed from the reset value.

### Claim 7

A logic circuit comprising:
logic on a processor coupled to a plurality of processor cores and a plurality of design blocks, to monitor access to a set of registers of each design block to detect a change in the set of registers that store an active context, and to store an indication that one or more design blocks of the plurality of design blocks have changes to the active context; and
a power manager coupled to the logic to manage power to the plurality of cores and the plurality of design blocks.

### Claim 8 (depends on 7)

The circuit as in claim 7, wherein the power manager is further to control a gated power source and an ungated power source, the gated power source coupled to the set of registers of each design block, and the ungated power source coupled to memory, wherein the memory is further coupled to the logic.

### Claim 9 (depends on 8)

The circuit as in claim 8, wherein the logic comprises logic that saves the active context stored in the set of registers of the one or more design blocks that have changes to the active context, and further comprises logic to exclude the design blocks that do not have changes to the active context.

### Claim 10 (depends on 8)

The circuit as in claim 8, wherein the logic comprises logic that stores an indication of which of the registers of the active context has changed from a reset value of the register.

### Claim 11 (depends on 10)

The circuit as in claim 10, wherein the logic further comprises logic that restores the active context saved in the memory to the set of registers of the one or more design blocks based on the indication of which of the registers of the active context has changed from the reset value of the register.

### Claim 12 (depends on 8)

The circuit as in claim 8, wherein the power manager comprises logic to reduce voltage to the gated power coupled to the set of registers of each design block when the processor is in a reduced power state, and wherein the voltage to the ungated power is not substantially reduced when the processor is the reduced power state.

### Claim 13 (depends on 8)

The circuit as in claim 8, wherein the power manager comprises logic to reduce voltage to the gated power coupled to a first set of registers of a design block when the processor is in a reduced power state, and wherein the voltage to the gated power is not substantially reduced to a second set of registers when the processor is the reduced power state.

### Claim 14 (depends on 8)

The circuit as in claim 8, wherein the power manager comprises logic to reduce voltage to the gated power coupled to the set of registers of a first design block when the processor is in a reduced power state, and wherein the voltage to the gated power is not substantially reduced to the set of registers of a second design block when the processor is the reduced power state.

### Claim 15

A system comprising:
a processor including a design blocks and a system agent, the system agent to monitor access to the design block by a core of the processor to detect a change to a set of registers storing active context of the design block, wherein responsive to detecting the change in the set of registers, the system agent sets a first status bit indicating that the active context of the design block has been changed, and the system agent further sets a bit-field corresponding to a subset of the set of registers that have changed from a reset value of the block;
a power manager to manage a power source coupled to the design block; and
a display device coupled to an external display.

### Claim 16 (depends on 15)

The system of claim 15, wherein the system agent comprises logic to save the set of registers of the design block to memory during a context save event when the first status bit is set and bypasses the set of registers of the design block when the first status bit is not set.

### Claim 17 (depends on 16)

The system of claim 16, wherein the system agent further comprises logic to reset the first status bit after saving the set of registers and, during a context restore event, restore only the subset of registers that have changed from the reset value as indicated by the bit-field.

### Claim 18 (depends on 16)

The system of claim 16, wherein the power manager comprises logic to reduce voltage to a first power source coupled to the set of registers after the context save event to reduce power consumption of the processor, wherein reducing the voltage to the first power source causes data in the set of registers to be lost.

### Claim 19 (depends on 18)

The system of claim 18, wherein the power manager comprises additional logic to substantially maintain voltage to a second power source while the voltage is reduced to the first power source, wherein the second power source is coupled to the memory.

### Claim 20 (depends on 19)

The system of claim 19, wherein the power manager comprises additional logic to restore the voltage to the power source coupled to the set of registers to an operational level.

### Claim 21

A method comprising:
monitoring access to a block of a processor to detect a change to a set of registers storing context of the block;
responsive to detecting the change in the set of registers, setting a first status bit indicating that the context of the block has been changed, and setting a bit-field corresponding to a subset of the set of registers that have changed from a reset value of the block; and
during a context save event, saving the set of registers of the block to memory when the first status bit is set and bypassing the set of registers of the block when the first status bit is not set, wherein the first status bit is reset after saving the set of registers.

### Claim 22 (depends on 21)

The method of claim 21 further comprising reducing voltage to a power source coupled to the set of registers after the context save event to reduce power consumption of the processor, wherein reducing the voltage to the power source causes data in the set of registers to be lost.

### Claim 23 (depends on 22)

The method of claim 22, further comprising substantially maintaining voltage to a second power source while the voltage is reduced to the power source coupled to the set of registers, wherein the second power source is coupled to the memory.

### Claim 24 (depends on 22)

The method of claim 22 wherein reducing voltage to the power source coupled to the set of registers after the context save event comprises reducing the voltage to a first power source coupled to a first set of registers while substantially maintaining the voltage to a second power source coupled to a second set of registers, where the first set of registers stores a first portion of the context, while the second set of registers stores a second portion of the context.

### Claim 25 (depends on 23)

The method of claim 23 further comprising restoring voltage to the power source coupled to the set of registers to an operational level, and after restoring the voltage to the power source restoring only the subset of registers that have changed from the reset value as indicated by the bit-field.
