Skip to content
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 in drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c #2036

Open
nathanchance opened this issue Jul 3, 2024 · 1 comment
Open
Labels
-Wframe-larger-than= [ARCH] powerpc This bug impacts ARCH=powerpc Reported upstream This bug was filed on LLVM’s issue tracker, Phabricator, or the kernel mailing list.

Comments

@nathanchance
Copy link
Member

This warning appears with Fedora's PowerPC configuration:

$ curl -LSso .config https://src.fedoraproject.org/rpms/kernel/raw/rawhide/f/kernel-ppc64le-fedora.config

$ make -skj"$(nproc)" ARCH=powerpc LLVM=1 olddefconfig drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.o
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c:714:12: error: stack frame size (2272) exceeds limit (2048) in 'vcn_v5_0_0_start' [-Werror,-Wframe-larger-than]
  714 | static int vcn_v5_0_0_start(struct amdgpu_device *adev)
      |            ^
1 error generated.

I am reducing via cvise, this appears to be related to -fsanitize=bounds (via CONFIG_UBSAN_BOUNDS=y in Fedora's configuration), so this could be a code generation issue.

@nathanchance nathanchance added [ARCH] powerpc This bug impacts ARCH=powerpc -Wframe-larger-than= labels Jul 3, 2024
nathanchance added a commit to nathanchance/continuous-integration2 that referenced this issue Jul 3, 2024
drm is not -Werror clean on this build, so turn it off until it can be
fixed or worked around in some other way.

Link: ClangBuiltLinux/linux#2036
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
@nathanchance
Copy link
Member Author

I forgot to mention that I filed an issue for this upstream: llvm/llvm-project#98367

@nathanchance nathanchance added the Reported upstream This bug was filed on LLVM’s issue tracker, Phabricator, or the kernel mailing list. label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-Wframe-larger-than= [ARCH] powerpc This bug impacts ARCH=powerpc Reported upstream This bug was filed on LLVM’s issue tracker, Phabricator, or the kernel mailing list.
Projects
None yet
Development

No branches or pull requests

1 participant