# US 2017/0293539 A1 · Method for migrating cpu state from an inoperable core to a spare core

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

- Number: US 2017/0293539 A1
- Document ID: US20170293539A1
- Status: Published application
- Kind: A1
- Application number: 15/632,567
- Filed: 2017-06-26
- Published: 2017-10-12
- Earliest claimed: 2014-11-21
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: James Lewis; Paul Jordan; Gregory Onufer; Ali Vahidsafa
- Web page: https://patentgrep.com/patent/US20170293539A1

## CPC

- G06F 11/2028: {eliminating a faulty processor or activating a spare}
- G06F 3/0617: {in relation to availability}
- G06F 3/0647: {Migration mechanisms}
- G06F 3/0683: {Plurality of storage devices}
- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/3861: {Recovery, e.g. branch miss-prediction, exception handling (error detection or correction G06F11/00)}
- G06F 9/485: {Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence)}
- G06F 12/0815: Cache consistency protocols
- G06F 12/0875: with dedicated cache, e.g. instruction or stack
- G06F 12/1027: using associative or pseudo-associative address translation means, e.g. translation look-aside buffer [TLB]
- G06F 2201/805: Real-time
- G06F 2212/452: Instruction code
- 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

An apparatus is disclosed in which the apparatus may include a plurality of cores, including a first core, a second core and a third core, and circuitry coupled to the first core. The first core may be configured to process a plurality of instructions. The circuitry may be may be configured to detect that the first core stopped committing a subset of the plurality of instructions, and to send an indication to the second core that the first core stopped committing the subset. The second core may be configured to disable the first core from further processing instructions of the subset responsive to receiving the indication, and to copy data from the first core to a third core responsive to disabling the first core. The third core may be configured to resume processing the subset dependent upon the data.

## Claims

### Claim 1

An apparatus, comprising:
a first set of cores including a first core;
a second set of cores including a second core, wherein the first and second sets of cores are different;
a first monitor circuit coupled to the first core, wherein the first monitor circuit is configured to:
detect that the first core has entered a stuck state; and
send, to a designated one of the second set of cores, a first indication that the first core has entered the stuck state; and
a second monitor circuit coupled to the second core, wherein the second monitor circuit is configured to:
detect that the second core has entered the stuck state; and
send, to a designated one of the first set of cores, a second indication that the second core has entered the stuck state.

### Claim 2 (depends on 1)

The apparatus of claim 1, further comprising a first register and a second register, and wherein to send the first indication to designated one of the second set of cores, the first monitor circuit is further configured to write a particular value to the first register, and wherein to send the second indication to the designated one of the first set of cores, the second monitor circuit is further configured to write another value to the second register.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the designated one of the first set of cores is configured to execute a supervisor software process that includes monitoring the second register, and wherein the designated one of the second set of cores is configured to execute a supervisor software process that includes monitoring the first register.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein, in response to detecting the particular value in the first register, the designated one of the second set of cores is configured to:
disable the first core from further operation; and
copy data from at least one memory location in the first core to at least one memory location in a third core in response to disabling the first core.

### Claim 5 (depends on 4)

The apparatus of claim 4, wherein the designated one of the second set of cores is further configured to:
while in a normal operating mode, prevent execution of restricted instructions while executing the supervisor software process;
enter a privileged operating mode in response to detecting the particular value in the first register;
while in the privileged operating mode, allow execution of at least one restricted instruction included in the supervisor software process; and
copy the data from the at least one memory location in the first core to the at least one memory location in the third core by executing the at least one restricted instruction.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the designated one of the first set of cores and the designated one of the second set of cores are selected by an operating system executing on a core of the first set of cores or the second set of cores.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein to detect that the first core has entered the stuck state, the first monitor circuit is further configured to:
increment a counter in response to a determination that the first core has not committed an instruction during a particular time period; and
assert an error signal in response to a determination that a value of the counter satisfies a threshold.

### Claim 8

