Skip to contentSkip to conversation

linux-next: build failure after merge of the amdgpu tree

DISCUSSION Stephen Rothwell 3 participants 12 messages Oct 10, 2023 – Oct 24, 2023 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c: In function 'dml_core_mode_support':
drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c:8229:1: error: the frame size of 2736 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
8229 | } // dml_core_mode_support

      | ^

cc1: all warnings being treated as errors

Caused by commit

7966f319c66d ("drm/amd/display: Introduce DML2")

(or maybe something later that changed storage size).

I have used the amdgpu tree from next-20231009 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 11 lines · Stephen Rothwell

Hi all,

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

drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c: In function 'dml_core_mode_support':
drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c:8229:1: error: the frame size of 2736 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
8229 | } // dml_core_mode_support

       | ^

cc1: all warnings being treated as errors

Quoted 8 lines

Caused by commit

   7966f319c66d ("drm/amd/display: Introduce DML2")

(or maybe something later that changed storage size).

I have used the amdgpu tree from next-20231009 for today.

Hi Stephen,
(+ others)

I think I have a fix for that, but some things are unclear to me. I'm only able to see this issue when using allmodconfig. Additionally, when I inspected the function, it had a few local variables, not enough to explode the stack size fwiu. Is there any option in the allmodconfig that makes it easy to see this issue? Maybe something that I'm missing in my custom config file? Is it possible that allmodconfig enables some option that might increase the stack size? Perhaps the FPU flags from GCC include something else in the stack?

Also, for investigating this issue, I'm considering the local variables, but as you can see from dml_core_mode_support, it has a few pointers. Am I missing something?

P.s.: I was able to fix this issue by splitting two operations from the original function.

Thanks
Siqueira

#6 lore raw
In reply to Stephen Rothwell

Hi all,

Quoted 10 lines · On Tue, 10 Oct 2023 12:43:57 +1100 Stephen Rothwell <[email protected]>…

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

drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c: In function 'dml_core_mode_support':
drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c:8229:1: error: the frame size of 2736 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
8229 | } // dml_core_mode_support

      | ^

cc1: all warnings being treated as errors

Quoted 7 lines

Caused by commit

7966f319c66d ("drm/amd/display: Introduce DML2")

(or maybe something later that changed storage size).

I have used the amdgpu tree from next-20231009 for today.

I am still getting this failure.

Signature · 2 lines
Cheers,
Stephen Rothwell
#2 lore raw
In reply to Rodrigo Siqueira Jordao

Hi Rodrigo,

Quoted 10 lines · On Tue, 10 Oct 2023 15:14:46 -0600 Rodrigo Siqueira Jordao…

I think I have a fix for that, but some things are unclear to me. I'm only able to see this issue when using allmodconfig. Additionally, when I inspected the function, it had a few local variables, not enough to explode the stack size fwiu. Is there any option in the allmodconfig that makes it easy to see this issue? Maybe something that I'm missing in my custom config file? Is it possible that allmodconfig enables some option that might increase the stack size? Perhaps the FPU flags from GCC include something else in the stack?

Quoted 3 lines

Also, for investigating this issue, I'm considering the local variables, but as you can see from dml_core_mode_support, it has a few pointers. Am I missing something?

This could possibly be caused by inlining of other functions that are static within the same file.

Other than that, I am also at a loss.

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
Quoted 13 lines · Stephen Rothwell

Hi Rodrigo,

Quoted 10 lines · On Tue, 10 Oct 2023 15:14:46 -0600 Rodrigo Siqueira Jordao…

I think I have a fix for that, but some things are unclear to me. I'm only able to see this issue when using allmodconfig. Additionally, when I inspected the function, it had a few local variables, not enough to explode the stack size fwiu. Is there any option in the allmodconfig that makes it easy to see this issue? Maybe something that I'm missing in my custom config file? Is it possible that allmodconfig enables some option that might increase the stack size? Perhaps the FPU flags from GCC include something else in the stack?

Quoted 8 lines
Quoted 3 lines

Also, for investigating this issue, I'm considering the local variables, but as you can see from dml_core_mode_support, it has a few pointers. Am I missing something?

This could possibly be caused by inlining of other functions that are static within the same file.

Other than that, I am also at a loss.

Hi Stephen,

Could you try this patchset?

https://lore.kernel.org/amd-gfx/[email protected]/T/#t

Thanks
Siqueira

author Tested-by
#5 lore raw

Hi Stephen,

Quoted 10 lines · On Tue, 17 Oct 2023 07:59:06 +1100 Stephen Rothwell <[email protected]>…

Hi Rodrigo,

