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