Search

CN-122019430-A - Interrupt information processing system, method and chip

CN122019430ACN 122019430 ACN122019430 ACN 122019430ACN-122019430-A

Abstract

The application provides an interrupt information processing system, an interrupt information processing method and an interrupt information processing chip, which are used for carrying out interrupt policy processing on user interrupt information through interrupt policy configuration information built in an interrupt policy management module, sequentially realizing distribution, priority scheduling, shielding management, interrupt information statistics and interrupt aggregation of the user interrupt information, and completing differentiated reporting and processing of different types of user interrupt information by combining an interrupt reporting module and an interrupt processing module. According to the scheme, through unified management of the user interrupt information, interrupt reporting efficiency is improved, and the problem of low efficiency caused by frequent interrupt processing of the CPU is solved.

Inventors

  • Request for anonymity
  • Request for anonymity
  • Request for anonymity

Assignees

  • 上海光羽芯辰科技有限公司

Dates

Publication Date
20260512
Application Date
20251203

Claims (10)

  1. 1. An interrupt information processing system, comprising: The user interrupt source module is used for generating at least one piece of user interrupt information, and the type of the user interrupt information comprises level interrupt information and message interrupt information; The interrupt policy management module is connected with the user interrupt source module and is used for receiving at least one piece of user interrupt information transmitted by the user interrupt source module, and performing interrupt policy processing on the user interrupt information based on built-in interrupt policy configuration information so as to output user interrupt information data, wherein the user interrupt information data at least comprises user interrupt information aggregation data; the interrupt reporting module is connected with the interrupt policy management module and is used for receiving the user interrupt information aggregation data transmitted by the interrupt policy management module and reporting the user interrupt information aggregation data; And the interrupt processing module is connected with the interrupt reporting module and is used for receiving the user interrupt information aggregation data reported by the interrupt reporting module and finishing final processing.
  2. 2. The interrupt information processing system of claim 1, wherein the interrupt policy management module comprises the following sub-modules: an interrupt distribution sub-module, an interrupt scheduling sub-module, an interrupt shielding sub-module, an interrupt statistics sub-module and an interrupt aggregation sub-module; The interrupt distribution submodule is connected with the interrupt scheduling submodule, the interrupt scheduling submodule is connected with the interrupt shielding submodule, the interrupt shielding submodule is also respectively connected with the interrupt statistics submodule and the interrupt aggregation submodule, and each submodule is internally provided with respective interrupt strategy configuration information for processing corresponding interrupt strategies by each submodule.
  3. 3. The interrupt information processing system of claim 2, wherein the interrupt distribution sub-module is configured to determine at least one interrupt reporting behavior that matches the user interrupt information, and report the user interrupt information accordingly according to the determined interrupt reporting behavior, wherein the interrupt reporting behavior includes level interrupt reporting and message interrupt reporting.
  4. 4. The interrupt information processing system of claim 3 wherein said interrupt scheduling sub-module receives said user interrupt information reported by said interrupt distribution sub-module and determines at least one scheduling processing mode matching said user interrupt information and schedules said user interrupt information accordingly according to said determined scheduling processing mode, wherein said scheduling processing modes include round robin scheduling and high priority interrupt scheduling.
  5. 5. The interrupt information processing system of claim 4, wherein the interrupt masking submodule receives the user interrupt information scheduled by the interrupt scheduling submodule and determines whether the user interrupt information needs to be masked: Transmitting the user interrupt information which needs to be subjected to shielding processing to the interrupt statistics sub-module so as to carry out interrupt information statistics; and transmitting the user interrupt information which does not need to be subjected to shielding processing to the interrupt statistics sub-module to carry out interrupt information statistics, and correspondingly reporting the user interrupt information to the interrupt aggregation sub-module.
  6. 6. The interrupt information processing system of claim 2, wherein the interrupt aggregation sub-module aggregates at least one of the user interrupt information to output the user interrupt information aggregate data; The interrupt policy configuration information of the interrupt aggregation sub-module includes a preset reporting number and a preset reporting time, and the aggregation processing mode includes: when the first condition and/or the second condition are/is met, the interrupt aggregation sub-module reports all user interrupt information aggregated currently, the first condition is configured to accumulate reporting times to reach the preset reporting times threshold, and the second condition is configured to aggregate time to reach the preset reporting time threshold.
  7. 7. The interrupt information processing system of claim 1, wherein the interrupt reporting module comprises a level interrupt hierarchical reporting sub-module and a message interrupt configuration management sub-module; the level interrupt classification reporting submodule is used for reporting the level interrupt information to the interrupt processing module according to built-in level reporting strategy configuration information.
  8. 8. The interrupt information processing system of claim 7, wherein the message interrupt configuration management submodule includes a non-protocol type interrupt management submodule and a protocol type interrupt management submodule, and the message interrupt information includes non-protocol type message interrupt information and protocol type message interrupt information; The non-protocol interrupt management submodule comprises a non-protocol message configuration submodule and a ring buffer area update management submodule; the non-protocol type message configuration submodule comprises destination address information of the non-protocol type message interrupt information in the annular buffer area updating management submodule and message content of the non-protocol type message interrupt information; The protocol type interrupt management submodule is used for receiving and reporting the protocol type message interrupt information to the interrupt processing module.
  9. 9. An interrupt information processing method applied to an interrupt information processing system according to any one of claims 1 to 8, the method comprising: generating at least one user interrupt message by a user interrupt source module, wherein the user interrupt message type comprises level interrupt message and message interrupt message; Receiving the user interrupt information through an interrupt policy management module, and performing interrupt policy processing on the user interrupt information based on built-in interrupt policy configuration information to obtain user interrupt information data, wherein the user interrupt information data at least comprises user interrupt information aggregation data; receiving the user interrupt information aggregation data through an interrupt reporting module, and reporting the user interrupt information aggregation data; and receiving the user interrupt information aggregate data through an interrupt processing module and finishing final processing.
  10. 10. An interrupt information processing chip, characterized in that an interrupt information processing system according to any one of claims 1 to 8 is integrated.

