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