From 76c120afe7956ca51f34f7afac7dd8599e86f3ac Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:07 +0100 Subject: [PATCH] Revert "iommu/arm-smmu-qcom: hide last LPASS SMMU context bank from linux" This reverts commit 440ca404fc506318412cb32b4340d018ce641a58. --- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c index fa115e506..7efa4ca53 100755 --- a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c +++ b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c @@ -206,13 +206,6 @@ static int qcom_smmu_cfg_probe(struct arm_smmu_device *smmu) u32 smr; int i; - /* - * MSM8998 LPASS SMMU reports 13 context banks, but accessing - * the last context bank crashes the system. - */ - if (of_device_is_compatible(smmu->dev->of_node, "qcom,msm8998-smmu-v2") && smmu->num_context_banks == 13) - smmu->num_context_banks = 12; - /* * Some platforms support more than the Arm SMMU architected maximum of * 128 stream matching groups. For unknown reasons, the additional