# US 2025/0165278 A1 · Consolidation of interrupt lost events in multi-level interrupt system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0165278 A1
- Document ID: US20250165278A1
- Status: Published application
- Kind: A1
- Application number: 18/597,086
- Filed: 2024-03-06
- Published: 2025-05-22
- Earliest claimed: 2023-11-22
- Assignees: Infineon Technologies AG
- Applicants: Infineon Technologies AG
- Inventors: Frank Hellwig
- Web page: https://patentgrep.com/patent/US20250165278A1

## CPC

- G06F 9/4831: {with variable priority}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/3009: {Thread control instructions}
- G06F 9/4812: {by interrupt, e.g. masked}
- G06F 2209/481: Exception handling
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

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.

## Claims

### Claim 1

A reduced instruction set computer-V (RISC-V) architecture, comprising:
an advanced platform level interrupt controller (APLIC) comprising 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; and
an incoming message signaled interrupt (MSI) controller (IMSIC) coupled to the APLIC, the IMSIC 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.

### Claim 2 (depends on 1)

The RISC-V architecture of claim 1, wherein the IMSIC is configured to set an IL bit mapped to a given interrupt priority of the interrupt file in response to
receiving a message signaled interrupt (MSI) that includes an indication of the given interrupt priority and an indication that a vector IL bit of a corresponding vector is set; or
receiving an MSI that includes an indication of the given interrupt priority while an interrupt pending (IP) bit for the given interrupt priority in the interrupt file is set.

### Claim 3 (depends on 1)

The RISC-V architecture of claim 1, wherein the IMSIC is configured to reset an IL bit mapped to a given interrupt priority in the interrupt file in response to resetting an IP bit mapped to the given interrupt priority in the interrupt file.

### Claim 4 (depends on 1)

The RISC-V architecture of claim 1, wherein the APLIC is configured to
set the vector IL bit of a vector when an interrupt is received by a corresponding external interrupt input while an IP bit of the vector is set; and
in response, transmit an MSI to the IMSIC, the MSI including an indication of the interrupt priority of the vector and a status of the vector IL bit of the vector.

### Claim 5 (depends on 1)

The RISC-V architecture of claim 1, wherein
the respective vectors are each mapped to a respective interrupt target and a respective interrupt priority of the respective interrupt target; and
the IMSIC maintains an interrupt file for each interrupt target.

### Claim 6 (depends on 5)

The RISC-V architecture of claim 5, wherein an interrupt target comprises
a target hardware thread (hart),
a target hart and a privilege level of the target hart, or
target hart and virtual machine ID of the target hart.

### Claim 7 (depends on 1)

The RISC-V architecture of claim 1, wherein the APLIC is configured to set an IL bit mapped to a given interrupt vector in response to receiving a new interrupt for the given interrupt vector while an interrupt pending (IP) bit for the given interrupt vector is set.

### Claim 8 (depends on 1)

The RISC-V architecture of claim 1, wherein the APLIC is configured to reset an IL bit mapped to a given interrupt vector in response to resetting an interrupt pending (IP) bit mapped to the given interrupt vector when a corresponding interrupt is signaled as an MSI.

### Claim 9

An interrupt architecture, comprising
hardware components arranged into one or more hardware threads (harts);
an interrupt source configured to
receive respective external interrupt signals indicative of respective interrupt events, each interrupt event having a corresponding interrupt target, wherein each interrupt target corresponds to an interrupt priority at a target hart of the one or more harts;
based on the received interrupt signals, transmit message signaled interrupts (MSIs), wherein an MSI includes, for an interrupt event, information about the interrupt target of the interrupt event;
an MSI controller configured to
receive MSIs from the interrupt source;
based on the received MSIs, store interrupt information for interrupt targets;
determine that an interrupt event for an interrupt target has been lost; and
in response, provide lost interrupt information to a target hart of the interrupt target, the lost interrupt information comprising an indication of one or more lost interrupt events.

### Claim 10 (depends on 9)

The interrupt architecture of claim 9, wherein the interrupt target comprises an interrupt priority at a privilege level at the target hart or a virtual machine at the target hart.

### Claim 11 (depends on 9)

