xref: /linux/drivers/gpu/drm/amd/display/Kconfig (revision 2c1ed907520c50326b8f604907a8478b27881a2e)
1ad808910SAlex Deucher# SPDX-License-Identifier: MIT
2f5d75327SLeo Ma# Copyright © 2019-2024 Advanced Micro Devices, Inc. All rights reserved.
3f5d75327SLeo Ma
44562236bSHarry Wentlandmenu "Display Engine Configuration"
54562236bSHarry Wentland	depends on DRM && DRM_AMDGPU
64562236bSHarry Wentland
74562236bSHarry Wentlandconfig DRM_AMD_DC
84562236bSHarry Wentland	bool "AMD DC - Enable new display engine"
94562236bSHarry Wentland	default y
104217ef9aSHuacai Chen	depends on BROKEN || !CC_IS_CLANG || ARM64 || LOONGARCH || RISCV || SPARC64 || X86_64
11*75948742SKun Liu	select CEC_CORE
12*75948742SKun Liu	select CEC_NOTIFIER
136ce8f316SNicholas Kazlauskas	select SND_HDA_COMPONENT if SND_HDA_CORE
1479b72db6SAo Zhong	# !CC_IS_CLANG: https://github.com/ClangBuiltLinux/linux/issues/1752
154217ef9aSHuacai Chen	select DRM_AMD_DC_FP if ARCH_HAS_KERNEL_FPU_SUPPORT && !(CC_IS_CLANG && (ARM64 || LOONGARCH || RISCV))
164562236bSHarry Wentland	help
174562236bSHarry Wentland	  Choose this option if you want to use the new display engine
184562236bSHarry Wentland	  support for AMDGPU. This adds required support for Vega and
194562236bSHarry Wentland	  Raven ASICs.
204562236bSHarry Wentland
214217ef9aSHuacai Chen	  calculate_bandwidth() is presently broken on all !(X86_64 || SPARC64 ||
224217ef9aSHuacai Chen	  ARM64 || LOONGARCH || RISCV) architectures built with Clang (all released
234217ef9aSHuacai Chen	  versions), whereby the stack frame gets blown up to well over 5k.  This
244217ef9aSHuacai Chen	  would cause an immediate kernel panic on most architectures.  We'll revert
254217ef9aSHuacai Chen	  this when the following bug report has been resolved:
264217ef9aSHuacai Chen	  https://github.com/llvm/llvm-project/issues/41896.
276f6cb171SLee Jones
284652ae7aSHarry Wentlandconfig DRM_AMD_DC_FP
299d1d02ffSLeo (Sunpeng) Li	def_bool n
30dc37a9a0SLeo (Sunpeng) Li	help
314652ae7aSHarry Wentland	  Floating point support, required for DCN-based SoCs
3236d26912SBhawanpreet Lakha
335963cddeSMauro Rossiconfig DRM_AMD_DC_SI
345963cddeSMauro Rossi	bool "AMD DC support for Southern Islands ASICs"
35c2c15410SAlex Deucher	depends on DRM_AMDGPU_SI
36c2c15410SAlex Deucher	depends on DRM_AMD_DC
375963cddeSMauro Rossi	help
385963cddeSMauro Rossi	  Choose this option to enable new AMD DC support for SI asics
395963cddeSMauro Rossi	  by default. This includes Tahiti, Pitcairn, Cape Verde, Oland.
405963cddeSMauro Rossi	  Hainan is not supported by AMD DC and it has no physical DCE6.
415963cddeSMauro Rossi
424562236bSHarry Wentlandconfig DEBUG_KERNEL_DC
434562236bSHarry Wentland	bool "Enable kgdb break in DC"
444562236bSHarry Wentland	depends on DRM_AMD_DC
45c5ff0c19STakashi Iwai	depends on KGDB
464562236bSHarry Wentland	help
4717fd4fe9SRandy Dunlap	  Choose this option if you want to hit kdgb_break in assert.
484562236bSHarry Wentland
4986bc2219SWayne Linconfig DRM_AMD_SECURE_DISPLAY
5086bc2219SWayne Lin	bool "Enable secure display support"
5186bc2219SWayne Lin	depends on DEBUG_FS
524652ae7aSHarry Wentland	depends on DRM_AMD_DC_FP
5386bc2219SWayne Lin	help
54d155cfffSSui Jingfeng	  Choose this option if you want to support secure display
5586bc2219SWayne Lin
56d155cfffSSui Jingfeng	  This option enables the calculation of crc of specific region via
57d155cfffSSui Jingfeng	  debugfs. Cooperate with specific DMCU FW.
5886bc2219SWayne Lin
594562236bSHarry Wentlandendmenu
60