OSDN Git Service

iommu/arm-smmu: fix ARM_SMMU_FEAT_TRANS_OPS condition
authorBaptiste Reynal <b.reynal@virtualopensystems.com>
Wed, 4 Mar 2015 15:51:06 +0000 (16:51 +0100)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:14:49 +0000 (11:14 -0700)
commit1805fabc3e76b80e2dcc73f78e70ee9b61406e9b
tree41a2588ee6f3841d206a936d74f7c0218de08a90
parentaaf63985193d717bba56d601a9521dbc412e0b50
iommu/arm-smmu: fix ARM_SMMU_FEAT_TRANS_OPS condition

This patch is a fix to "iommu/arm-smmu: add support for iova_to_phys
through ATS1PR".
According to ARM documentation, translation registers are optional even
in SMMUv1, so ID0_S1TS needs to be checked to verify their presence.
Also, we check that the domain is a stage-1 domain.

Change-Id: I2164ddb3806f941d21463731d0991ce1a83a5221
Signed-off-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/arm-smmu.c