System-on-chip timer fault detection and recovery using independent redundant timers
Parallel operation of independent timers in safety-critical systems enables efficient detection and recovery from failures by using redundant timers to adjust and replace faulty timers, minimizing disruptive resets.
Patent Information
- Application Number
- JP2023555368
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-03-17
- Filing Date
- 2022-01-25
- Publication Date
- 2024-09-02
- Estimated Expiration
- 2042-01-25
AI Technical Summary
Timer failures in safety-critical systems, such as automotive systems, can lead to frequent transitions to safe states, which are expensive and disruptive, and existing methods lack efficient mechanisms for accurate detection and recovery.
Implementing multiple independent timers operating in parallel, where a monitor timer detects and replaces a failed operational timer, adjusting its time base to maintain system functionality without costly resets.
This approach allows for rapid and inexpensive recovery from timer failures, maintaining system functionality by using redundant timers to adjust and replace faulty timers, reducing the need for expensive recovery processes.
Smart Images

Figure 0007543574000011 
Figure 0007543574000005 
Figure 0007543574000007
Abstract
Description
[Technical field]
[0001] Related Applications This application claims the benefit of priority to U.S. Non-provisional Application No. 17 / 204,191, filed March 17, 2021, the entire contents of which are incorporated herein by reference. [Background technology]
[0002] Clocks and timers play an important role in electronic devices and systems that provide time-critical functionality. One example of an electronic system that provides time-critical functionality is an automotive system that provides safety and autonomous driving features. A timer failure can have a dangerous impact on the entire system functionality, such as a safety-critical system. Such safety-critical systems must have very high reliability. Thus, safety-critical systems require the ability to detect timer failures with high accuracy so that appropriate action can be taken. Traditionally, a failure results in reporting the failure to an overall safety management entity, transitioning the system to a safe state, and / or initiating a recovery mechanism. A system experiencing a timer failure may trigger frequent transitions to a safe state and recovery, which can be expensive if the recovery is a reset and restart of the affected system. Such degradation of system functionality is not feasible for many time-critical systems. Summary of the Invention [Means for solving the problem]
[0003] Various disclosed aspects may include a timer failure detection and recovery apparatus and method. Various aspects may include running a plurality of timers in parallel, having at least a first timer, a second timer, and a third timer, each having an independent time base, determining whether a first timer of the plurality of timers has failed, removing the first timer from use in response to determining that the first timer has failed, determining whether the first timer has a consistent difference in independent time base with a second timer of the plurality of timers, and returning the first timer to use with a time adjustment in response to determining that the first timer has a consistent difference in independent time base with the second timer.
[0004] In some aspects, the first timer is a first operating timer and the third timer is a monitor timer. Some aspects may include converting the monitor timer to a second operating timer.
[0005] In some aspects, converting the monitor timer to a second operational timer may occur within a fault-tolerant interval of a time-critical system.
[0006] In some aspects, the first timer may be an operational timer, and in response to determining that the first timer has a consistent difference in an independent time base from the second timer, returning to using the first timer may include returning the operational timer to use as a monitor timer.
[0007] In some aspects, the first timer may be a monitor timer, and in response to determining that the first timer has a consistent difference in an independent time base from the second timer, returning to using the first timer may include returning the monitor timer to use as the monitor timer.
[0008] Some aspects may include, in response to determining that the first timer has a consistent difference of the independent timebase from the second timer, adjusting the independent timebase of the first timer as a time adjustment using the consistent difference of the independent timebase from the second timer.
[0009] Some aspects may include determining whether a first timer has a consistent difference in independent time base from a third timer of the multiple timers, and in response to determining that the first timer has a consistent difference in independent time base from the third timer, returning the first timer to use with a time adjustment.
[0010] Further aspects include a computing device having a plurality of timers and a timer control device configured to perform the operations of any of the methods summarized above. Further aspects include a computing device having means for performing the functions of any of the methods summarized above. Further aspects include a non-transitory processor-readable medium having stored thereon processor-executable instructions configured to cause an integrated circuit to perform the operations of any of the methods summarized above.
[0011] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the various embodiments and, together with the general description above and the detailed description below, serve to explain the features of the claims. [Brief description of the drawings]
[0012] [Figure 1] FIG. 1 is a component block diagram illustrating an example computing device suitable for implementing various embodiments. [Diagram 2] FIG. 1 is a component block diagram illustrating an example timer module suitable for implementing various embodiments. [Figure 3A]FIG. 1 is a block diagram illustrating an example of system-on-chip (SoC) timer fault detection and recovery using independent redundant timers suitable for implementing various embodiments. [Figure 3B] FIG. 1 is a block diagram illustrating an example of system-on-chip (SoC) timer fault detection and recovery using independent redundant timers suitable for implementing various embodiments. [Figure 3C] FIG. 1 is a block diagram illustrating an example of system-on-chip (SoC) timer fault detection and recovery using independent redundant timers suitable for implementing various embodiments. [Figure 3D] FIG. 1 is a block diagram illustrating an example of system-on-chip (SoC) timer fault detection and recovery using independent redundant timers suitable for implementing various embodiments. [Figure 4A] FIG. 2 is a block diagram illustrating an example of SoC timer failure detection and recovery using independent redundant timers suitable for implementing various embodiments. [Figure 4B] FIG. 2 is a block diagram illustrating an example of SoC timer failure detection and recovery using independent redundant timers suitable for implementing various embodiments. [Figure 4C] FIG. 2 is a block diagram illustrating an example of SoC timer failure detection and recovery using independent redundant timers suitable for implementing various embodiments. [Figure 4D] FIG. 2 is a block diagram illustrating an example of SoC timer failure detection and recovery using independent redundant timers suitable for implementing various embodiments. [Diagram 5] FIG. 1 is a process flow diagram illustrating a method for SoC timer failure detection and recovery using independent redundant timers, according to one embodiment. [Figure 6] FIG. 1 is a process flow diagram illustrating a method for SoC timer failure detection and recovery using independent redundant timers, according to one embodiment. [Figure 7] FIG. 1 is a process flow diagram illustrating a method for SoC timer failure detection and recovery using independent redundant timers, according to one embodiment. [Figure 8]FIG. 1 is a component block diagram illustrating an exemplary mobile computing device suitable for implementing various embodiments. [Figure 9] FIG. 1 is a component block diagram illustrating an exemplary mobile computing device suitable for implementing various embodiments. [Figure 10] FIG. 1 is a component block diagram illustrating an example server suitable for implementing various embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Various embodiments are described in detail with reference to the accompanying drawings. Whenever possible, the same reference numbers are used throughout the drawings to refer to the same or like parts. References made to specific examples and implementations are for illustrative purposes only and do not limit the scope of the claims.
[0014] Various embodiments include a method of system-on-chip (SoC) timer failure detection and recovery using independent redundant timers, as well as a computing device implementing such a method. Various embodiments may include using multiple monitor timers to monitor a first operational timer. Various embodiments may include replacing a failed first operational timer with the first monitor timer as a functioning second operational timer and using the second monitor timer to monitor the second operational timer. Various embodiments may include determining whether a time difference between the failed first operational timer and the second operational timer and / or between the failed first operational timer and the second monitor timer is consistent. Various embodiments may include, in response to determining that a time difference between the failed first operational timer and the second operational timer and / or between the failed first operational timer and the second monitor timer is consistent, adjusting the failed first operational timer to use it as a monitor timer for the second operational timer.
[0015] Various embodiments may include using multiple timers, monitor timers, and operating timers to monitor the monitor timers. Various embodiments may include determining whether a time difference between the failed first monitor timer and the first operating timer and / or between the failed first monitor timer and the second monitor timer is consistent, and in response to determining that a time difference between the failed first monitor timer and the first operating timer and / or between the failed first monitor timer and the second monitor timer is consistent, adjusting the failed first monitor timer for use as the first monitor timer.
[0016] The terms "computing device" and "mobile computing device" are used interchangeably herein to refer to any one or all of cellular telephones, smartphones, personal or mobile multimedia players, personal digital assistants (PDAs), laptop computers, tablet computers, convertible laptops / tablets (2-in-1 computers), smartbooks, ultrabooks, netblocks, palmtop computers, wireless email receivers, multimedia Internet-enabled cellular telephones, mobile game consoles, wireless game controllers, and similar personal electronic devices that include memory and programmable processors. The term "computing device" may also refer to stationary computing devices, including personal computers, desktop computers, all-in-one computers, workstations, supercomputers, mainframe computers, embedded computers (such as automobiles and other large systems), servers, multimedia computers, and game consoles.
[0017] In time-critical systems that utilize timers to control functionality (e.g., vehicle systems such as automotive, avionics, marine, etc., medical systems, healthcare systems, manufacturing systems, financial systems, etc.), timer failures can have dangerous effects on the overall system functionality. Such time-critical systems must have very high reliability. Thus, time-critical systems require the ability to detect timer failures with high accuracy so that appropriate action can be taken. Traditionally, failures result in reporting of the failure to an overall safety management entity, transition of the system to a safe state, and / or initiation of recovery mechanisms. A system experiencing a timer failure may trigger frequent transitions to a safe state and recovery, which can be expensive if recovery is a reset and restart of the affected system. Such degradation of system functionality is infeasible for many time-critical systems.
[0018] Various embodiments solve the aforementioned problem of providing an intermediate level of inexpensive recovery by implementing multiple independent timers operating in parallel. A time-critical system may include multiple independent timers operating in parallel, including at least one operational timer (e.g., a first operational timer) and at least two monitor timers (e.g., a first monitor timer and a second monitor timer). Each of the timers may be immune to interference from the other timers at the hardware level, the software level, and the physical layout and logical level. The operational timers may perform periodic functions with different time slices. In some embodiments, the monitor timer may detect a failure of the operational timer. In some embodiments, the operational timer and the second monitor timer may detect a failure of the first monitor timer. Each timer may operate on a different independent time base (ITB). The independent time bases of the timers may be compared using the timestamps of the different timers to check for timer failure.
[0019] When the first operational timer fails, the first monitor timer may be migrated to a second operational timer. The second monitor timer may be used to monitor the second operational timer for failures. The time-critical system may transition to a safe state and continue to operate without having to implement an expensive recovery process, avoiding degradation of system functionality of the time-critical system. In some embodiments, the failed first operational timer may be migrated to a third monitor timer by implementing a time adjustment that matches a consistent difference between the first operational timer and the first monitor timer, which allows for maintaining failure detection and recovery of multiple timer-based operational timers after one timer failure is detected.
[0020] In embodiments where the first monitor timer fails, the second monitor timer may continue to be used to monitor the first operational timer for failures. The time-critical system may transition to a safe state and continue to operate without having to implement expensive recovery processes, avoiding degradation of system functionality of the time-critical system. In some embodiments, the failed first monitor timer may be timed and continue to be used as the first monitor timer while maintaining multiple timer-based operational timers and monitor timer failure detection and recovery.
[0021] Implementing multiple timers configured to monitor other timers can improve timer failure coverage and provide redundancy for improved diagnostics. Replacing a failed operational timer with a monitor timer allows for inexpensive recovery from a failed operational timer by avoiding transitions to a safe state and implementing expensive recovery processes such as resets and / or reboots. Fast recovery from a failed operational timer can avoid degradation of system functionality for time-critical systems.
[0022] 1 illustrates a system including a computing device 100 suitable for use with various embodiments. Computing device 100 may include a SoC 102 with a processor 104, memory 106, a communication interface 108, a memory interface 110, a peripheral device interface 120, and a timer 124. Computing device 100 may further include a communication component 112, such as a wired or wireless modem, memory 114, an antenna 116 for establishing a wireless communication link, and / or peripheral devices 122. Processor 104 may include any of a variety of processing devices, e.g., several processor cores.
[0023] The term "system on chip" or "SoC" is used herein to generally refer to a set of interconnected electronic circuits including, but not limited to, a processing device, memory, and a communication interface. A processing device may include a variety of different types of processors 104 and / or processor cores, such as a general purpose processor, a central processing unit (CPU), a digital signal processor (DSP), a graphics processing unit (GPU), an accelerated processing unit (APU), a secure processing unit (SPU), an intellectual property unit (IPU), a subsystem processor of a particular component of a computing device, such as an image processor for a camera subsystem or a display processor for a display, an auxiliary processor, a peripheral device processor, a single-core processor, a multi-core processor, a controller, and / or a microcontroller. A processing device may further embody other hardware and combinations of hardware, such as a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), other programmable logic devices, discrete gate logic, transistor logic, performance monitoring hardware, watchdog hardware, and / or time references. An integrated circuit may be configured such that the components of the integrated circuit reside on a single piece of semiconductor material, such as silicon.
[0024] The SoC 102 may include one or more processors 104. The computing device 100 may include more than one SoC 102, thereby increasing the number of processors 104 and processor cores. The computing device 100 may also include processors 104 that are not associated with the SoC 102. The individual processors 104 may be multi-core processors. The processors 104 may each be configured for a specific purpose that may be the same or different than the other processors 104 of the computing device 100. One or more of the processors 104 and processor cores of the same or different configurations may be grouped together. A group of processors 104 or processor cores may be referred to as a multi-processor cluster.
[0025] The memory 106 of the SoC 102 may be a volatile or non-volatile memory configured to store data and processor-executable code for access by the processor 104 or other components of the SoC 102. The computing device 100 and / or the SoC 102 may include one or more memories 106 configured for various purposes. The one or more memories 106 may include volatile memories, such as random access memory (RAM) or main memory, or cache memory. These memories 106 may be configured to temporarily hold a limited amount of data received from a data sensor or subsystem, a limited amount of data and / or processor-executable code instructions that are requested from the non-volatile memory and loaded from the non-volatile memory into the memory 106 in anticipation of future access based on various factors, and / or a limited amount of intermediate processing data and / or processor-executable code instructions generated by the processor 104 that are not stored in the non-volatile memory but are temporarily stored for quick future access. In some embodiments, any number and combination of the memories 106 may include one-time programmable or read-only memory.
[0026] The memory 106 may be configured to at least temporarily store data and processor-executable code that is loaded into the memory 106 from another memory device, such as another memory 106 or memory 114, for access by one or more of the processor 104 or other components of the SoC 102. The data or processor-executable code loaded into the memory 106 may be loaded in response to execution of a function by the processor 104 or other components of the SoC 102. Loading of data or processor-executable code into the memory 106 in response to execution of a function may result from a memory access request to the memory 106 that is unsuccessful or a "miss" due to the requested data or processor-executable code not being present in the memory 106. In response to the miss, a memory access request may be made to another memory 106 or memory 114 to load the requested data or processor-executable code into the memory 106 from the other memory 106 or memory 114. The loading of data or processor-executable code into memory 106 in response to the execution of a function may result from a memory access request to another memory 106 or memory 114, and the data or processor-executable code may be loaded into memory 106 for later access.
[0027] The memory interface 110 and the memory 114 may work in concert to enable the computing device 100 to store and retrieve data and processor-executable code on and from a volatile and / or non-volatile storage medium. The memory 114 may be configured much like the embodiments of the memory 106 such that the memory 114 may store data or processor-executable code for access by the processor 104 or one or more of the other components of the SoC 102. In some embodiments, the memory 114, being non-volatile, may retain information after the computing device 100 is powered off. When power is applied again and the computing device 100 reboots, the information stored on the memory 114 may be available to the computing device 100. In some embodiments, the memory 114, being volatile, may not retain information after the computing device 100 is powered off. The memory interface 110 may control access to the memory 114 and allow the processor 104 or other components of the SoC 102 to read data from and write data to the memory 114 .
[0028] The timers 124 may include any number and combination of timers 124. The timers 124 may be configured to count an interval, which may be predetermined or calculated. The timers 124 may be configured to issue a trigger or interrupt signal to the processor 104, or other components of the SoC 102, upon completion of the interval. The signal may prompt the component that received the signal to perform a function. The intervals may be configurable for different processors 104, other components of the SoC 102, and / or applications.
[0029] Some or all of the components of computing device 100 and / or SoC 102 may be arranged and / or combined differently while still performing the functionality of the various embodiments. Computing device 100 may not be limited to one of each of the components, and multiple instances of each component may be included in various configurations of computing device 100.
[0030] 2 illustrates components of a timer module 200 (e.g., timer 124 of FIG. 1) of an integrated circuit, such as SoC 102 (FIG. 1), suitable for implementing some embodiments. With reference to FIGS. 1 and 2, an integrated circuit may include any number and combination of timer modules 200. Timer module 200 may include hardware and / or software components, including any number and combination of timers 202, timer fault detector 204, timer comparator 206, timer operation status module 208, timer function status module 210, and timebase adjuster 212.
[0031] The timer 202 may be configured to count an interval, which may be predetermined or calculated. The timer 124 may be configured to issue a trigger or interrupt signal upon completion of counting the interval to a processor (e.g., processor 104 of FIG. 1) or other component of the integrated circuit, such as a component of a SoC (e.g., SoC 102 of FIG. 1). The signal may prompt the component that receives the signal to perform a function. The interval may be configurable for different processors, other components of the integrated circuit, and / or applications.
[0032] In some embodiments, the timer 202 may be configured to count any number and combination of intervals. In some embodiments, multiple timers 202 may be implemented by the timer module 200. In some embodiments, different timers 202 may be configured with different intervals. In some embodiments, the timer 202 may be configured to store any number and combination of interval and / or count values in a memory (not shown), such as a memory integrated into the timer module 200, such as integrated into the timer 202, and / or a memory separate from the timer module 200 (e.g., memory 116 of FIG. 1). In some embodiments, the different timers 202 may operate on independent time bases.
[0033] The timer comparator 206 may compare at least two timers 202. The timer comparator 206 may compare the independent time bases of the at least two timers 202. The timer comparator 206 may determine or calculate the difference between the independent time bases of the at least two timers 202. Any number and combination of timer comparators 206 may be implemented. As another example, the timer comparator 206 may be configured to determine the difference between the independent time bases of a timer 202 and any number and combination of other timers 202. As another example, the timer comparator 206 may be configured to determine the difference between various timers 202. As another example, each of the multiple timer comparators 206 may be configured to determine the difference between the independent time bases of the associated timer 202 and any number and combination of other timers 202. In some embodiments, the timer comparators 206 may share the results of the comparison with any number and combination of timer fault detectors 204. In some embodiments, the timer comparators 206 may share the results of the comparison with any number and combination of time base adjusters 212. The timer comparator 206 may be configured to compare the independent time bases of the timers 202 periodically, based on an event, and / or continuously.
[0034] The timer failure detector 204 may be configured to monitor and detect if the timer 202 has failed. The timer failure detector 204 may be configured to detect if the timer 202 has failed by any of a variety of known means. Any number and combination of timer failure detectors 204 may be implemented. For example, the timer failure detector 204 may be configured to determine if the timer 202 has failed by a result of a comparison between the timer 202 and at least one other timer 202. As another example, the timer failure detector 204 may be configured to determine if the timer 202 has failed by a result of a comparison between the various timers 202. As another example, each of the multiple timer failure detectors 204 may be configured to determine if the timer 202 has failed by a result of a comparison between the timer 202 and a timer 202 associated with the timer failure detector 204, and share the determination of whether the timer 202 has failed with the other timer failure detectors 204. In some embodiments, the result of the comparison between the timers 202 may be provided to the timer failure detector 204 by the timer comparator 206. The timer failure detector 204 may be configured to monitor and detect whether the timer 202 has failed periodically, based on an event, and / or continuously.
[0035] The timer failure detector 204 may further determine whether the failed timer 202 can still be used with time base adjustment. The timer failure detector 204 may use the results of the comparison of the failed timer 202 with other timers 202 to determine whether the failed timer 202 can still be used with time base adjustment. For example, the timer failure detector 204 may determine whether the results of the comparison of the failed timer 202 with at least one other timer 202 are consistent. The results of the comparison may be consistent by showing no variance or variance within a threshold over a period of time. In some embodiments, the period may be a time interval. In some embodiments, the period may be a number of iterations of the comparison.
[0036] A determination by the timer failure detector 204 that a timer 202 has failed may be signaled by the timer failure detector 204 to any number and combination of timer operation status modules 208. A determination made by the timer failure detector 204 that a failed timer 202 may still be used with a time base adjustment may be signaled by the timer failure detector 204 to any number and combination of timer operation status modules 208, as well as any number and combination of time base adjusters 212. The timer failure detector 204 may signal a determination that a failed timer 202 may not still be used to any number and combination of timer function status modules 210.
[0037] The timer operation status module 208 may modify and / or store operation statuses associated with any number and combination of timers 202. The operation status of a timer 202 may include a status as an operating timer, a monitor timer, and a failed timer. The operating timer status may indicate to any number and combination of timer fault detectors 204 that the timer 202 is monitored against timers 202 having a monitor timer status. The operating timer status may also indicate to the timer 202 to issue a trigger signal or an interrupt signal to a processor or other component of the integrated circuit upon completion of counting an interval. The monitor timer status may indicate to any number and combination of timer fault detectors 204 that the timer 202 is monitored against timers 202 having an operating timer status and other timers 202 having a monitor timer status. The failed timer status may indicate to any number and combination of timer fault detectors 204 that the timer 202 is evaluated for whether the timer 202 can still be used with a time base adjustment. The timer operation status module 208 may modify and / or store the operation status in a memory (not shown), such as a memory integrated into the timer module 200, such as integrated into the timer operation status module 208, and / or a memory separate from the timer module 200 (e.g., memory 116 of FIG. 1). The timer operation status module 208 may be implemented for any number and combination of timers 202. For example, the timer operation status module 208 modifies and / or stores the operation status of an associated timer 202. As another example, the timer operation status module 208 modifies and / or stores the operation status in association with multiple timers 202. Any number and combination of timer operation status modules 208 may be implemented.
[0038] The timer function status module 210 may modify and / or store function status associated with any number and combination of timers 202. The function status of a timer 202 may include a status as a non-functioning timer. The function status may indicate to any number and combination of timer fault detectors 204 and timer comparators 206 that the timer 202 is not being monitored or compared. The timer function status module 210 may modify and / or store the function status in a memory (not shown), such as a memory integrated with the timer module 200, such as integrated with the timer function status module 210, and / or a memory separate from the timer module 200 (e.g., memory 116 of FIG. 1). The timer function status module 210 may be implemented for any number and combination of timers 202. For example, the timer function status module 210 modifies and / or stores the function status of an associated timer 202. As another example, the timer function status module 210 modifies and / or stores the function status in association with multiple timers 202. Any number and combination of timer function status modules 210 may be implemented.
[0039] The timebase adjuster 212 may implement the timebase adjustment for any number and combination of timers 202 for which the timer failure detector 204 has indicated that the timers 202 may still be used with the timebase adjustment. The timebase adjuster may adjust the independent timebase of the timers 202 upon monitor timer operation status indicated by the timer operation status module 208. The independent timebase of the timer 202 may be adjusted based on a difference between the independent timebase of the timer 202 and at least one other timer 202, as described further herein. The independent adjusted timebase of the timer 202 may be used by the timer comparator to perform a comparison of the independent timebase of the timer 202 compared to the independent timebase of the at least one other timer 202. Any number and combination of timebase adjusters 212 may be implemented for any number and combination of detector timers 202.
[0040] 3A-4D show an example of SoC timer fault detection and recovery using independent and redundant timers to implement various embodiments. With reference to FIGS. 1-4D, system-on-chip (SoC) timer fault detection and recovery may be implemented on an integrated circuit, such as SoC 102 (FIG. 1), via independent and redundant timer system 300, which may be implemented in hardware and / or software (e.g., processor 104, timer 124, timer module 200, timer 202, timer fault detector 204, timer comparator 206, timer operation status module 208, timer function status module 210, timebase adjuster 212, FIG. 1).
[0041] The independent and redundant timer system 300 may include at least three independent timers 302a, 302b, 302c, 402a, 402b, 402c (e.g., timer 124 of FIG. 1, timer module 200 of FIG. 2, timer 202, timer fault detector 204, timer comparator 206, timer operation status module 208, timer function status module 210, time base adjuster 212) operating in parallel, including at least one operating timer and at least one monitor timer. Some embodiments may include at least two monitor timers. Each of the timers 302a, 302b, 302c, 402a, 402b, 402c may be made immune to interference from the other timers 302a, 302b, 302c, 402a, 402b, 402c at the hardware level, software level, and physical layout and logical level. The operational timers may perform periodic functions, such as sending interrupt and / or trigger signals to a processor or other components of the SoC (e.g., the SoC 102, the processor 104 of FIG. 1) on different time slices. The monitor timers may detect failure of the operational timers. As described further herein, the operational and functional status of the timers 302a, 302b, 302c, 402a, 402b, 402c may change based on various factors that change which timers 302a, 302b, 302c, 402a, 402b, 402c are operational, monitor, or non-functional timers.
[0042] Each timer 302a, 302b, 302c, 402a, 402b, 402c can operate on a different independent time base (ITB0, ITB1, ITB2). The timers 302a, 302b, 302c, 402a, 402b, 402c can send and receive timestamps 304a, 304b, 304c, 404a, 404b, 404c from the other timers 302a, 302b, 302c, 402a, 402b, 402c. For example, a monitor timer can receive timestamps from a running timer and another monitor timer and transmit the monitor timer's timestamp. A running timer can transmit the running timer's timestamp to a monitor timer. The timestamps 304a, 304b, 304c, 404a, 404b, 404c of the different timers 302a, 302b, 302c, 402a, 402b, 402c may be compared to check for failures of the other timers 302a, 302b, 302c, 402a, 402b, 402c.
[0043] Although Figures 3A-3D and 4A-4D show different examples, these examples are not mutually exclusive and may be combined. Thus, similar timers 302a, 302b, 302c, 402a, 402b, 402c may function similarly to the description of the examples of Figures 3A-3D and 4A-4D. For example, Figures 3A-3D show exemplary timers 302a, 302b, 302c in which a monitor timer monitors an operational timer for failures, but timers 302a, 302b, 302c may further function as exemplary timers 402a, 402b, 402c shown in Figures 4A-4D in which an operational timer and a monitor timer may monitor the monitor timer for failures. As another example, although FIGS. 4A-4D show exemplary timers 402a, 402b, 402c in which an operational timer and a monitor timer may monitor the monitor timer for failures, timers 402a, 402b, 402c may further function as exemplary timers 302a, 302b, 302c shown in FIGS. 3A-3D in which a monitor timer monitors the operational timer for failures.
[0044] 3A-3D show an example of using monitor timers to monitor operation timers. FIG. 3A shows an example of an independent and redundant timer system 300 having a first operation timer 302a operating on ITB0, a first monitor timer 302b operating on ITB1, and a second monitor timer 302c operating on ITB2. Each of the timers 302a, 302b, 302c may have a corresponding operation status, an operation timer status of the first operation timer 302a, and a monitor timer status of the first monitor timer 302b and the second monitor timer 302c. Any of the timers 302a, 302b, 302c may have a non-functional function status.
[0045] The first operation timer 302a may transmit a timestamp 304a to the first monitor timer 302b and the second monitor timer 302c. The first monitor timer 302b may transmit a timestamp 304b to the second monitor timer 302c, and the second monitor timer 302c may transmit a timestamp 304c to the first monitor timer 302b. The first monitor timer 302b may compare the independent time bases of the first operation timer 302a and the first monitor timer 302b based on its timestamp 304a to determine whether the first operation timer 302a has failed. The second monitor timer 302c may compare the independent time bases of the first operation timer 302a and the second monitor timer 302c based on its timestamp 304a to determine whether the first operation timer 302a has failed. The first monitor timer 302b and / or the second monitor timer 302c may determine that the first operational timer 302a has failed based on a comparison of the independent time bases resulting in a difference between the independent time bases. In some embodiments, the difference between the independent time bases may be any difference between the independent time bases of the timers 302a, 302b, 302c. In some embodiments, the difference between the independent time bases of the timers 302a, 302b, 302c may exceed a threshold value.
[0046] FIG. 3B illustrates an example of an independent redundant timer system 300 in which a first operational timer 302a of FIG. 3A has been determined to have failed. The operational status of the timer 302a may be changed from an operational timer status to a failed timer status, and the first operational timer 302a of FIG. 3A becomes the failed timer 302a of FIG. 3B. The transition of the operational status of the failed timer 302a may result in the independent redundant timer system 300 having no operational timers. To avoid having no operational timers, any of the monitor timers 302b, 302c of FIG. 3A may have their operational status changed from a monitor timer status to an operational timer status. In this example, the operational status of the timer 302b may be changed from a monitor timer status to an operational timer status, and the first monitor timer 302b of FIG. 3A becomes the second operational timer 302b of FIG. 3B. The change from the first operation timer 302a and the first monitor timer 302b of Fig. 3A to the failure timer 302a and the second operation timer 302b of Fig. 3B may occur within a fault-tolerant time interval of a time-critical system. The second operation timer 302b may send a timestamp 304b to a second monitor timer 302c, which may monitor the second operation timer 302b for failures.
[0047] The fault timer 302a may be evaluated to determine whether it may be used as a monitor timer or may remain excluded from use. The independent time base (ITB0) of the fault timer 302a may be compared to the independent time base (ITB1) of the second operation timer 302b and / or the independent time base (ITB2) of the second monitor timer 302c. These comparisons may determine whether there is a difference (Δ1) between the independent time base of the fault timer 302a and the independent time base of the second operation timer 302b and / or whether there is a difference (Δ2) between the independent time base of the fault timer 302a and the independent time base of the second monitor timer 302c. It may be determined over time whether the independent time base difference Δ1 with the second operation timer 302b and / or the independent time base difference Δ2 with the second monitor timer 302c are consistent. For example, whether ITB0+ / -Δ1=ITB1 and / or ITB0+ / -Δ2=ITB2 may be determined repeatedly, e.g., over a defined number of iterations, a deterministic time interval, etc., until there is sufficient confidence that the independent time base differences are consistent.
[0048] FIG. 3C illustrates an example of an independent redundant timer system 300 in which the failure timer 302a of FIG. 3B is determined to have a consistent independent time base difference Δ1 with the second operation timer 302b and / or a consistent independent time base difference Δ2 with the second monitor timer 302c. In response to determining a consistent independent time base difference Δ1 with the second operation timer 302b and / or a consistent independent time base difference Δ2 with the second monitor timer 302c, the operation status of the failure timer 302a of FIG. 3B may be changed from a failure timer status to a monitor timer status, and the failure timer 302a of FIG. 3B becomes the third monitor timer 302a of FIG. 3C. The third monitor timer 302a may assume the role of a monitor timer that monitors operation timers such as the second operation timer 302b for failures. The second operation timer 302b may transmit a timestamp 304b to the third monitor timer 302a and the second monitor timer 302c. The third monitor timer 302a can transmit a timestamp 304a to the second monitor timer 302c, and the second monitor timer 302c can transmit a timestamp 304c to the third monitor timer 302c.
[0049] However, to account for a previous failure of the timer 302a, the third monitor timer 302a may operate on an adjusted independent time base. The adjusted independent time base of the third monitor timer 302a may be the independent time base (ITB0) of the fault timer 302a of FIG. 3B adjusted by the difference (Δ1) between the independent time bases of the fault timer 302a of FIG. 3B and the second operation timer 302b, e.g., ITB0+Δ1, or the difference (Δ2) between the independent time bases of the fault timer 302a of FIG. 3B and the second monitor timer, e.g., ITB0+Δ2.
[0050] 3D illustrates an example of an independent redundant timer system 300 in which the faulty timer 302a of FIG. 3B is determined not to have a consistent independent time base difference Δ1 with the second operating timer 302b and / or a consistent independent time base difference Δ2 with the second monitor timer 302c. In response to not determining a consistent independent time base difference Δ1 with the second operating timer 302b and / or a consistent independent time base difference Δ2 with the second monitor timer 302c, the functional status of the faulty timer 302a of FIG. 3B may be changed to a non-functional status, and the faulty timer 302a of FIG. 3B becomes a non-functioning timer 302a of FIG. 3D. As a non-functioning timer, the non-functioning timer 302a may be ignored by the remainder of the independent redundant timer system 300. The non-functioning timer 302a may be effectively removed from the independent redundant timer system 300 until the independent redundant timer system 300 is fully recovered. The second monitor timer 302c may continue to receive timestamps 304b from the second operating timer 302b and monitor the second operating timer 302b for failures.
[0051] 4A-4D show an example of using an operational timer and a monitor timer to monitor another monitor timer. FIG. 4A shows an example of an independent and redundant timer system 400 having a first operational timer 402a operating on ITB0, a first monitor timer 402b operating on ITB1, and a second monitor timer 402c operating on ITB2. Each of the timers 402a, 402b, 402c may have a corresponding operational status, an operational timer status of the first operational timer 402a, and a monitor timer status of the first monitor timer 402b and the second monitor timer 402c. Any of the timers 402a, 402b, 402c may have a functional status of non-functional.
[0052] The first operation timer 402a may transmit a timestamp 404a to the first monitor timer 402b and the second monitor timer 402c. The first monitor timer 402b may transmit a timestamp 404b to the second monitor timer 402c, and the second monitor timer 402c may transmit a timestamp 404c to the first monitor timer 402b. The first operation timer 402a may compare the independent time bases of the first monitor timer 402b and the first operation timer 402a based on its timestamp 404b to determine whether the first monitor timer 402b has failed. The second monitor timer 402c may compare the independent time bases of the first monitor timer 402b and the second monitor timer 402c based on its timestamp 404b to determine whether the first monitor timer 402b has failed. The first operating timer 402a and / or the second monitor timer 402c may determine that the first monitor timer 402b has failed based on a comparison of the independent time bases resulting in a difference between the independent time bases. In some embodiments, the difference between the independent time bases may be any difference between the independent time bases of the timers 402a, 402b, 402c. In some embodiments, the difference between the independent time bases of the timers 402a, 402b, 402c may exceed a threshold value.
[0053] Figure 4B illustrates an example of an independent redundant timer system 400 in which it has been determined that the first monitor timer 402b of Figure 4A has failed. The operational status of the timer 402b may be changed from a monitor timer status to a failed timer status, and the first monitor timer 402b of Figure 4A becomes the failed timer 402b of Figure 4B. The transition in the operational status of the failed timer 402b may result in fewer monitor timers in the independent redundant timer system 400. The independent redundant timer system 400 may avoid a full recovery as long as at least one monitor timer, such as the second monitor timer 402c, remains operational.
[0054] The failure timer 402b may be evaluated to determine whether it may be used again as a monitor timer or may remain removed from use. The independent time base (ITB1) of the failure timer 402b may be compared to the independent time base (ITB0) of the first operation timer 402a and / or the independent time base (ITB2) of the second monitor timer 402c. These comparisons may determine whether there is a difference (Δ3) between the independent time base of the failure timer 402b and the independent time base of the first operation timer 402a and / or whether there is a difference (Δ4) between the independent time base of the failure timer 402b and the independent time base of the second monitor timer 402c. It may be determined over time whether the independent time base difference Δ3 with the first operation timer 402a and / or the independent time base difference Δ4 with the second monitor timer 402c are consistent. For example, whether ITB1+ / -Δ3=ITB0+ITB2 and ITB1+ / -Δ4=ITB0+ITB2 may be determined repeatedly, e.g., over a defined number of iterations, deterministic time intervals, etc., until there is sufficient confidence that the independent time base differences are consistent.
[0055] FIG. 4C illustrates an example of an independent redundant timer system 400 in which the failure timer 402b of FIG. 4B is determined to have a consistent independent time base difference Δ3 with the first operation timer 402a and / or a consistent independent time base difference Δ4 with the second monitor timer 402c. In response to determining a consistent independent time base difference Δ3 with the first operation timer 402a and / or a consistent independent time base difference Δ4 with the second monitor timer 402c, the operation status of the failure timer 402b of FIG. 4B may be changed from a failure timer status to a monitor timer status, and the failure timer 402b of FIG. 4B again becomes the first monitor timer 402b of FIG. 4C. The first monitor timer 402b may assume the role of a monitor timer that monitors other monitor timers, such as the second monitor timer 402c, for failures. The first operation timer 402a may transmit a timestamp 404a to the first monitor timer 402b and the second monitor timer 402c. The first monitor timer 402b can send a timestamp 404b to the second monitor timer 402c, and the second monitor timer 402c can send a timestamp 404c to the first monitor timer 402b.
[0056] However, to account for a previous failure of the timer 402b, the first monitor timer 402b may operate on an adjusted independent time base. The adjusted independent time base of the first monitor timer 402b may be the independent time base (ITB1) of the failure timer 402b of FIG. 4B adjusted by the difference (Δ3) between the independent time bases of the failure timer 402b of FIG. 4B and the first operation timer 402a, e.g., ITB1+Δ3, or the difference (Δ4) between the independent time bases of the failure timer 402b of FIG. 4B and the second monitor timer, e.g., ITB1+Δ4.
[0057] 4D illustrates an example of an independent redundant timer system 400 in which the faulty timer 402b of FIG. 4B is determined not to have a consistent independent time base difference Δ3 with the first operating timer 402a and / or a consistent independent time base difference Δ4 with the second monitor timer 402c. In response to not determining a consistent independent time base difference Δ3 with the first operating timer 402a and / or a consistent independent time base difference Δ4 with the second monitor timer 402c, the functional status of the faulty timer 402b of FIG. 4B may be changed to a non-functional status, and the faulty timer 402b of FIG. 4B becomes a non-functioning timer 402b of FIG. 4D. As a non-functioning timer, the non-functioning timer 402b may be ignored by the remainder of the independent redundant timer system 400. The non-functioning timer 402b may be effectively removed from the independent redundant timer system 400 until the independent redundant timer system 400 fully recovers. The second monitor timer 402c may continue to receive the timestamps 404a from the first operating timer 402a and monitor the first operating timer 402a for failures.
[0058] 5 illustrates a method 500 for SoC timer failure detection and recovery using independent redundant timers, according to one embodiment. With reference to FIGS. 1-5, method 500 includes detecting and recovering from an SoC timer failure in an integrated circuit (e.g., SoC 102) or components within the integrated circuit, e.g., processor 104, timer 124, timer module 200, timer 202, timer failure detector 204, timer comparator 206, timer operation status module 208, timer function status module 210, timebase adjuster 212, timers 302a, 302b, 302c, timers 402a, 402b, 402c), in a processor (e.g., timer 124, timer module 200, timer 202, timer failure detector 204, timer comparator 206, timer operation status module 208, timer function status module 210, timebase adjuster 212, timers 302a, 302b, 302c, timers 402a, 402b, 402c). , timer fault detector 204, timer comparator 206, timer operation status module 208, timer function status module 210, timebase adjuster 212, timers 302a, 302b, 302c, timers 402a, 402b, 402c), or in a combination of a processor configured with software and dedicated hardware (e.g., independent redundant timer system 300, independent redundant timer system 400) including various memory / cache controllers as well as other individual components. To encompass alternative configurations possible in various embodiments, the hardware implementing method 500 is referred to herein as a "timer control device."
[0059] In block 502, the timer control device may execute multiple timers in parallel. The timers executing in parallel may include at least one operational timer and at least one monitor timer. In some embodiments, the at least one monitor timer may be at least two monitor timers. Each of the timers may be free from interference from other timers at the hardware level, the software level, and the physical layout and logical level. The operational timers may perform periodic functions with different time slices. In some embodiments, the monitor timer may detect a failure of the operational timer. In some embodiments, the operational timer and the monitor timer may detect a failure of another monitor timer. Each timer may operate on a different independent time base (ITB). In some embodiments, the timer control device executing multiple timers in parallel in block 502 may be a processor, a timer, and / or a timer module.
[0060] In block 504, the timer control device may monitor the timer for failure. In some embodiments, the timer control device that runs the timer may use the timer to monitor other timers for failure. In some embodiments, the timer control device that monitors the timer for failure in block 504 may be a processor, a timer, a timer module, and / or a timer comparator. In some embodiments, the monitor timer may monitor the operating timer for failure. The monitor timer may receive a timestamp from the operating timer (e.g., timestamp 304a in FIG. 3A, timestamp 404a in FIGS. 4A-4D) and use the received timestamp to compare the independent time base of the operating timer to the independent time base of the monitor timer. The monitor timer may determine that the operating timer has failed in response to determining that there is a difference between the independent time bases of the operating timer and the monitor timer. In some embodiments, the difference may be any difference. In some embodiments, the difference may be a difference that exceeds a threshold.
[0061] In some embodiments, the operational timer and the monitor timer may monitor the other monitor timer for failures. The operational timer and the monitor timer may receive a timestamp from the other monitor timer (e.g., timestamp 304b in FIG. 3A, timestamp 404b in FIG. 4A and FIG. 4C). The operational timer may use the received timestamp to compare the independent timebase of the other monitor timer to the independent timebase of the operational timer. The monitor timer may use the received timestamp to compare the independent timebase of the other monitor timer to the independent timebase of the monitor timer.
[0062] In block 506, the timer control device may detect a faulty timer. In response to determining that there is a difference between the independent time base of the operational timer and the other monitor timer, the operational timer may determine that the other monitor timer has failed. In response to determining that there is a difference between the independent time base of the other monitor timer and the monitor timer, the monitor timer may determine that the other monitor timer has failed. In some embodiments, the difference may be any difference. In some embodiments, the difference may be a difference that exceeds a threshold. In some embodiments, the timer control device that detects a faulty timer in block 506 may be a processor, a timer, a timer module, a timer comparator, and / or a timer fault detector.
[0063] At block 508, the timer control device may remove the failed timer from use. In response to detecting a failed timer, the timer control device may remove the failed timer from use and prevent the failed timer from communicating with other components of the computing device, including other timers. In some embodiments, the control device may change the operational status of the timer. The operational status may indicate the operational status of the timer to the timer and / or other components of the computing device and may indicate to the timer its functionality, such as which components the timer may communicate with and / or monitor. In some embodiments, the operational status of the time may indicate that the timer has failed and / or is unavailable. For example, a timer may have an operational status of an operational timer when it is detected that the timer has failed. The timer may have implemented the functionality and communications of an operational timer. As another example, a timer may have an operational status of a monitor timer when it is detected that the timer has failed. The timer may have implemented the functionality and communications of a monitor timer. In either example, in response to detecting a failed timer, the timer control device may set the operational status of the timer to an operational status of a failed timer and may limit the functionality and communications of the failed timer to those necessary to further evaluate the failed timer. In some embodiments, the timer control device that removes the failed timer from use in block 508 may be a processor, a timer, a timer module, a timer failure detector, and / or a timer operation status module.
[0064] In block 510, a timer control device may manage the functionality and / or operation of a timer. The timer control device may manage the functionality and / or operation of a timer, such as a failure timer, an operation timer, and / or a monitor timer, as further described herein for method 600 with reference to FIG. 6 and / or method 700 with reference to FIG. 7. In some embodiments, methods 600, 700 may be implemented independently. In some embodiments, methods 600, 700 may be implemented jointly. In some embodiments, methods 600, 700 may be implemented in parallel. In some embodiments, the timer control device managing the functionality and / or operation of a timer in block 510 may be a processor, a timer, a timer module, a timer failure detector, a timer comparator, a timer operation status module, a timer function status module, and / or a timer timebase adjuster.
[0065] Method 500 may be called recursively. In some embodiments, profiling may be implemented and reported to an overall safety control handler to determine which timers have failed, how many times the timers have failed, the number of times the timers have recovered, and the current difference in the independent time bases of each failed timer.
[0066] 6 illustrates a method 600 for SoC timer failure detection and recovery using independent redundant timers, according to one embodiment. With reference to FIGS. 1-6, the method 600 includes detecting and recovering from an SoC timer failure in an integrated circuit (e.g., SoC 102) or components within the integrated circuit, such as processor 104, timer 124, timer module 200, timer 202, timer failure detector 204, timer comparator 206, timer operation status module 208, timer function status module 210, timebase adjuster 212, timers 302a, 302b, 302c, timers 402a, 402b, 402c, etc. , timer fault detector 204, timer comparator 206, timer operation status module 208, timer function status module 210, timebase adjuster 212, timers 302a, 302b, 302c, timers 402a, 402b, 402c), or in a combination of a processor configured with software and dedicated hardware (e.g., independent redundant timer system 300, independent redundant timer system 400) including various memory / cache controllers as well as other individual components. To encompass alternative configurations possible in various embodiments, the hardware implementing method 600 is referred to herein as a "timer control device."
[0067] In the method 500 described with reference to FIG. 5, the timer control device may have detected, in block 506, a running timer as a failed timer and, in block 508, removed the failed (running) timer from use.
[0068] In block 602, the timer control device may set the monitor timer as an operational timer. The timer control device may change the operational status of the monitor timer from the operational status of the monitor timer to the operational status of the operational timer. The operational status of the timer may indicate to the timer to implement the functionality and communication of the operational timer. The monitor timer converted to an operational timer may replace a failed (operating) timer. In some embodiments, the conversion of the monitor timer to an operational timer may be performed within a fault-tolerant time interval of a time-critical system. In some embodiments, the timer control device that sets the monitor timer as an operational timer in block 602 may be a processor, a timer, a timer module, a timer failure detector, and / or a timer operational status module.
[0069] In block 604, the timer control device may determine a difference between the independent time bases of the operational and fault timers, and / or a difference between the independent time bases of the monitor and fault timers. The fault timer may be evaluated to determine whether it may be used as a monitor timer or may remain excluded from use by comparing the independent time base of the fault timer to the independent time base of the operational timer and / or the independent time base of the monitor timer. These comparisons may determine whether there is a difference between the independent time base of the fault timer and the independent time base of the operational timer, and / or whether there is a difference between the independent time base of the fault timer and the independent time base of the second monitor timer. In some embodiments, the timer control device that determines the difference between the independent time bases of the operational and fault timers, and / or the difference between the independent time bases of the monitor and fault timers in block 604 may be a processor, a timer, a timer module, and / or a timer comparator.
[0070] In decision block 606, the timer control device may determine whether the difference between the independent time bases of the operational timer and the fault timer, and / or the difference between the independent time bases of the monitor timer and the fault timer are consistent. Whether the independent time base difference with the operational timer and / or the independent time base difference with the monitor timer is consistent may be determined over time. For example, whether the difference between the independent time bases with the operational timer and / or the monitor timer is consistent may be determined repeatedly, e.g., over a defined number of iterations, a deterministic time interval, etc., until there is sufficient confidence that the difference between the independent time bases is consistent. In some embodiments, the timer control device that determines whether the difference between the independent time bases of the operational timer and the fault timer, and / or the difference between the independent time bases of the monitor timer and the fault timer are consistent in decision block 606 may be a processor, a timer, a timer module, a timer fault detector, and / or a timer comparator.
[0071] In response to determining that the difference between the independent timebases of the operational and fault timers and / or the difference between the independent timebases of the monitor and fault timers are consistent (i.e., decision block 606="Yes"), the timer control device may adjust the independent timebase of the fault timer using the difference between the independent timebases of the operational and fault timers and / or the difference between the independent timebases of the monitor and fault timers in block 608. The independent timebase of the fault timer may be adjusted with a time adjustment to account for a previous failure of the fault timer. The adjusted independent timebase of the fault timer may be the independent timebase of the fault timer adjusted with the difference between the independent timebases of the fault timer and the operational timer or the difference between the independent timebases of the fault timer and the monitor timer. In some embodiments, the timer control device that adjusts the independent timebase of the fault timer using the difference between the independent timebases of the operational and fault timers and / or the difference between the independent timebases of the monitor and fault timers in block 608 may be a processor, a timer, a timer module, a timer failure detector, and / or a timer timebase adjuster.
[0072] In block 610, the timer control device may set the failure timer as a monitor timer. The timer control device may change the operation status of the failure timer from the operation status of the failure timer to the operation status of the monitor timer. The operation status of the timer may indicate to the timer to implement the functions and communications of the monitor timer. The failure timer converted to a monitor timer may replace the monitor timer converted to an operation timer in block 602. In some embodiments, the timer control device that sets the failure timer as a monitor timer in block 610 may be a processor, a timer, a timer module, a timer failure detector, and / or a timer operation status module.
[0073] In response to determining that the difference between the independent time bases of the operational and fault timers and / or the difference between the independent time bases of the monitor and fault timers are not consistent (i.e., decision block 606="No"), the timer control device may set the fault timer to a non-functioning timer in block 612. The timer control device may change the functionality status of the fault timer to a non-functioning timer. A timer assigned a non-functioning timer status may not implement any timer functionality and / or communication and / or may be ignored by components of the computing device. A non-functioning timer may remain a non-functioning timer until the independent redundant timer system is fully restored. In some embodiments, the timer control device that sets the fault timer to a non-functioning timer in block 612 may be a processor, a timer, a timer module, a timer failure detector, and / or a timer functionality status module.
[0074] 7 illustrates a method 700 for SoC timer failure detection and recovery using independent redundant timers, according to one embodiment. With reference to FIGS. 1-7, method 700 includes detecting and recovering from an SoC timer failure in an integrated circuit (e.g., SoC 102) or components within the integrated circuit, e.g., processor 104, timer 124, timer module 200, timer 202, timer failure detector 204, timer comparator 206, timer operation status module 208, timer function status module 210, timebase adjuster 212, timers 302a, 302b, 302c, timers 402a, 402b, 402c), in a processor (e.g., timer 124, timer module 200, timer 202, timer failure detector 204, timer comparator 206, timer operation status module 208, timer function status module 210, timebase adjuster 212, timers 302a, 302b, 302c, timers 402a, 402b, 402c). , timer fault detector 204, timer comparator 206, timer operation status module 208, timer function status module 210, timebase adjuster 212, timers 302a, 302b, 302c, timers 402a, 402b, 402c), or in a combination of a processor configured with software and dedicated hardware (e.g., independent redundant timer system 300, independent redundant timer system 400) including various memory / cache controllers as well as other individual components. To encompass alternative configurations possible in various embodiments, the hardware implementing method 700 is referred to herein as a "timer control device."
[0075] In the method 500 described with reference to FIG. 5, the timer control device may have detected the monitor timer as a failed timer in block 506 and removed the failed (monitor) timer from use in block 508 .
[0076] In block 702, the timer control device may determine a difference between the independent time bases of the operational and fault timers, and / or a difference between the independent time bases of the monitor and fault timers. The fault timer may be evaluated to determine whether it may be used as a monitor timer or may remain excluded from use by comparing the independent time base of the fault timer to the independent time base of the operational timer and / or the independent time base of the monitor timer. These comparisons may determine whether there is a difference between the independent time base of the fault timer and the independent time base of the operational timer, and / or whether there is a difference between the independent time base of the fault timer and the independent time base of the second monitor timer. In some embodiments, the timer control device that determines the difference between the independent time bases of the operational and fault timers, and / or the difference between the independent time bases of the monitor and fault timers in block 702 may be a processor, a timer, a timer module, and / or a timer comparator.
[0077] At decision block 704, the timer control device may determine whether the difference between the independent time bases of the operational timer and the fault timer, and / or the difference between the independent time bases of the monitor timer and the fault timer are consistent. Whether the independent time base difference with the operational timer and / or the independent time base difference with the monitor timer is consistent may be determined over time. For example, whether the difference between the independent time bases of the operational timer and / or the monitor timer is consistent may be determined repeatedly, e.g., over a defined number of iterations, a deterministic time interval, etc., until there is sufficient confidence that the difference between the independent time bases is consistent. In some embodiments, the timer control device that determines whether the difference between the independent time bases of the operational timer and the fault timer, and / or the difference between the independent time bases of the monitor timer and the fault timer are consistent at decision block 704 may be a processor, a timer, a timer module, a timer fault detector, and / or a timer comparator.
[0078] In response to determining that the difference between the independent timebases of the operational and fault timers and / or the difference between the independent timebases of the monitor and fault timers are consistent (i.e., decision block 704="Yes"), the timer control device may adjust the independent timebase of the fault timer in block 706 with a time adjustment using the difference between the independent timebases of the operational and fault timers and / or the difference between the independent timebases of the monitor and fault timers. Thus, the independent timebase of the fault timer may be adjusted to account for a previous failure of the fault timer. The adjusted independent timebase of the fault timer may be the independent timebase of the fault timer adjusted with the difference between the independent timebases of the fault timer and the operational timer or adjusted with the difference between the independent timebases of the fault timer and the monitor timer. In some embodiments, the timer control device that adjusts the independent timebase of the fault timer in block 706 using the difference between the independent timebases of the operational and fault timers and / or the difference between the independent timebases of the monitor and fault timers may be a processor, a timer, a timer module, a timer failure detector, and / or a timer timebase adjuster.
[0079] In block 708, the timer control device may set the failure timer as a monitor timer. The timer control device may change the operation status of the failure timer from the operation status of the failure timer to the operation status of the monitor timer. The operation status of the timer may indicate to the timer to implement the functions and communications of the monitor timer. The failure timer that was converted to a monitor timer may be restored to the monitor timer that was converted to a failure timer in block 508 of the method 500 described herein with reference to FIG. 5. In some embodiments, the timer control device that sets the failure timer as a monitor timer in block 708 may be a processor, a timer, a timer module, a timer failure detector, and / or a timer operation status module.
[0080] In response to determining that the difference between the independent time bases of the operational and fault timers and / or the difference between the independent time bases of the monitor and fault timers are not consistent (i.e., decision block 704="No"), the timer control device may set the fault timer to a non-functioning timer in block 710. The timer control device may change the functionality status of the fault timer to a non-functioning timer. A timer assigned a non-functioning timer status may not implement any timer functionality and / or communication and / or may be ignored by components of the computing device. A non-functioning timer may remain a non-functioning timer until the independent redundant timer system is fully restored. In some embodiments, the timer control device that sets the fault timer to a non-functioning timer in block 710 may be a processor, a timer, a timer module, a timer fault detector, and / or a timer functionality status module.
[0081] Systems according to various embodiments (including but not limited to those described above with reference to FIGS. 1-7) may be implemented in a wide variety of computing systems, including mobile computing devices, one example of a mobile computing device suitable for use with various embodiments is shown in FIG. 8. The mobile computing device 800 may include a processor 802 coupled to a touchscreen controller 804 and an internal memory 806. The processor 802 may be one or more multi-core integrated circuits, general purpose or designated for specific processing tasks. The internal memory 806 may be volatile or non-volatile memory, and may be secure and / or encrypted or non-secure and / or non-encrypted memory, or any combination thereof. Examples of memory types that may be utilized include, but are not limited to, DDR, LPDDR, GDDR, WIDEIO, RAM, SRAM, DRAM, P-RAM, R-RAM, M-RAM, STT-RAM, and embedded DRAM. The touchscreen controller 804 and the processor 802 may also be coupled to a touchscreen panel 812, such as a resistive sensing touchscreen, a capacitive sensing touchscreen, an infrared sensing touchscreen, or the like. Additionally, the display of the mobile computing device 800 need not have touch screen capabilities.
[0082] The mobile computing device 800 may have one or more wireless signal transceivers 808 (e.g., Peanut, Bluetooth, ZigBee, Wi-Fi, RF radio) for transmitting and receiving communications and an antenna 810 coupled to each other and / or to the processor 802. The transceivers 808 and antennas 810 may be used with the circuitry described above to implement various wireless transmission protocol stacks and interfaces. The mobile computing device 800 may include a cellular network wireless modem chip 816 that enables communication over a cellular network and is coupled to the processor.
[0083] The mobile computing device 800 may include a peripheral device connection interface 818 coupled to the processor 802. The peripheral device connection interface 818 may be solely configured to accept one type of connection or may be configured to accept various types of common or proprietary physical and communication connections, such as Universal Serial Bus (USB), FireWire, Thunderbolt, or PCIe. The peripheral device connection interface 818 may also be coupled to a similarly configured peripheral device connection port (not shown).
[0084] The mobile computing device 800 may also include a speaker 814 for providing audio output. The mobile computing device 800 may also include a housing 820 constructed of plastic, metal, or a combination of materials for enclosing all or a portion of the components described herein. The mobile computing device 800 may also include a power source 822 coupled to the processor 802, such as a disposable or rechargeable battery. The rechargeable battery may be coupled to a peripheral device connection port to receive charging current from a power source external to the mobile computing device 800. The mobile computing device 800 may also include a physical button 824 for receiving user input. The mobile computing device 800 may include a power button 824 for turning the mobile computing device 800 on and off.
[0085] Systems according to various embodiments (including but not limited to those described above with reference to FIGS. 1-7) may be implemented in a wide variety of computing systems, including a laptop computer 900, an example of which is shown in FIG. 9. Many laptop computers include a touchpad touch surface 917 that serves as the computer's pointing device and may therefore receive drag, scroll, and flick gestures similar to those implemented on the computing devices described above equipped with touch screen displays. The laptop computer 900 typically includes a processor 902 coupled to a volatile memory 912 and a large capacity non-volatile memory, such as a flash memory disk drive 913. In addition, the computer 900 may have one or more antennas 908 for transmitting and receiving electromagnetic radiation, which may be connected to a wireless data link and / or a cellular telephone transceiver 916 coupled to the processor 902. The computer 900 may also include a floppy disk drive 914 and a compact disk (CD) drive 915 coupled to the processor 902. In a notebook configuration, the computer housing includes a touchpad 917, a keyboard 918, and a display 919, all coupled to the processor 902. Other configurations of computing devices may include a computer mouse or trackball coupled to the processor (e.g., via a USB port), as is well known, and these may also be used with the various embodiments.
[0086] Systems according to various embodiments (including but not limited to those described above with reference to FIGS. 1-7) may be implemented in a fixed computing system, such as any of a variety of commercially available servers. An exemplary server 1000 is shown in FIG. 10. Such a server 1000 typically includes one or more multi-core processor assemblies 1001 coupled to volatile memory 1002 and large capacity non-volatile memory, such as a disk drive 1004. As shown in FIG. 10, multi-core processor assemblies 1001 may be added to the server 1000 by inserting them into a rack of assemblies. The server 1000 may also include a floppy disk drive, compact disk (CD), or digital versatile disk (DVD) disk drive 1006 coupled to the processor 1001. The server 1000 may also include a network access port 1003 coupled to the multi-core processor assembly 1001 for establishing a network interface connection with a network 1005, such as a local area network, the Internet, a public switched telephone network, and / or a cellular data network (e.g., CDMA, TDMA, GSM, PCS, 3G, 4G, LTE, 5G, or any other type of cellular data network) coupled to other broadcast system computers and servers.
[0087] Example implementations are described in the following paragraphs. Although some of the example implementations below are described with respect to example methods, further example implementations may include the example methods described in the following paragraphs implemented by an integrated circuit including a processor configured to cause processor-executable instructions to perform the operations of the example methods, the example methods described in the following paragraphs implemented by an integrated circuit including means for performing the functions of the example methods, and the example methods described in the following paragraphs implemented as a non-transitory processor-readable storage medium having stored thereon processor-executable instructions configured to cause an integrated circuit to perform the operations of the example methods.
[0088] Example 1. A method of timer failure detection and recovery comprising: running a plurality of timers in parallel, the plurality of timers having at least a first timer, a second timer, and a third timer, each having an independent time base; determining whether a first timer of the plurality of timers has failed; in response to determining that the first timer has failed, removing the first timer from use; determining whether the first timer has a consistent difference in independent time base with a second timer of the plurality of timers; and in response to determining that the first timer has a consistent difference in independent time base with the second timer, returning the first timer to use with a time adjustment.
[0089] Example 2. The method of example 1, wherein the first timer is a first operating timer and the third timer is a monitor timer, the method including converting the monitor timer to a second operating timer.
[0090] Example 3. The method of example 2, wherein converting the monitor timer to a second operational timer occurs within a fault-tolerant interval of the time-critical system.
[0091] Example 4. The method of any of Examples 1-3, wherein the first timer is an operational timer, and in response to determining that the first timer has a consistent difference of independent time bases from the second timer, returning to use of the first timer includes returning the operational timer to use as a monitor timer.
[0092] Example 5. The method of any of Examples 1-4, wherein the first timer is a monitor timer, and in response to determining that the first timer has a consistent difference of independent time bases from the second timer, returning to use of the first timer includes returning to use the monitor timer as the monitor timer.
[0093] Example 6. The method of any of Examples 1-5, comprising, in response to determining that the first timer has a consistent difference of the independent time base from the second timer, adjusting the independent time base of the first timer as a time adjustment using the consistent difference of the independent time base from the second timer.
[0094] Example 7. The method of any of Examples 1-6, including determining whether a first timer has a consistent difference in independent time base with a third timer of the plurality of timers, and in response to determining that the first timer has a consistent difference in independent time base with the third timer, returning the first timer to use with a time adjustment.
[0095] Computer program code or "program code" for execution on a programmable processor to perform operations of various embodiments may be written in a high-level programming language such as C, C++, C#, Smalltalk, Java, JavaScript, Visual Basic, Structured Query Language (e.g., Transact-SQL), Perl, or a variety of other programming languages. Program code or programs stored on a computer-readable storage medium as used in this application may refer to machine code (such as object code) whose format is understandable by a processor.
[0096] The above method descriptions and process flow diagrams are provided as illustrative examples only and do not require or imply that the operations of the various embodiments must be performed in the order presented. As will be appreciated by one of ordinary skill in the art, the order of operations in the above-described embodiments may be performed in any order. Terms such as "then," "then," and "next" do not limit the order of operations; these terms are merely used to guide the reader through the method description. Additionally, any reference to a claim element in the singular, for example, using the articles "a," "an," or "the," should not be construed as limiting the element to the singular.
[0097] The various exemplary logic blocks, modules, circuits, and algorithmic operations described with respect to the various embodiments may be implemented as electronic hardware, computer software, or a combination of both. To clearly illustrate this interchangeability of hardware and software, the various exemplary components, blocks, modules, circuits, and operations have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the particular application and design constraints imposed on the overall system. Those skilled in the art may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the claims.
[0098] The hardware used to implement the various example logic, logic blocks, modules, and circuits described in connection with the embodiments disclosed herein may be implemented or performed using general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but alternatively, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration. Alternatively, some operations or methods may be performed by circuitry specific to a given function.
[0099] In one or more embodiments, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored as one or more instructions or codes on a non-transitory computer-readable medium or a non-transitory processor-readable medium. The operations of the methods or algorithms disclosed herein may be embodied in a processor-executable software module that may reside on a non-transitory computer-readable storage medium or a non-transitory processor-readable storage medium. A non-transitory computer-readable storage medium or a non-transitory processor-readable storage medium may be any storage medium that may be accessed by a computer or a processor. By way of example and not limitation, such a non-transitory computer-readable medium or a processor-readable medium may include RAM, ROM, EEPROM, FLASH memory, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that may be used to store desired program code in the form of instructions or data structures and that may be accessed by a computer. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically and discs reproduce data optically using lasers. Combinations of the above are also included within the scope of non-transitory computer-readable media and non-transitory processor-readable media. Additionally, operations of a method or algorithm may reside as one or any combination or set of code and / or instructions on a non-transitory processor-readable medium and / or a non-transitory computer-readable medium that may be incorporated into a computer program product.
[0100] The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the claims. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments and implementations without departing from the scope of the claims. Thus, the present disclosure is not intended to be limited to the embodiments and implementations described herein, but should be accorded the widest scope consistent with the claims and principles and novel features disclosed herein. [Explanation of symbols]
[0101] 100 computing devices 102 SoC 104 processors 106 Memory 108 Communication Interface 110 Memory Interface 112 Communication Components 114 Memory 116 Antenna 120 Peripheral Device Interface 122 Peripheral Devices 124 Timer 200 Timer Module 202 Timer 204 Timer Fault Detector 206 Timer Comparator 208 Timer operation status module 210 Timer Function Status Module 212 Time Base Adjuster 300 Independent redundant timer system 302a Timer 302b Timer 302c Timer 304a Timestamp 304b timestamp 304c Timestamp 400 Independent Redundant Timer System 402a Timer 402b Timer 402c Timer 404a Timestamp 404b timestamp 404c timestamp 500 ways 600 ways 700 methods 800 Mobile Computing Devices 802 Processor 804 Touch Screen Controller 806 Internal Memory 808 Radio Signal Transceiver 810 Antenna 812 Touch Screen Panel 814 Speaker 816 Cellular Network Wireless Modem Chip 818 Peripheral device connection interface 820 Housing 822 Power supply 824 Physical Buttons 900 Laptop Computers 902 Processor 908 Antenna 912 Volatile Memory 913 Disk Drive 914 Floppy Disk Drive 915 Compact Disc (CD) Drive 916 Cellular Telephone Transceiver 917 Touchpad 918 Keyboard 919 Display 1000 servers 1001 Multi-core Processor Assembly 1002 Volatile Memory 1003 Network Access Port 1004 Disk Drive 1005 Network 1006 Digital Versatile Disc (DVD) Disc Drive
Claims
1. 1. A method for timer fault detection and recovery, comprising: executing a plurality of timers in parallel, the plurality of timers including at least a first timer, a second timer, and a third timer, each timer having an independent time base; determining whether the first timer of the plurality of timers has failed; in response to determining that the first timer has failed, removing the first timer from use; determining whether the first timer has a consistent difference in independent time base from the second timer of the plurality of timers for a predetermined period of time; returning the first timer to use in a timed manner in response to determining that the first timer has a consistent difference in independent time base from the second timer for a predetermined period of time; A method comprising:
2. 2. The method of claim 1, wherein the first timer is a first operating timer and the third timer is a monitor timer, the method further comprising converting the monitor timer to a second operating timer.
3. 2. The method of claim 1, wherein the first timer is an operational timer, and in response to determining that the first timer has a consistent difference in an independent time base from the second timer for a predetermined period of time, returning to use of the first timer comprises returning the operational timer to use as a monitor timer.
4. 2. The method of claim 1, wherein the first timer is a monitor timer, and in response to determining that the first timer has a consistent difference in an independent time base from the second timer for a predetermined period of time, returning to use the first timer comprises returning the monitor timer to use as the monitor timer.
5. 2. The method of claim 1, further comprising: in response to determining that the first timer has a consistent difference of an independent time base from the second timer for a predetermined period of time, using the consistent difference of the independent time base from the second timer to use the independent time base of the first timer as the time adjustment.
6. determining whether the first timer has a consistent difference in independent time base from the third timer of the plurality of timers for a predetermined period of time; returning the first timer to use in a timed manner in response to determining that the first timer has a consistent difference in independent time base from the third timer for a predetermined period of time; The method of claim 1, further comprising:
7. 1. A computing device comprising: a plurality of timers configured to run in parallel, the plurality of timers including at least a first timer, a second timer, and a third timer, each timer having an independent time base; communicatively coupled to the plurality of timers; determining whether the first timer of the plurality of timers has failed; in response to determining that the first timer has failed, removing the first timer from use; determining whether the first timer has a consistent difference in independent time base from the second timer of the plurality of timers for a predetermined period of time; returning the first timer to use in a timed manner in response to determining that the first timer has a consistent difference in independent time base from the second timer for a predetermined period of time; a timer control device configured to A computing device comprising:
8. 8. The computing device of claim 7, wherein the first timer is a first operating timer and the third timer is a monitor timer, and the timer control device is further configured to convert the monitor timer to a second operating timer.
9. 8. The computing device of claim 7, wherein the first timer is a running timer, and the timer control device is further configured to, in response to determining that the first timer has a consistent difference in an independent time base from the second timer for a predetermined period of time, revert to using the first timer by reverting to using the running timer as a monitor timer.
10. 8. The computing device of claim 7, wherein the first timer is a monitor timer, and the timer control device is further configured to, in response to determining that the first timer has a consistent difference in an independent time base from the second timer for a predetermined period of time, revert to using the first timer by reverting to using the monitor timer as the monitor timer.
11. 8. The computing device of claim 7, wherein the timer control device is further configured to, in response to determining that the first timer has a consistent difference of an independent time base from the second timer for a predetermined period of time, use the consistent difference of the independent time base from the second timer to use the independent time base of the first timer as the time adjustment.
12. The timer control device comprises: determining whether the first timer has a consistent difference in independent time base from the third timer of the plurality of timers for a predetermined period of time; returning the first timer to use in a timed manner in response to determining that the first timer has a consistent difference in independent time base from the third timer for a predetermined period of time; The computing device of claim 7 , further configured to:
13. 1. A computing device comprising: means for running a plurality of timers in parallel, the plurality of timers including at least a first timer, a second timer, and a third timer, each timer having an independent time base; means for determining whether the first timer of the plurality of timers has failed; means for removing the first timer from use in response to determining that the first timer has failed; means for determining whether the first timer has a consistent difference in independent time base from the second timer of the plurality of timers for a predetermined period of time; means for returning the first timer to use in a timed manner in response to determining that the first timer has a consistent difference in independent time base from the second timer for a predetermined period of time; A computing device comprising:
14. 14. The computing device of claim 13, wherein the first timer is a first operating timer and the third timer is a monitor timer, the computing device further comprising means for converting the monitor timer to a second operating timer.
15. 14. The computing device of claim 13, wherein the means for reverting to using the first timer in response to determining that the first timer is a running timer and that the first timer has a consistent difference in an independent time base from the second timer for a predetermined period of time comprises means for reverting to using the running timer as a monitor timer.
16. 14. The computing device of claim 13, wherein the means for reverting to using the first timer in response to determining that the first timer is a monitor timer and that the first timer has a consistent difference in an independent time base from the second timer for a predetermined period of time comprises means for reverting to using the monitor timer as the monitor timer.
17. 14. The computing device of claim 13, further comprising: means for, in response to determining that the first timer has a consistent difference of an independent time base from the second timer for a predetermined period of time, using the consistent difference of the independent time base from the second timer to use the independent time base of the first timer as the time adjustment.
18. means for determining whether the first timer has a consistent difference in independent time base from the third timer of the plurality of timers for a predetermined period of time; means for returning the first timer to use in a timed manner in response to determining that the first timer has a consistent difference in independent time base from the third timer for a predetermined period of time; The computing device of claim 13 further comprising:
19. A non-transitory processor-readable storage medium having stored thereon processor-executable instructions configured to cause a processing device to perform operations, the operations including: executing a plurality of timers in parallel, the plurality of timers including at least a first timer, a second timer, and a third timer, each timer having an independent time base; determining whether the first timer of the plurality of timers has failed; in response to determining that the first timer has failed, removing the first timer from use; determining whether the first timer has a consistent difference in independent time base from the second timer of the plurality of timers for a predetermined period of time; returning the first timer to use in a timed manner in response to determining that the first timer has a consistent difference in independent time base from the second timer for a predetermined period of time; 16. A non-transitory processor-readable storage medium comprising:
20. 20. The non-transitory processor-readable storage medium of claim 19, wherein the first timer is a first operating timer and the third timer is a monitor timer, and the stored processor-executable instructions are configured to cause the processing device to perform operations further including converting the monitor timer to a second operating timer.
21. 20. The non-transitory processor-readable storage medium of claim 19, wherein the first timer is an operational timer, and the stored processor-executable instructions are configured to cause the processing device to perform operations such that in response to determining that the first timer has a consistent difference in an independent time base from the second timer for a predetermined period of time, reverting to using the first timer comprises reverting to using the operational timer as a monitor timer.
22. 20. The non-transitory processor-readable storage medium of claim 19, wherein the first timer is a monitor timer, and the stored processor-executable instructions are configured to cause the processing device to perform operations such that in response to determining that the first timer has a consistent difference in an independent time base from the second timer for a predetermined period of time, returning to using the first timer comprises returning to using the monitor timer as the monitor timer.
23. 20. The non-transitory processor-readable storage medium of claim 19, wherein the stored processor-executable instructions are configured to cause the processing device to perform operations further including, in response to determining that the first timer has a consistent difference of an independent time base from the second timer for a predetermined period of time, adjusting the independent time base of the first timer using the consistent difference of a time base independent from the second timer as the time adjustment.
24. The stored processor executable instructions include: determining whether the first timer has a consistent difference in independent time base from the third timer of the plurality of timers for a predetermined period of time; returning the first timer to use in a timed manner in response to determining that the first timer has a consistent difference in independent time base from the third timer for a predetermined period of time; 20. The non-transitory processor-readable storage medium of claim 19, configured to cause the processing device to perform operations further comprising:
Citation Information
Patent Citations
Electronic control device and electronic control method
WO2017078093A1
