xref: /linux/drivers/gpu/drm/amd/amdgpu/Kconfig (revision 0db66572747a789922e8137904e8b4c39d9b94f6)
1# SPDX-License-Identifier: MIT
2
3config DRM_AMDGPU
4	tristate "AMD GPU"
5	depends on DRM
6	depends on DRM_DISPLAY_DP_HELPER
7	depends on DRM_DISPLAY_HDCP_HELPER
8	depends on DRM_DISPLAY_HDMI_HELPER
9	depends on DRM_DISPLAY_HELPER
10	depends on MMU
11	depends on PCI
12	depends on !UML
13	select FW_LOADER
14	select DRM_KMS_HELPER
15	select DRM_SCHED
16	select DRM_TTM
17	select DRM_TTM_HELPER
18	select POWER_SUPPLY
19	select HWMON
20	select I2C
21	select I2C_ALGOBIT
22	select CRC16
23	select BACKLIGHT_CLASS_DEVICE
24	select INTERVAL_TREE
25	select DRM_BUDDY
26	select DRM_SUBALLOC_HELPER
27	select DRM_EXEC
28	# amdgpu depends on ACPI_VIDEO when ACPI is enabled, for select to work
29	# ACPI_VIDEO's dependencies must also be selected.
30	select INPUT if ACPI
31	select ACPI_VIDEO if ACPI
32	# On x86 ACPI_VIDEO also needs ACPI_WMI
33	select X86_PLATFORM_DEVICES if ACPI && X86
34	select ACPI_WMI if ACPI && X86
35	help
36	  Choose this option if you have a recent AMD Radeon graphics card.
37
38	  If M is selected, the module will be called amdgpu.
39
40config DRM_AMDGPU_SI
41	bool "Enable amdgpu support for SI parts"
42	depends on DRM_AMDGPU
43	help
44	  Choose this option if you want to enable experimental support
45	  for SI (Southern Islands) asics.
46
47	  SI is already supported in radeon. Experimental support for SI
48	  in amdgpu will be disabled by default and is still provided by
49	  radeon. Use module options to override this:
50
51	  radeon.si_support=0 amdgpu.si_support=1
52
53config DRM_AMDGPU_CIK
54	bool "Enable amdgpu support for CIK parts"
55	depends on DRM_AMDGPU
56	help
57	  Choose this option if you want to enable support for CIK (Sea
58	  Islands) asics.
59
60	  CIK is already supported in radeon. Support for CIK in amdgpu
61	  will be disabled by default and is still provided by radeon.
62	  Use module options to override this:
63
64	  radeon.cik_support=0 amdgpu.cik_support=1
65
66config DRM_AMDGPU_USERPTR
67	bool "Always enable userptr write support"
68	depends on DRM_AMDGPU
69	depends on MMU
70	select HMM_MIRROR
71	select MMU_NOTIFIER
72	help
73	  This option selects CONFIG_HMM and CONFIG_HMM_MIRROR if it
74	  isn't already selected to enabled full userptr support.
75
76config DRM_AMDGPU_WERROR
77	bool "Force the compiler to throw an error instead of a warning when compiling"
78	depends on DRM_AMDGPU
79	depends on EXPERT
80	depends on !COMPILE_TEST
81	default n
82	help
83	  Add -Werror to the build flags for amdgpu.ko.
84	  Only enable this if you are warning code for amdgpu.ko.
85
86source "drivers/gpu/drm/amd/acp/Kconfig"
87source "drivers/gpu/drm/amd/display/Kconfig"
88source "drivers/gpu/drm/amd/amdkfd/Kconfig"
89