xref: /openbmc/linux/drivers/gpu/drm/amd/amdgpu/Kconfig (revision 98ce7d32)
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	# amdgpu depends on ACPI_VIDEO when ACPI is enabled, for select to work
24	# ACPI_VIDEO's dependencies must also be selected.
25	select INPUT if ACPI
26	select ACPI_VIDEO if ACPI
27	# On x86 ACPI_VIDEO also needs ACPI_WMI
28	select X86_PLATFORM_DEVICES if ACPI && X86
29	select ACPI_WMI if ACPI && X86
30	help
31	  Choose this option if you have a recent AMD Radeon graphics card.
32
33	  If M is selected, the module will be called amdgpu.
34
35config DRM_AMDGPU_SI
36	bool "Enable amdgpu support for SI parts"
37	depends on DRM_AMDGPU
38	help
39	  Choose this option if you want to enable experimental support
40	  for SI (Southern Islands) asics.
41
42	  SI is already supported in radeon. Experimental support for SI
43	  in amdgpu will be disabled by default and is still provided by
44	  radeon. Use module options to override this:
45
46	  radeon.si_support=0 amdgpu.si_support=1
47
48config DRM_AMDGPU_CIK
49	bool "Enable amdgpu support for CIK parts"
50	depends on DRM_AMDGPU
51	help
52	  Choose this option if you want to enable support for CIK (Sea
53	  Islands) asics.
54
55	  CIK is already supported in radeon. Support for CIK in amdgpu
56	  will be disabled by default and is still provided by radeon.
57	  Use module options to override this:
58
59	  radeon.cik_support=0 amdgpu.cik_support=1
60
61config DRM_AMDGPU_USERPTR
62	bool "Always enable userptr write support"
63	depends on DRM_AMDGPU
64	depends on MMU
65	select HMM_MIRROR
66	select MMU_NOTIFIER
67	help
68	  This option selects CONFIG_HMM and CONFIG_HMM_MIRROR if it
69	  isn't already selected to enabled full userptr support.
70
71source "drivers/gpu/drm/amd/acp/Kconfig"
72source "drivers/gpu/drm/amd/display/Kconfig"
73source "drivers/gpu/drm/amd/amdkfd/Kconfig"
74