linux_dsm_epyc7002/drivers/interconnect/qcom
Arnd Bergmann fcd04aa9b5 interconnect: qcom: fix rpmh link failures
commit 512d4a26abdbd11c6ffa03032740e5ab3c62c55b upstream.

When CONFIG_COMPILE_TEST is set, it is possible to build some
of the interconnect drivers into the kernel while their dependencies
are loadable modules, which is bad:

arm-linux-gnueabi-ld: drivers/interconnect/qcom/bcm-voter.o: in function `qcom_icc_bcm_voter_commit':
(.text+0x1f8): undefined reference to `rpmh_invalidate'
arm-linux-gnueabi-ld: (.text+0x20c): undefined reference to `rpmh_write_batch'
arm-linux-gnueabi-ld: (.text+0x2b0): undefined reference to `rpmh_write_batch'
arm-linux-gnueabi-ld: (.text+0x2e8): undefined reference to `rpmh_write_batch'
arm-linux-gnueabi-ld: drivers/interconnect/qcom/icc-rpmh.o: in function `qcom_icc_bcm_init':
(.text+0x2ac): undefined reference to `cmd_db_read_addr'
arm-linux-gnueabi-ld: (.text+0x2c8): undefined reference to `cmd_db_read_aux_data'

The exact dependencies are a bit complicated, so split them out into a
hidden Kconfig symbol that all drivers can in turn depend on to get it
right.

Fixes: 976daac4a1 ("interconnect: qcom: Consolidate interconnect RPMh support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20201204165030.3747484-1-arnd@kernel.org
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-17 14:17:01 +01:00
..
bcm-voter.c interconnect: qcom: Add support for per-BCM scaling factors 2020-09-08 16:28:57 +03:00
bcm-voter.h interconnect: qcom: Consolidate interconnect RPMh support 2020-02-28 12:11:40 +02:00
icc-rpmh.c interconnect: qcom: Ensure that the floor bandwidth value is enforced 2020-10-22 13:26:26 +03:00
icc-rpmh.h interconnect: qcom: Implement xlate_extended() to parse tags 2020-09-08 16:29:00 +03:00
Kconfig interconnect: qcom: fix rpmh link failures 2021-01-17 14:17:01 +01:00
Makefile interconnect: qcom: Add SM8250 interconnect provider driver 2020-09-08 16:28:53 +03:00
msm8916.c interconnect: qcom: msm8916: Remove rpm-ids from non-RPM nodes 2020-11-20 15:51:51 +02:00
msm8974.c interconnect: qcom: msm8974: Don't boost the NoC rate during boot 2020-11-18 00:21:47 +02:00
osm-l3.c Merge branch 'icc-syncstate' into icc-next 2020-09-18 09:13:40 +03:00
qcs404.c interconnect: qcom: qcs404: Remove GPU and display RPM IDs 2020-11-20 15:52:05 +02:00
sc7180.c interconnect: qcom: sc7180: Init BCMs before creating the nodes 2020-10-15 09:24:00 +03:00
sc7180.h interconnect: qcom: Add OSM L3 support on SC7180 2020-03-03 19:02:52 +02:00
sdm845.c interconnect: qcom: sdm845: Init BCMs before creating the nodes 2020-10-15 09:24:00 +03:00
sdm845.h interconnect: qcom: Add OSM L3 interconnect provider support 2020-03-03 19:02:52 +02:00
sm8150.c interconnect: qcom: use icc_sync state for sm8[12]50 2020-10-27 16:01:22 +02:00
sm8150.h interconnect: qcom: Add OSM L3 support on SM8150 2020-09-08 16:29:01 +03:00
sm8250.c interconnect: qcom: use icc_sync state for sm8[12]50 2020-10-27 16:01:22 +02:00
sm8250.h interconnect: qcom: Add EPSS L3 support on SM8250 2020-09-08 16:29:01 +03:00
smd-rpm.c interconnect: qcom: Add interconnect RPM over SMD driver 2019-08-13 23:06:40 +03:00
smd-rpm.h interconnect: qcom: Add interconnect RPM over SMD driver 2019-08-13 23:06:40 +03:00