linux_dsm_epyc7002/drivers/gpu/drm/etnaviv
Philipp Zabel 49b82c389d drm/etnaviv: make THERMAL selectable
The etnaviv driver causes a link failure if it is built-in but THERMAL
is built as a module:

  drivers/gpu/drm/etnaviv/etnaviv_gpu.o: In function `etnaviv_gpu_bind':
  etnaviv_gpu.c:(.text+0x4c4): undefined reference to `thermal_of_cooling_device_register'
  etnaviv_gpu.c:(.text+0x600): undefined reference to `thermal_cooling_device_unregister'
  drivers/gpu/drm/etnaviv/etnaviv_gpu.o: In function `etnaviv_gpu_unbind':
  etnaviv_gpu.c:(.text+0x2aac): undefined reference to `thermal_cooling_device_unregister'

Adding a Kconfig dependency on THERMAL || !THERMAL to avoid this causes
a dependency loop on x86_64:

  drivers/gpu/drm/tve200/Kconfig:1:error: recursive dependency detected!
  For a resolution refer to Documentation/kbuild/kconfig-language.txt
  subsection "Kconfig recursive dependency limitations"
  drivers/gpu/drm/tve200/Kconfig:1:       symbol DRM_TVE200 depends on CMA
  For a resolution refer to Documentation/kbuild/kconfig-language.txt
  subsection "Kconfig recursive dependency limitations"
  mm/Kconfig:489: symbol CMA is selected by DRM_ETNAVIV
  For a resolution refer to Documentation/kbuild/kconfig-language.txt
  subsection "Kconfig recursive dependency limitations"
  drivers/gpu/drm/etnaviv/Kconfig:2:      symbol DRM_ETNAVIV depends on THERMAL
  For a resolution refer to Documentation/kbuild/kconfig-language.txt
  subsection "Kconfig recursive dependency limitations"
  drivers/thermal/Kconfig:5:      symbol THERMAL is selected by ACPI_VIDEO
  For a resolution refer to Documentation/kbuild/kconfig-language.txt
  subsection "Kconfig recursive dependency limitations"
  drivers/acpi/Kconfig:189:       symbol ACPI_VIDEO is selected by BACKLIGHT_CLASS_DEVICE
  For a resolution refer to Documentation/kbuild/kconfig-language.txt
  subsection "Kconfig recursive dependency limitations"
  drivers/video/backlight/Kconfig:158:    symbol BACKLIGHT_CLASS_DEVICE is selected by DRM_PARADE_PS8622
  For a resolution refer to Documentation/kbuild/kconfig-language.txt
  subsection "Kconfig recursive dependency limitations"
  drivers/gpu/drm/bridge/Kconfig:62:      symbol DRM_PARADE_PS8622 depends on DRM_BRIDGE
  For a resolution refer to Documentation/kbuild/kconfig-language.txt
  subsection "Kconfig recursive dependency limitations"
  drivers/gpu/drm/bridge/Kconfig:1:       symbol DRM_BRIDGE is selected by DRM_TVE200

To work around this, add a new option DRM_ETNAVIV_THERMAL to optionally
enable thermal throttling support and make DRM_ETNAVIV select THERMAL
at the same time.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
2017-12-01 17:37:54 +01:00
..
cmdstream.xml.h drm/etnaviv: Allow DRAW_INSTANCED commands 2016-12-02 19:30:22 +01:00
common.xml.h drm/etnaviv: update common.xml.h 2017-05-05 17:14:41 +02:00
etnaviv_buffer.c drm/etnaviv: add 'sync point' support 2017-10-10 11:45:45 +02:00
etnaviv_cmd_parser.c drm/etnaviv: add sensitive state for occlusion query address 2017-12-01 17:37:30 +01:00
etnaviv_cmdbuf.c drm/etnaviv: extend etnaviv_gpu_cmdbuf_new(..) with nr_pmrs 2017-10-10 11:45:43 +02:00
etnaviv_cmdbuf.h drm/etnaviv: extend etnaviv_gpu_cmdbuf_new(..) with nr_pmrs 2017-10-10 11:45:43 +02:00
etnaviv_drv.c drm/etnaviv: short-circuit perfmon ioctls 2017-10-22 18:41:56 +02:00
etnaviv_drv.h drm/etnaviv: remove unused function etnaviv_gem_new 2017-10-10 11:46:57 +02:00
etnaviv_dump.c mm, vmalloc: use __GFP_HIGHMEM implicitly 2017-05-08 17:15:13 -07:00
etnaviv_dump.h drm/etnaviv: add initial etnaviv DRM driver 2015-12-15 14:48:02 +01:00
etnaviv_gem_prime.c drm/etnaviv: switch to drm_*{get,put} helpers 2017-08-08 15:47:32 +02:00
etnaviv_gem_submit.c Merge branch 'etnaviv/next' of https://git.pengutronix.de/git/lst/linux into drm-next 2017-10-14 09:39:56 +10:00
etnaviv_gem.c main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
etnaviv_gem.h drm/etnaviv: fix submit flags getting overwritten by BO content 2017-06-28 10:35:46 +02:00
etnaviv_gpu.c drm/etnaviv: make THERMAL selectable 2017-12-01 17:37:54 +01:00
etnaviv_gpu.h drm/etnaviv: use 'sync points' for performance monitor requests 2017-10-10 11:45:47 +02:00
etnaviv_iommu_v2.c drm/etnaviv: remove IOMMU dependency 2017-10-10 11:36:37 +02:00
etnaviv_iommu.c drm/etnaviv: remove IOMMU dependency 2017-10-10 11:36:37 +02:00
etnaviv_iommu.h drm/etnaviv: remove IOMMU dependency 2017-10-10 11:36:37 +02:00
etnaviv_mmu.c drm/etnaviv: Improve unlocking of a mutex in etnaviv_iommu_map_gem() 2017-12-01 17:37:31 +01:00
etnaviv_mmu.h drm/etnaviv: remove IOMMU dependency 2017-10-10 11:36:37 +02:00
etnaviv_perfmon.c drm/etnaviv: add MC perf domain 2017-10-10 11:45:52 +02:00
etnaviv_perfmon.h drm/etnaviv: add performance monitor request processing 2017-10-10 11:45:45 +02:00
Kconfig drm/etnaviv: make THERMAL selectable 2017-12-01 17:37:54 +01:00
Makefile main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
state_3d.xml.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
state_hi.xml.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
state.xml.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00