]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/arm-smmu-qcom: Initialize SCTLR of the bypass context
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 6 Jan 2021 00:50:38 +0000 (16:50 -0800)
committerWill Deacon <will@kernel.org>
Thu, 7 Jan 2021 14:10:46 +0000 (14:10 +0000)
commit14950882c12f8cba9fa9bfd04ebc352b5bf826d9
tree7805b553e15f805b88a913daac2fb17cc0e4d2d8
parent083e4b39f91742f0ab1fbbd37c989e932aa213c5
iommu/arm-smmu-qcom: Initialize SCTLR of the bypass context

On SM8150 it's occasionally observed that the boot hangs in between the
writing of SMEs and context banks in arm_smmu_device_reset().

The problem seems to coincide with a display refresh happening after
updating the stream mapping, but before clearing - and there by
disabling translation - the context bank picked to emulate translation
bypass.

Resolve this by explicitly disabling the bypass context already in
cfg_probe.

Fixes: 93bf3691d6f9 ("iommu/arm-smmu-qcom: Implement S2CR quirk")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210106005038.4152731-1-bjorn.andersson@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c