Fault handling method, device, electronic device, and storage medium
The fault processing method classifies and arbitrates fault information into hierarchies for parallel processing, addressing inefficiencies in existing systems by preventing interrupt storms and unresponsiveness, thereby enhancing fault handling efficiency.
Patent Information
- Application Number
- JP2023145895
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-12-30
- Filing Date
- 2023-09-08
- Publication Date
- 2024-09-12
- Estimated Expiration
- 2043-09-08
AI Technical Summary
Existing failure handling systems in automotive applications suffer from low efficiency due to interrupt storms and unresponsiveness when hardware or software failures occur, leading to inefficient processing of fault information.
A fault processing method that classifies fault information into hierarchies, determines the hierarchy for each piece of fault information, and arbitrates target fault information for parallel processing, avoiding interrupt storms and unresponsiveness.
The method improves fault processing efficiency by enabling parallel processing of faults in multiple layers, preventing interrupt storms and unresponsiveness, and reducing the risk of starvation.
Smart Images

Figure 0007550284000009 
Figure 0007550284000008 
Figure 0007550284000002
Abstract
Description
[Technical field]
[0001] The present disclosure relates to functional safety technology, and in particular to a failure processing method, a device, an electronic device, and a storage medium. [Background technology]
[0002] In the vehicle application casing, there is a functional safety level requirement for the chip control and storage circuit, so that in order to detect hardware and software failures, the control path, data path, memory, etc. all require a safety module such as a corresponding safety protection circuit or safety protection program. When a hardware or software failure is detected, the failure information needs to be reported to the failure processing module, and the failure processing module performs round-robin arbitration on the received failure information collectively, and allows and processes one failure information at a time, and other failure information needs to wait for the round-robin. For example, if the processing type of the currently allowed and processed failure information is an interrupt, it sends an interrupt signal to the processor, and the processor responds to the interrupt and processes the failure information, and after the processing is completed, it notifies the failure processing module to round-robin the next failure information. However, when one failure occurs, it may spread and cause a series of failures to occur, which is easy to cause an interrupt storm, or if one failure cannot be resolved, other failures cannot get a response all the time (hereinafter referred to as "unresponsive"). As a result, the failure processing module of the related art has low processing efficiency. Summary of the Invention [Problem to be solved by the invention]
[0003] The present disclosure is proposed to solve the above technical problems such as low fault handling efficiency, etc. Embodiments of the present disclosure provide a fault handling method, device, electronic device, and storage medium. [Means for solving the problem]
[0004] A failure processing method according to one aspect of an embodiment of the present disclosure includes the steps of: classifying at least one processed failure information to determine a failure hierarchy to which each of the processed failure information belongs, the processed failure information including a failure identifier of the processed failure; reconciling the processed failure information included in each of the failure hierarchies to determine target processed failure information corresponding to each of the failure hierarchies; and performing corresponding failure processing based on each of the target processed failure information.
[0005] A fault processing device according to another aspect of an embodiment of the present disclosure includes a fault classification module for performing classification on at least one processed fault information and determining a fault hierarchy to which each of the processed fault information belongs, the processed fault information including a fault identifier of the processed fault; and a fault arbitration module for respectively arbitrating the processed fault information included in each of the failure hierarchies to determine target processed fault information corresponding to each of the failure hierarchies, and performing corresponding fault processing based on each of the target processed fault information.
[0006] A computer-readable storage medium according to yet another aspect of an embodiment of the present disclosure stores a computer program for executing a fault processing method described in any of the above embodiments of the present disclosure, or stores data necessary for storage in at least one hardware logic circuit of a fault processing device described in any of the above embodiments, so that, when operated, the hardware logic circuit realizes a corresponding function.
[0007] According to yet another aspect of an embodiment of the present disclosure, an electronic device includes a processor and a memory for storing instructions executable by the processor, the processor reads the executable instructions from the memory and executes the executable instructions to realize a fault processing method described in any of the above embodiments of the present disclosure, or includes a fault processing device described in any of the above embodiments, at least a portion of which is realized by a hardware logic circuit. Effect of the Invention
[0008] According to the failure processing method, device, electronic device, and storage medium of the above-mentioned embodiments of the present disclosure, classification is performed on at least one processed failure information to determine the failure hierarchical level to which each processed failure information belongs, the processed failure information of each failure hierarchical level is respectively reconciled to determine the target processed failure information corresponding to each failure hierarchical level, and failure processing is performed based on the target processed failure information of each failure hierarchical level, thereby realizing parallel processing of failures of multiple failure hierarchical levels, avoiding the occurrence of interrupt storms and response failures, effectively improving failure processing efficiency, and solving problems in related technologies such as interrupt storms and response failures that are easily caused and lead to starvation.
[0009] The technical solutions of the present disclosure are described in further detail below based on the drawings and examples. [Brief description of the drawings]
[0010] The above and other objects, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail with reference to the drawings. The drawings are used to further understand the embodiments of the present disclosure, are constituted as a part of the specification, and are used to interpret the present disclosure together with the embodiments of the present disclosure, and are not intended to limit the present disclosure. In the drawings, the same reference symbols generally represent the same components or steps. [Figure 1] 1 is an exemplary application scenario of a fault processing method according to the present disclosure. [Diagram 2] 4 is a flowchart of a failure processing method according to an exemplary embodiment of the present disclosure. [Diagram 3] 4 is a flowchart of a failure handling method according to another exemplary embodiment of the present disclosure. [Figure 4] 11 is a flowchart of a failure handling method according to yet another exemplary embodiment of the present disclosure. [Diagram 5] FIG. 2 is a schematic diagram of the structure of a fault processing device according to an exemplary embodiment of the present disclosure; [Figure 6]FIG. 2 is a schematic diagram of the structure of a fault handling device according to another exemplary embodiment of the present disclosure; [Figure 7] FIG. 2 is a schematic diagram of an arbiter structure according to an exemplary embodiment of the present disclosure. [Figure 8] FIG. 13 is a schematic diagram of the structure of a fault handling device according to yet another exemplary embodiment of the present disclosure; [Figure 9] 1 is a schematic diagram of the structure of an application example of an electronic device of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, but are not all of the embodiments of the present disclosure, and the present disclosure is not limited to the exemplary embodiments described in this specification.
[0012] In addition, the relative arrangement of the components and steps, the formulas and numerical values described in these examples do not limit the scope of the present disclosure unless otherwise specifically stated.
[0013] Those skilled in the art may understand that the terms "first", "second", etc. in the embodiments of the present disclosure are merely used to distinguish different steps, devices, modules, etc., and do not represent any specific technical meaning or a necessary logical order therebetween.
[0014] Additionally, in the embodiments of the present disclosure, "plurality" can mean two or more, and "at least one" can mean one, two or more.
[0015] Additionally, any component, data, or structure referred to in the embodiments of the present disclosure can generally be understood to be one or more unless expressly limited or suggested otherwise by the context.
[0016] Additionally, the term "and / or" in this disclosure is simply a relation that describes related objects, and indicates that three relations may exist, for example, A and / or B can indicate three cases: when only A is present, when A and B are present at the same time, and when only B is present. Additionally, the symbol " / " in this disclosure generally indicates that the related objects before and after it are in an "or" relationship.
[0017] The embodiments of the present disclosure may be applied to electronic devices, such as terminal devices, computer systems, servers, etc., operable with many other general purpose or special purpose computing system environments and configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices, such as terminal devices, computer systems, servers, etc., include, but are not limited to, personal computer systems, server computer systems, thin clients, fat clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, networked personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments that include any of the above systems. [Summary of this disclosure]
[0018] In the process of realizing the present disclosure, the inventor found that in an in-vehicle application casing, there is a functional safety level requirement for chip control and storage circuits, so that in order to detect hardware and software failures, the control path, data path, memory, etc. all require a safety module such as a corresponding safety protection circuit or safety protection program, and when a hardware or software failure is detected, the failure information needs to be reported to a failure processing module, and the failure processing module collectively performs round-robin arbitration on the received failure information, and allows and processes one failure information at a time, and other failure information needs to wait for the round-robin, for example, if the processing type of the currently allowed and processed failure information is an interrupt, it sends an interrupt signal to the processor, and the processor responds to the interrupt and processes the failure, and after the processing is completed, it notifies the failure processing module to round-robin the next failure information. However, when one failure occurs, it may spread and cause a series of failures to occur, which is easy to cause an interrupt storm, or if one failure cannot be resolved, other failures will always be unresponsive, and thus the failure processing module in the related art has low processing efficiency. [Illustrative Overview]
[0019] FIG. 1 is an exemplary application scenario of the fault handling method according to the present disclosure.
[0020] In the application scenario of an in-vehicle device, for hardware and software such as a control path, a data path, and a memory of a chip, a corresponding safety module can be installed according to the needs of functional safety to detect hardware failures and / or software failures. Each safety module can be adapted to detect one type of failure. When a safety module detects a failure occurrence, it can report failure information to a failure processing module of the chip (i.e., the failure processing device of the present disclosure). The failure information can be processed failure information of the present disclosure. The failure processing method of the present disclosure (executed in the failure processing device) is used to classify at least one processed failure information, and a failure hierarchy to which each processed failure information belongs is determined. The processed failure information can include a failure identifier of the processed failure, and the failure identifier can be an identifier pre-arranged in the safety module. The specific expression form of the failure identifier can be set according to actual needs, for example, can be a number or other expression form, and is not specifically limited. After determining the failure hierarchies to which each piece of processed failure information belongs, the processed failure information included in each failure hierarchies can be arbitrated to determine the target processed failure information corresponding to each failure hierarchies, and the target processed failure information indicates the currently processed failure information arbitrated from the multiple processed failure information, and the remaining processed failure information needs to continue waiting. After determining the target processed failure information for each failure hierarchies, corresponding failure processing is performed based on the target processed failure information to solve the corresponding failure, for example, an interrupt signal is sent to the processor, and the processor responds to the interrupt to perform the corresponding failure processing, and further, for example, a reset signal is sent to the reset management device, and the reset management device resets the failure source, and a signal is sent to other chips or modules outside the chip via the failure pin, for example, to notify other chips or modules that the chip has failed. The present disclosure divides the processed failure information into failure hierarchies, and one or more processed failure information are queued in each failure hierarchies, and the processed failure information of different failure hierarchies can be arbitrated in parallel, so that the occurrence of interrupt storms and response failures can be effectively avoided and the efficiency of failure processing can be greatly improved.
[0021] In one optional embodiment, the fault identifier can be determined by the connection interface of the safety module, for example, each safety module is connected to the fault processing device through a certain interface, and the fault information reported by each safety module to the fault processing device may be the same, for example, "1" indicates that a fault has occurred, and the fault processing device can determine the fault identifier of the processed fault through the interface that reported the fault information, thereby obtaining the processed fault information for subsequent processing, and can be specifically set according to actual needs. [Exemplary Method]
[0022] 2 is a flowchart of a fault processing method according to an exemplary embodiment of the present disclosure. This embodiment is specifically applicable to an electronic device such as an in-vehicle computing platform, and includes the following steps 201 to 203, as shown in FIG.
[0023] In step 201, classification is performed on at least one piece of processed fault information to determine a fault hierarchy to which each piece of processed fault information belongs, and the processed fault information includes a fault identifier of the processed fault.
[0024] Here, the number of layers of the failure hierarchy is a positive integer and can be specifically set according to actual needs, for example, it can be set to three layers, four layers, etc. The failure identifier of the processed failure may be possessed in the failure information reported by the safety module, or may be determined by the connection interface between the safety module and the failure processing device, and can be specifically set according to actual needs. The failure hierarchy to which the processed failure information belongs can be determined based on the correspondence relationship between the failure identifier and the failure hierarchy arranged in advance.
[0025] In one possible embodiment, each time the fault processing device receives one piece of fault information, it can determine the processed fault information corresponding to the fault information in real time, determine the fault hierarchical level to which the processed fault information belongs, and assign and queue the processed fault information in the queue of the corresponding fault hierarchical level.
[0026] In one alternative embodiment, a certain priority can be set between each failure hierarchy, for example, the failure hierarchy includes n levels, namely class 1, class 2, ..., class n (n is a positive integer), and the smaller the level value, the higher the priority, i.e., class 1 has the highest priority. Processed failure information of different severity can be placed in failure hierarchies of different priorities, which can be specifically set based on actual needs.
[0027] In step 202, the processed fault information included in each fault hierarchy is reconciled to determine the target processed fault information corresponding to each fault hierarchy.
[0028] Here, the arbitration of different failure hierarchies is independent of each other and does not affect each other. For any failure hierarchy, each processed failure information included in the failure hierarchy is arbitrated to determine the target processed failure information corresponding to the failure hierarchy. The target processed failure information indicates the currently processed failure information arbitrated from the multiple processed failure information, and the remaining other processed failure information needs to continue waiting for the next arbitration.
[0029] In one optional embodiment, for any failure hierarchy, the arbitration for each processed failure information included in the failure hierarchy can be realized based on a preset arbitration rule, for example, the processed failure information of the failure hierarchy can be arbitrated based on a preset round robin algorithm, which can be specifically set according to actual needs.
[0030] In one possible embodiment, for a situation where there is a priority between each failure hierarchy, when the processing count corresponding to the target processed failure information of a certain failure hierarchy (e.g., class 3) meets a certain condition, the target processed failure information can be upgraded to a hierarchy one level higher than the current failure hierarchy based on the priority of the current failure hierarchy. For example, the target processed failure information of class 3 can be upgraded to class 2 and reconciled as the processed failure information of class 2, which can be specifically set according to actual needs.
[0031] In step 203, the corresponding fault processing is carried out based on each target processed fault information.
[0032] Here, since the processing methods corresponding to different target processed fault information may be different, after determining the target processed fault information of each failure hierarchy, it is necessary to perform corresponding fault processing according to each target processed fault information, for example, if some target processed fault information needs to be processed by the processor, it is necessary to send an interrupt signal to the processor, if some target processed fault information needs to be processed by the reset management device (or reset management module), it is necessary to send a reset signal to the reset management device, and if some target processed fault information needs to send a notification message to other chips or modules outside the current chip where the fault processing device is located, it is necessary to send a notification message to other chips or modules through the failure pin of the current chip, etc., which can be specifically set according to actual needs. The target processed fault information of different failure hierarchy can be processed in parallel and do not affect each other.
[0033] The failure processing method of this embodiment classifies at least one piece of processed failure information to determine the failure hierarchical level to which each piece of processed failure information belongs, arbitrates the processed failure information of each failure hierarchical level to determine the target processed failure information corresponding to each failure hierarchical level, and performs failure processing on the target processed failure information of each failure hierarchical level, thereby realizing parallel processing of failures of multiple failure hierarchical levels, avoiding the occurrence of interrupt storms and response failures, and effectively improving the efficiency of failure processing, and solving the problems in related technologies such as interrupt storms and response failures that easily cause starvation.
[0034] FIG. 3 is a flowchart of a failure handling method according to another exemplary embodiment of the present disclosure.
[0035] In one alternative embodiment, step 201 specifically includes: The method may include a step 2011 of determining the failure hierarchies to which the respective pieces of processed failure information belong based on a first correspondence relationship between the failure identifiers and the failure hierarchies arranged in advance.
[0036] Here, the first correspondence relationship may be pre-arranged in a register, or may be stored in other ways, and may be specifically set according to actual needs. Since the first correspondence relationship characterizes the correspondence relationship between the fault identifier and the fault hierarchy, the fault hierarchy to which each processed fault information belongs can be determined by matching the first correspondence relationship based on the fault identifier included in each processed fault information.
[0037] In this embodiment, the first correspondence relationship between the prearranged fault identifiers and fault hierarchies can easily determine the fault hierarchies to which each piece of processed information belongs, and the hierarchical division of the processed fault information can be effectively realized.
[0038] In one alternative embodiment, step 203 of performing corresponding fault processing based on each target processed fault information includes the following steps 2031 to 2032.
[0039] In step 2031, the processing type corresponding to each of the target processed fault information is determined based on the second correspondence relationship between the fault identifier and the processing type arranged in advance.
[0040] Here, the processing type is a type of a specific processing method for performing fault processing on the target processed fault information, and the processing type may include an interrupt type, a reset type, an external transmission type, etc., among which the interrupt type is a type that requires sending an interrupt signal to the processor to make the processor perform the corresponding fault processing, the reset type is a type that requires performing a reset process on the fault source, and the external transmission type is a type that requires notifying other chips or modules outside the chip where the fault processing device is located. More other types can be set according to actual needs, and are not specifically limited. The second correspondence may be pre-arranged in a register, or may be stored or arranged in other ways. The second correspondence between a specific fault identifier and a processing type can be set according to actual needs, and is not limited in the present disclosure.
[0041] In step 2032, a fault processing signal corresponding to each of the target processed fault information is output based on the processing type corresponding to each of the target processed fault information.
[0042] Here, different processing types need to output different fault processing signals, and the fault processing signals may include an interrupt signal output to a processor, a reset signal output to a reset management device, a notification signal output to other chips or modules outside the current chip, etc., and may be specifically set according to actual needs. The fault processing signal corresponding to the interrupt type is an interrupt signal, the fault processing signal corresponding to the reset type is a reset signal, and the fault processing signal corresponding to the external transmission type is a notification signal output to other chips or modules, and may be specifically set according to actual needs.
[0043] In this embodiment, different fault processing signals can be output for different processing types, so that the part responsible for the corresponding fault processing can perform the corresponding fault processing in a timely manner based on the fault processing signal, and resolve the fault problem in a timely manner.
[0044] In one alternative embodiment, the step 202 of reconciling the processed fault information included in each fault hierarchy to determine the target processed fault information corresponding to each fault hierarchy includes: The method includes a step 2021a of arbitrating the processed fault information included in each fault hierarchical layer in response to detecting the enable permission information, and determining the target processed fault information corresponding to each fault hierarchical layer.
[0045] Here, the enable permission information is used to trigger the arbitration operation. For any fault hierarchy, one target processed fault information can be determined in each arbitration, or two or more target processed fault information can be arbitrated according to the actual processing capacity. After one arbitration, the system enters the fault processing stage, and other processed fault information than the processed fault information determined as the target processed fault information needs to continue waiting for the next arbitration. At this stage, the enable permission information is invalid. When the fault processing corresponding to the target processed fault information is completed, the enable permission information is placed to trigger a new arbitration.
[0046] In one possible embodiment, the permission enable information can be configured by a register. For example, when the register is configured to “1”, the detection of the permission enable information is confirmed by detecting that the register state is “1”. After one arbitration is completed, the register state is configured to “0” to represent disabled, and the permission enable information cannot be detected. Based on this, the arbitration and processing of the processed fault information of each fault hierarchy can be realized.
[0047] In this embodiment, the arbitration of the processed fault information of each fault hierarchical level is controlled by the permission enable information, so that the processed fault information of each fault hierarchical level is guaranteed to be processed regularly.
[0048] In an alternative embodiment, the method of the present disclosure comprises: The method further includes storing 310 processing time stamps of the target processed fault information corresponding to each fault hierarchy.
[0049] Here, the processing timestamp is used to characterize the processing time of the target processed fault information, and the processing timestamp may be a timestamp at which the processed fault information is determined as the target processed fault information, or a timestamp at which a fault processing signal corresponding to the target processed fault information is output, and can be specifically set according to actual needs. The processing timestamp can be used for subsequent fault analysis and tracing, and can be used for statistics such as the occurrence frequency, time rule, etc. of faults.
[0050] In this embodiment, by recording the processing timestamp of the reconciled target processed fault information, an effective data basis can be provided for subsequent fault analysis and tracing.
[0051] In an alternative embodiment, the method of the present disclosure further includes steps 320-330.
[0052] In step 320, the target processed fault information corresponding to each fault hierarchy is encoded to obtain a fault code of each target processed fault information.
[0053] Here, different coding rules may be used to determine the fault code for different fault hierarchies, or the same coding rule may be used, and the specific coding rule may be set according to actual needs. The principle of setting the coding rule is that the obtained fault code can uniquely identify the current fault and trace the fault source, for example, the fault code may include related information such as a fault identifier, a processing timestamp, a processing type, and a fault hierarchy, and different information may be represented by different numbers or symbols, for example, the fault code may be represented by a binary code, and various information may be represented by the state of different bits, which may be set according to actual needs. The location of the fault source may be realized by analyzing the fault code. For example, when the fault processing device of the present disclosure sends an interrupt signal to a processor, and the processor responds to the interrupt, it is necessary to query the fault code, locate the fault source according to the fault code, and then perform corresponding fault processing on the fault source.
[0054] In step 330, the fault codes of the target processed fault information corresponding to each fault hierarchy are stored.
[0055] Here, the storage method of the fault code can be set according to actual needs, for example, the fault code may be stored in a register or in other ways.
[0056] In this embodiment, the reconciled target processed fault information is encoded to obtain and store a fault code, thereby providing accurate and effective data support for locating the fault source in subsequent fault processing.
[0057] FIG. 4 is a flowchart of a fault handling method according to yet another exemplary embodiment of the present disclosure.
[0058] In one alternative embodiment, the step 202 of reconciling the processed fault information included in each fault hierarchy to determine the target processed fault information corresponding to each fault hierarchy includes: For any failure stratum, a step 2021b is included in which the processed failure information of the failure stratum is arbitrated based on a round robin algorithm to determine the target processed failure information corresponding to the failure stratum.
[0059] Here, performing arbitration based on a round robin algorithm means arbitrating each piece of processed fault information in order and processing it as target processed fault information, where the order of each piece of processed fault information can be determined based on the report time of each piece of processed fault information.
[0060] In this embodiment, the processed fault information of each fault hierarchical level is arbitrated by a round robin algorithm, thereby ensuring that each piece of processed fault information is arbitrated equally and avoiding the occurrence of a situation where the waiting time is too long.
[0061] In one alternative embodiment, the order of each processed fault information can be determined according to a preset priority rule, and can be specifically set according to actual needs. For example, a higher priority can be set for some faults with serious effects, and then, when queuing, they can be queued according to the priority and wait for arbitration, and in this case, the processed fault information with the same priority can be queued according to the reporting time.
[0062] In one alternative embodiment, the method of the present disclosure further includes step 340 .
[0063] In step 340, for any failure stratum, the position of the target processed failure information of the failure stratum in the processed failure information of the failure stratum is recorded.
[0064] Here, the position of the target processed fault information of any one of the failure hierarchies in the processed fault information of the failure hierarchies is used to represent the position to which the processed fault information of the failure hierarchies is round-robined, so that the processed fault information to be round-robined at the next arbitration can be quickly determined.
[0065] In this embodiment, by recording the position of the processed fault information of the failure hierarchy to which each target processed fault information belongs, the round robin position can be quickly determined at the time of the next round robin, thereby improving the processing efficiency.
[0066] In one alternative embodiment, after the step 202 of arbitrating the processed fault information included in each fault hierarchy to determine the target processed fault information corresponding to each fault hierarchy, The method further includes step 410 of recording the number of times each target processed fault information is processed.
[0067] Here, any one of the fault sources may have multiple faults, and the multiple faults belong to the same fault. For the same fault, each time it occurs, it needs to be reported once, and the fault processing device needs to process it once. Every time the processed fault information of the fault is reconciled as the target processed fault information, the processing count of the target processed fault information can be maintained in real time, and the processing count is increased by 1 each time it is processed.
[0068] The method of the present disclosure comprises: The method further includes a step 420 of updating the failure hierarchy of the target processed failure information to the failure hierarchy one level before the current failure hierarchy in response to the processing count corresponding to the target processed failure information reaching a preset count threshold value for any target processed failure information, and waiting for arbitration as the processed failure information of the failure hierarchy one level before.
[0069] Here, the preset number threshold can be set according to actual needs, for example, 3 times, 4 times, etc., and is not specifically limited. When the processing number corresponding to one target processed fault information reaches the preset number threshold, the fault hierarchy of the target processed fault information is raised, for example, if the current fault hierarchy of the target processed fault information is level 3, it is raised to level 2 and queued as the processed fault information of the level 2 fault level to wait for arbitration. If the current fault level is level 2, it can be raised to level 1.
[0070] In one alternative embodiment, step 420 may be performed before step 203, in which case step 203 may not be temporarily performed for the target processed fault information, or step 203 may be performed, which can be specifically set according to actual needs.
[0071] In one alternative embodiment, step 420 may be performed after step 203, that is, after step 203 is performed for the target processed fault information, the processing count is incremented by 1. If the processing count exceeds a preset count threshold, the fault hierarchical level of the target processed fault information can be directly marked as a level-up hierarchical level. When the fault occurs next time, it can be directly queued and arbitrated as the processed fault information of the level-up hierarchical level, and can be specifically set according to actual needs.
[0072] In an alternative embodiment, the target processed failure information whose level of the failure hierarchy is raised can be called a cascading failure, and when encoding, the failure code can include corresponding cascading information, so that the source of the failure can be located during subsequent failure processing. For example, when an interrupt signal is sent to a processor for the target processed failure information of a cascading failure, the processor receives the interrupt signal, queries the failure code, and determines that the failure is a cascading failure according to the failure code, then reads the failure code of the target processed failure information in the next level of the failure hierarchy, identifies the source of the failure, and performs corresponding fault removal processing on the failure source to solve the failure problem.
[0073] In one alternative embodiment, the failure processing signal corresponding to the target processed failure information of the highest failure hierarchy can be set as an external notification signal, and the processing signals corresponding to the target processed failure information of other failure hierarchies may include interrupt signals and reset signals, and can be specifically set according to actual needs.
[0074] In this embodiment, the severity of the fault can be characterized by raising the level of the fault hierarchy for the target processed fault information whose processing count exceeds a preset threshold, so that fault processing of different fault hierarchies can be performed. For example, after raising the level to the highest hierarchy, other external chips or modules can be notified to quickly resolve the fault problem, thereby ensuring the safe operation of the chip.
[0075] Any of the fault processing methods according to the embodiments of the present disclosure may be executed by any suitable device (e.g., a terminal device, a server, etc.) having data processing capabilities. Alternatively, any of the fault processing methods according to the embodiments of the present disclosure may be executed by a processor, for example, the processor may execute any of the fault processing methods mentioned in the embodiments of the present disclosure by calling corresponding instructions stored in a memory. Hereinafter, redundant explanations will be omitted. [Example Device]
[0076] 5 is a structural schematic diagram of a fault processing device according to an exemplary embodiment of the present disclosure, which is used to implement a corresponding method embodiment of the present disclosure, and the device shown in FIG.
[0077] The fault classification module 51 is used to classify at least one piece of processed fault information to determine a fault hierarchy to which each piece of processed fault information belongs, and the processed fault information includes a fault identifier of the processed fault.
[0078] The fault arbitration module 52 is used to arbitrate the processed fault information contained in each fault hierarchy, determine the target processed fault information corresponding to each fault hierarchy, and perform corresponding fault processing based on each target processed fault information.
[0079] 6 is a schematic diagram of the structure of a fault handling device according to another exemplary embodiment of the present disclosure. In one alternative embodiment, the fault arbitration module 52 includes at least two arbiters 521.
[0080] Of the at least two arbiters, each arbiter 521 corresponds to one failure hierarchical level, and each arbiter 521 is used to arbitrate the processed failure information of the failure hierarchical level corresponding to the arbiter 521, determine the target processed failure information of the failure hierarchical level, and perform corresponding failure processing based on the target processed failure information.
[0081] In one alternative embodiment, each arbiter 521 can be implemented by hardware logic. The specific operation principle of each arbiter 521 can be referred to the above method embodiment, and the duplicated description will be omitted here.
[0082] In one alternative embodiment, the device of the present disclosure further includes a first configuration register 53 .
[0083] The first configuration register 53 is used to store a first correspondence between the pre-configured fault identifiers and fault hierarchies.
[0084] The fault classification module 51 is used to determine the fault hierarchy to which each piece of processed fault information belongs based on the first correspondence relationship stored in the first configuration register 53, and to transmit each piece of processed fault information to the arbiter 521 corresponding to the information in the fault arbitration module 52 according to the fault hierarchy to which each piece of processed fault information belongs.
[0085] In one alternative embodiment, the device of the present disclosure further includes a second configuration register 54 .
[0086] The second configuration register 54 is used to store a second correspondence between the preconfigured fault identifiers and the processing types.
[0087] The fault arbitration module 52 is further used to determine a processing type corresponding to each target processed fault information based on a second correspondence relationship stored in the second configuration register 54, and output a fault processing signal corresponding to each target processed fault information based on the processing type corresponding to each target processed fault information.
[0088] Here, the fault arbitration module 52 is connected to the second configuration register 54 and reads the second correspondence from the second configuration register.
[0089] In one selectable embodiment, each arbiter 521 in the fault arbitration module 52 is respectively connected to the second configuration register 54, and each arbiter 521 is used to determine a processing type corresponding to the target processed fault information of the arbiter based on a second correspondence stored in the second configuration register 54, and output a fault processing signal corresponding to the target processed fault information based on the processing type.
[0090] In one alternative embodiment, the device of the present disclosure further includes a third configuration register 55 .
[0091] The third configuration register 55 is used to store permission enable information in response to an enable configuration command.
[0092] The fault arbitration module 52 is further used to respectively arbitrate the processed fault information contained in each fault hierarchy and determine the target processed fault information corresponding to each fault hierarchy in response to detecting the permission enable information of the third configuration register 55.
[0093] In one alternative embodiment, any of the arbiters 521 in the fault arbitration module 52 is connected to the third configuration register 55 and, in response to detecting the permission enable information of the third configuration register 55, is used to arbitrate the processed fault information included in the fault hierarchy corresponding to that arbiter to determine the target processed fault information corresponding to that fault hierarchy.
[0094] In one alternative embodiment, the number of third configuration registers 55 may be the same as the number of arbiters 521, i.e., each arbiter 521 corresponds to one third configuration register 55, and arbitration of different failure hierarchies can be triggered independently.
[0095] In one alternative embodiment, the third configuration register 55 is further used to remove the permission enable information according to a preset period.
[0096] Here, the preset period can be determined based on the processing time of the round robin algorithm, and when one arbitration is completed, the permission enable information can be removed and wait for the placement of the next permission enable information, and the permission enable information can be placed by the processor, and after the fault source corresponding to the target processed fault information is removed, the processor places the permission enable information in the third configuration register 55 to trigger a new arbitration.
[0097] In one alternative embodiment, the device of the present disclosure further includes a time register 56 .
[0098] The time registers 56 are used to store the processing timestamps of the target processed fault information respectively corresponding to each fault hierarchy.
[0099] The fault arbitration module 52 is further used to write the processing timestamps of the target processed fault information respectively corresponding to each fault hierarchy to a time register 56 .
[0100] In one alternative embodiment, each arbiter 521 in the fault arbitration module 52 can write to the time register 56 the processing timestamp of the target processed fault information of its corresponding fault hierarchy.
[0101] In one alternative embodiment, the apparatus of the present disclosure further includes a fault code register 57 .
[0102] The fault code register 57 is used to store the fault codes of the target processed fault information corresponding to each fault hierarchy respectively.
[0103] The fault arbitration module 52 is further used to write the fault codes of the target processed fault information respectively corresponding to each fault hierarchy into a fault code register 57 .
[0104] In one alternative embodiment, each arbiter 521 in the fault arbitration module 52 may write the fault code of the targeted processed fault information of its corresponding fault hierarchy to the fault code register 57 .
[0105] In one alternative embodiment, the time register 56 and the fault code register 57 can be the same register and are used to correspondingly store the processing timestamp and fault code of the target processed fault information.
[0106] FIG. 7 is a schematic diagram of the structure of arbiter 521 according to an exemplary embodiment of the present disclosure.
[0107] In one alternative embodiment, the arbiter 521 includes a round robin grant unit 5211 .
[0108] The round robin permission unit 5211 is used for arbitrating the processed fault information of the fault hierarchy corresponding to the arbiter based on a round robin algorithm, determining the target processed fault information of the fault hierarchy, and outputting a fault processing signal corresponding to the processing type of the target processed fault information.
[0109] In one alternative embodiment, the arbiter 521 further includes a round robin position register 5212 .
[0110] The round robin position register 5212 is used to store the round robin position.
[0111] The round robin enable unit 5211 is further used to update the round robin position stored in the round robin position register to the position of the target processed failure information in the processed failure information of the failure hierarchy after outputting a failure processing signal corresponding to the target processed failure information.
[0112] In one alternative embodiment, the arbiter 521 further includes an encoding unit 5213 .
[0113] The encoding unit 5213 is used for encoding the target processed failure information, obtaining a failure code of the target processed failure information, and writing the failure code of the target processed failure information into the failure code register 57 .
[0114] Here, the encoding unit 5213 is connected to the fault code register 57, and writes the fault code into the fault code register 57 after obtaining the fault code of the target processed fault information.
[0115] In one alternative embodiment, the round robin grant unit 5211 is further used to write the processing timestamp of the target processed fault information to the time register 56 .
[0116] In one alternative embodiment, the arbiter 521 further includes a fault count register 5214 .
[0117] The fault count register 5214 is used to store the number of times the target processed fault information is processed.
[0118] The round robin permission unit 5211 is further used for transmitting the target processed fault information to an arbiter in a fault hierarchy one level before the arbiter 521 in response to the number of processing times corresponding to the target processed fault information reaching a preset number threshold value, for arbitration.
[0119] As an example, FIG. 8 is a schematic diagram of the structure of a failure processing device according to yet another exemplary embodiment of the present disclosure. The failure hierarchy in this example includes three hierarchies, class 1, class 2, and class 3, and the arbiters of adjacent failure hierarchies are connected to each other. When the number of processing times corresponding to the target processed failure information determined by a certain arbiter 521 reaches a preset number threshold, the target processed failure information is transmitted to the arbiter of the hierarchy one level before for arbitration. The arbiter 521 outputs a corresponding failure processing signal (e.g., a notification signal that needs to be sent to the outside via a failure pin, a reset signal sent to a reset management module, an interrupt signal sent to a processor, etc.) based on the processing type of the target processed failure information.
[0120] In one alternative embodiment, as shown in FIG. 8, considering the needs of functional safety, the fault pin can be set to two pins, one is a functional pin and the other is a redundant pin, and the redundant pin can be arranged in the same manner as the functional pin or inversely arranged to the functional pin, and can be specifically set according to actual needs. Class 1 is the highest fault hierarchy, and for the processing type of the target processed fault information of class 1, it can be arranged to be a sending-out type, and a notification signal needs to be sent to the outside through the fault pin, and an interrupt signal output line and a reset signal output line can be arranged for each arbiter of each fault hierarchy, and the interrupt signal output line is used to connect to the processor, and the reset signal output line is used to connect to the reset management module. The number of reset signal output lines of each arbiter can be set according to actual needs, and each arbiter can be arranged with one interrupt signal output line, and can be specifically set according to actual needs. The reset signal output lines of the same type of each arbiter can be output by logical sum, for example, the reset signal output lines of the same subsystem but different failure hierarchies are converted into one output by logical sum, so that when a failure of any failure hierarchies occurs in the same subsystem and the subsystem needs to be reset, both can effectively trigger a reset for the subsystem. Each arbiter stops arbitration after completing one arbitration, and waits for the failure processing of the target processed failure information, for example, if the processing type of the target processed failure information is an interrupt type, it sends an interrupt signal to the processor, and the processor can read the failure code and also read the time stamp, and if it is not a cascade failure, it can enter the corresponding interrupt service program to remove the failure source, and if it is a cascade failure, it reads the failure code and the time stamp in the next hierarchy, locates the failure source, and then enters the corresponding interrupt service program to remove the failure source, and after completion, places the permission enable information, and triggers the arbiter to proceed to a new arbitration.If the processing type corresponding to the target processed failure information is a reset type, it waits until the reset of the related subsystem is completed, notifies the processor, and the processor places the permission enable information and triggers the arbiter to proceed to a new arbitration.
[0121] In one optional embodiment, the fault processing device of the present disclosure can also receive fault information () from other chips or modules outside the current chip, such as a fault notification signal from the fault processing device of another chip, which can be specifically configured according to actual needs.
[0122] In one alternative embodiment, external faults of the current chip can be classified and arbitrated in the fault processor of the present disclosure as processed fault information.
[0123] In one alternative embodiment, at least a portion of the fault processing device of the present disclosure is implemented by a hardware logic circuit, which can further improve processing efficiency.
[0124] In one alternative embodiment, each register in the disclosed device can be initialized or configured in an application process by the processor, for example, the first configuration register can have a first corresponding relationship configured by the processor, the second configuration register can have a second corresponding relationship configured by the processor, and the third configuration register can have permission enable information configured by the processor. The time register and the fault code register can be initialized and configured by the processor, and the corresponding contents can be written by the arbiter in the subsequent application process, and can be specifically configured according to actual needs. [Examples of electronic devices]
[0125] An electronic device according to an embodiment of the present disclosure includes a memory for storing a computer program; and a processor that executes a computer program stored in the memory, and when the computer program is executed, realizes a fault processing method described in any of the embodiments of the present disclosure.
[0126] 9 is a schematic diagram of the structure of an application embodiment of the electronic device of the present disclosure. In this embodiment, the electronic device 10 includes one or more processors 11 and a memory 12.
[0127] The processor 11 may be a central processing unit (CPU) or other form of processing unit having data processing and / or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.
[0128] The memory 12 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, and flash memory. One or more computer program instructions may be stored in the computer-readable storage medium, and the processor 11 may execute the program instructions to realize the methods according to the embodiments of the present disclosure and / or other desired functions. The computer-readable storage medium may also store various contents, such as an input signal, a signal component, and a noise component.
[0129] As an example, electronic device 10 may further include input device(s) 13 and output device(s) 14 connected to each other via a bus system and / or other form of connection mechanism (not shown).
[0130] For example, the input device 13 may be a microphone or a microphone array and may be used to capture an input signal of a sound source.
[0131] Moreover, the input device 13 may further include, for example, a keyboard and a mouse.
[0132] The output device 14 can output various information such as determined distance information, method information, etc. The output device 14 can include, for example, a display, a speaker, a printer, and a communication network and a remote output device connected thereto.
[0133] Of course, for simplicity, Fig. 9 shows only some of the components related to the present disclosure in the electronic device 10, and omits components such as buses, input / output interfaces, etc. In addition, the electronic device 10 may further include any other suitable components according to a specific application situation.
[0134] In one optional embodiment, the electronic device may include a fault processing device according to any of the above embodiments, and at least a portion of the fault processing device may be realized by a hardware logic circuit to further improve processing efficiency. [Exemplary Computer Program Products and Computer-Readable Storage Media]
[0135] In addition to the methods and apparatus described above, embodiments of the present disclosure may be a computer program product including computer program instructions that, when executed by a processor, cause the processor to perform method steps according to various embodiments of the present disclosure described in the "Exemplary Methods" section above of this specification.
[0136] Although the basic principles of the present disclosure have been described above with reference to specific embodiments, the advantages, merits, effects, etc. mentioned in the present disclosure are merely illustrative and not limiting. Various embodiments of the present disclosure do not necessarily have those advantages, merits, effects. In addition, the specific details of the above disclosure are merely for illustrative and easy-to-understand functions and are not limiting, and the above details do not necessarily limit the present disclosure to be realized by the above specific details.
[0137] Each embodiment in this specification is described in a sequential manner, and the description of each embodiment focuses mainly on the differences from other embodiments, and the same or similar parts between the embodiments may be referred to each other. The system embodiments are basically corresponding to the method embodiments, so they are described relatively briefly, and the relevant parts may be referred to part of the description of the method embodiments.
[0138] Block diagrams of devices, apparatus, instruments, and systems according to the present disclosure are merely exemplary and are not intended to require or imply that the devices, apparatus, instruments, and systems be connected, arranged, or configured in the manner shown in the block diagrams, as will be understood and appreciated by those skilled in the art.
[0139] The methods and apparatus of the present disclosure may be implemented in many forms. For example, the methods and apparatus of the present disclosure may be implemented in software, hardware, firmware, or any combination of software, hardware, and firmware. The above-mentioned order of steps used in the methods is merely illustrative, and the steps of the methods of the present disclosure are not limited to the order specifically described above, unless specifically described otherwise. In some embodiments, the present disclosure may also be implemented as a program recorded on a recording medium, and these programs include machine-readable instructions for implementing the methods of the present disclosure. Thus, the present disclosure also includes a recording medium storing a program for executing the methods of the present disclosure.
[0140] It should also be noted that in the devices, apparatus, and methods of the present disclosure, each component or each step may be disassembled and / or recombined, and such disassembly and / or recombination should be considered as an equivalent form of the present disclosure.
Claims
1. A fault processing method implemented by a fault processing device including a fault classification module and a fault arbitration module, comprising: The fault classification module performs classification on at least one processed fault information to determine a fault hierarchy to which each of the processed fault information belongs, the processed fault information including a fault identifier of the processed fault; The failure arbitration module arbitrates the processed failure information included in each of the failure hierarchies to determine target processed failure information corresponding to each of the failure hierarchies; the fault arbitration module performing corresponding fault processing based on each of the target processed fault information.
2. The step of the fault classification module classifying at least one piece of processed fault information and determining a fault hierarchy to which each piece of processed fault information belongs, 2. The fault processing method according to claim 1, further comprising a step of: determining a fault hierarchy to which each of the processed fault information belongs based on a first correspondence relationship between a prearranged fault identifier and a fault hierarchy, wherein the fault classification module determines a fault hierarchy to which each of the processed fault information belongs.
3. The step of the fault arbitration module performing corresponding fault processing based on each of the target processed fault information, The fault arbitration module determines the processing type corresponding to each of the target processed fault information according to a second correspondence relationship between a fault identifier and a processing type that is pre-arranged; 2. The method of claim 1, further comprising: a step of the fault arbitration module outputting a fault processing signal corresponding to each of the target processed fault information based on a processing type corresponding to each of the target processed fault information.
4. The step of the failure arbitration module arbitrating the processed failure information included in each failure hierarchy and determining target processed failure information corresponding to each failure hierarchy, 2. The failure processing method according to claim 1, further comprising a step of: in response to detecting enable permission information, the failure arbitration module arbitrates the processed failure information included in each of the failure hierarchies, respectively, to determine target processed failure information corresponding to each of the failure hierarchies.
5. The fault processing device further includes a time register and a fault code register, The failure processing method includes: The fault arbitration module stores in the time register a processing timestamp of the target processed fault information corresponding to each of the fault hierarchies; and / or 2. The failure processing method according to claim 1, further comprising: a step in which the failure arbitration module encodes the target processed failure information corresponding to each of the failure hierarchies to obtain a failure code for each of the target processed failure information; and a step in which the failure arbitration module stores the failure code of the target processed failure information corresponding to each of the failure hierarchies in the failure code register.
6. The step of the failure arbitration module arbitrating the processed failure information included in each failure hierarchy and determining target processed failure information corresponding to each failure hierarchy, 2. The failure processing method according to claim 1, further comprising a step in which, for any one of the failure hierarchies, the failure arbitration module arbitrates the processed failure information of the failure hierarchies based on a round robin algorithm to determine the target processed failure information corresponding to the failure hierarchies.
7. 7. The method of claim 6, further comprising the step of, for any one of the failure hierarchies, the failure arbitration module recording a position of the target processed failure information of that failure hierarchical level in the processed failure information of that failure hierarchical level.
8. After the step of the failure arbitration module arbitrating the processed failure information included in each of the failure hierarchies and determining target processed failure information corresponding to each of the failure hierarchies, The fault arbitration module further includes a step of recording the number of times each of the target processed fault information is processed; The failure processing method includes:
7. The failure processing method according to claim 6, further comprising a step in which, for any of the target processed failure information, the failure arbitration module, in response to a processing count corresponding to the target processed failure information reaching a preset count threshold, updates the failure hierarchy of the target processed failure information to the failure hierarchy one level before the current failure hierarchy, and waits for the target processed failure information to be arbitrated as the processed failure information of the failure hierarchy one level before.
9. A fault classification module for classifying at least one processed fault information to determine a fault hierarchy to which each of the processed fault information belongs, the processed fault information including a fault identifier of the processed fault; a failure arbitration module for arbitrating the processed failure information included in each of the failure hierarchies, determining target processed failure information corresponding to each of the failure hierarchies, and performing corresponding failure processing based on each of the target processed failure information.
10. A computer program for executing the fault processing method according to any one of claims 1 to 8 is stored, or 10. A computer-readable storage medium for storing data required for storage in at least one hardware logic circuit of a fault processing device according to claim 9, wherein the hardware logic circuit performs a corresponding function when the hardware logic circuit is in operation.
11. A processor; a memory for storing instructions executable by said processor; The processor reads the executable instructions from the memory and executes the executable instructions to implement the fault handling method according to any one of claims 1 to 8; or A fault processing device according to claim 9, 13. An electronic device, wherein at least a part of the fault processing device is realized by a hardware logic circuit.
Citation Information
Patent Citations
Vehicle fault processing system and method
CN114633709A
Failure handling support system and method, and service center system
JP2005128714A
Failure cause classification device
JP2016091139A
Multi-stage failure diagnosis method and device for fuel cell system
JP2021044231A
Vehicle management control method, vehicle management control device, computer apparatus, computer-readable storage medium and computer program
JP2021089760A
