Skip to content

Commit e4d179d

Browse files
lag-linaroakpm00
authored andcommitted
drm/amdgpu: temporarily disable broken Clang builds due to blown stack-frame
Patch series "Fix a bunch of allmodconfig errors", v2. Since b339ec9 ("kbuild: Only default to -Werror if COMPILE_TEST") WERROR now defaults to COMPILE_TEST meaning that it's enabled for allmodconfig builds. This leads to some interesting build failures when using Clang, each resolved in this set. With this set applied, I am able to obtain a successful allmodconfig Arm build. This patch (of 2): calculate_bandwidth() is presently broken on all !(X86_64 || SPARC64 || ARM64) architectures built with Clang (all released versions), whereby the stack frame gets blown up to well over 5k. This would cause an immediate kernel panic on most architectures. We'll revert this when the following bug report has been resolved: llvm/llvm-project#41896. Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]> Suggested-by: Arnd Bergmann <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Cc: Alex Deucher <[email protected]> Cc: "Christian König" <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: David Airlie <[email protected]> Cc: Harry Wentland <[email protected]> Cc: Lee Jones <[email protected]> Cc: Leo Li <[email protected]> Cc: Maarten Lankhorst <[email protected]> Cc: Maxime Ripard <[email protected]> Cc: Nathan Chancellor <[email protected]> Cc: Nick Desaulniers <[email protected]> Cc: "Pan, Xinhui" <[email protected]> Cc: Rodrigo Siqueira <[email protected]> Cc: Thomas Zimmermann <[email protected]> Cc: Tom Rix <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent b6b0744 commit e4d179d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/gpu/drm/amd/display/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@ menu "Display Engine Configuration"
55
config DRM_AMD_DC
66
bool "AMD DC - Enable new display engine"
77
default y
8+
depends on BROKEN || !CC_IS_CLANG || X86_64 || SPARC64 || ARM64
89
select SND_HDA_COMPONENT if SND_HDA_CORE
910
select DRM_AMD_DC_DCN if (X86 || PPC_LONG_DOUBLE_128)
1011
help
1112
Choose this option if you want to use the new display engine
1213
support for AMDGPU. This adds required support for Vega and
1314
Raven ASICs.
1415

16+
calculate_bandwidth() is presently broken on all !(X86_64 || SPARC64 || ARM64)
17+
architectures built with Clang (all released versions), whereby the stack
18+
frame gets blown up to well over 5k. This would cause an immediate kernel
19+
panic on most architectures. We'll revert this when the following bug report
20+
has been resolved: https://github.com/llvm/llvm-project/issues/41896.
21+
1522
config DRM_AMD_DC_DCN
1623
def_bool n
1724
help

0 commit comments

Comments
 (0)