xref: /linux/drivers/gpu/drm/amd/amdgpu/Kconfig (revision b9a14d54ab2bf0c09409f373a2120de65046178a)
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_DSC_HELPER
10	select DRM_DISPLAY_HDMI_HELPER
11	select DRM_DISPLAY_HDCP_HELPER
12	select DRM_DISPLAY_HELPER
13	select DRM_KMS_HELPER
14	select DRM_SCHED
15	select DRM_TTM
16	select DRM_TTM_HELPER
17	select POWER_SUPPLY
18	select HWMON
19	select I2C
20	select I2C_ALGOBIT
21	select CRC16
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_AMD_ISP
76	bool "Enable AMD Image Signal Processor IP support"
77	depends on DRM_AMDGPU
78	select MFD_CORE
79	select PM_GENERIC_DOMAINS if PM
80	help
81	Choose this option to enable ISP IP support for AMD SOCs.
82	This adds the ISP (Image Signal Processor) IP driver and wires
83	it up into the amdgpu driver.  It is required for cameras
84	on APUs which utilize mipi cameras.
85
86config DRM_AMDGPU_WERROR
87	bool "Force the compiler to throw an error instead of a warning when compiling"
88	depends on DRM_AMDGPU
89	depends on EXPERT
90	depends on !COMPILE_TEST
91	default n
92	help
93	  Add -Werror to the build flags for amdgpu.ko.
94	  Only enable this if you are warning code for amdgpu.ko.
95
96source "drivers/gpu/drm/amd/acp/Kconfig"
97source "drivers/gpu/drm/amd/display/Kconfig"
98source "drivers/gpu/drm/amd/amdkfd/Kconfig"
99