irqchip/gic-v3-its: Fixes to table allocation and the ITT pool
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest5 patches 10 repliesIn review
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | irqchip/gic-v3-its: Order table zeroing before the GIC can see itdrivers/ | +3 | 1 reply | |
| 2/5 | irqchip/gic-v3-its: Clean the GICv4.1 vPE table to PoCdrivers/ | +3 | 2 replies | |
| 3/5 | irqchip/gic-v3-its: Align sub-page ITTs to 256 bytesdrivers/ | +1 | 3 replies | |
| 4/5 | irqchip/gic-v3-its: Zero ITTs reused from the ITT pooldrivers/ | +3 | 3 replies | |
| 5/5 | irqchip/gic-v3-its: Free the page when gen_pool_add() failsdrivers/ | +4 | 1 reply |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Suzuki K Poulose | Zenghui Yu |
|---|---|---|
| 1/5 | R-b | |
| 2/5 | R-b | |
| 3/5 | R-b | R-b |
| 4/5 | R-b | R-b |
| 5/5 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/5] irqchip/gic-v3-its: Fixes to table allocation and the ITT pool
Hi folks,
Changes since v1 [1] [2]:
- Combined the ITT pool fixes [1] and the table zeroing fixes [2] into one series. (Marc)
- Dropped "Zero ITS pages before sharing them with the host". A separate patch fixes it in pkvm_set_memory_decrypted() instead [3], for every caller. (Suzuki)
- Order the zeroing with dsb(ishst), as its_flush_cmd() does, rather
than dma_wmb().
- Clean the vPE table to PoC unconditionally.
- Point the vPE table patch's Fixes: at the commit that added the table.
- Rebased on 7.4-rc3.
- Collected Reviewed-by from Suzuki on patches 3-5. (thanks!)
Five fixes to how the ITS driver sets up the memory the GIC reads.
The first adds the barrier that was missing between zeroing a table page and the write that makes the page visible to the GIC. The second cleans the GICv4.1 vPE table to PoC, as the driver already does for the pending table. Without the clean, only a redistributor that accesses the table as non-shareable can read stale contents from it.
The other three fix the ITT pool. Its 1-byte granule keeps ITTs aligned only while every ITT's size is a multiple of 256, which holds for power-of-two ITE sizes but not for QEMU's 12-byte ones. The third gives the pool a 256-byte granule. The fourth zeroes an ITT reused from the pool, as MAPD requires. The fifth frees the page when gen_pool_add() fails.
Based on Linux 7.4-rc3 (aebb727447640).
Cheers,
/fuad
[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/
[3] https://lore.kernel.org/all/[email protected]/
Fuad Tabba (5):
irqchip/gic-v3-its: Order table zeroing before the GIC can see it irqchip/gic-v3-its: Clean the GICv4.1 vPE table to PoC 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 | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-)
base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3
Signature · 1 line
2.47.3