Chip failure processing system, method, electronic device and storage medium
By introducing a failure detection and processing subsystem into the chip failure processing system, identifying and classifying chip core failures, the problem of single processing methods in the prior art is solved, and effective identification and processing of chip core failures is achieved.
Patent Information
- Application Number
- CN202311778920.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2043-12-21
AI Technical Summary
The prior art cannot effectively identify and classify the failure of chip cores. The processing method is single, and reset or protection status is usually handled.
A chip failure processing system is designed, including a failure detection subsystem, a failure processing subsystem, an interrupt router and a system control module. By detecting a chip failure fault, a corresponding failure warning is generated, and a processing request is generated based on the interrupt vector configuration set, and a to the central processor or peripheral module.
It realizes the identification of chip core failure conditions and targeted processing of different types of faults, improving the effectiveness of chip failure processing and system reliability.
Smart Images

Figure CN117743012B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of chip security technology, and in particular, to a chip failure processing system, method, electronic device, and storage medium. Background Art
[0002] Devices based on microcontrollers and microprocessors are increasingly being used in control fields such as automobiles, aircraft, and spacecraft. Many actuators and sensors have changed from mechanical control to electronic control and program control. The reliability requirements for electronic control systems are becoming increasingly higher, from the reliability of applications and operating systems to the reliability of the chip itself.
[0003] The existing technologies do not identify the failure of the chip core itself, especially when a failure problem occurs, there is no detailed and specific classification and processing method, and all of them are generally reset or directly shut down the system to enter a protection state. Summary of the invention
[0004] The present invention provides a chip failure processing system, method, electronic device and storage medium to solve the problem that the prior art fails to identify the failure of the chip core itself and has a single processing method for the failure.
[0005] According to one aspect of the present invention, a chip failure processing system is provided, comprising:
[0006] Failure detection subsystem, failure handling subsystem, interrupt router and system control module;
[0007] The failure detection subsystem is used to detect chip failures and generate corresponding failure warnings according to the failure types corresponding to the detected chip failures, wherein the failure types at least include chip core failures;
[0008] The failure processing subsystem is used to determine a corresponding processing method according to the content of the failure warning, and generate a failure processing request according to the interrupt vector configuration set;
[0009] The interrupt router is used to generate corresponding interrupt requests according to the interrupt vector configuration set and send them to multiple central processing units;
[0010] The system control module is used to receive the request sent by the failure processing subsystem, and send the request to multiple central processing units or peripheral modules according to corresponding levels.
[0011] According to another aspect of the present invention, a method for processing chip failure is provided, comprising:
[0012] After the failure storage group is set, the failure detection subsystem generates a corresponding failure warning according to the failure fault type corresponding to the failure storage group, and the failure fault type at least includes chip core failure;
[0013] The failure processing subsystem queries the failure processing mode storage group according to the content of the failure warning to determine the corresponding processing mode, and generates an interrupt configuration request according to the interrupt vector configuration set;
[0014] Sending the interrupt configuration request to multiple central processing units through an interrupt router;
[0015] The request sent by the failure processing subsystem is received through the system control module, and the request is sent to multiple central processing units or peripheral modules according to corresponding levels.
[0016] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising: at least one processor; and
[0017] a memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the chip failure processing method described in any embodiment of the present invention.
[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the chip failure processing method described in any embodiment of the present invention when executed.
[0020] The technical solution of the embodiment of the present invention detects chip failure faults through a failure detection subsystem, and generates a corresponding failure warning according to the failure fault type corresponding to the detected chip failure fault, wherein the failure fault type at least includes chip core failure; determines the corresponding processing method according to the content of the failure warning through a failure processing subsystem, and generates a failure processing request according to an interrupt vector configuration set; generates corresponding interrupt requests according to the interrupt vector configuration set through an interrupt router, and sends them to multiple central processing units; receives the requests sent by the failure processing subsystem through a system control module, and sends the requests to multiple central processing units or peripheral modules according to corresponding levels, thereby solving the problem that the prior art does not identify the failure situation of the chip core itself and has a single processing method for the failure situation, and achieves the beneficial effect of identifying the failure situation of the chip core itself and using different processing methods to effectively process different types of failure faults.
[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 A schematic diagram of the structure of a chip failure processing system provided in Embodiment 1 of the present invention;
[0024] Figure 2 A schematic diagram of the structure of a chip failure processing system provided in Embodiment 2 of the present invention;
[0025] Figure 3 A schematic diagram of a square wave output of a safety signal provided by an embodiment of the present invention;
[0026] Figure 4 A schematic diagram of a square wave output of a safety signal provided by an embodiment of the present invention;
[0027] Figure 5 A schematic diagram of the structure of a chip failure processing system provided in Embodiment 3 of the present invention;
[0028] Figure 6 A schematic flow chart of a chip failure processing method provided in Embodiment 4 of the present invention;
[0029] Figure 7 A schematic flow chart of a chip failure processing method provided by an exemplary embodiment of the present invention;
[0030] Figure 8 A flowchart of different processing modes of the failure handling subsystem provided for an example embodiment;
[0031] Fig. 9 The present invention is a schematic diagram of the structure of an electronic device for a chip failure processing method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only an embodiment of a part of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should belong to the scope of protection of the present invention. It should be understood that the various steps recorded in the method implementation of the present invention can be performed in different orders and / or in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0033] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0036] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.
[0037] Embodiment 1
[0038] Figure 1A schematic diagram of the structure of a chip failure processing system provided in Embodiment 1 of the present invention. The system is applicable to situations where a chip fails, wherein the system can be implemented by software and is generally integrated on an electronic device. In this embodiment, the electronic device includes but is not limited to: a computer device.
[0039] like Figure 1 As shown, a chip failure processing system provided by the first embodiment of the present invention includes: a failure detection subsystem 110, a failure processing subsystem 120, an interrupt router 130 and a system control module 140;
[0040] The failure detection subsystem 110 is used to detect chip failures and generate corresponding failure warnings according to the failure types corresponding to the detected chip failures, wherein the failure types at least include chip core failures;
[0041] The failure processing subsystem 120 is used to determine a corresponding processing method according to the content of the failure warning and generate a failure processing request according to the interrupt vector configuration set;
[0042] An interrupt router 130, used to generate corresponding interrupt requests according to the interrupt vector configuration set and send them to multiple central processors;
[0043] The system control module 140 is used to receive the request sent by the failure processing subsystem 120, and send the request to multiple central processing units or peripheral modules according to corresponding levels.
[0044] In this embodiment, the failure detection subsystem 110 can be mainly used to detect whether the chip core fails. The failure detection subsystem can pre-collect multiple failure fault types, especially chip core failure faults, and group and store the collected multiple failure fault types. After detecting the chip failure fault, the failure fault type corresponding to the chip failure fault can be determined, and then a corresponding failure warning can be generated. There is no specific restriction on the content and form of the failure warning.
[0045] Among them, the failure types involved in the chip core are classified, including multi-core central processing unit failure, serial peripheral interface failure, CAN bus failure, E-RAY bus failure, static random access memory failure, software failure, FLASH failure, operating system failure, clock failure, key register failure and input and output signal failure, and are divided into 7 groups according to the module relevance.
[0046] Among them, the failure detection subsystem can be used to detect the chip core status, memory status, system power status, chip peripheral status, bus status, monitor chip key register status and detect software monitor failure.
[0047] In this embodiment, the failure processing subsystem 120 is used to process failure faults. Different types of failure faults correspond to different processing methods. The failure processing subsystem 120 can process internal failure faults and external failure faults; the failure processing subsystem 120 can send the generated failure processing request to the interrupt router 130 or the system control module 140; the failure processing subsystem 120 can also include an interrupt vector configuration set, and the interrupt vector configuration set can be sent to the interrupt router 130.
[0048] In this embodiment, the interrupt router 130 can receive the interrupt vector configuration set sent by the failure processing subsystem 120, and generate corresponding interrupt requests according to the interrupt vector configuration set and send them to multiple central processing units CPU.
[0049] In this embodiment, the system control module 140 may receive an idle request, an NMI interrupt request, and a reset request sent by the failure processing subsystem 120 , and send corresponding signals to multiple CPUs or peripheral modules.
[0050] A chip failure processing system provided in the first embodiment of the present invention detects chip failure faults through a failure detection subsystem, and generates a corresponding failure warning according to the failure fault type corresponding to the detected chip failure fault, and the failure fault type at least includes chip core failure; determines the corresponding processing method according to the content of the failure warning through a failure processing subsystem, and generates a failure processing request according to an interrupt vector configuration set; generates corresponding interrupt requests according to the interrupt vector configuration set through an interrupt router, and sends them to multiple central processing units; receives the request sent by the failure processing subsystem through a system control module, and sends the request to multiple central processing units or peripheral modules according to the corresponding level. The failure detection subsystem of the above system can detect multiple types of failure faults and identify the failure of the chip core itself; the failure processing subsystem of the system can effectively process different types of failure faults using different processing methods.
[0051] Based on the above embodiment, a variant embodiment of the above embodiment is proposed. It should be noted that in order to make the description concise, only the differences from the above embodiment are described in the variant embodiment.
[0052] In one embodiment, the failure detection subsystem 110 is further used to: detect chip core status, detect memory status, detect system power status, detect chip peripheral status, detect bus status, monitor chip key register status, and detect software monitor failure;
[0053] The chip core state detection includes redundancy check of chip calculation results, detection of chip core temperature state, central processing unit watchdog timeout detection, and central processing unit reading and writing instruction and data pair fault detection;
[0054] The detecting memory status includes detecting the bit failure status of the page cache memory and the data cache memory, the address status of the page cache memory and the data cache memory, the content integrity of the page cache memory and the data cache memory, the bus level memory integrity and the external memory content integrity;
[0055] The detection system power supply status includes detecting chip core overvoltage, undervoltage and external input overvoltage and undervoltage;
[0056] The chip peripheral status detection includes peripheral clock exceeding the frequency range and clock loss synchronization detection;
[0057] The detecting bus status includes using a redundancy algorithm to perform redundancy check on data transmitted on multiple buses;
[0058] The key register states of the monitoring chip include the states of the monitoring system control register, the peripheral control register and the protection register;
[0059] Detecting a software monitor failure includes using a configurable software monitor to cause the software to report a failure failure through mapping.
[0060] Among them, detecting the bus status may include using a redundant algorithm that meets functional safety standards to perform redundant verification on data transmitted on multiple buses such as SPI, CAN, and E-RAY.
[0061] Detecting software monitor failures may also include using a failure handling mechanism to perform failure management, triggering a failure failure or clearing a failure failure through a command.
[0062] Embodiment 2
[0063] Figure 2 This is a schematic diagram of a chip failure processing system provided by the second embodiment of the present invention. The second embodiment is optimized on the basis of the above embodiments. For details not yet provided in this embodiment, please refer to the first embodiment.
[0064] In this embodiment, the failure detection subsystem 110 is composed of a failure detection module 111 and a failure storage group 112. The failure detection module 111 includes a software security management unit 1111, a software failure alarm unit 1112, a peripheral failure detection unit 1113, a peripheral failure integrated management unit 1114, and a core failure detection unit 1115.
[0065] The safety management unit is used for 1111: classifying different software failure situations and entering the software failure alarm unit 1112 through software failure mapping, so that the software failure alarm unit 1112 triggers a software-based failure warning;
[0066] The peripheral failure integrated management unit 1114 is used to: bundle different failure conditions of the same module and the same type, enter some peripheral failures into the failure storage group 112, and enter another part of the peripheral failures into the peripheral failure integrated management unit 1114;
[0067] The peripheral failure integrated management unit 1114 is used to: bundle the peripheral failure results and output them to the failure storage group 112;
[0068] The failure storage group 112 is used to store various types of failure faults and send failure alarms to the failure processing subsystem 120 .
[0069] The failure detection module 111 may be used to collect failure faults and store them in the failure storage group 112 .
[0070] In this embodiment, since there are many chip peripherals, a peripheral failure comprehensive management unit 1114 is designed in addition to the failure detection module 111, which is used to bundle different failure faults of the same type in the same module. This method can save the resources occupied by the failure storage group 112. Some peripheral failure faults can directly enter the failure storage group 112, and other external failure faults can enter the peripheral failure comprehensive management unit 1114. The peripheral failure situation is bundled and output to the failure storage group 112 through the peripheral failure comprehensive management unit 1114.
[0071] The kernel failure fault may be directly output to the failure storage group 112 to trigger a failure warning.
[0072] In this embodiment, the failure storage group 112 stores chip core failure conditions, including memory failure conditions, system power supply status, peripheral failure status, bus status, key register status, and software failure status. One bit in the failure storage group 112 represents a specific fault, which is used to send a failure alarm and notify the failure processing subsystem 120 to process.
[0073] The second embodiment of the present invention provides a chip failure processing system, which embodies a failure detection subsystem. The system stores multiple failure types through a failure storage group, and can accurately determine the failure type of the chip, especially identify the failure of the chip core itself.
[0074] Furthermore, when the failure detection subsystem 110 does not detect a failure, a safety signal is outputted to the outside through a pin, and the safety signal indicates that the main chip is in a safe state.
[0075] Among them, when the system store is restored, it performs self-checking. After the self-check is correct, a safety signal is output through the PIN pin. The signal state in the safe state and the signal state in the failure mode can be defined to inform the external chip what state the main chip is in.
[0076] Furthermore, the safety signal supports being sent in the form of high and low levels, where a high level represents a valid state and a low level represents a failed state;
[0077] The safety signal supports being sent in a heartbeat mode, with the continuously flipping high and low levels indicating that the chip core is in a safe state, and when the signal stops switching, it indicates that the chip is in a failed state.
[0078] Figure 3 A schematic diagram of a bistable output of a safety signal provided by an embodiment of the present invention is shown in FIG. Figure 3 As shown, after the system is powered on and reset, the safety signal output is low level, indicating that the system is in a failed state. After the initialization is completed, the system runs stably and the safety signal output is high level, indicating that the system runs in a valid state. When a failure warning is reported, if the failure warning is configured with an external processing method, the safety signal will be pulled down from the high level, indicating that the system is in a failed state, so as to inform the outside world of a failure fault.
[0079] Figure 4 A schematic diagram of a square wave output of a safety signal provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, after the system is powered on and reset, the safety signal output is low level, indicating that the system is in a failed state. After the initialization is completed, the system runs stably and the safety signal output is a square wave, indicating that the system runs in a valid state. When a failure warning is reported, if the failure warning is configured with an external processing method, the safety signal will pull the square wave signal low, indicating that the system is in a failed state, so as to inform the external device of a failure.
[0080] Embodiment 3
[0081] Figure 5 This is a schematic diagram of a chip failure processing system provided by the third embodiment of the present invention. The third embodiment is optimized based on the above embodiments. For details not yet provided in this embodiment, please refer to the first and second embodiments.
[0082] In this embodiment, the failure processing subsystem 120 is divided into a failure internal processing mode storage group 121, a failure external processing mode storage group 122, an interrupt vector configuration set 123 and an external safety signal control module 124;
[0083] The failure internal processing method storage group 121 is used to calculate the internal processing methods corresponding to different failure fault types;
[0084] The failure external processing mode storage group 122 is used to determine whether to switch the external safety signal to the failure state after a failure occurs;
[0085] The interrupt vector configuration set 123 is used to generate different interrupts and send interrupt requests to the interrupt router 130, so as to send the interrupt requests to multiple central processors through the interrupt router 130;
[0086] The external safety signal control module 124 is used to switch the state of the safety signal according to the configuration in the failure external processing mode storage group 122 .
[0087] In this embodiment, the failure handling subsystem 120 can be composed of a failure internal processing mode storage group (X, Y) (X=0-6, Y=0-2), a failure external processing mode storage group X (X=0-6), an interrupt vector configuration set N (N=0-2), and an external safety signal control module.
[0088] Among them, X in the failure internal processing method storage group 121 corresponds to the failure storage group number, and each bit in a group represents a specific failure fault type. When it is determined to configure a processing method for a specific failure type, X is determined and combined with the specific bit in the failure internal processing method storage group X. By configuring the failure internal processing method group XY (Y=0-2) of the specific bit under different Y values, a specific processing method corresponding to the failure fault type can be generated. When a failure alarm is generated, the corresponding failure internal processing method storage group is queried, and the corresponding bits in the three storage groups are arranged from high to low to generate a binary code, which corresponds to a specific internal processing method.
[0089] Among them, in the failure external processing mode storage group 122, each bit in each group corresponds to a configuration item of whether to switch the external safety signal to a failure state when a corresponding specific failure occurs.
[0090] Furthermore, the internal processing method at least includes:
[0091] Default processing, disabling all invalidation processing;
[0092] Select different interrupt configuration sets to send multiple interrupt requests to multiple CPUs;
[0093] Request to send non-maskable interrupt;
[0094] Request reset;
[0095] Request to trigger CPU idle interrupt;
[0096] Reserved processing method.
[0097] The failure handling subsystem 120 can generate up to 8 internal handling methods for each specific fault, which are:
[0098] 1. Default processing: This processing mode has no behavior and should be the default value, disabling all invalidation processing;
[0099] 2. Select interrupt configuration set 0 to send multiple interrupt requests to multiple CPUs;
[0100] 3. Select interrupt configuration set No. 1 to send multiple interrupt requests to multiple CPUs; 4. Select interrupt configuration set No. 2 to send multiple interrupt requests to multiple CPUs;
[0101] 5. Request to send non-maskable interrupt;
[0102] 6. Request reset, support multiple configurable reset levels, including soft reset, hard reset, system-level reset and application-level reset;
[0103] 7. Request to trigger CPU idle interrupt;
[0104] 8. Reserved processing method, coding that has not been used yet.
[0105] There are three interrupt configuration sets in total. In each set, you can configure whether to generate different interrupts. When an interrupt request is triggered, all interrupt requests configured in a set of interrupt configuration sets will be issued.
[0106] A chip failure processing system provided in embodiment 3 of the present invention concretizes a failure processing subsystem. The failure processing subsystem calculates the processing methods for different failure fault types through a failure internal processing method storage group, and after a failure occurs, determines whether to switch the external safety signal to a failure state through a failure external processing method storage group; and generates different interrupt requests through interrupt vector configuration.
[0107] Embodiment 4
[0108] Figure 6 A flowchart of a chip failure processing method provided in Embodiment 4 of the present invention is provided. The method can be applicable to situations where a chip fails. The method can be executed by a chip failure processing system provided in any embodiment of the present invention. The system is implemented by software and is generally integrated on an electronic device.
[0109] like Figure 6 As shown, a chip failure processing method provided by the fourth embodiment of the present invention includes the following steps:
[0110] S110 , after a failure storage group is set, the failure detection subsystem generates a corresponding failure warning according to a failure fault type corresponding to the failure storage group, wherein the failure fault type at least includes a chip core failure.
[0111] S120 , the failure processing subsystem queries the failure processing mode storage group according to the content of the failure warning to determine the corresponding processing mode, and generates an interrupt configuration request according to the interrupt vector configuration set.
[0112] S130: Send the interrupt configuration request to multiple central processing units through an interrupt router.
[0113] S140, receiving the request sent by the failure processing subsystem through the system control module, and sending the request to multiple central processing units or peripheral modules according to corresponding levels.
[0114] A method for processing chip failure provided in a fourth embodiment of the present invention comprises the following steps: first, after a failure storage group is set, a failure detection subsystem generates a corresponding failure warning according to the failure fault type corresponding to the failure storage group, wherein the failure fault type includes at least a chip core failure; then, a failure processing subsystem queries a failure processing method storage group according to the content of the failure warning to determine a corresponding processing method, and generates an interrupt configuration request according to an interrupt vector configuration set; then, the interrupt configuration request is sent to multiple central processing units through an interrupt router; finally, a system control module receives the request sent by the failure processing subsystem, and sends the request to multiple central processing units or peripheral modules according to the corresponding level. Through the above method, the failure situation of the chip core itself can be identified, and different processing methods can be used to effectively handle different types of failure faults.
[0115] Based on the above embodiment, a variant embodiment of the above embodiment is proposed. It should be noted that in order to make the description concise, only the differences from the above embodiment are described in the variant embodiment.
[0116] Further, the method also includes: detecting the chip core state, detecting the memory state, detecting the system power supply state, detecting the chip peripheral state, detecting the bus state, monitoring the chip key register state and detecting the software monitor failure through the failure detection subsystem;
[0117] The chip core state detection includes redundancy check of chip calculation results, detection of chip core temperature state, central processing unit watchdog timeout detection, and central processing unit reading and writing instruction and data pair fault detection;
[0118] The detecting memory status includes detecting the bit failure status of the page cache memory and the data cache memory, the address status of the page cache memory and the data cache memory, the content integrity of the page cache memory and the data cache memory, the bus level memory integrity and the external memory content integrity;
[0119] The detection system power supply status includes detecting chip core overvoltage, undervoltage and external input overvoltage and undervoltage;
[0120] The chip peripheral status detection includes peripheral clock exceeding the frequency range and clock loss synchronization detection;
[0121] The detecting bus status includes using a redundancy algorithm to perform redundancy check on data transmitted on multiple buses;
[0122] The key register states of the monitoring chip include the states of the monitoring system control register, the peripheral control register and the protection register;
[0123] Detecting a software monitor failure includes using a configurable software monitor to cause the software to report a failure failure through mapping.
[0124] Further, the failure detection subsystem is composed of a failure detection module and a failure storage group, wherein the failure detection module includes a software security management unit, a software failure alarm unit, a peripheral failure detection unit, a peripheral failure integrated management unit, and a core failure detection unit;
[0125] Classifying different software failure situations through the safety management unit and entering them into the software failure alarm unit through software failure mapping, so that the software failure alarm unit triggers a software-based failure warning;
[0126] The peripheral failure integrated management unit manages different failure conditions of the same type of bundled modules, enters some peripheral failures into the failure storage group, and enters another part of peripheral failures into the peripheral failure integrated management unit;
[0127] The peripheral failure integrated management unit bundles the peripheral failure results and outputs them to the failure storage group;
[0128] A plurality of failure fault types are stored in the failure storage group, and a failure alarm is sent to the failure processing subsystem.
[0129] Furthermore, the failure processing subsystem is divided into a failure internal processing mode storage group, a failure external processing mode storage group, an interrupt vector configuration set and an external safety signal control module;
[0130] Calculate the internal processing methods corresponding to different failure fault types through the failure internal processing method storage group;
[0131] After a failure occurs, determining whether to switch the external safety signal to a failure state through the failure external processing mode storage group;
[0132] Generate different interrupts through the interrupt vector configuration set, and send interrupt requests to the interrupt router, so as to send the interrupt requests to multiple central processors through the interrupt router;
[0133] The state of the safety signal is switched by the external safety signal control module according to the configuration in the failure external processing mode storage group.
[0134] Furthermore, the internal processing method at least includes:
[0135] Default processing, disabling all invalidation processing;
[0136] Select different interrupt configuration sets to send multiple interrupt requests to multiple CPUs;
[0137] Request to send non-maskable interrupt;
[0138] Request reset;
[0139] Request to trigger CPU idle interrupt;
[0140] Reserved processing method.
[0141] Furthermore, when the failure detection subsystem does not detect a failure, a safety signal is outputted externally through a pin, and the safety signal indicates that the main chip is in a safe state.
[0142] Furthermore, the safety signal supports being sent in the form of high and low levels, where a high level represents a valid state and a low level represents a failed state;
[0143] The safety signal supports being sent in a heartbeat mode, with the continuously flipping high and low levels indicating that the chip core is in a safe state, and when the signal stops switching, it indicates that the chip is in a failed state.
[0144] The embodiments of the present invention provide several specific implementation methods based on the technical solutions of the above embodiments. Figure 7 A flowchart of a chip failure processing method provided by an exemplary embodiment of the present invention is shown as follows: Figure 7 As shown, the following steps are included:
[0145] 1. The failure detection system, i.e., the failure detection subsystem, collects the failure faults and stores them in the failure storage group. The failure detection system generates a failure warning after detecting that the failure storage group X (X=0-6) is set;
[0146] 2. After receiving the failure warning, the failure handling system, i.e., the failure handling subsystem, queries the failure internal handling method storage group and the failure external handling method storage group according to the warning content, generates a corresponding handling method according to the corresponding configuration, and sends the failure handling request to the interrupt routing module, i.e., the interrupt router or the system control module;
[0147] 3. The interrupt routing module receives the interrupt configuration set sent by the failure handling system and generates corresponding interrupt requests and sends them to multiple CPUs;
[0148] 4. The system control module will receive the idle request, NMI interrupt request, and reset request of the failure handling system, and send the corresponding signals to multiple CPUs or peripheral modules;
[0149] 5. The failure detection system will receive the watchdog timeout signal sent by the failure handling system and choose whether to generate a failure warning based on the different watchdog thresholds;
[0150] 6. The failure detection system will receive the reset request from the failure handling subsystem, and reset after receiving the power-on reset request and the application-level reset request.
[0151] Figure 8 A flowchart of different processing modes of the failure handling subsystem provided in an exemplary embodiment, such as Figure 8 As shown, the specific process is as follows:
[0152] 1. The interrupt vector configuration set N (N=0-2) generates multiple interrupt requests (interrupt requests 0-2) and sends them to the interrupt routing module, i.e., the interrupt router. The interrupt routing module sends the interrupt requests to multiple CPUs.
[0153] 2. Reset request, NMI interrupt request and idle request are sent to the system control module by the failure handling system, i.e., the failure handling subsystem. The failure handling system will send NMI interrupt request or idle request to multiple CPUs, or send reset request to peripheral modules or CPUs according to different reset request levels;
[0154] 3. According to the configuration in the failure external processing mode storage group, the external safety signal control module will switch the safety state of the safety signal and output it to the chip pin through the PORT module.
[0155] Embodiment 5
[0156] Fig. 9A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0157] like Fig. 9 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0158] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0159] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for processing chip failure.
[0160] In some embodiments, the method for processing chip failure can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps in the method for processing chip failure described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the method for processing chip failure in any other appropriate manner (for example, by means of firmware).
[0161] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0162] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0163] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0164] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0165] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0166] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0167] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0168] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A chip failure processing system, characterized in that: The system includes a failure detection subsystem, a failure processing subsystem, an interrupt router and a system control module; The failure detection subsystem is used to detect chip failures and generate corresponding failure warnings according to the failure types corresponding to the detected chip failures, wherein the failure types at least include chip core failures; The failure processing subsystem is used to determine a corresponding processing method according to the content of the failure warning, and generate a failure processing request according to the interrupt vector configuration set; The interrupt router is used to generate corresponding interrupt requests according to the interrupt vector configuration set and send them to multiple central processing units; The system control module is used to receive the request sent by the failure processing subsystem, and send the request to multiple central processing units or peripheral modules according to corresponding levels; Wherein, the failure processing subsystem is divided into a failure internal processing mode storage group, a failure external processing mode storage group, the interrupt vector configuration set and an external safety signal control module; The failure internal processing method storage group is used to calculate the internal processing methods corresponding to different failure fault types; The failure external processing mode storage group is used to determine whether to switch the external safety signal to a failure state after a failure occurs; The interrupt vector configuration set is used to generate different interrupts and send interrupt requests to the interrupt router, so as to send the interrupt requests to multiple central processors through the interrupt router; The external safety signal control module is used to switch the state of the safety signal according to the configuration in the failure external processing mode storage group; The system control module is specifically used to receive idle requests, NMI interrupt requests, and reset requests sent by the failure processing subsystem, and send corresponding signals to multiple central processing units or peripheral modules.
2. The system according to claim 1, characterized in that The failure detection subsystem is also used to: detect chip kernel status, detect memory status, detect system power supply status, detect chip peripheral status, detect bus status, monitor chip key register status and detect software monitor failure; The chip core state detection includes redundancy check of chip calculation results, detection of chip core temperature state, central processing unit watchdog timeout detection, and central processing unit reading and writing instruction and data pair fault detection; The detecting memory status includes detecting the bit failure status of the page cache memory and the data cache memory, the address status of the page cache memory and the data cache memory, the content integrity of the page cache memory and the data cache memory, the bus level memory integrity and the external memory content integrity; The detection system power supply status includes detecting chip core overvoltage, undervoltage and external input overvoltage and undervoltage; The chip peripheral status detection includes peripheral clock exceeding the frequency range and clock loss synchronization detection; The detecting bus status includes using a redundancy algorithm to perform redundancy check on data transmitted on multiple buses; The key register states of the monitoring chip include the states of the monitoring system control register, the peripheral control register and the protection register; Detecting a software monitor failure includes using a configurable software monitor to cause the software to report a failure failure through mapping.
3. The system according to claim 1, characterized in that The failure detection subsystem is composed of a failure detection module and a failure storage group. The failure detection module includes a software security management unit, a software failure alarm unit, a peripheral failure detection unit, a peripheral failure integrated management unit and a core failure detection unit. The safety management unit is used to: classify different software failure situations and enter them into the software failure alarm unit through software failure mapping, so that the software failure alarm unit triggers a software-based failure warning; The peripheral failure integrated management unit is used to manage different failure conditions of the same type of the same module bundled together, enter some peripheral failures into the failure storage group, and enter another part of the peripheral failures into the peripheral failure integrated management unit; The peripheral failure integrated management unit is used to: bundle the peripheral failure results and output them to the failure storage group; The failure storage group is used to store multiple failure fault types and send failure alarms to the failure processing subsystem.
4. The system according to claim 1, characterized in that The internal processing method at least includes: Default processing, disabling all invalidation processing; Select different interrupt configuration sets to send multiple interrupt requests to multiple CPUs; Request to send non-maskable interrupt; Request reset; Request to trigger CPU idle interrupt; Reserved processing method.
5. The system according to claim 1, characterized in that When the failure detection subsystem does not detect a failure, a safety signal is outputted externally through a pin, and the safety signal indicates that the main chip is in a safe state.
6. The system according to claim 5, characterized in that The safety signal supports being sent in the form of high and low levels, where a high level represents a valid state and a low level represents a failed state; The safety signal supports being sent in a heartbeat mode, with the continuously flipping high and low levels indicating that the chip core is in a safe state, and when the signal stops switching, it indicates that the chip is in a failed state.
7. A method for processing chip failure, characterized in that: The method comprises: After the failure storage group is set, the failure detection subsystem generates a corresponding failure warning according to the failure fault type corresponding to the failure storage group, and the failure fault type at least includes chip core failure; The failure processing subsystem queries the failure processing mode storage group according to the content of the failure warning to determine the corresponding processing mode, and generates an interrupt configuration request according to the interrupt vector configuration set; Sending the interrupt configuration request to multiple central processing units through an interrupt router; Receiving the request sent by the failure processing subsystem through the system control module, and sending the request to multiple central processing units or peripheral modules according to corresponding levels; Wherein, the failure processing subsystem is divided into a failure internal processing mode storage group, a failure external processing mode storage group, the interrupt vector configuration set and an external safety signal control module; The failure processing subsystem queries the failure processing mode storage group according to the content of the failure warning to determine the corresponding processing mode, and generates an interrupt configuration request according to the interrupt vector configuration set, including: Calculate the internal processing methods corresponding to different failure fault types through the failure internal processing method storage group; After a failure occurs, determining whether to switch the external safety signal to a failure state through the failure external processing mode storage group; Generate different interrupts through the interrupt vector configuration set, and send interrupt requests to the interrupt router, so as to send the interrupt requests to multiple central processors through the interrupt router; Switching the state of the safety signal according to the configuration in the failure external processing mode storage group through the external safety signal control module; The receiving of the request sent by the failure processing subsystem through the system control module and sending the request to multiple central processing units or peripheral modules according to corresponding levels includes: The idle request, NMI interrupt request and reset request sent by the failure processing subsystem are received through the system control module, and corresponding signals are sent to multiple central processing units or peripheral modules.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the chip failure processing method described in claim 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the chip failure processing method described in claim 7 when the processor executes the computer instructions.