Quoted 4 lines · On Mon, 16 Oct 2023 08:53:05 -0600 Rodrigo Siqueira Jordao…

Could you try this patchset?

https://lore.kernel.org/amd-gfx/[email protected]/T/#t

I will apply that to the merge of the amdgpu tree today.

That fixed the build problem.

Signature · 2 lines
Cheers,
Stephen Rothwell
#7 lore raw
In reply to Stephen Rothwell

Hi all,

Quoted 10 lines · On Tue, 10 Oct 2023 12:43:57 +1100 Stephen Rothwell <[email protected]>…

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

drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c: In function 'dml_core_mode_support':
drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c:8229:1: error: the frame size of 2736 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
8229 | } // dml_core_mode_support

      | ^

cc1: all warnings being treated as errors

Quoted 7 lines

Caused by commit

7966f319c66d ("drm/amd/display: Introduce DML2")

(or maybe something later that changed storage size).

I have used the amdgpu tree from next-20231009 for today.

This build failure now (presumably) exists in the drm tree. I am still applying the 2 patches from Rodrigo to my tree as a work around.

I would have expected that this was fixed in the amdgpu tree before Dave was asked to merge it ...

Signature · 2 lines
Cheers,
Stephen Rothwell
#8 lore raw

Hi all,

Quoted 18 lines · On Thu, 19 Oct 2023 12:06:18 +1100 Stephen Rothwell <[email protected]>…
Quoted 16 lines · On Tue, 10 Oct 2023 12:43:57 +1100 Stephen Rothwell <[email protected]>…

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

drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c: In function 'dml_core_mode_support':
drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c:8229:1: error: the frame size of 2736 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
8229 | } // dml_core_mode_support

      | ^

cc1: all warnings being treated as errors

Caused by commit

7966f319c66d ("drm/amd/display: Introduce DML2")

(or maybe something later that changed storage size).

Quoted 7 lines
Quoted 1 line

I have used the amdgpu tree from next-20231009 for today.

This build failure now (presumably) exists in the drm tree. I am still applying the 2 patches from Rodrigo to my tree as a work around.

I would have expected that this was fixed in the amdgpu tree before Dave was asked to merge it ...

Any progress here? I am still applying the 2 patches.

Signature · 2 lines
Cheers,
Stephen Rothwell
#9 lore raw
Quoted 24 lines · Stephen Rothwell

Hi all,

Quoted 20 lines · On Thu, 19 Oct 2023 12:06:18 +1100 Stephen Rothwell <[email protected]>…
Quoted 17 lines · On Tue, 10 Oct 2023 12:43:57 +1100 Stephen Rothwell <[email protected]>…

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

drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c: In function 'dml_core_mode_support':
drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c:8229:1: error: the frame size of 2736 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
8229 | } // dml_core_mode_support

      | ^

cc1: all warnings being treated as errors

Caused by commit

7966f319c66d ("drm/amd/display: Introduce DML2")

(or maybe something later that changed storage size).

I have used the amdgpu tree from next-20231009 for today.

Quoted 7 lines
Quoted 5 lines

This build failure now (presumably) exists in the drm tree. I am still applying the 2 patches from Rodrigo to my tree as a work around.

I would have expected that this was fixed in the amdgpu tree before Dave was asked to merge it ...

Any progress here? I am still applying the 2 patches.

The two patches are in my -next tree and in the PR I sent last week.

Alex

#10 lore raw
Quoted 29 lines · Alex Deucher
Quoted 27 lines · Stephen Rothwell

Hi all,

Quoted 23 lines · On Thu, 19 Oct 2023 12:06:18 +1100 Stephen Rothwell <[email protected]>…
Quoted 10 lines · On Tue, 10 Oct 2023 12:43:57 +1100 Stephen Rothwell <[email protected]>…

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

drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c: In function 'dml_core_mode_support':
drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c:8229:1: error: the frame size of 2736 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
8229 | } // dml_core_mode_support

      | ^

cc1: all warnings being treated as errors

Quoted 7 lines

Caused by commit

7966f319c66d ("drm/amd/display: Introduce DML2")

(or maybe something later that changed storage size).

I have used the amdgpu tree from next-20231009 for today.

This build failure now (presumably) exists in the drm tree. I am still applying the 2 patches from Rodrigo to my tree as a work around.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

I would have expected that this was fixed in the amdgpu tree before Dave was asked to merge it ...

Any progress here? I am still applying the 2 patches.

The two patches are in my -next tree and in the PR I sent last week.

Looks like the gitlab migration over the weekend lost some history. I've fixed it up.

Alex