iommu/arm-smmu: Fix bug in ARM_SMMU_FEAT_TRANS_OPS condition check
Subsystems (2)
PATCH 1/1 iommu/arm-smmu: Fix bug in ARM_SMMU_FEAT_TRANS_OPS condition check
Patch 'fix ARM_SMMU_FEAT_TRANS_OPS condition' changed the check for ARM_SMMU_FEAT_TRANS_OPS to be based on presence of stage1 check, but used (id & ID0_ATOSNS) instead of !(id & ID0_ATOSNS). Fix it here.
--- drivers/iommu/arm-smmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/arm-smmu.c +1 -1
@@ -1866,7 +1866,7 @@ static int arm_smmu_device_cfg_probe(struct arm_smmu_device *smmu)return -ENODEV ; } -if ((id &ID0_S1TS ) && ((smmu->version ==1 ) || (id &ID0_ATOSNS ))) { +if ((id &ID0_S1TS ) && ((smmu->version ==1 ) || !(id &ID0_ATOSNS ))) { smmu->features |=ARM_SMMU_FEAT_TRANS_OPS ;dev_notice (smmu->dev,"\taddress translation ops\n" ); }
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
This issue has already been fixed here :
http://www.spinics.net/lists/arm-kernel/msg424824.html
Regards,
Baptiste
Quoted 26 lines · Sricharan R
Patch 'fix
ARM_SMMU_FEAT_TRANS_OPScondition' changed the check forARM_SMMU_FEAT_TRANS_OPSto be based on presence of stage1 check, but used (id &ID0_ATOSNS) instead of !(id &ID0_ATOSNS). Fix it here.Signed-off-by Sricharan R <[email protected]>--- drivers/iommu/arm-smmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iommu/arm-smmu.c +1
-2@@ -1866,7 +1866,7 @@ static int arm_smmu_device_cfg_probe(struct arm_smmu_device *smmu)return -ENODEV ; } -if ((id &ID0_S1TS ) && ((smmu->version ==1 ) || (id &ID0_ATOSNS ))) { +if ((id &ID0_S1TS ) && ((smmu->version ==1 ) || !(id &ID0_ATOSNS ))) { smmu->features |=ARM_SMMU_FEAT_TRANS_OPS ;dev_notice (smmu->dev,"\taddress translation ops\n" ); } --QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Hi,
Quoted 10 lines
-----Original Message-----
From: linux-arm-kernel [mailto:linux-arm-kernel-
bounces at lists.infradead.org] On Behalf Of Baptiste Reynal
Sent: Tuesday, June 23, 2015 5:43 PM
To: Sricharan R
Cc: linux-arm-msm at vger.kernel.org; Linux IOMMU; Will Deacon; open list; moderated list:ARM SMMU DRIVER
Subject: Re: [PATCH] iommu/arm-smmu: Fix bug inARM_SMMU_FEAT_TRANS_OPScondition check
Quoted 3 lines
This issue has already been fixed here :
http://www.spinics.net/lists/arm-kernel/msg424824.html
Ok, thanks for pointing.
Regards,
Sricharan