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