Description

Interrupt information processing system, method and chip Technical Field The present invention relates to the field of interrupt processing, and in particular, to an interrupt information processing system, method and chip. Background In the scenes of modern electronic equipment, industrial control systems, servers and the like, interrupt processing is a key technology for ensuring the cooperative work of a hardware module, a processor (CPU) and a HOST (HOST), and the performance of the interrupt processing system directly influences the response speed, the running stability and the resource utilization rate of the system. Along with the diversified interrupt requests to be processed in the system and diversified interrupt reporting demands, the conventional interrupt processing technology gradually exposes a plurality of problems to be solved: According to the scheme, in the prior art, independent processing channels and management logic are often adopted for different types of interrupts, a unified information integration and scheduling mechanism is lacked, so that interrupt transmission paths are disordered, shunt delay is caused, efficient collaborative reporting of various interrupts is difficult to achieve, meanwhile, due to the lack of a targeted transmission optimization design, the time consumption from generation of the interrupt to the whole processed is long, the requirement of a high-instantaneity scene cannot be met, and in the high-frequency interrupt scene, the interrupt is not effectively aggregated in the prior art, a large number of discrete interrupt requests continuously trigger CPU interrupt responses, so that the CPU frequently switches task contexts, excessive computing resources are occupied, normal operation of a main service is further influenced, and the overall processing efficiency of the system is greatly reduced. Therefore, an interrupt processing scheme capable of solving the above technical problems is needed to optimize the interrupt processing mechanism and improve the interrupt reporting efficiency and the interrupt processing efficiency of the CPU. Disclosure of Invention In view of the above-mentioned drawbacks of the prior art, an object of the present invention is to provide an interrupt information processing system, method and chip for solving the technical problem that the existing CPU frequently processes interrupts and is inefficient. The application provides an interrupt information processing system for achieving the aim and other related aims, which is characterized by comprising a user interrupt source module, an interrupt strategy management module, an interrupt reporting module and an interrupt processing module, wherein the user interrupt source module is used for generating at least one piece of user interrupt information, the user interrupt information type comprises level interrupt information and message interrupt information, the interrupt strategy management module is connected with the user interrupt source module and is used for receiving at least one piece of user interrupt information transmitted by the user interrupt source module and carrying out interrupt strategy processing on the user interrupt information based on built-in interrupt strategy configuration information so as to output user interrupt information data, the user interrupt information data at least comprises user interrupt information aggregation data, the interrupt reporting module is connected with the interrupt strategy management module and is used for receiving the user interrupt information aggregation data transmitted by the interrupt strategy management module and carrying out reporting processing on the user interrupt information aggregation data, and the interrupt processing module is connected with the interrupt reporting module and is used for receiving the user interrupt information aggregation data reported by the interrupt reporting module and completing final processing. In some embodiments of the first aspect of the present application, the interrupt policy management module includes an interrupt distribution sub-module, an interrupt scheduling sub-module, an interrupt mask sub-module, an interrupt statistics sub-module, and an interrupt aggregation sub-module, where the interrupt distribution sub-module is connected to the interrupt scheduling sub-module, the interrupt scheduling sub-module is connected to the interrupt mask sub-module, the interrupt mask sub-module is further connected to the interrupt statistics sub-module and the interrupt aggregation sub-module, and each sub-module is built with respective interrupt policy configuration information, so that each sub-module performs corresponding interrupt policy processing. In some embodiments of the first aspect of the present application, the interrupt distribution sub-module is configured to determine at least one interrupt reporting behavior mode matching the user interrupt information, and report the u