xref: /linux/drivers/gpu/drm/amd/amdgpu/Kconfig (revision 20bed0d6ff62d985fe8222958825504b8aad4e88)
1# SPDX-License-Identifier: MIT
2
3config DRM_AMDGPU
4	tristate "AMD GPU"
5	depends on DRM && PCI
6	select FW_LOADER
7	select DRM_CLIENT
8	select DRM_CLIENT_SELECTION
9	select DRM_DISPLAY_DP_HELPER
10	select DRM_DISPLAY_DSC_HELPER
11	select DRM_DISPLAY_HDMI_HELPER
12	select DRM_DISPLAY_HDCP_HELPER
13	select DRM_DISPLAY_HELPER
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	select DRM_PANEL_BACKLIGHT_QUIRKS
29	# amdgpu depends on ACPI_VIDEO when ACPI is enabled, for select to work
30	# ACPI_VIDEO's dependencies must also be selected.
31	select INPUT if ACPI
32	select ACPI_VIDEO if ACPI
33	select ACPI_WMI if ACPI
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 support
44	  for SI (Southern Islands) asics.
45
46	  SI (Southern Islands) are first generation GCN GPUs,
47	  supported by both drivers: radeon (old) and amdgpu (new).
48	  By default, SI dedicated GPUs are supported by amdgpu.
49
50	  Use module options to override this:
51	  To use radeon for SI,
52	  radeon.si_support=1 amdgpu.si_support=0
53
54config DRM_AMDGPU_CIK
55	bool "Enable amdgpu support for CIK parts"
56	depends on DRM_AMDGPU
57	help
58	  Choose this option if you want to enable support for CIK (Sea
59	  Islands) asics.
60
61	  CIK (Sea Islands) are second generation GCN GPUs,
62	  supported by both drivers: radeon (old) and amdgpu (new).
63	  By default,
64	  CIK dedicated GPUs are supported by amdgpu
65	  CIK APUs are supported by radeon
66
67	  Use module options to override this:
68	  To use amdgpu for CIK,
69	  radeon.cik_support=0 amdgpu.cik_support=1
70	  To use radeon for CIK,
71	  radeon.cik_support=1 amdgpu.cik_support=0
72
73config DRM_AMDGPU_USERPTR
74	bool "Always enable userptr write support"
75	depends on DRM_AMDGPU
76	select HMM_MIRROR
77	select MMU_NOTIFIER
78	help
79	  This option selects CONFIG_HMM and CONFIG_HMM_MIRROR if it
80	  isn't already selected to enabled full userptr support.
81
82config DRM_AMD_ISP
83	bool "Enable AMD Image Signal Processor IP support"
84	depends on DRM_AMDGPU && ACPI
85	select MFD_CORE
86	select PM_GENERIC_DOMAINS if PM
87	help
88	Choose this option to enable ISP IP support for AMD SOCs.
89	This adds the ISP (Image Signal Processor) IP driver and wires
90	it up into the amdgpu driver.  It is required for cameras
91	on APUs which utilize mipi cameras.
92
93config DRM_AMDGPU_WERROR
94	bool "Force the compiler to throw an error instead of a warning when compiling"
95	depends on DRM_AMDGPU
96	depends on EXPERT
97	depends on !COMPILE_TEST
98	default n
99	help
100	  Add -Werror to the build flags for amdgpu.ko.
101	  Only enable this if you are warning code for amdgpu.ko.
102
103
104config GCOV_PROFILE_AMDGPU
105	bool "Enable GCOV profiling on amdgpu"
106	depends on DRM_AMDGPU
107	depends on GCOV_KERNEL
108	default n
109	help
110	  Enable GCOV profiling on the amdgpu driver for checking which
111	  functions/lines are executed during testing. This adds compiler
112	  instrumentation flags to all amdgpu source files, producing
113	  .gcda/.gcno coverage data accessible via debugfs.
114
115	  This increases the amdgpu module size by ~50% and adds ~2-5%
116	  runtime overhead on GPU submission paths.
117
118	  If unsure, say N.
119
120source "drivers/gpu/drm/amd/acp/Kconfig"
121source "drivers/gpu/drm/amd/display/Kconfig"
122source "drivers/gpu/drm/amd/amdkfd/Kconfig"
123