irqchip/gic-v3-its: Fix the ITT pool's alignment, zeroing and growth
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | irqchip/gic-v3-its: Align sub-page ITTs to 256 bytesdrivers/ | +1 | 1 reply | |
| 2/3 | irqchip/gic-v3-its: Zero ITTs reused from the ITT pooldrivers/ | +3 | 1 reply | |
| 3/3 | irqchip/gic-v3-its: Free the page when gen_pool_add() failsdrivers/ | +4 | 1 reply |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Suzuki K Poulose |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] irqchip/gic-v3-its: Fix the ITT pool's alignment, zeroing and growth
Hi folks,
Three fixes to the ITT pool that took over sub-page ITTs from kzalloc_node(). It doesn't align them to 256 bytes, though MAPD now relies on it to. It doesn't zero the ITTs it reuses either, and it leaks pages when it fails to grow.
The first gives the pool a 256-byte granule. With its 1-byte granule, ITTs stay aligned only while every size is a multiple of 256, which holds for power-of-two ITE sizes but not for QEMU's 12-byte ones. On QEMU, two devices with 32 MSI-X vectors each are enough to put the second device's ITT at an address MAPD truncates into the first's.
The second zeroes an ITT reused from the pool, as MAPD requires. The third frees the page when gen_pool_add() fails.
Based on Linux 7.4-rc1 (6628e7d4c6b25).
Cheers,
/fuad
Fuad Tabba (3):
irqchip/gic-v3-its: Align sub-page ITTs to 256 bytes irqchip/gic-v3-its: Zero ITTs reused from the ITT pool irqchip/gic-v3-its: Free the page when gen_pool_add() fails
drivers/irqchip/irq-gic-v3-its.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
Signature · 1 line
2.47.3