[PATCH v10 08/13] iommu/arm-smmu-v3-kexec: Add ASID/VMID reservation helpers

Jason Gunthorpe jgg at nvidia.com
Wed Sep 23 09:39:16 PDT 2026


On Sun, 30 Aug 2026 16:18:09 -0700, Nicolin Chen <nicolinc at nvidia.com> wrote:
> An adopted stream table keeps translating in-flight DMAs, so the SMMU also
> keeps caching the TLB entries tagged with the previous kernel's ASIDs and
> VMIDs. Any kexec flavor retaining those translations must reserve all the
> in-use IDs, so that this kernel cannot ever give any of its own domains an
> overlapping ID that would alias the previous kernel's cached TLB entries.
> 
> Add the reservation helpers to arm-smmu-v3-kexec.c:
>  - arm_smmu_kexec_scan_and_resv_ids()
>  - arm_smmu_kexec_unresv_ids()
> 
> [...]

Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>

-- 
Jason



More information about the linux-arm-kernel mailing list