Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: "Nathan Chancellor" <nathan@kernel.org>,
	"Chaitanya Dhere" <chaitanya.dhere@amd.com>,
	"Jun Lei" <jun.lei@amd.com>,
	"Harry Wentland" <harry.wentland@amd.com>,
	"Leo Li" <sunpeng.li@amd.com>,
	"Rodrigo Siqueira" <Rodrigo.Siqueira@amd.com>,
	"Alex Deucher" <alexander.deucher@amd.com>,
	"Christian König" <christian.koenig@amd.com>,
	"Xinhui Pan" <Xinhui.Pan@amd.com>,
	amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	llvm@lists.linux.dev, patches@lists.linux.dev,
	"kernel test robot" <lkp@intel.com>
Subject: Re: [PATCH] drm/amd/display: Increase sanitizer frame larger than limit when compile testing with clang
Date: Thu, 30 Jan 2025 08:04:30 +0100	[thread overview]
Message-ID: <2025013003-audience-opposing-7f95@gregkh> (raw)
In-Reply-To: <2025013058-fasting-gibberish-9718@gregkh>

On Thu, Jan 30, 2025 at 07:47:59AM +0100, Greg KH wrote:
> On Mon, Jan 06, 2025 at 12:29:32PM -0500, Alex Deucher wrote:
> > Applied.  Thanks!
> 
> Thanks, but I am still getting this error on Linus's current tree right
> now, with this commit applied:
> 
>   CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.o
> drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c:6713:12: error: stack frame size (2056) exceeds limit (2048) in 'dml_core_mode_support' [-Werror,-Wframe-larger-than]
>  6713 | dml_bool_t dml_core_mode_support(struct display_mode_lib_st *mode_lib)
>       |            ^
> 1 error generated.
> 
> 
> I think the issue is:
> 
> > > --- a/drivers/gpu/drm/amd/display/dc/dml2/Makefile
> > > +++ b/drivers/gpu/drm/amd/display/dc/dml2/Makefile
> > > @@ -29,7 +29,11 @@ dml2_rcflags := $(CC_FLAGS_NO_FPU)
> > >
> > >  ifneq ($(CONFIG_FRAME_WARN),0)
> > >  ifeq ($(filter y,$(CONFIG_KASAN)$(CONFIG_KCSAN)),y)
> 
> I do not have CONFIG_KASAN or CONFIG_KCSAN enabled, but I do have:
> 
> > > +ifeq ($(CONFIG_CC_IS_CLANG)$(CONFIG_COMPILE_TEST),yy)
> 
> These two options enabled, and for some reason:
> 	CONFIG_FRAME_WARN=2048
> as well.
> 
> Ah, 2048 is the default value, that's how.
> 
> So this warning triggers even without KASAN or KCSAN being enabled, is
> that to be expected?  Is the stack really being used that much here?
> 
> I'll go bump FRAME_WARN up to get some local testing working again, but
> odds are others are going to hit this if I am in my "normal" build
> tests.

Ick, no, bumping CONFIG_FRAME_WARN=8192 doesn't fix this here either.
Any hints?

thanks,

greg k-h

  reply	other threads:[~2025-01-30  7:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-19 23:46 [PATCH] drm/amd/display: Increase sanitizer frame larger than limit when compile testing with clang Nathan Chancellor
2025-01-06 17:29 ` Alex Deucher
2025-01-30  6:47   ` Greg KH
2025-01-30  7:04     ` Greg KH [this message]
2025-01-30 16:02       ` Harry Wentland
2025-01-30 17:51         ` Nathan Chancellor
2025-01-30 19:16           ` Harry Wentland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2025013003-audience-opposing-7f95@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=Rodrigo.Siqueira@amd.com \
    --cc=Xinhui.Pan@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=alexdeucher@gmail.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=chaitanya.dhere@amd.com \
    --cc=christian.koenig@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=harry.wentland@amd.com \
    --cc=jun.lei@amd.com \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=nathan@kernel.org \
    --cc=patches@lists.linux.dev \
    --cc=sunpeng.li@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox