Re: [PATCH v13 04/12] iommu/arm-smmu-v3: Pack the MSI vectors of the used sources

From: Jason Gunthorpe

Date: Wed Dec 02 2026 - 12:31:54 EST


On Tue, 17 Nov 2026 11:21:21 -0800, Nicolin Chen <nicolinc@xxxxxxxxxx> wrote:
> arm_smmu_setup_msis() skips the PRIQ vector by decreasing nvec, which only
> works since PRIQ_MSI_INDEX is the last index. A subsequent change will make
> the EVTQ optional for kdump, whose index is 0, so that trick won't work.
>
> Pack the vectors of the used sources instead, and record the source of each
> vector in a new msi_map, for arm_smmu_write_msi_msg() to find the register
> set, regardless of the sources in use.
>
> [...]

Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>

--
Jason