WSL2-Linux-Kernel/drivers/remoteproc
Randy Dunlap eee412e968 remoteproc: qcom: q6v5: fix service routines build errors
When CONFIG_QCOM_AOSS_QMP=m and CONFIG_QCOM_Q6V5_MSS=y, the builtin
driver cannot call into the loadable module's low-level service
functions. Trying to build with that config combo causes linker errors.

There are two problems here. First, drivers/remoteproc/qcom_q6v5.c
should #include <linux/soc/qcom/qcom_aoss.h> for the definitions of
the service functions, depending on whether CONFIG_QCOM_AOSS_QMP is
set/enabled or not. Second, the qcom remoteproc drivers should depend
on QCOM_AOSS_QMP iff it is enabled (=y or =m) so that the qcom
remoteproc drivers can be built properly.

This prevents these build errors:

aarch64-linux-ld: drivers/remoteproc/qcom_q6v5.o: in function `q6v5_load_state_toggle':
qcom_q6v5.c:(.text+0xc4): undefined reference to `qmp_send'
aarch64-linux-ld: drivers/remoteproc/qcom_q6v5.o: in function `qcom_q6v5_deinit':
(.text+0x2e4): undefined reference to `qmp_put'
aarch64-linux-ld: drivers/remoteproc/qcom_q6v5.o: in function `qcom_q6v5_init':
(.text+0x778): undefined reference to `qmp_get'
aarch64-linux-ld: (.text+0x7d8): undefined reference to `qmp_put'

Fixes: c1fe10d238 ("remoteproc: qcom: q6v5: Use qmp_send to update co-processor load state")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: linux-remoteproc@vger.kernel.org
Cc: Sibi Sankar <sibis@codeaurora.org>
Cc: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220115011338.2973-1-rdunlap@infradead.org
2022-01-17 16:44:26 -06:00
..
Kconfig remoteproc: qcom: q6v5: fix service routines build errors 2022-01-17 16:44:26 -06:00
Makefile remoteproc: Add Renesas rcar driver 2021-12-13 11:30:55 -07:00
da8xx_remoteproc.c
imx_dsp_rproc.c remoteproc: imx_dsp_rproc: mark PM functions as __maybe_unused 2021-10-14 10:05:21 -06:00
imx_rproc.c remoteproc: imx_rproc: correct firmware reload 2021-12-13 16:58:05 -06:00
imx_rproc.h remoteproc: imx_rproc: Add IMX_RPROC_SCU_API method 2021-10-12 09:16:13 -06:00
ingenic_rproc.c remoteproc: ingenic: Request IRQ disabled 2021-12-06 10:17:44 -07:00
keystone_remoteproc.c
meson_mx_ao_arc.c remoteproc: meson-mx-ao-arc: fix a bit test 2021-10-04 10:40:29 -05:00
mtk_common.h remoteproc: mediatek: Support mt8195 scp 2021-09-27 18:37:19 -05:00
mtk_scp.c remoteproc: mediatek: Support mt8195 scp 2021-09-27 18:37:19 -05:00
mtk_scp_ipi.c remoteproc: Fix remaining wrong return formatting in documentation 2021-12-08 10:09:40 -07:00
omap_remoteproc.c remoteproc: omap_remoteproc: simplify getting .driver_data 2021-10-15 09:49:55 -05:00
omap_remoteproc.h
pru_rproc.c
pru_rproc.h
qcom_common.c
qcom_common.h
qcom_pil_info.c remoteproc: qcom: pil_info: Don't memcpy_toio more than is provided 2021-12-13 16:58:05 -06:00
qcom_pil_info.h
qcom_q6v5.c remoteproc: qcom: q6v5: fix service routines build errors 2022-01-17 16:44:26 -06:00
qcom_q6v5.h
qcom_q6v5_adsp.c
qcom_q6v5_mss.c remoteproc: qcom_q6v5_mss: Use devm_platform_ioremap_resource_byname() to simplify code 2021-10-15 09:49:55 -05:00
qcom_q6v5_pas.c remoteproc: qcom: pas: Add SM6350 CDSP support 2021-12-13 17:02:07 -06:00
qcom_q6v5_wcss.c
qcom_sysmon.c
qcom_wcnss.c
qcom_wcnss.h
qcom_wcnss_iris.c
rcar_rproc.c remoteproc: rcar_rproc: Remove trailing semicolon 2021-12-20 09:33:59 -07:00
remoteproc_cdev.c
remoteproc_core.c remoteproc: Use %pe format string to print return error code 2021-11-17 09:36:08 -07:00
remoteproc_coredump.c remoteproc: coredump: Correct argument 2 type for memcpy_fromio 2021-11-17 09:37:31 -07:00
remoteproc_debugfs.c
remoteproc_elf_helpers.h
remoteproc_elf_loader.c remoteproc: Fix the wrong default value of is_iomem 2021-09-27 18:37:04 -05:00
remoteproc_internal.h
remoteproc_sysfs.c
remoteproc_virtio.c remoteproc: Remove vdev_to_rvdev and vdev_to_rproc from remoteproc API 2021-10-15 09:49:55 -05:00
st_remoteproc.c
st_slim_rproc.c remoteproc: Fix remaining wrong return formatting in documentation 2021-12-08 10:09:40 -07:00
stm32_rproc.c remoteproc: stm32: Improve crash recovery time 2022-01-03 11:40:45 -07:00
ti_k3_dsp_remoteproc.c remoteproc: k3-dsp: Extend support for C71x DSPs on J721S2 SoCs 2021-12-01 09:51:30 -07:00
ti_k3_r5_remoteproc.c remoteproc: k3-r5: Extend support for R5F clusters on J721S2 SoCs 2021-12-01 09:51:30 -07:00
ti_sci_proc.h
wkup_m3_rproc.c