iommu/arm-smmu: Use STE.S1STALLD only when supported
authorPrem Mallappa <pmallapp@broadcom.com>
Mon, 14 Dec 2015 16:31:23 +0000 (22:01 +0530)
committerWill Deacon <will.deacon@arm.com>
Thu, 17 Dec 2015 12:05:36 +0000 (12:05 +0000)
commit6380be0535fd60c0a346ec0ae447f0f6c9e3ea83
treea9b38e990c01fd0f29fea30f5c215ec499d0d8a0
parent324ba1082323a51a3ad282c20e3d3b11845cf030
iommu/arm-smmu: Use STE.S1STALLD only when supported

It is ILLEGAL to set STE.S1STALLD to 1 if stage 1 is enabled and
either the stall or terminate models are not supported.

This patch fixes the STALLD check and ensures that we don't set STALLD
in the STE when it is not supported.

Signed-off-by: Prem Mallappa <pmallapp@broadcom.com>
[will: consistently use IDR0_STALL_MODEL_* prefix]
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu-v3.c