linux/drivers/gpu/drm/msm/adreno
Arnd Bergmann bdab8e8b2b drm/msm: gpu: call qcom_mdt interfaces only for ARCH_QCOM
When compile-testing for something other than ARCH_QCOM,
we run into a link error:

drivers/gpu/drm/msm/adreno/a5xx_gpu.o: In function `a5xx_hw_init':
a5xx_gpu.c:(.text.a5xx_hw_init+0x600): undefined reference to `qcom_mdt_get_size'
a5xx_gpu.c:(.text.a5xx_hw_init+0x93c): undefined reference to `qcom_mdt_load'

There is already an #ifdef that tries to check for CONFIG_QCOM_MDT_LOADER,
but that symbol is only meaningful when building for ARCH_QCOM.

This adds a compile-time check for ARCH_QCOM, and clarifies the
Kconfig select statement so we don't even try it for other targets.

The check for CONFIG_QCOM_MDT_LOADER can then go away, which also
improves compile-time coverage and makes the code a little nicer
to read.

Fixes: 7c65817e6d ("drm/msm: gpu: Enable zap shader for A5XX")
Acked-by: Jordan Crouse <jcrouse@codeaurora.org>
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rob Clark <robdclark@gmail.com>
2017-08-01 19:25:51 -04:00
..
a2xx.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00
a3xx_gpu.c drm/msm: Remove idle function hook 2017-06-16 11:15:47 -04:00
a3xx_gpu.h drm/msm: update generated headers 2014-08-04 11:55:28 -04:00
a3xx.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00
a4xx_gpu.c drm/msm: Remove idle function hook 2017-06-16 11:15:47 -04:00
a4xx_gpu.h drm/msm: a4xx support for msm-drm 2014-11-16 14:27:40 -05:00
a4xx.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00
a5xx_gpu.c drm/msm: gpu: call qcom_mdt interfaces only for ARCH_QCOM 2017-08-01 19:25:51 -04:00
a5xx_gpu.h drm/msm: Allow hardware clock gating to be toggled 2017-08-01 19:10:28 -04:00
a5xx_power.c drm/msm: Separate locking of buffer resources from struct_mutex 2017-06-17 08:03:07 -04:00
a5xx.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00
adreno_common.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00
adreno_device.c drm/msm: fix locking inconsistency for gpu->hw_init() 2017-06-16 11:16:01 -04:00
adreno_gpu.c drm/msm/adreno: Prevent unclocked access when retrieving timestamps 2017-08-01 19:20:13 -04:00
adreno_gpu.h drm/msm: Remove memptrs->wptr 2017-06-16 11:16:01 -04:00
adreno_pm4.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00