xref: /linux/drivers/gpu/drm/amd/amdgpu/Kconfig (revision e332935a540eb76dd656663ca908eb0544d96757)
1bd95c144SAlex Deucher# SPDX-License-Identifier: MIT
2cb20d650SAndrew Davis
3cb20d650SAndrew Davisconfig DRM_AMDGPU
4cb20d650SAndrew Davis	tristate "AMD GPU"
58fe743b5SArnd Bergmann	depends on DRM && PCI
6dffe6813SPeter Foley	depends on !UML
7cb20d650SAndrew Davis	select FW_LOADER
81f828b4dSThomas Zimmermann	select DRM_CLIENT
932acc286SThomas Zimmermann	select DRM_CLIENT_SELECTION
10cb20d650SAndrew Davis	select DRM_DISPLAY_DP_HELPER
11ca097d4dSDmitry Baryshkov	select DRM_DISPLAY_DSC_HELPER
12cb20d650SAndrew Davis	select DRM_DISPLAY_HDMI_HELPER
13455ad259SHarry Wentland	select DRM_DISPLAY_HDCP_HELPER
14cb20d650SAndrew Davis	select DRM_DISPLAY_HELPER
15cb20d650SAndrew Davis	select DRM_KMS_HELPER
16cb20d650SAndrew Davis	select DRM_SCHED
17cb20d650SAndrew Davis	select DRM_TTM
18cb20d650SAndrew Davis	select DRM_TTM_HELPER
19cb20d650SAndrew Davis	select POWER_SUPPLY
20cb20d650SAndrew Davis	select HWMON
21000458b5SUwe Kleine-König	select I2C
22000458b5SUwe Kleine-König	select I2C_ALGOBIT
23621a4e9eSLijo Lazar	select CRC16
24cb20d650SAndrew Davis	select BACKLIGHT_CLASS_DEVICE
25cb20d650SAndrew Davis	select INTERVAL_TREE
26cb20d650SAndrew Davis	select DRM_BUDDY
27c103a23fSMaarten Lankhorst	select DRM_SUBALLOC_HELPER
288abc1eb2SChristian König	select DRM_EXEC
29c2753b24SThomas Weißschuh	select DRM_PANEL_BACKLIGHT_QUIRKS
30cb20d650SAndrew Davis	# amdgpu depends on ACPI_VIDEO when ACPI is enabled, for select to work
31cb20d650SAndrew Davis	# ACPI_VIDEO's dependencies must also be selected.
32cb20d650SAndrew Davis	select INPUT if ACPI
33cb20d650SAndrew Davis	select ACPI_VIDEO if ACPI
34cb20d650SAndrew Davis	# On x86 ACPI_VIDEO also needs ACPI_WMI
35cb20d650SAndrew Davis	select X86_PLATFORM_DEVICES if ACPI && X86
36cb20d650SAndrew Davis	select ACPI_WMI if ACPI && X86
37cb20d650SAndrew Davis	help
38cb20d650SAndrew Davis	  Choose this option if you have a recent AMD Radeon graphics card.
39cb20d650SAndrew Davis
40cb20d650SAndrew Davis	  If M is selected, the module will be called amdgpu.
41cb20d650SAndrew Davis
42a036db18SKen Wangconfig DRM_AMDGPU_SI
43a036db18SKen Wang	bool "Enable amdgpu support for SI parts"
44a036db18SKen Wang	depends on DRM_AMDGPU
45a036db18SKen Wang	help
46a036db18SKen Wang	  Choose this option if you want to enable experimental support
47133dc89cSAndré Almeida	  for SI (Southern Islands) asics.
48a036db18SKen Wang
49ef789173SFelix Kuehling	  SI is already supported in radeon. Experimental support for SI
50ef789173SFelix Kuehling	  in amdgpu will be disabled by default and is still provided by
51ef789173SFelix Kuehling	  radeon. Use module options to override this:
52ef789173SFelix Kuehling
53ef789173SFelix Kuehling	  radeon.si_support=0 amdgpu.si_support=1
54ef789173SFelix Kuehling
55d38ceaf9SAlex Deucherconfig DRM_AMDGPU_CIK
56d38ceaf9SAlex Deucher	bool "Enable amdgpu support for CIK parts"
57d38ceaf9SAlex Deucher	depends on DRM_AMDGPU
58d38ceaf9SAlex Deucher	help
59133dc89cSAndré Almeida	  Choose this option if you want to enable support for CIK (Sea
60133dc89cSAndré Almeida	  Islands) asics.
61d38ceaf9SAlex Deucher
622b059658SMichel Dänzer	  CIK is already supported in radeon. Support for CIK in amdgpu
632b059658SMichel Dänzer	  will be disabled by default and is still provided by radeon.
642b059658SMichel Dänzer	  Use module options to override this:
65ef789173SFelix Kuehling
662b059658SMichel Dänzer	  radeon.cik_support=0 amdgpu.cik_support=1
67d38ceaf9SAlex Deucher
68d38ceaf9SAlex Deucherconfig DRM_AMDGPU_USERPTR
69d38ceaf9SAlex Deucher	bool "Always enable userptr write support"
70d38ceaf9SAlex Deucher	depends on DRM_AMDGPU
719c240a7bSChristoph Hellwig	select HMM_MIRROR
729c240a7bSChristoph Hellwig	select MMU_NOTIFIER
73d38ceaf9SAlex Deucher	help
742c5a51f5SPhilip Yang	  This option selects CONFIG_HMM and CONFIG_HMM_MIRROR if it
752c5a51f5SPhilip Yang	  isn't already selected to enabled full userptr support.
76a1d29476SChristian König
778930b90bSAlex Deucherconfig DRM_AMD_ISP
788930b90bSAlex Deucher	bool "Enable AMD Image Signal Processor IP support"
79*3e9d9df8SPratap Nirujogi	depends on DRM_AMDGPU && ACPI
808930b90bSAlex Deucher	select MFD_CORE
818930b90bSAlex Deucher	select PM_GENERIC_DOMAINS if PM
828930b90bSAlex Deucher	help
838930b90bSAlex Deucher	Choose this option to enable ISP IP support for AMD SOCs.
848930b90bSAlex Deucher	This adds the ISP (Image Signal Processor) IP driver and wires
858930b90bSAlex Deucher	it up into the amdgpu driver.  It is required for cameras
868930b90bSAlex Deucher	on APUs which utilize mipi cameras.
878930b90bSAlex Deucher
881b320ad3SHamza Mahfoozconfig DRM_AMDGPU_WERROR
891b320ad3SHamza Mahfooz	bool "Force the compiler to throw an error instead of a warning when compiling"
901b320ad3SHamza Mahfooz	depends on DRM_AMDGPU
911b320ad3SHamza Mahfooz	depends on EXPERT
921b320ad3SHamza Mahfooz	depends on !COMPILE_TEST
931b320ad3SHamza Mahfooz	default n
941b320ad3SHamza Mahfooz	help
951b320ad3SHamza Mahfooz	  Add -Werror to the build flags for amdgpu.ko.
961b320ad3SHamza Mahfooz	  Only enable this if you are warning code for amdgpu.ko.
971b320ad3SHamza Mahfooz
98fdba11f4SAlex Deuchersource "drivers/gpu/drm/amd/acp/Kconfig"
994562236bSHarry Wentlandsource "drivers/gpu/drm/amd/display/Kconfig"
10004d5e276SAmber Linsource "drivers/gpu/drm/amd/amdkfd/Kconfig"
101