Skip to contentSkip to conversation

linux-next: build failure after merge of the drm-misc tree

DISCUSSION Mark Brown 3 participants 12 messages Sep 23 – Sep 25 Linux-next tree

lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi all,

After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) failed like this:

/tmp/next/build/drivers/gpu/drm/amd/amdgpu/../display/dc/dc_memory_pool.c:87:37: error: stack frame size (8264) exceeds limit (2048) in 'dc_memory_pool_create' [-Werror,-Wframe-larger-than]
87 | __must_check struct dc_memory_pool *dc_memory_pool_create(size_t size,

      |                       

which I am exceptionally frustrated to see was caused by commit

bc3f07516a992 (Merge drm/drm-next into drm-misc-next)

which merged the bug I originally reported in the amdgpu tree:

https://lore.kernel.org/r/[email protected]

and then in the drm tree when that was sent upstream without the report having been addressed in any way:

https://lore.kernel.org/r/[email protected]

neither of which have had any response at all. It really seems like there is some room for improvement in your processes here, currently that's three drm trees all held out of -next with the same fairly simple build issue. Can I suggest at least check to see if the code you are trying to merge is in -next, the drm merge was done after amdgpu had been held out of -next for several days.

#1 lore raw
Quoted 21 lines · Mark Brown

Hi all,

After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) failed like this:

/tmp/next/build/drivers/gpu/drm/amd/amdgpu/../display/dc/dc_memory_pool.c:87:37: error: stack frame size (8264) exceeds limit (2048) in 'dc_memory_pool_create' [-Werror,-Wframe-larger-than]
87 | __must_check struct dc_memory_pool *dc_memory_pool_create(size_t size,

      |

which I am exceptionally frustrated to see was caused by commit

bc3f07516a992 (Merge drm/drm-next into drm-misc-next)

which merged the bug I originally reported in the amdgpu tree:

https://lore.kernel.org/r/[email protected]

and then in the drm tree when that was sent upstream without the report having been addressed in any way:

Quoted 8 lines

https://lore.kernel.org/r/[email protected]

neither of which have had any response at all. It really seems like there is some room for improvement in your processes here, currently that's three drm trees all held out of -next with the same fairly simple build issue. Can I suggest at least check to see if the code you are trying to merge is in -next, the drm merge was done after amdgpu had been held out of -next for several days.

I sent the PR out on Thursday and you reported the issue on Friday, then the weekend happened. It was investigated and fixed, however Dave reported a different stack frame warning yesterday so we are trying to make sure that is resolved as well. In addition we've been trying to figure out why our clang builds did not catch it in the first place. All the patches should be available momentarily.

Alex

author maintainer
#2 lore raw
Quoted 11 lines · Alex Deucher
Quoted 6 lines · Mark Brown

neither of which have had any response at all. It really seems like there is some room for improvement in your processes here, currently that's three drm trees all held out of -next with the same fairly simple build issue. Can I suggest at least check to see if the code you are trying to merge is in -next, the drm merge was done after amdgpu had been held out of -next for several days.

I sent the PR out on Thursday and you reported the issue on Friday, then the weekend happened. It was investigated and fixed, however

The actual merge still didn't happen until after I'd reported the issue, and then as ever things are now starting to propagate through the other drm trees. It seems fairly obvious that there is room for improvement here, for example people could check that the code they're merging has at least made it into -next.

Quoted 4 lines

Dave reported a different stack frame warning yesterday so we are trying to make sure that is resolved as well. In addition we've been trying to figure out why our clang builds did not catch it in the first place. All the patches should be available momentarily.

OK, that sounds more promising than what had been visible to me. It would be helpful if you could be more communicative regarding these issues, the drm trees and over the past couple of releases especially the amdgpu tree take substantially more of my time than the rest of -next. Between the frequency of the issues, the length of time they persist, the way your process will obviously trigger such issues and the near total lack of response to my reports it really never feels like that time is valued.

#3 lore raw
Quoted 25 lines · Mark Brown
Quoted 11 lines · Alex Deucher
Quoted 6 lines · Mark Brown

neither of which have had any response at all. It really seems like there is some room for improvement in your processes here, currently that's three drm trees all held out of -next with the same fairly simple build issue. Can I suggest at least check to see if the code you are trying to merge is in -next, the drm merge was done after amdgpu had been held out of -next for several days.

I sent the PR out on Thursday and you reported the issue on Friday, then the weekend happened. It was investigated and fixed, however

The actual merge still didn't happen until after I'd reported the issue, and then as ever things are now starting to propagate through the other drm trees. It seems fairly obvious that there is room for improvement here, for example people could check that the code they're merging has at least made it into -next.

Quoted 4 lines

Dave reported a different stack frame warning yesterday so we are trying to make sure that is resolved as well. In addition we've been trying to figure out why our clang builds did not catch it in the first place. All the patches should be available momentarily.

Quoted 8 lines

OK, that sounds more promising than what had been visible to me. It would be helpful if you could be more communicative regarding these issues, the drm trees and over the past couple of releases especially the amdgpu tree take substantially more of my time than the rest of -next. Between the frequency of the issues, the length of time they persist, the way your process will obviously trigger such issues and the near total lack of response to my reports it really never feels like that time is valued.

Your reports are valuable and we always take them seriously even if I don't reply as quickly as I should. For the issues at hand they should all be fixed with the following patches:
https://patchwork.freedesktop.org/patch/755725/?series=174828&rev=1
https://patchwork.freedesktop.org/patch/755741/?series=174834&rev=1
https://patchwork.freedesktop.org/patch/755769/?series=172614&rev=2
I'll push a new -next branch with those fixes later today.

Alex

author maintainer
#4 lore raw
Quoted 9 lines · Alex Deucher

Your reports are valuable and we always take them seriously even if I don't reply as quickly as I should. For the issues at hand they should all be fixed with the following patches:

https://patchwork.freedesktop.org/patch/755725/?series=174828&rev=1
https://patchwork.freedesktop.org/patch/755741/?series=174834&rev=1
https://patchwork.freedesktop.org/patch/755769/?series=172614&rev=2

I'll push a new -next branch with those fixes later today.

I'm still seeing at least:

/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.c: In function ‘UseMinimumDCFCLK’:
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.c:6666:1: error: the frame size of 2064 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
6666 | }

      | ^
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.c: In function ‘UseMinimumDCFCLK’:
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.c:7460:1: error: the frame size of 2128 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
 7460 | }
      | ^
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_util_32.c: In function ‘dml32_UseMinimumDCFCLK’:
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_util_32.c:3278:1: error: the frame size of 2176 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
 3278 | }
      | ^
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn314/display_mode_vba_314.c: In function ‘UseMinimumDCFCLK’:
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn314/display_mode_vba_314.c:7546:1: error: the frame size of 2128 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
 7546 | }
      | ^

