RISC-V APLIC-IMSIC Lost Interrupt Detection
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Modern processors with multi-level interrupt systems often fail to detect and manage 'lost interrupt events,' where subsequent interrupts for the same target are not captured, which can be critical in safety-related contexts like automotive applications.
Innovation Solution
The proposed solution extends APLIC and IMSIC interrupt identities with lost interrupt detection mechanisms and information structures, allowing for the detection, consolidation, and notification of lost interrupt events to processing cores.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If multi-level interrupt systems are implemented to handle multiple interrupt sources with different priorities, then interrupt handling capability and system responsiveness are improved, but the system may fail to detect lost interrupt events, reducing reliability
Solution Approach 1:
The patent implements feedback mechanisms by having the interrupt controller send interrupt lost information back to the computing core. When an interrupt event is lost (detected when an interrupt arrives while the interrupt pending bit is already set), the controller sets an interrupt lost bit and transmits this information to the core, enabling the core to detect and respond to lost interrupts appropriately.
Solution Approach 2:
The patent introduces an intermediary mechanism (the interrupt lost detection and reporting system) between the interrupt controller and the computing core. This intermediary detects lost interrupt events and communicates them to the core, bridging the gap between the controller's internal state and the core's awareness of interrupt events.
2Reliability
If interrupt lost detection mechanisms are added to the interrupt system, then reliability and detectability of lost events are improved, but device complexity increases
Solution Approach 1:
The patent merges the interrupt lost detection functionality with the existing interrupt controller structure. The interrupt lost bit is integrated into the same register structure as the interrupt pending bit, and the detection logic is combined with the existing interrupt handling logic, rather than adding completely separate detection hardware.
Solution Approach 2:
The interrupt controller is enhanced to perform multiple functions: it continues to handle normal interrupt events while also detecting and reporting lost interrupt events. The same interrupt controller infrastructure serves both traditional interrupt handling and lost event detection, reducing the need for additional dedicated components.
Data Source
AI summary
Systems, methods, and circuitries are provided for detecting lost interrupt events in a reduced instruction set computer-V (RISC-V) architecture. An example architecture includes an advanced platform level interrupt controller (APLIC) and an incoming message signaled interrupt (MSI) controller (IMSIC) coupled to the APLIC. The APLIC includes a plurality of respective vectors connected to respective external interrupt inputs, wherein each vector is mapped to an interrupt priority and each vector comprises a vector interrupt lost (IL) bit. The IMSIC is configured to receive MSI from the APLIC and to maintain an interrupt file that includes a set of a set of interrupt lost (IL) bits indexed by interrupt priority.


