firmware: qcom: scm: Add function to set IOMMU pagetable addressing
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Wed, 8 Dec 2021 08:34:23 +0000 (09:34 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 31 Jan 2022 21:00:46 +0000 (15:00 -0600)
commit071a13332de894cb3c38b17c82350f1e4167c023
treeac168a0e4d24a5d15f343f898b16cd7e455017c0
parent943515090ec67f81f6f93febfddb8c9118357e97
firmware: qcom: scm: Add function to set IOMMU pagetable addressing

Add a function to change the IOMMU pagetable addressing to
AArch32 LPAE or AArch64. If doing that, then this must be
done for each IOMMU context (not necessarily at the same time).

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
[Marijn: ported from 5.3 to the unified architecture in 5.11]
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211208083423.22037-4-marijn.suijten@somainline.org
drivers/firmware/qcom_scm.c
drivers/firmware/qcom_scm.h
include/linux/qcom_scm.h