Commit 7327b16
Marc Zyngier
APCI: irq: Add support for multiple GSI domains
In an unfortunate departure from the ACPI spec, the LoongArch
architecture split its GSI space across multiple interrupt
controllers.
In order to be able to reuse the core code and prevent
architectures from reinventing an already square wheel, offer
the arch code the ability to register a dispatcher function
that will return the domain fwnode for a given GSI.
The ARM GIC drivers are updated to support this (with a single
domain, as intended).
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: Hanjun Guo <guohanjun@huawei.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Jianmin Lv <lvjianmin@loongson.cn>
Tested-by: Hanjun Guo <guohanjun@huawei.com>
Reviewed-by: Hanjun Guo <guohanjun@huawei.com>
Link: https://lore.kernel.org/r/1658314292-35346-3-git-send-email-lvjianmin@loongson.cn1 parent af6a1cf commit 7327b16
4 files changed
Lines changed: 50 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
31 | 30 | | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | | - | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
100 | | - | |
| 102 | + | |
| 103 | + | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
107 | 110 | | |
108 | | - | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
194 | 197 | | |
195 | 198 | | |
196 | 199 | | |
197 | | - | |
| 200 | + | |
198 | 201 | | |
199 | 202 | | |
200 | 203 | | |
| |||
207 | 210 | | |
208 | 211 | | |
209 | 212 | | |
210 | | - | |
| 213 | + | |
| 214 | + | |
211 | 215 | | |
212 | 216 | | |
213 | 217 | | |
| |||
291 | 295 | | |
292 | 296 | | |
293 | 297 | | |
294 | | - | |
| 298 | + | |
295 | 299 | | |
296 | 300 | | |
297 | | - | |
| 301 | + | |
298 | 302 | | |
299 | 303 | | |
300 | 304 | | |
| |||
312 | 316 | | |
313 | 317 | | |
314 | 318 | | |
315 | | - | |
316 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
317 | 327 | | |
318 | 328 | | |
319 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2360 | 2360 | | |
2361 | 2361 | | |
2362 | 2362 | | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
2363 | 2370 | | |
2364 | 2371 | | |
2365 | 2372 | | |
2366 | 2373 | | |
2367 | | - | |
2368 | 2374 | | |
2369 | 2375 | | |
2370 | 2376 | | |
| |||
2396 | 2402 | | |
2397 | 2403 | | |
2398 | 2404 | | |
2399 | | - | |
2400 | | - | |
| 2405 | + | |
| 2406 | + | |
2401 | 2407 | | |
2402 | 2408 | | |
2403 | 2409 | | |
2404 | 2410 | | |
2405 | 2411 | | |
2406 | | - | |
| 2412 | + | |
2407 | 2413 | | |
2408 | 2414 | | |
2409 | 2415 | | |
2410 | | - | |
| 2416 | + | |
2411 | 2417 | | |
2412 | 2418 | | |
2413 | 2419 | | |
2414 | 2420 | | |
2415 | 2421 | | |
2416 | 2422 | | |
2417 | 2423 | | |
2418 | | - | |
| 2424 | + | |
2419 | 2425 | | |
2420 | 2426 | | |
2421 | 2427 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1682 | 1682 | | |
1683 | 1683 | | |
1684 | 1684 | | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
1685 | 1692 | | |
1686 | 1693 | | |
1687 | 1694 | | |
1688 | 1695 | | |
1689 | | - | |
1690 | 1696 | | |
1691 | 1697 | | |
1692 | 1698 | | |
| |||
1724 | 1730 | | |
1725 | 1731 | | |
1726 | 1732 | | |
1727 | | - | |
1728 | | - | |
| 1733 | + | |
| 1734 | + | |
1729 | 1735 | | |
1730 | 1736 | | |
1731 | 1737 | | |
1732 | 1738 | | |
1733 | 1739 | | |
1734 | | - | |
| 1740 | + | |
1735 | 1741 | | |
1736 | 1742 | | |
1737 | | - | |
| 1743 | + | |
1738 | 1744 | | |
1739 | 1745 | | |
1740 | 1746 | | |
1741 | 1747 | | |
1742 | | - | |
| 1748 | + | |
1743 | 1749 | | |
1744 | 1750 | | |
1745 | 1751 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
| 359 | + | |
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| |||
0 commit comments