]> Gentwo Git Trees - linux/.git/commit
firmware: qcom: scm: Introduce CP_SMMU_APERTURE_ID
authorBjorn Andersson <bjorn.andersson@oss.qualcomm.com>
Sun, 10 Nov 2024 17:33:40 +0000 (09:33 -0800)
committerBjorn Andersson <andersson@kernel.org>
Mon, 11 Nov 2024 18:03:26 +0000 (12:03 -0600)
commit1af75b2ad08bd5977c51c2d0fc11741a4c0a48d9
tree4cfb229050ef8e39b0691640bf052ff82a296f72
parenta8fc655e01b6ca3b596b41ad000c7fead6093ce4
firmware: qcom: scm: Introduce CP_SMMU_APERTURE_ID

The QCOM_SCM_SVC_MP service provides QCOM_SCM_MP_CP_SMMU_APERTURE_ID,
which is used to trigger the mapping of register banks into the SMMU
context for per-processes page tables to function (in case this isn't
statically setup by firmware).

This is necessary on e.g. QCS6490 Rb3Gen2, in order to avoid "CP | AHB
bus error"-errors from the GPU.

Introduce a function to allow the msm driver to invoke this call.

Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Link: https://lore.kernel.org/r/20241110-adreno-smmu-aparture-v2-1-9b1fb2ee41d4@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/firmware/qcom/qcom_scm.c
drivers/firmware/qcom/qcom_scm.h
include/linux/firmware/qcom/qcom_scm.h