xref: /linux/drivers/gpu/drm/amd/amdgpu/Kconfig (revision 6dfafbd0299a60bfb5d5e277fdf100037c7ded07)
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
46*ccd3b4c7STimur Kristóf	  Choose this option if you want to enable support
47133dc89cSAndré Almeida	  for SI (Southern Islands) asics.
48a036db18SKen Wang
49*ccd3b4c7STimur Kristóf	  SI (Southern Islands) are first generation GCN GPUs,
50*ccd3b4c7STimur Kristóf	  supported by both drivers: radeon (old) and amdgpu (new).
51*ccd3b4c7STimur Kristóf	  By default, SI dedicated GPUs are supported by amdgpu.
52ef789173SFelix Kuehling
53*ccd3b4c7STimur Kristóf	  Use module options to override this:
54*ccd3b4c7STimur Kristóf	  To use radeon for SI,
55*ccd3b4c7STimur Kristóf	  radeon.si_support=1 amdgpu.si_support=0
56ef789173SFelix Kuehling
57d38ceaf9SAlex Deucherconfig DRM_AMDGPU_CIK
58d38ceaf9SAlex Deucher	bool "Enable amdgpu support for CIK parts"
59d38ceaf9SAlex Deucher	depends on DRM_AMDGPU
60d38ceaf9SAlex Deucher	help
61133dc89cSAndré Almeida	  Choose this option if you want to enable support for CIK (Sea
62133dc89cSAndré Almeida	  Islands) asics.
63d38ceaf9SAlex Deucher
64c0344266STimur Kristóf	  CIK (Sea Islands) are second generation GCN GPUs,
65c0344266STimur Kristóf	  supported by both drivers: radeon (old) and amdgpu (new).
66c0344266STimur Kristóf	  By default,
67c0344266STimur Kristóf	  CIK dedicated GPUs are supported by amdgpu
68c0344266STimur Kristóf	  CIK APUs are supported by radeon
69ef789173SFelix Kuehling
70c0344266STimur Kristóf	  Use module options to override this:
71c0344266STimur Kristóf	  To use amdgpu for CIK,
722b059658SMichel Dänzer	  radeon.cik_support=0 amdgpu.cik_support=1
73c0344266STimur Kristóf	  To use radeon for CIK,
74c0344266STimur Kristóf	  radeon.cik_support=1 amdgpu.cik_support=0
75d38ceaf9SAlex Deucher
76d38ceaf9SAlex Deucherconfig DRM_AMDGPU_USERPTR
77d38ceaf9SAlex Deucher	bool "Always enable userptr write support"
78d38ceaf9SAlex Deucher	depends on DRM_AMDGPU
799c240a7bSChristoph Hellwig	select HMM_MIRROR
809c240a7bSChristoph Hellwig	select MMU_NOTIFIER
81d38ceaf9SAlex Deucher	help
822c5a51f5SPhilip Yang	  This option selects CONFIG_HMM and CONFIG_HMM_MIRROR if it
832c5a51f5SPhilip Yang	  isn't already selected to enabled full userptr support.
84a1d29476SChristian König
858930b90bSAlex Deucherconfig DRM_AMD_ISP
868930b90bSAlex Deucher	bool "Enable AMD Image Signal Processor IP support"
873e9d9df8SPratap Nirujogi	depends on DRM_AMDGPU && ACPI
888930b90bSAlex Deucher	select MFD_CORE
898930b90bSAlex Deucher	select PM_GENERIC_DOMAINS if PM
908930b90bSAlex Deucher	help
918930b90bSAlex Deucher	Choose this option to enable ISP IP support for AMD SOCs.
928930b90bSAlex Deucher	This adds the ISP (Image Signal Processor) IP driver and wires
938930b90bSAlex Deucher	it up into the amdgpu driver.  It is required for cameras
948930b90bSAlex Deucher	on APUs which utilize mipi cameras.
958930b90bSAlex Deucher
961b320ad3SHamza Mahfoozconfig DRM_AMDGPU_WERROR
971b320ad3SHamza Mahfooz	bool "Force the compiler to throw an error instead of a warning when compiling"
981b320ad3SHamza Mahfooz	depends on DRM_AMDGPU
991b320ad3SHamza Mahfooz	depends on EXPERT
1001b320ad3SHamza Mahfooz	depends on !COMPILE_TEST
1011b320ad3SHamza Mahfooz	default n
1021b320ad3SHamza Mahfooz	help
1031b320ad3SHamza Mahfooz	  Add -Werror to the build flags for amdgpu.ko.
1041b320ad3SHamza Mahfooz	  Only enable this if you are warning code for amdgpu.ko.
1051b320ad3SHamza Mahfooz
106fdba11f4SAlex Deuchersource "drivers/gpu/drm/amd/acp/Kconfig"
1074562236bSHarry Wentlandsource "drivers/gpu/drm/amd/display/Kconfig"
10804d5e276SAmber Linsource "drivers/gpu/drm/amd/amdkfd/Kconfig"
109