IP Library Granted Patent US 11,604,711
Granted Patent B2
US 11,604,711 · App. 17/376,442 · Granted Mar 14, 2023

Error recovery method and apparatus

Inventors: Dongjiu Geng (Shenzhen, CN); Shuo Li (Beijing, CN); Yongxiang Liang (Beijing, CN); Qiangmin Lin (Hangzhou, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G06F11/1687G06F11/1629G06F11/1641G06F2201/82
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,604,711
App. No.
17/376,442
Granted
Mar 14, 2023
Kind
B2
Abstract

An error recovery method and apparatus, and a system are disclosed. At least two CPUs in a lockstep mode can exit the lockstep mode when an error occurs in at least one CPU, and the CPU in which the error occurs and a type of the error are determined. When the error can be recovered, the CPU in which the error occurs can be recovered according to a correctly running CPU. This helps the at least two CPUs run again at a position at which a service program is interrupted.

Claims (30)

1. A lockstep system, comprising:

a first central processing unit (CPU);

a second CPU;

an interrupt controller; and

a comparison circuit configured to:

determine that outputs of the first CPU and the second CPU are inconsistent when the first CPU and the second CPU are operating in a lockstep mode, and

send a first signal to the interrupt controller according to the inconsistent outputs of the first CPU and the second CPU;

wherein the interrupt controller is configured to send an interrupt to the first CPU and the second CPU in response to the first signal, and the interrupt is used to indicate that an error occurs in at least one of the first CPU and the second CPU, and

wherein the first CPU and the second CPU exit the lockstep mode and operate in a split mode in response to the interrupt.

2. The lockstep system according to claim 1 , wherein the outputs of the first CPU and the second CPU include at least one of an internal bus output of each of the first CPU and the second CPU, an external bus output of each of the first CPU and the second CPU, or an L3 cache control logic output of first CPU and the second CPU.

3. The lockstep system according to claim 1 , wherein the comparison circuit is a comparison circuit at a CPU clock cycle level.

4. The lockstep system according to claim 1 , wherein the comparison circuit shares a clock source with the first CPU and the second CPU when the first CPU and the second CPU are operating in the lockstep mode.

5. The lockstep system according to claim 1 , wherein the first CPU comprises a primary CPU and at least one secondary CPU.

6. The lockstep system according to claim 5 , wherein the comparison circuit comprises:

a CPU internal output comparator configured to compare an internal bus output of the primary CPU with an internal bus output of the at least one secondary CPU;

a CPU external output comparator configured to compare an external bus output of the primary CPU with an external bus output of the at least one secondary CPU; and

an L3 cache control logic output comparator configured to compare an L3 cache control logic output (L3_CTRL0) of the primary CPU with an L3 cache control logic output (L3_CTRL0′) of the at least one secondary CPU.

7. A method for recovering errors, comprising:

determining, by a comparison circuit, that outputs of a first central processing unit (CPU) and a second CPU are inconsistent when the first CPU and the second CPU are operating in a lockstep mode;

sending, by the comparison circuit, a first signal to an interrupt controller according to the inconsistent outputs of the first CPU and the second CPU;

sending, by the interrupt controller, an interrupt to the first CPU and the second CPU in response to the first signal, wherein the interrupt is used to indicate that an error occurs in at least one of the first CPU and the second CPU, and

exiting, by the first CPU and the second CPU, the lockstep mode and operating in a split mode in response to the interrupt.

8. The method according to claim 7 , wherein the outputs of the first CPU and the second CPU include at least one of an internal bus output of each of the first CPU and the second CPU, an external bus output of each of the first CPU and the second CPU, or an L3 cache control logic output of first CPU and the second CPU.

9. The method according to claim 7 , wherein the comparison circuit is a comparison circuit at a CPU clock cycle level.

10. The method according to claim 7 , wherein the comparison circuit shares a clock source with the first CPU and the second CPU when the first CPU and the second CPU are operating in the lockstep mode.

11. The method according to claim 7 , wherein the first CPU comprises a primary CPU and at least one secondary CPU.

12. The method according to claim 11 , further comprising:

comparing an internal bus output of the primary CPU with an internal bus output of the at least one secondary CPU;

comparing an external bus output of the primary CPU with an external bus output of the at least one secondary CPU; and

comparing an L3 cache control logic output (L3_CTRL0) of the primary CPU with an L3 cache control logic output (L3_CTRL0′) of the at least one secondary CPU.

Assignments (2)
CHANGE OF NAME Recorded Apr 28, 2026
From: SHENZHEN YINWANG INTELLIGENT TECHNOLOGIES CO., LTD.
To: YINWANG INTELLIGENT TECHNOLOGIES CO., LTD.
Reel/Frame 075485/0524 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 12, 2024
From: HUAWEI TECHNOLOGIES CO., LTD.
To: SHENZHEN YINWANG INTELLIGENT TECHNOLOGIES CO., LTD.
Reel/Frame 069335/0872 →
Priority Claims (1)
CN 201910473113.6 · May 31, 2019 · national
Continuity (3)
Continuation 17038428 · Sep 30, 2020
Continuation PCTCN2020093188 · May 29, 2020
Related Publication 20210342234A1 · Nov 4, 2021