Multi-port PCIE bridging chip interrupt processing method

By detecting and processing the interrupt events of the multi-port PCIE bridge chip, and using remapping and synchronous processing methods to report INTx and MSI interrupt information, it solves the problem of high complexity of asynchronous interrupt information processing in the PCIE Switch system and achieves efficient interrupt processing and Reporting improves system stability and efficiency.

CN118796728APending Publication Date: 2024-10-18CLP KESHENTAI INFORMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410802300.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the PCIE Switch system, an interrupt processing and reporting controller needs to be designed to implement the PCIE bridge chip interrupt reporting function and reflect the current interrupt status. However, the existing technology is difficult to effectively handle multi-port asynchronous interrupt information and hot-plug interrupts, resulting in interruptions. The processing complexity is high and the efficiency is low.

Method used

By detecting the interrupt event of the multi-port PCIE bridge chip, using remapping and synchronization processing methods, the INTx and MSI interrupt information of the downstream port is reported to the upstream port, and the interrupt processing and reporting of the INT and MSI mechanism are realized, using the INT mechanism and MSI mechanism. Handle INTA, INTB, INTC, INTD type interrupts and hot-plug interrupts respectively to avoid function sharing and improve interrupt processing efficiency.

Benefits of technology

It realizes efficient processing and reporting of multi-port PCIE bridge chip interrupts, simplifies the interrupt processing process, improves system stability and efficiency, and ensures real-time status notification of virtual switches.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796728A_ABST
    Figure CN118796728A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-port PCIE (Peripheral Component Interface Express) bridging chip interrupt processing method, and belongs to the field of chip circuits. Detecting an interrupt event of each port in the multi-port PCIE bridging chip; processing the detected interrupt event; and reporting the processed interrupt event. According to the method, the port number of the current virtual switch is judged, INTx interrupts and hot plug interrupts of all downstream ports are detected, final INTx interrupts are formed through remapping and synchronous processing, the final INTx interrupts are reported to upstream ports, and interrupt processing and reporting of an INT mechanism are achieved; and judging the port number of the current virtual switch, detecting hot plug interruption of all downstream ports, caching MSI addresses and data information of the downstream ports, and sequentially sending received MSI interruption requests of the downstream ports to an upstream port in an MWr packet format to realize interruption processing and reporting of an MSI mechanism.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of chip circuits, and in particular to a multi-port PCIE bridge chip interrupt processing method. Background Art

[0002] PCI-Express is the third generation of high-performance I / O bus for interconnecting devices. It transforms the previous parallel bus into a serial bus. It also uses a point-to-point interconnection method, which transforms the bus that connects devices under the bridge in the original bus structure into a link. A link can contain one or more channels, and each channel consists of two pairs of differential lines to form a dual-simplex serial transmission channel. The point-to-point interconnection structure allows each device to have an independent link connection and exclusive bandwidth.

[0003] PCIE Switch is an extension of the PCIE bus, which can realize the interconnection mode of multiple PCIE devices. In the PCIE bridge architecture, the RC end is used to connect the CPU device, the manager of the main PCIE bus, and the EP is a terminal device that receives data packets from the upper topology or sends data packets to the upper topology. The PCIE Switch device is composed of 2 to N port devices, each port is connected to a PCIE link, and is used for the interconnection of multiple devices in the system. The PCIE Switch can have multiple virtual switches. The ports directly or indirectly connected to the RC in each virtual switch are called upstream ports, and the other ports are downstream ports.

[0004] The PCIE bus inherits all the interrupt features of the PCI bus, mainly including INTx and MSI / MSI-X interrupts, to be compatible with some early PCI application layer software. The PCI bus first adopted the INTx interrupt mechanism, which is based on sideband signals. In order to eliminate sideband signals and reduce the complexity of system hardware design, subsequent PCI / PCI-X versions gradually adopted the MSI / MSI-X interrupt mechanism. However, the INTx interrupt inherited by PCIE does not use sideband signals, but uses the Message TLP method. In addition, the INTx interrupt and the MSI / MSI-X interrupt are mutually exclusive.

[0005] In PCIE Switch, each virtual switch needs to report the interrupt message in the virtual switch to the CPU through INTx or MSI / MSI-X interrupt mode to inform the CPU of the real-time status of the current virtual switch. Therefore, an interrupt processing and reporting interrupt controller needs to be designed in the entire PCIE Switch system to implement the interrupt reporting function of the PCIE bridge chip, thereby reflecting the interrupt status in the current PCIE bridge chip. Summary of the invention

[0006] The purpose of the present invention is to provide a multi-port PCIE bridge chip interrupt processing method to solve the problems in the background technology.

[0007] In order to solve the above technical problems, the present invention provides a multi-port PCIE bridge chip interrupt processing method, comprising:

[0008] Detect interrupt events of each port in a multi-port PCIE bridge chip;

[0009] Processing the detected interruption event;

[0010] Report the processed interruption event.

