eauger iommu/arm-smmu-v3: add CMD_TLBI_NH_VA_AM command for iova range inval…
e2af582 Aug 11, 2017
iommu/arm-smmu-v3: add CMD_TLBI_NH_VA_AM command for iova range inval…
…idation

When using a virtual SMMU and running the driver in TLBI_ON_MAP
mode we need invalidate large IOVA ranges. This typically happens
in DPDK use case where hugepages are used. In that case, invalidating
pages by page is really inefficient and we would need to invalidate
by iova range. Unfortunately there is no such command specified in the
SMMUv3 architecture spec. Let's add a new implementation defined command
that takes an address mask.

The CMD_TLBI_NH_VA_AM command format is inherited from CMD_TLBI_NH_VA's
one, replace the currently unused VMID field by the AM field.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
e2af582