remoteproc: qcom_q6v5_pas: add support for assigning memory to firmware
authorNeil Armstrong <neil.armstrong@linaro.org>
Wed, 18 Jan 2023 16:22:42 +0000 (17:22 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 18 Jan 2023 17:41:21 +0000 (11:41 -0600)
commitc63c0a7cab91b930a6ee78c28b481b84bfa98b7f
tree80f02ba600a4ab30520cc3f137a33bf14c0c510f
parent29814986b82e820ae9d3eb7474cdcf66605bd114
remoteproc: qcom_q6v5_pas: add support for assigning memory to firmware

Starting with SM8550, the DSM memory must now be shared to the
firmware by the APPS process instead of being defined in the
carveout memory reserved for MPSS.

In order to handle that, add a region_assign_idx in adsp_data
to specify with index of memory-region must be assigned to
the MPSS via the qcom_scm_assign_mem() call at probe time.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221114-narmstrong-sm8550-upstream-remoteproc-v4-4-54154c08c0b7@linaro.org
drivers/remoteproc/qcom_q6v5_pas.c