Commit 0de5cb2
irqchip/gic-v5: Allocate ITS parent LPIs as a range
commit a7c7e42654b6a8676610ee09d22901432c4851af upstream.
The ITS MSI domain no longer manages LPI allocation directly. LPIs are
allocated and freed by the parent LPI domain, which can now handle a
full range of interrupts and unwind partial allocations internally.
Make the ITS domain request and release the parent IRQs as a single
range instead of iterating over each interrupt. The ITS allocation
path then only needs to reserve EventIDs, allocate the parent range,
and fill in the ITS irq_data for each MSI. Since no operation in the
per-MSI loop can fail, the partial parent-free unwind becomes
unnecessary.
On teardown, reset the ITS irq_data for the range and then release the
parent range in one call, leaving LPI teardown to the LPI domain.
Fixes: 0f01013 ("irqchip/gic-v5: Add GICv5 LPI/IPI support")
Signed-off-by: Sascha Bischoff <sascha.bischoff@arm.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260506093634.382062-4-sascha.bischoff@arm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 2cbd4ab commit 0de5cb2
1 file changed
Lines changed: 7 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
| 938 | + | |
938 | 939 | | |
939 | 940 | | |
940 | 941 | | |
| |||
944 | 945 | | |
945 | 946 | | |
946 | 947 | | |
947 | | - | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
948 | 951 | | |
949 | 952 | | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | 953 | | |
956 | 954 | | |
957 | 955 | | |
| |||
970 | 968 | | |
971 | 969 | | |
972 | 970 | | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | 971 | | |
980 | 972 | | |
981 | 973 | | |
| |||
998 | 990 | | |
999 | 991 | | |
1000 | 992 | | |
1001 | | - | |
1002 | 993 | | |
1003 | 994 | | |
1004 | | - | |
1005 | 995 | | |
1006 | | - | |
1007 | 996 | | |
1008 | 997 | | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
1009 | 1001 | | |
1010 | 1002 | | |
1011 | 1003 | | |
| |||
0 commit comments