]> Git Repo - J-linux.git/commitdiff
drm/amdgpu: temporarily disable broken Clang builds due to blown stack-frame
authorLee Jones <[email protected]>
Fri, 25 Nov 2022 12:07:49 +0000 (12:07 +0000)
committerAndrew Morton <[email protected]>
Wed, 30 Nov 2022 22:49:42 +0000 (14:49 -0800)
Patch series "Fix a bunch of allmodconfig errors", v2.

Since b339ec9c229aa ("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:
https://github.com/llvm/llvm-project/issues/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]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
drivers/gpu/drm/amd/display/Kconfig

index 6925e0280dbe62110616321145f8363d89926d06..f4f3d2665a6b20b6c3027bded60207c41f6c3516 100644 (file)
@@ -5,6 +5,7 @@ menu "Display Engine Configuration"
 config DRM_AMD_DC
        bool "AMD DC - Enable new display engine"
        default y
+       depends on BROKEN || !CC_IS_CLANG || X86_64 || SPARC64 || ARM64
        select SND_HDA_COMPONENT if SND_HDA_CORE
        select DRM_AMD_DC_DCN if (X86 || PPC_LONG_DOUBLE_128)
        help
@@ -12,6 +13,12 @@ config DRM_AMD_DC
          support for AMDGPU. This adds required support for Vega and
          Raven ASICs.
 
+         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: https://github.com/llvm/llvm-project/issues/41896.
+
 config DRM_AMD_DC_DCN
        def_bool n
        help
This page took 0.053544 seconds and 4 git commands to generate.