Kconfig 2.43 KB
Newer Older
1
# SPDX-License-Identifier: MIT
2 3 4

config DRM_AMDGPU
	tristate "AMD GPU"
5 6 7 8
	depends on DRM
	depends on DRM_DISPLAY_HELPER
	depends on MMU
	depends on PCI
9
	depends on !UML
10
	select FW_LOADER
11
	select DRM_DISPLAY_DP_HELPER
12
	select DRM_DISPLAY_HDMI_HELPER
13
	select DRM_DISPLAY_HDCP_HELPER
14 15 16 17 18 19
	select DRM_KMS_HELPER
	select DRM_SCHED
	select DRM_TTM
	select DRM_TTM_HELPER
	select POWER_SUPPLY
	select HWMON
20 21
	select I2C
	select I2C_ALGOBIT
22 23 24
	select BACKLIGHT_CLASS_DEVICE
	select INTERVAL_TREE
	select DRM_BUDDY
25
	select DRM_SUBALLOC_HELPER
26
	select DRM_EXEC
27 28 29 30 31 32 33 34 35 36 37 38
	# amdgpu depends on ACPI_VIDEO when ACPI is enabled, for select to work
	# ACPI_VIDEO's dependencies must also be selected.
	select INPUT if ACPI
	select ACPI_VIDEO if ACPI
	# On x86 ACPI_VIDEO also needs ACPI_WMI
	select X86_PLATFORM_DEVICES if ACPI && X86
	select ACPI_WMI if ACPI && X86
	help
	  Choose this option if you have a recent AMD Radeon graphics card.

	  If M is selected, the module will be called amdgpu.

39 40 41 42 43
config DRM_AMDGPU_SI
	bool "Enable amdgpu support for SI parts"
	depends on DRM_AMDGPU
	help
	  Choose this option if you want to enable experimental support
44
	  for SI (Southern Islands) asics.
45

46 47 48 49 50 51
	  SI is already supported in radeon. Experimental support for SI
	  in amdgpu will be disabled by default and is still provided by
	  radeon. Use module options to override this:

	  radeon.si_support=0 amdgpu.si_support=1

52 53 54 55
config DRM_AMDGPU_CIK
	bool "Enable amdgpu support for CIK parts"
	depends on DRM_AMDGPU
	help
56 57
	  Choose this option if you want to enable support for CIK (Sea
	  Islands) asics.
58

59 60 61
	  CIK is already supported in radeon. Support for CIK in amdgpu
	  will be disabled by default and is still provided by radeon.
	  Use module options to override this:
62

63
	  radeon.cik_support=0 amdgpu.cik_support=1
64 65 66 67

config DRM_AMDGPU_USERPTR
	bool "Always enable userptr write support"
	depends on DRM_AMDGPU
68 69 70
	depends on MMU
	select HMM_MIRROR
	select MMU_NOTIFIER
71
	help
72 73
	  This option selects CONFIG_HMM and CONFIG_HMM_MIRROR if it
	  isn't already selected to enabled full userptr support.
74

75 76 77 78 79 80 81 82 83 84
config DRM_AMDGPU_WERROR
	bool "Force the compiler to throw an error instead of a warning when compiling"
	depends on DRM_AMDGPU
	depends on EXPERT
	depends on !COMPILE_TEST
	default n
	help
	  Add -Werror to the build flags for amdgpu.ko.
	  Only enable this if you are warning code for amdgpu.ko.

85
source "drivers/gpu/drm/amd/acp/Kconfig"
86
source "drivers/gpu/drm/amd/display/Kconfig"
87
source "drivers/gpu/drm/amd/amdkfd/Kconfig"