]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommu/arm-smmu-qcom: apply num_context_bank fixes for SDM630 / SDM660
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 7 Sep 2024 18:48:12 +0000 (21:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:08 +0000 (16:29 +0200)
commitc390a26db31ab61efe4ba3b05e7a9560d5e26445
tree630001b1784a5930b1b2c9dd3850904aefbd12c8
parent7acaef4f28b64d605a30ab7abeeef9996b90b82a
iommu/arm-smmu-qcom: apply num_context_bank fixes for SDM630 / SDM660

[ Upstream commit 19eb465c969f3d6ed1b98506d3e470e863b41e16 ]

The Qualcomm SDM630 / SDM660 platform requires the same kind of
workaround as MSM8998: some IOMMUs have context banks reserved by
firmware / TZ, touching those banks resets the board.

Apply the num_context_bank workaround to those two SMMU devices in order
to allow them to be used by Linux.

Fixes: b812834b5329 ("iommu: arm-smmu-qcom: Add sdm630/msm8998 compatibles for qcom quirks")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20240907-sdm660-wifi-v1-1-e316055142f8@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c