Re: [PATCH] iommu/arm-smmu-v3: Change vmid alloc strategy from bitmap to ida

From: Will Deacon
Date: Tue Aug 01 2023 - 16:42:16 EST


On Sun, 16 Jul 2023 00:16:21 +0800, Dawei Li wrote:
> For current implementation of vmid allocation of arm smmu-v3, a per-smmu
> devide bitmap of 64K bits(8K bytes) is allocated on behalf of possible VMID
> range, which is two pages for some architectures. Besides that, its memory
> consumption is 'static', despite of how many VMIDs are allocated actually.
>
> That's memory inefficient and lack of scalability.
>
> [...]

Applied to will (for-joerg/arm-smmu/updates), thanks!

[1/1] iommu/arm-smmu-v3: Change vmid alloc strategy from bitmap to ida
https://git.kernel.org/will/c/1672730cffaf

Cheers,
--
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev