soc: qcom: rmtfs: Optionally map RMTFS to more VMs
authorLoic Poulain <loic.poulain@linaro.org>
Mon, 9 Jan 2023 13:05:22 +0000 (14:05 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 11 Jan 2023 04:55:28 +0000 (22:55 -0600)
commite656cd0bcf3d2ba2eceac82b44714bf355428ec4
tree68660c2e2138f659cd93ecc510fb30e04797d8e5
parentda0d37e42f93f7bd6351e7ef67a52ea9a272c761
soc: qcom: rmtfs: Optionally map RMTFS to more VMs

Some SoCs require that RMTFS is also mapped to the NAV VM. Trying to
power on the modem without that results in the whole platform
crashing and forces a hard reboot within about 2 seconds. Add support
for mapping the region to additional VMs, such as NAV to open a path
towards enabling modem on such platforms.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
[Konrad: reword, make conditional and flexible, add a define for NAV VMID]
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230109130523.298971-2-konrad.dybcio@linaro.org
drivers/soc/qcom/rmtfs_mem.c
include/linux/qcom_scm.h