-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-Wframe-larger-than instances in drivers/gpu/drm/amd/display/dc/dml with ARCH=arm64 #1752
Comments
v4 has included a condition to avoid these warnings by not enabling the problematic code when building with clang. https://lore.kernel.org/20221031193738.23538-2-hacc1225@gmail.com/ Once this patch is in the tree with that bit, it will have to be removed to investigate this issue (basically reverse this diff). Just notating that in case we do a bug scrub in the future, people do not try to close this because they cannot reproduce the issue :) Additionally, anyone is free to investigate this, should they come across this issue from the source tree or other means. |
I see similar warnings in my X86-build of a 6.0.6 Kernel with some patches (get them here):
|
/me too see these warning with x86-64 and selfmade LLVM-15.0.3 (ThinLTO + PGO optimized - KCFI sanitizer).
My kernel-config is attached. Note: I reported this already via PM. |
Please open a new issue for those instances, as they are likely related to LTO, given they are coming from |
Also, clang-18 has some improvements around stack usage. Since it's not clear to me from this thread what fixed this where ( Please reopen with more info if you can reproduce with clang-18+ (containing https://reviews.llvm.org/rGe698695fbbf62e6676f8907665187f2d2c4d814b) |
Reopening to track partially reverting |
Did you apply this when testing? diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig
index bf0a655d009e..7abdfcaaaca1 100644
--- a/drivers/gpu/drm/amd/display/Kconfig
+++ b/drivers/gpu/drm/amd/display/Kconfig
@@ -8,7 +8,7 @@ config DRM_AMD_DC
depends on BROKEN || !CC_IS_CLANG || X86_64 || SPARC64 || ARM64
select SND_HDA_COMPONENT if SND_HDA_CORE
# !CC_IS_CLANG: https://github.com/ClangBuiltLinux/linux/issues/1752
- select DRM_AMD_DC_FP if (X86 || LOONGARCH || (PPC64 && ALTIVEC) || (ARM64 && KERNEL_MODE_NEON && !CC_IS_CLANG))
+ select DRM_AMD_DC_FP if (X86 || LOONGARCH || (PPC64 && ALTIVEC) || (ARM64 && KERNEL_MODE_NEON))
help
Choose this option if you want to use the new display engine
support for AMDGPU. This adds required support for Vega and because I still see
with clang-18 at llvm/llvm-project@2628fa3, which has llvm/llvm-project@e698695, when building |
Ah, you're right. |
duplicating this to #39. Once the two issues identified by #39 (comment) are fixed in clang, we can reopen this if necessary. |
An in-progress change is going to turn on the files that were problematic for x86 (#1681) for arm64 as well, which will show new warnings for
allmodconfig
:This will require further investigation and I would rather not hold up the patch just for that so I am going to recommend that this enablement be gated on
!CC_IS_CLANG
to allow us to figure out what is going on out of band.The text was updated successfully, but these errors were encountered: