From 2486726307b16b31a11ae4d95071c056002bc420 Mon Sep 17 00:00:00 2001 From: Zhen Lei Date: Fri, 3 Sep 2021 10:54:58 +0800 Subject: [PATCH] iommu/arm-smmu-v3: add bit field SFM into GERROR_ERR_MASK mainline inclusion from mainline-v5.13-rc1 commit 655c447c97d7fe462e6cd9e15809037be028bc70 category: bugfix bugzilla: 71819 CVE: NA ------------------------------------------------- In arm_smmu_gerror_handler(), the value of the SMMU_GERROR register is filtered by GERROR_ERR_MASK. However, the GERROR_ERR_MASK does not contain the SFM bit. As a result, the subsequent error processing is not performed when only the SFM error occurs. Fixes: 48ec83bcbcf5 ("iommu/arm-smmu: Add initial driver support for ARM SMMUv3 devices") Reported-by: Rui Zhu Signed-off-by: Zhen Lei Link: https://lore.kernel.org/r/20210324081603.1074-1-thunder.leizhen@huawei.com Signed-off-by: Will Deacon Signed-off-by: Chen Wandun Reviewed-by: tong tiangen Signed-off-by: Yang Yingliang --- drivers/iommu/arm-smmu-v3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c index aecd07c31953..500ba02fae1b 100644 --- a/drivers/iommu/arm-smmu-v3.c +++ b/drivers/iommu/arm-smmu-v3.c @@ -149,7 +149,7 @@ #define GERROR_PRIQ_ABT_ERR (1 << 3) #define GERROR_EVTQ_ABT_ERR (1 << 2) #define GERROR_CMDQ_ERR (1 << 0) -#define GERROR_ERR_MASK 0xfd +#define GERROR_ERR_MASK 0x1fd #define ARM_SMMU_GERRORN 0x64 -- GitLab