diff options
author | Baoqi Zhang <[email protected]> | 2024-04-22 17:38:30 +0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2024-04-23 00:17:07 +0200 |
commit | 234a557e28b9142e07eae21083a04fffef83ee8d (patch) | |
tree | daa250bdaaca22bda4a64d34a11ffdf61049293f /io_uring/net.c | |
parent | bb58c1baa501e3d695d8e13a5bd955fd00e2e879 (diff) |
irqchip/loongson-pch-pic: Update interrupt registration policy
The current code is using a fixed mapping between the LS7A interrupt source
and the HT interrupt vector. This prevents the utilization of the full
interrupt vector space and therefore limits the number of interrupt source
in a system.
Replace the fixed mapping with a dynamic mapping which allocates a
vector when an interrupt source is set up. This avoids that unused
sources prevent vectors from being used for other devices.
Introduce a mapping table in struct pch_pic, where each interrupt source
will allocate an index as a 'hwirq' number from the table in the order of
application and set table value as interrupt source number. This hwirq
number will be configured as vector in the HT interrupt controller. For an
interrupt source, the validity period of the obtained hwirq will last until
the system reset.
Co-developed-by: Biao Dong <[email protected]>
Signed-off-by: Biao Dong <[email protected]>
Co-developed-by: Tianyang Zhang <[email protected]>
Signed-off-by: Tianyang Zhang <[email protected]>
Signed-off-by: Baoqi Zhang <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'io_uring/net.c')
0 files changed, 0 insertions, 0 deletions