iommu/arm-smmu-qcom: Read back stream mappings
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 19 Oct 2020 18:23:22 +0000 (11:23 -0700)
committerWill Deacon <will@kernel.org>
Thu, 29 Oct 2020 18:12:10 +0000 (18:12 +0000)
commit07a7f2caaa5a2619934491bab3c47b261c554fb0
tree426481dcd48fa90bb59b1dde83d835b85ea49647
parent56b75b51ed6d5e7bffda59440404409bca2dff00
iommu/arm-smmu-qcom: Read back stream mappings

The Qualcomm boot loader configures stream mapping for the peripherals
that it accesses and in particular it sets up the stream mapping for the
display controller to be allowed to scan out a splash screen or EFI
framebuffer.

Read back the stream mappings during initialization and make the
arm-smmu driver maintain the streams in bypass mode.

Cc: <stable@vger.kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Tested-by: Steev Klimaszewski <steev@kali.org>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/20201019182323.3162386-3-bjorn.andersson@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c