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