OSDN Git Service

iommu/arm-smmu: Don't BUG() if we find aborting STEs with disable_bypass
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / drivers / iommu / arm-smmu-v3.c
index ebd5d04..00df383 100644 (file)
@@ -1025,6 +1025,9 @@ static void arm_smmu_write_strtab_ent(struct arm_smmu_device *smmu, u32 sid,
                case STRTAB_STE_0_CFG_S2_TRANS:
                        ste_live = true;
                        break;
+               case STRTAB_STE_0_CFG_ABORT:
+                       if (disable_bypass)
+                               break;
                default:
                        BUG(); /* STE corruption */
                }