A method, comprising:
executing a first software process by a first core of a first set of cores;
executing a second software process by a second core of a second set of cores;
detecting, by a first monitoring circuit, that the first core has stopped executing the first software process;
sending, by the first monitoring circuit, a first indication to a designated one of the second set of cores that the first core has stopped executing the first software process;
detecting, by a second monitoring circuit, that the second core has stopped executing the second software process; and
sending, by the second monitoring circuit, a second indication to a designated one of the first set of cores that the second core has stopped executing the second software process.

### Claim 9 (depends on 8)

The method of claim 8, wherein sending the first indication comprises storing, by the first monitoring circuit, a particular value to a first register, and wherein sending the second indication comprises writing, by the second monitoring circuit, another value to a second register.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
executing, by the designated one of the first set of cores, a supervisor software process that includes monitoring the second register; and
executing, by the designated one of the second set of cores, a supervisor software process that includes monitoring the first register.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
in response to detecting the particular value in the first register, disabling, by the designated one of the second set of cores, the first core from further operation; and
copying data from at least one memory location in the first core to at least one memory location in a third core in response to disabling the first core.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
while in a normal operating mode, preventing, by the designated one of the second set of cores, execution of restricted instructions while executing the supervisor software process;
entering, by the designated one of the second set of cores, a privileged operating mode in response to detecting the particular value in the first register;
while in the privileged operating mode, allowing execution of at least one restricted instruction included in the supervisor software process; and
copying the data from the at least one memory location in the first core to the at least one memory location in the third core by executing the at least one restricted instruction.

### Claim 13 (depends on 11)

The method of claim 11, further comprising selecting, by an operating system executing on a core of the first set of cores or the second set of cores, the designated one of the first set of cores and the designated one of the second set of cores.

### Claim 14 (depends on 13)

The method of claim 13, wherein detecting that the first core has stopped functioning properly comprises:
incrementing, by the first monitor circuit, a counter responsive to a determination that the first core has not committed an instruction during a pre-determined time period; and
asserting an error signal in response to determining that a value of the counter satisfies a threshold.

### Claim 15

A system, comprising:
a first set of multi-core processors that includes a first core of a plurality of cores included in the first set;
a second set of multi-core processors that includes a second core of a plurality of cores included in the second set, wherein the first and second sets of multi-core processors are different;
a first monitor circuit coupled to the first core, wherein the first monitor circuit is configured to:
detect that the first core has entered a stuck state; and
send, to a designated core included in the second set, a first indication that the first core has entered the stuck state; and
a second monitor circuit coupled to the second core, wherein the second monitor circuit is configured to:
detect that the second core has entered a stuck state; and
send, to a designated core included in the first set, a second indication that the second core has entered the stuck state.

### Claim 16 (depends on 15)

The system of claim 15, further comprising a first register and a second register, and wherein to send the first indication to the designated core included in the second set, the first monitor circuit is further configured to write a particular value to the first register, and wherein to send the second indication to the designated core included in the first set, the second monitor circuit is further configured to write another value to the second register.

### Claim 17 (depends on 16)

The system of claim 16, wherein the designated core included in the first set is configured to execute a supervisor software process that includes monitoring the second register; and wherein the designated core included in the second set is configured to execute a supervisor software process that includes monitoring the first register.

### Claim 18 (depends on 17)

The system of claim 17, wherein, in response to detecting the particular value in the first register, the designated core included in the second set is configured to:
disable the first core from further operation; and
copy data from at least one memory location in the first core to at least one memory location in a third core in response to disabling the first core.

### Claim 19 (depends on 18)

The system of claim 18, wherein the designated core included in the second set is further configured to:
while in a normal operating mode, prevent execution of restricted instructions while executing the supervisor software process;
enter a privileged operating mode in response to detecting the particular value in the first register;
while in the privileged operating mode, allow execution of at least one restricted instructions included in the supervisor software process in the privileged operating mode; and
copy the data from the at least one memory location in the first core to the at least one memory location in the third core by executing the at least one restricted instruction.

### Claim 20 (depends on 15)

The system of claim 15, wherein the designated core of the first set and the designated core of the second set are selected by an operating system executing on a core of the first or second sets.
