xref: /linux/drivers/gpu/drm/amd/amdgpu/Kconfig (revision cb20d6508bff89d85319dbe9a74c50983afc3390)
1bd95c144SAlex Deucher# SPDX-License-Identifier: MIT
2*cb20d650SAndrew Davis
3*cb20d650SAndrew Davisconfig DRM_AMDGPU
4*cb20d650SAndrew Davis	tristate "AMD GPU"
5*cb20d650SAndrew Davis	depends on DRM && PCI && MMU
6*cb20d650SAndrew Davis	select FW_LOADER
7*cb20d650SAndrew Davis	select DRM_DISPLAY_DP_HELPER
8*cb20d650SAndrew Davis	select DRM_DISPLAY_HDMI_HELPER
9*cb20d650SAndrew Davis	select DRM_DISPLAY_HELPER
10*cb20d650SAndrew Davis	select DRM_KMS_HELPER
11*cb20d650SAndrew Davis	select DRM_SCHED
12*cb20d650SAndrew Davis	select DRM_TTM
13*cb20d650SAndrew Davis	select DRM_TTM_HELPER
14*cb20d650SAndrew Davis	select POWER_SUPPLY
15*cb20d650SAndrew Davis	select HWMON
16*cb20d650SAndrew Davis	select BACKLIGHT_CLASS_DEVICE
17*cb20d650SAndrew Davis	select INTERVAL_TREE
18*cb20d650SAndrew Davis	select DRM_BUDDY
19*cb20d650SAndrew Davis	# amdgpu depends on ACPI_VIDEO when ACPI is enabled, for select to work
20*cb20d650SAndrew Davis	# ACPI_VIDEO's dependencies must also be selected.
21*cb20d650SAndrew Davis	select INPUT if ACPI
22*cb20d650SAndrew Davis	select ACPI_VIDEO if ACPI
23*cb20d650SAndrew Davis	# On x86 ACPI_VIDEO also needs ACPI_WMI
24*cb20d650SAndrew Davis	select X86_PLATFORM_DEVICES if ACPI && X86
25*cb20d650SAndrew Davis	select ACPI_WMI if ACPI && X86
26*cb20d650SAndrew Davis	help
27*cb20d650SAndrew Davis	  Choose this option if you have a recent AMD Radeon graphics card.
28*cb20d650SAndrew Davis
29*cb20d650SAndrew Davis	  If M is selected, the module will be called amdgpu.
30*cb20d650SAndrew Davis
31a036db18SKen Wangconfig DRM_AMDGPU_SI
32a036db18SKen Wang	bool "Enable amdgpu support for SI parts"
33a036db18SKen Wang	depends on DRM_AMDGPU
34a036db18SKen Wang	help
35a036db18SKen Wang	  Choose this option if you want to enable experimental support
36133dc89cSAndré Almeida	  for SI (Southern Islands) asics.
37a036db18SKen Wang
38ef789173SFelix Kuehling	  SI is already supported in radeon. Experimental support for SI
39ef789173SFelix Kuehling	  in amdgpu will be disabled by default and is still provided by
40ef789173SFelix Kuehling	  radeon. Use module options to override this:
41ef789173SFelix Kuehling
42ef789173SFelix Kuehling	  radeon.si_support=0 amdgpu.si_support=1
43ef789173SFelix Kuehling
44d38ceaf9SAlex Deucherconfig DRM_AMDGPU_CIK
45d38ceaf9SAlex Deucher	bool "Enable amdgpu support for CIK parts"
46d38ceaf9SAlex Deucher	depends on DRM_AMDGPU
47d38ceaf9SAlex Deucher	help
48133dc89cSAndré Almeida	  Choose this option if you want to enable support for CIK (Sea
49133dc89cSAndré Almeida	  Islands) asics.
50d38ceaf9SAlex Deucher
512b059658SMichel Dänzer	  CIK is already supported in radeon. Support for CIK in amdgpu
522b059658SMichel Dänzer	  will be disabled by default and is still provided by radeon.
532b059658SMichel Dänzer	  Use module options to override this:
54ef789173SFelix Kuehling
552b059658SMichel Dänzer	  radeon.cik_support=0 amdgpu.cik_support=1
56d38ceaf9SAlex Deucher
57d38ceaf9SAlex Deucherconfig DRM_AMDGPU_USERPTR
58d38ceaf9SAlex Deucher	bool "Always enable userptr write support"
59d38ceaf9SAlex Deucher	depends on DRM_AMDGPU
609c240a7bSChristoph Hellwig	depends on MMU
619c240a7bSChristoph Hellwig	select HMM_MIRROR
629c240a7bSChristoph Hellwig	select MMU_NOTIFIER
63d38ceaf9SAlex Deucher	help
642c5a51f5SPhilip Yang	  This option selects CONFIG_HMM and CONFIG_HMM_MIRROR if it
652c5a51f5SPhilip Yang	  isn't already selected to enabled full userptr support.
66a1d29476SChristian König
67fdba11f4SAlex Deuchersource "drivers/gpu/drm/amd/acp/Kconfig"
684562236bSHarry Wentlandsource "drivers/gpu/drm/amd/display/Kconfig"
6904d5e276SAmber Linsource "drivers/gpu/drm/amd/amdkfd/Kconfig"
70