cc1: all warnings being treated as errors
make[7]: *** [/home/broonie/git/next/sfr/next/scripts/Makefile.build:290: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_util_32.o] Error 1 make[7]: *** Waiting for unfinished jobs....
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/display_mode_core.c: In function ‘dml_prefetch_check’:
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/display_mode_core.c:6821:1: error: the frame size of 2160 bytes is larger than 2056 bytes [-Werror=frame-larger-than=]
6821 | }

      | ^

after merging amdgpu today, note that this is in the -next merge and not just the amdgpu tree in isolation. I am currently holding drm and drm-misc at next-20260921, there is a conflict with the old version of them though that was just comments but they'll be in the history at the point I'm building so possibly whatever git did with the merge is causing issues.

Any fixes will also need to propagate into drm and drm-misc.

I'm also still carrying a build fix marking the display KUnit tests as BROKEN due to the issues with the conflicting changes with drm-misc which several people have noticed, for example there's this from Arnd last week:

https://lore.kernel.org/r/[email protected]

None of the mails I saw about that or the issues resulting from my mismerge got any response either.

#5 lore raw
Quoted 31 lines · Mark Brown
Quoted 9 lines · Alex Deucher

Your reports are valuable and we always take them seriously even if I don't reply as quickly as I should. For the issues at hand they should all be fixed with the following patches:

https://patchwork.freedesktop.org/patch/755725/?series=174828&rev=1
https://patchwork.freedesktop.org/patch/755741/?series=174834&rev=1
https://patchwork.freedesktop.org/patch/755769/?series=172614&rev=2

I'll push a new -next branch with those fixes later today.

I'm still seeing at least:

/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.c: In function ‘UseMinimumDCFCLK’:
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.c:6666:1: error: the frame size of 2064 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
6666 | }

      | ^
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.c: In function ‘UseMinimumDCFCLK’:
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.c:7460:1: error: the frame size of 2128 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
 7460 | }
      | ^
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_util_32.c: In function ‘dml32_UseMinimumDCFCLK’:
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_util_32.c:3278:1: error: the frame size of 2176 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
 3278 | }
      | ^
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn314/display_mode_vba_314.c: In function ‘UseMinimumDCFCLK’:
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn314/display_mode_vba_314.c:7546:1: error: the frame size of 2128 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
 7546 | }
      | ^
Quoted 7 lines

cc1: all warnings being treated as errors
make[7]: *** [/home/broonie/git/next/sfr/next/scripts/Makefile.build:290: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_util_32.o] Error 1 make[7]: *** Waiting for unfinished jobs....
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/display_mode_core.c: In function ‘dml_prefetch_check’:
/home/broonie/git/next/sfr/next/drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/display_mode_core.c:6821:1: error: the frame size of 2160 bytes is larger than 2056 bytes [-Werror=frame-larger-than=]
6821 | }

      | ^