[0011] In one embodiment, the multi-port PCIE bridge chip has multiple virtual switches, each virtual switch has at least two PCIE ports, wherein the port connected to the RC end in each virtual switch is an upstream port, and the other ports are downstream ports, and all ports can be allocated to each virtual switch as an upstream port or a downstream port;

[0012] The downstream port of each virtual switch receives INTx interrupts, and the downstream port in each virtual switch can generate hot plug interrupts. These interrupts need to be processed accordingly and finally reported to the upstream port of the virtual switch.

[0013] In one implementation, each virtual switch is allocated with several of the N ports, and these several ports are in an asynchronous relationship. Each downstream port interruption information needs to be reported to the upstream port of the current virtual switch. Therefore, the interruption information of all downstream ports of the current virtual switch needs to be collected, and after synchronization processing, reported to the upstream port of the current virtual switch.

[0014] Since there are two interruption mechanisms for reporting interrupts to the upstream port of the virtual switch, the interruption processing methods are also divided into INT mechanism interruption processing and MSI mechanism interruption processing.

[0015] In one implementation, all downstream port interrupt information of the current virtual switch is collected, where the interrupt information mainly includes INTx interrupts and downstream hot-plug interrupts received by the downstream ports, where INTx interrupts are INTA, INTB, INTC, and INTD type interrupts, and the hot-plug interrupts are set to INTA type interrupts;

[0016] In this interrupt processing process, a remapping method is used to avoid multiple functions sharing the same INTx pin. The INTx type of the downstream port in the virtual switch is remapped to the upstream port through a mapping method, and is reported to the upstream port of the current virtual switch as a new type of INTx interrupt request.

[0017] In one implementation, all downstream port interrupt information of the current virtual switch is collected, where the interrupt information is mainly downstream hot plug interrupts. Hot plug interrupt sources generated by all downstream ports of the virtual switch are used as MSI interrupt requests and reported to the upstream port of the current virtual switch.

[0018] In one embodiment, the INT mechanism interrupt processing is mainly to send the INT type interrupt request received by the upstream port of the current virtual switch to the PCIE controller, and the PCIE controller generates a Message packet to report it to the host, thereby realizing the INT mechanism interrupt reporting; the MSI mechanism interrupt processing is: first latch the MSI interrupt address and data information of the downstream port of the current virtual switch, and when an MSI type interrupt request of a downstream port of the virtual switch is received, the downstream port MSI request, address and data information are reported to the host in the MWr packet format, thereby realizing the MSI mechanism interrupt reporting.

[0019] The invention provides a multi-port PCIE bridge chip interrupt processing method, which comprises the following steps: judging the current virtual switch port number, detecting the INTx interrupts and hot-plug interrupts of all downstream ports, forming a final INTx interrupt after remapping and synchronization processing, reporting the interrupt to an upstream port, and realizing the interrupt processing and reporting of an INT mechanism; judging the current virtual switch port number, detecting the hot-plug interrupts of all downstream ports, caching the MSI address and data information of the downstream port, and sending the MSI interrupt requests received from the downstream port to the upstream port in MWr packet format in sequence, realizing the interrupt processing and reporting of the MSI mechanism. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a schematic diagram of the interrupt processing architecture of the present invention;

[0021] Figure 2 This is a schematic diagram of the INT mechanism interrupt processing reporting architecture of the present invention;

[0022] Figure 3 It is a schematic diagram of the MSI mechanism interrupt processing reporting architecture of the present invention. DETAILED DESCRIPTION

[0023] The following is a further detailed description of a multi-port PCIE bridge chip interrupt processing method proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. According to the following description, the advantages and features of the present invention will become clearer. It should be noted that the accompanying drawings are all in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0024] The multi-port PCIE bridge chip can be configured in basic mode and virtual switching mode. In basic mode, there is only one host, that is, one upstream port and at least one downstream port; in virtual switching mode, there can be multiple hosts, that is, there are multiple virtual switches, and each virtual switch has an upstream port and at least one downstream port. In a multi-port PCIE bridge chip, each port may serve as an upstream or downstream port of a virtual switch. In each virtual switch, the downstream port generates interrupt information, which needs to be reported to its upstream port.

[0025] The present invention detects the interrupt source type of the downstream port including: the INTA, INTB, INTC or INTD interrupt received by the downstream port or the hot plug interrupt of the downstream port. According to the PCIE interrupt mechanism, the present invention processes and reports these interrupt sources through the INT mechanism and the MSI mechanism respectively. The interrupt processing architecture block diagram is shown in FIG. Figure 1 shown.

[0026] The INT mechanism interrupt processing architecture diagram is as follows Figure 2 As shown, the INT mechanism interrupt processing and reporting method is as follows:

[0027] 1. Collect the INT type interrupts of each downstream port, mainly including the INTA, INTB, INTC or INTD interrupts output by the downstream port and the hot plug interrupts of the downstream port. The hot plug interrupts of the downstream port are set to the INTA type. The two types of interrupts are merged into new INTA, INTB, INTC or INTD interrupts.

