iommu/arm-smmu: allow translation stage to be forced on the cmdline
authorWill Deacon <will.deacon@arm.com>
Mon, 14 Jul 2014 18:47:39 +0000 (19:47 +0100)
committerHiroshi Doyu <hdoyu@nvidia.com>
Fri, 7 Nov 2014 17:31:53 +0000 (09:31 -0800)
commit3d4bef5a9522c96163b5ef6b89ba855342908a46
tree8857661dcf6c28002f58ee1b17d527e78b09fe4f
parent12e7e9a5eb74a3ebc6a76803c07de028b79573cf
iommu/arm-smmu: allow translation stage to be forced on the cmdline

When debugging and testing code on an SMMU that supports nested
translation, it can be useful to restrict the driver to a particular
stage of translation.

This patch adds a module parameter to the ARM SMMU driver to allow this
by restricting the ability of the probe() code to detect support for
only the specified stage.

Change-Id: Ib361a8932bc811c7050787a7a1ce9d0929f58e57
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry-picked from next-20141106)
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/594882
drivers/iommu/arm-smmu.c