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