[0028] 2. In order to avoid multiple functions sharing the same INTx pin as much as possible, the interrupt processing process of the present invention adopts a remapping method, and outputs the mapped INTA, INTB, INTC or INTD interrupts of each downstream port after fusion according to a certain mapping method.

[0029] 3. According to the ports allocated by the current virtual switch, the INTA, INTB, INTC or INTD interrupts of all downstream ports belonging to the current virtual switch are remapped and merged. Due to the asynchronous relationship between each port, each downstream port interrupt processing needs to be processed synchronously, that is, each port interrupt request is first synchronized to each virtual switch domain respectively, and the INTA, INTB, INTC or INTD interrupt requests of all downstream ports in the current virtual switch are merged after synchronization, and reported to the upstream port of the current virtual switch, and then the INTA, INTB, INTC or INTD interrupt request of the upstream port is synchronized to the clock domain of the corresponding port, and finally the INTA, INTB, INTC or INTD interrupt request signal is sent to the upstream port controller and sent to the upstream host in the Message packet format.

[0030] The MSI mechanism interrupt processing architecture diagram is as follows Figure 3 As shown, the MSI mechanism interrupt processing and reporting method is as follows:

[0031] 1. Collect the MSI type interrupts of each downstream port, where the MSI interrupt is a hot plug interrupt generated by the downstream port.

[0032] 2. According to the port assigned by the current virtual switch, all downstream port MSI interrupts in the current virtual switch are sent to the upstream port. Due to the asynchronous relationship between each port, each downstream port interrupt processing needs to be processed synchronously. First, the downstream port and upstream port of each virtual switch are determined, and then all downstream port MSI interrupt requests of the current virtual switch are synchronized to the upstream clock domain.

[0033] 3. Cache the MSI address and data information of each downstream port of the current virtual switch, generate MWr packets in sequence according to the MSI interrupt requests issued by all downstream ports, and send the MSI information of each downstream port in the virtual switch to the corresponding upstream port.

[0034] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.

Claims

1. A multi-port PCIE bridge chip interrupt processing method, characterized in that: include: Detect interrupt events of each port in a multi-port PCIE bridge chip; Processing the detected interruption event; Report the processed interruption event.

2. The multi-port PCIE bridge chip interrupt processing method according to claim 1, characterized in that: The multi-port PCIE bridge chip has multiple virtual switches, each virtual switch has at least two PCIE ports, wherein the port connected to the RC end in each virtual switch is an upstream port, and the other ports are downstream ports, and all ports can be allocated to each virtual switch as an upstream port or a downstream port; The downstream port of each virtual switch receives INTx interrupts, and the downstream port in each virtual switch can generate hot plug interrupts. These interrupts need to be processed accordingly and finally reported to the upstream port of the virtual switch.

3. The multi-port PCIE bridge chip interrupt processing method according to claim 2, characterized in that: Each virtual switch is allocated with several of the N ports. These ports are in an asynchronous relationship. Each downstream port interruption information needs to be reported to the upstream port of the current virtual switch. Therefore, the interruption information of all downstream ports of the current virtual switch needs to be collected, processed synchronously, and reported to the upstream port of the current virtual switch. Since there are two interruption mechanisms for reporting interrupts to the upstream port of the virtual switch, the interruption processing methods are also divided into INT mechanism interruption processing and MSI mechanism interruption processing.

4. The multi-port PCIE bridge chip interrupt processing method according to claim 3, characterized in that: Collect the interrupt information of all downstream ports of the current virtual switch. The interrupt information mainly includes the INTx interrupt received by the downstream port and the downstream hot-swap interrupt. The INTx interrupt is the INTA, INTB, INTC, and INTD type interrupt. Set the hot-swap interrupt to the INTA type interrupt. In this interrupt processing process, a remapping method is used to avoid multiple functions sharing the same INTx pin. The INTx type of the downstream port in the virtual switch is remapped to the upstream port through a mapping method, and is reported to the upstream port of the current virtual switch as a new type of INTx interrupt request.

5. The multi-port PCIE bridge chip interrupt processing method according to claim 4, characterized in that: Collect the interrupt information of all downstream ports of the current virtual switch, which is mainly downstream hot plug interrupts. The hot plug interrupt sources generated by all downstream ports of the virtual switch are used as MSI interrupt requests and reported to the upstream ports of the current virtual switch.

6. The multi-port PCIE bridge chip interrupt processing method according to claim 5, characterized in that: The INT mechanism interrupt processing is mainly to send the INT type interrupt request received by the upstream port of the current virtual switch to the PCIE controller, and the PCIE controller generates a Message packet to report it to the host, thereby realizing the INT mechanism interrupt reporting; the MSI mechanism interrupt processing is: first latch the MSI interrupt address and data information of the downstream port of the current virtual switch, and when an MSI type interrupt request of a downstream port of the virtual switch is received, the downstream port MSI request, address and data information are reported to the host in the MWr packet format, thereby realizing the MSI mechanism interrupt reporting.

Citation Information

Cited By

  • PCIe switching node INT interrupt processing method and system

    CN119583232A