Skip to content

Commit f339bd3

Browse files
committed
Docs/LoongArch: Add advanced extended IRQ model description
Introduce the advanced extended interrupt controllers (AVECINTC). This feature will allow each core to have 256 independent interrupt vectors and MSI interrupts can be independently routed to any vector on any CPU. The whole topology of irqchips in LoongArch machines looks like this if AVECINTC is supported: +-----+ +-----------------------+ +-------+ | IPI | --> | CPUINTC | <-- | Timer | +-----+ +-----------------------+ +-------+ ^ ^ ^ | | | +---------+ +----------+ +---------+ +-------+ | EIOINTC | | AVECINTC | | LIOINTC | <-- | UARTs | +---------+ +----------+ +---------+ +-------+ ^ ^ | | +---------+ +---------+ | PCH-PIC | | PCH-MSI | +---------+ +---------+ ^ ^ ^ | | | +---------+ +---------+ +---------+ | Devices | | PCH-LPC | | Devices | +---------+ +---------+ +---------+ ^ | +---------+ | Devices | +---------+ Signed-off-by: Huacai Chen <[email protected]> Signed-off-by: Tianyang Zhang <[email protected]>
1 parent 64c35d6 commit f339bd3

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

Documentation/arch/loongarch/irq-chip-model.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,38 @@ to CPUINTC directly::
8585
| Devices |
8686
+---------+
8787

88+
Advanced Extended IRQ model
89+
===========================
90+
91+
In this model, IPI (Inter-Processor Interrupt) and CPU Local Timer interrupt go
92+
to CPUINTC directly, CPU UARTS interrupts go to LIOINTC, PCH-MSI interrupts go
93+
to AVECINTC, and then go to CPUINTC directly, while all other devices interrupts
94+
go to PCH-PIC/PCH-LPC and gathered by EIOINTC, and then go to CPUINTC directly::
95+
96+
+-----+ +-----------------------+ +-------+
97+
| IPI | --> | CPUINTC | <-- | Timer |
98+
+-----+ +-----------------------+ +-------+
99+
^ ^ ^
100+
| | |
101+
+---------+ +----------+ +---------+ +-------+
102+
| EIOINTC | | AVECINTC | | LIOINTC | <-- | UARTs |
103+
+---------+ +----------+ +---------+ +-------+
104+
^ ^
105+
| |
106+
+---------+ +---------+
107+
| PCH-PIC | | PCH-MSI |
108+
+---------+ +---------+
109+
^ ^ ^
110+
| | |
111+
+---------+ +---------+ +---------+
112+
| Devices | | PCH-LPC | | Devices |
113+
+---------+ +---------+ +---------+
114+
^
115+
|
116+
+---------+
117+
| Devices |
118+
+---------+
119+
88120
ACPI-related definitions
89121
========================
90122

Documentation/translations/zh_CN/arch/loongarch/irq-chip-model.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,38 @@ PCH-LPC/PCH-MSI,然后被EIOINTC统一收集,再直接到达CPUINTC::
8787
| Devices |
8888
+---------+
8989

90+
高级扩展IRQ模型
91+
===============
92+
93+
在这种模型里面,IPI(Inter-Processor Interrupt)和CPU本地时钟中断直接发送到CPUINTC,
94+
CPU串口(UARTs)中断发送到LIOINTC,PCH-MSI中断发送到AVECINTC,而后通过AVECINTC直接
95+
送达CPUINTC,而其他所有设备的中断则分别发送到所连接的PCH-PIC/PCH-LPC,然后由EIOINTC
96+
统一收集,再直接到达CPUINTC::
97+
98+
+-----+ +-----------------------+ +-------+
99+
| IPI | --> | CPUINTC | <-- | Timer |
100+
+-----+ +-----------------------+ +-------+
101+
^ ^ ^
102+
| | |
103+
+---------+ +----------+ +---------+ +-------+
104+
| EIOINTC | | AVECINTC | | LIOINTC | <-- | UARTs |
105+
+---------+ +----------+ +---------+ +-------+
106+
^ ^
107+
| |
108+
+---------+ +---------+
109+
| PCH-PIC | | PCH-MSI |
110+
+---------+ +---------+
111+
^ ^ ^
112+
| | |
113+
+---------+ +---------+ +---------+
114+
| Devices | | PCH-LPC | | Devices |
115+
+---------+ +---------+ +---------+
116+
^
117+
|
118+
+---------+
119+
| Devices |
120+
+---------+
121+
90122
ACPI相关的定义
91123
==============
92124

0 commit comments

Comments
 (0)