The interrupt architecture of claim 9, wherein an MSI of the MSIs that indicates an interrupt event for a given interrupt target includes an indication that an interrupt signal for a subsequent interrupt event for the given interrupt target was received prior to transmission of the MSI.

### Claim 12 (depends on 11)

The interrupt architecture of claim 11, wherein the MSI controller is further configured to
based on the received MSIs, save interrupt information for each interrupt target, the interrupt information indicating whether an interrupt has been lost; and
provide lost interrupt information to a target hart associated with the interrupt target for which the interrupt was lost.

### Claim 13 (depends on 9)

The interrupt architecture of claim 9, wherein the MSI controller is configured to set the interrupt information for a given interrupt target to indicate that an interrupt has been lost in response to receiving an MSI indicating an interrupt event for the given interrupt target when the interrupt information for the given interrupt target indicates that an interrupt is pending or receiving an MSI that indicates that an interrupt event for the given interrupt target was lost.

### Claim 14 (depends on 9)

The interrupt architecture of claim 9, wherein the interrupt source is further configured to
translate respective wired interrupts into respective MSIs;
detect that an interrupt signal for a second interrupt event for a given interrupt target is received prior to transmitting an MSI for a first interrupt event for the given interrupt target;
and, in response
store an indication that an interrupt was lost for the given interrupt target; and
encode lost interrupt information in a first MSI for the first interrupt event.

### Claim 15 (depends on 14)

The interrupt architecture of claim 14, wherein the interrupt source is further configured to clear the indication that an interrupt was lost in response to transmitting the first MSI.

### Claim 16 (depends on 9)

The interrupt architecture of claim 9, wherein the MSI controller is configured to signal the indication of one or more lost interrupt events on a per interrupt priority basis.

### Claim 17 (depends on 9)

The interrupt architecture of claim 9, wherein the MSI controller is configured to signal the indication of one or more lost interrupt events on a per interrupt target basis.

### Claim 18 (depends on 9)

The interrupt architecture of claim 9, wherein the MSI controller is configured to reset the lost interrupt information for an interrupt target in response to an interrupt target having the same or greater privilege than the interrupt target receiving the indication of the one or more lost interrupt events.

### Claim 19

A method, comprising:
receiving interrupt messages that include an indication of an interrupt priority of a plurality of interrupt priorities; and
based on the interrupt messages, determining that an interrupt for a given interrupt priority was lost; and
providing, to a computing core, respective lost interrupt information for the respective interrupt priorities, the lost interrupt information indicating whether an interrupt was lost.

### Claim 20 (depends on 19)

The method of claim 19, further comprising setting an IL bit mapped to the interrupt priority in an interrupt file in response to receiving an MSI that includes an indication of the interrupt priority and an indication that a vector IL bit in an interrupt source vector for the interrupt priority is set.

### Claim 21 (depends on 19)

The method of claim 19, further comprising setting an IL bit mapped to the interrupt priority in an interrupt file in response to receiving an MSI that includes an indication of the interrupt priority while an IP bit for the interrupt priority in the interrupt file is set.

### Claim 22 (depends on 21)

The method of claim 21, further comprising resetting an IL bit mapped to a given interrupt priority in the interrupt file in response to resetting an IP bit mapped to the given interrupt priority in the interrupt file.

### Claim 23

A method, comprising:
receiving external interrupt signals, each associated with an interrupt priority;
based on the received interrupt signals, determining that an interrupt signal for a given interrupt priority has been lost; and
providing an indication to a computing core that the interrupt signal for the given interrupt priority has been lost.

### Claim 24 (depends on 23)

The method of claim 23, further comprising:
providing a plurality of respective vectors connected to respective external interrupt inputs that receive the external interrupt signals, wherein each vector is associated with a target computing core, further wherein each vector comprises an indication of an interrupt priority, a vector interrupt pending (IP) bit, and a vector interrupt lost (IL) bit; and
setting the vector IL bit of a vector when an interrupt is received by a corresponding external interrupt input while the vector IP bit of the vector is set.

### Claim 25 (depends on 24)

The method of claim 24, further comprising:
selecting a vector based on arbitration rules; and
transmitting a message signaled interrupt (MSI) to an incoming MSI controller (IMSIC) connected to a target computing core of the selected vector, the MSI including an indication of the interrupt priority of the selected vector and a status of the vector IL bit of the selected.