Does this patch fix it?
https://patchwork.freedesktop.org/patch/755883/?series=174861&rev=1

Alex

Quoted 18 lines

after merging amdgpu today, note that this is in the -next merge and not just the amdgpu tree in isolation. I am currently holding drm and drm-misc at next-20260921, there is a conflict with the old version of them though that was just comments but they'll be in the history at the point I'm building so possibly whatever git did with the merge is causing issues.

Any fixes will also need to propagate into drm and drm-misc.> I'm also still carrying a build fix marking the display KUnit tests as BROKEN due to the issues with the conflicting changes with drm-misc which several people have noticed, for example there's this from Arnd last week:

   https://lore.kernel.org/r/[email protected]

None of the mails I saw about that or the issues resulting from my mismerge got any response either.

#8 lore raw
Quoted 4 lines · Mark Brown
Quoted 1 line · Alex Deucher

On Thu, Sep 24, 2026 at 12:54 PM Mark Brown <[email protected]> wrote:

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

I'm still seeing at least:

Does this patch fix it?
https://patchwork.freedesktop.org/patch/755883/?series=174861&rev=1

It seems everything built fine today, I'll try dropping the workaround commits for Monday. The drm and drm-misc trees are still failing due to the original issue. Thanks for getting things sorted.

Thanks. I've sent Dave and Simona a PR with the fixes so as soon as that gets merged into drm-next, this should be resolved.

Alex

author maintainer
#9 lore raw
Quoted 8 lines · Alex Deucher
Quoted 3 lines · Mark Brown

It seems everything built fine today, I'll try dropping the workaround commits for Monday. The drm and drm-misc trees are still failing due to the original issue. Thanks for getting things sorted.

Thanks. I've sent Dave and Simona a PR with the fixes so as soon as that gets merged into drm-next, this should be resolved.

Great. Someone will still need to prod the drm-misc people once the merge is taken I guess?

#10 lore raw
Quoted 8 lines · Mark Brown
Quoted 5 lines · Alex Deucher
Quoted 3 lines · Mark Brown

It seems everything built fine today, I'll try dropping the workaround commits for Monday. The drm and drm-misc trees are still failing due to the original issue. Thanks for getting things sorted.

Quoted 5 lines
Quoted 2 lines

Thanks. I've sent Dave and Simona a PR with the fixes so as soon as that gets merged into drm-next, this should be resolved.

Great. Someone will still need to prod the drm-misc people once the merge is taken I guess?

Right. It will be resolved when drm-next is subsequently merged into drm-misc-next.

Alex

#11 lore raw
In reply to Mark Brown
Quoted 20 lines · Mark Brown

Hi all,

After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) failed like this:

/tmp/next/build/drivers/gpu/drm/amd/amdgpu/../display/dc/dc_memory_pool.c:87:37: error: stack frame size (8264) exceeds limit (2048) in 'dc_memory_pool_create' [-Werror,-Wframe-larger-than]
87 | __must_check struct dc_memory_pool *dc_memory_pool_create(size_t size,

      |                       

which I am exceptionally frustrated to see was caused by commit

bc3f07516a992 (Merge drm/drm-next into drm-misc-next)

which merged the bug I originally reported in the amdgpu tree:

https://lore.kernel.org/r/[email protected]

and then in the drm tree when that was sent upstream without the report having been addressed in any way:

Quoted 8 lines

https://lore.kernel.org/r/[email protected]

neither of which have had any response at all. It really seems like there is some room for improvement in your processes here, currently that's three drm trees all held out of -next with the same fairly simple build issue. Can I suggest at least check to see if the code you are trying to merge is in -next, the drm merge was done after amdgpu had been held out of -next for several days.

I don't really have a skin in the game, but it all builds fine for me. I have CONFIG_FRAME_WARN=2048.

I presume the problem is the compound literal in
dc_memory_pool_create():

*pool = (struct dc_memory_pool){
.size = size,
.capacity = capacity,
.unaligned_pool = unaligned_pool, .unaligned_memory = kcalloc(lines + 1, PAGE_SIZE, GFP_KERNEL), .free_list = kcalloc((uint32_t)capacity, sizeof(atomic_t),
GFP_KERNEL),
.free_head = ATOMIC_INIT(0),
};

sizeof(struct dc_memory_pool) == 2 * PAGE_SIZE, so it's clearly not to be stored on stack. However, I think it's up to the compiler whether it actually holds all of that on stack or not. It could just generate the equivalent code instead.

BR,
Jani.

Signature · 1 line
Jani Nikula, Intel