From: Will Deacon Date: Wed, 31 Jul 2013 18:21:28 +0000 (+0100) Subject: iommu/arm-smmu: Simplify VMID and ASID allocation X-Git-Tag: v3.12-rc1~33^2^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecfadb6e5b49a0a56df2038bf39f1fcd652788b9;p=pandora-kernel.git iommu/arm-smmu: Simplify VMID and ASID allocation We only use ASIDs and VMIDs to identify individual stage-1 and stage-2 context-banks respectively, so rather than allocate these separately from the context-banks, just calculate them based on the context bank index. Note that VMIDs are offset by 1, since VMID 0 is reserved for stage-1. This doesn't cause us any issues with the numberspaces, since the maximum number of context banks is half the minimum number of VMIDs. Signed-off-by: Will Deacon Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed