Skip to contentSkip to conversation

New: amdgpu: kfd_topology.c warning: the frame size of 1408 bytes is larger than 1024 bytes

Bug 218168 [email protected] 3 participants 9 messages Nov 20, 2023 – Nov 21, 2023

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=218168

Bug ID: 218168
Summary: amdgpu: kfd_topology.c warning: the frame size of 1408
bytes is larger than 1024 bytes
Product: Drivers
Version: 2.5
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Video(DRI - non Intel)
Assignee: [email protected]
Reporter: [email protected]
Regression: No

Trying to compile Linux 6.6.2 with GCC 13.2.1 and CONFIG_WERROR=y:

[...]
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c: In function 'kfd_topology_add_device':
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:2082:1: error: the frame size of 1408 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
2082 | }

      | ^

cc1: all warnings being treated as errors
[...]

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#1 lore raw

+ amd-gfx
+ Felix

Quoted 29 lines · On 11/20/23 10:16, [email protected] wrote:

https://bugzilla.kernel.org/show_bug.cgi?id=218168

Bug ID: 218168
Summary: amdgpu: kfd_topology.c warning: the frame size of 1408
bytes is larger than 1024 bytes
Product: Drivers
Version: 2.5
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Video(DRI - non Intel)
Assignee: [email protected]
Reporter: [email protected]
Regression: No

Trying to compile Linux 6.6.2 with GCC 13.2.1 and CONFIG_WERROR=y:

[...]
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c: In function 'kfd_topology_add_device':
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:2082:1: error: the frame size of 1408 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
2082 | }

       | ^

cc1: all warnings being treated as errors
[...]

Signature · 1 line
Hamza
#3 lore raw

[Bug 218168] amdgpu: kfd_topology.c warning: the frame size of 1408 bytes is larger than 1024 bytes

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218168

--- Comment #1 from [email protected] ---
+ amd-gfx
+ Felix

Quoted 29 lines · On 11/20/23 10:16, [email protected] wrote:

https://bugzilla.kernel.org/show_bug.cgi?id=218168

Bug ID: 218168
Summary: amdgpu: kfd_topology.c warning: the frame size of 1408
bytes is larger than 1024 bytes
Product: Drivers
Version: 2.5
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Video(DRI - non Intel)
Assignee: [email protected]
Reporter: [email protected]
Regression: No

Trying to compile Linux 6.6.2 with GCC 13.2.1 and CONFIG_WERROR=y:

[...]
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c: In function 'kfd_topology_add_device':
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:2082:1: error: the frame size of 1408 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
2082 | }

       | ^

cc1: all warnings being treated as errors
[...]

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#4 lore raw

[Bug 218168] amdgpu: kfd_topology.c warning: the frame size of 1408 bytes is larger than 1024 bytes

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218168

Artem S. Tashkinov ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |ANSWERED

--- Comment #2 from Artem S. Tashkinov ([email protected]) --- Please report here:

https://gitlab.freedesktop.org/drm/amd/-/issues

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#5 lore raw

[Bug 218168] amdgpu: kfd_topology.c warning: the frame size of 1408 bytes is larger than 1024 bytes

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218168

--- Comment #3 from Scall ([email protected]) ---
Done. For reference: https://gitlab.freedesktop.org/drm/amd/-/issues/3000

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#6 lore raw

[Bug 218168] amdgpu: kfd_topology.c warning: the frame size of 1408 bytes is larger than 1024 bytes

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218168

--- Comment #4 from Artem S. Tashkinov ([email protected]) --- Fixed by

https://gitlab.freedesktop.org/drm/amd/uploads/26580b07cb9c763a0b840b9d705e0338/0001-drm-amdkfd-reduce-stack-size-in-kfd_topology_add_dev.patch

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#7 lore raw

[Bug 218168] amdgpu: kfd_topology.c warning: the frame size of 1408 bytes is larger than 1024 bytes

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218168

Artem S. Tashkinov ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

                URL|                            |https://gitlab.freedesktop.
                   |                            |org/drm/amd/-/issues/2866
Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
Acked-by Arnd Bergmann Reviewed-by Acked-by Christian König Acked-by Arnd Bergmann Acked-by Christian König Reviewed-by
#2 lore raw
In reply to Hamza Mahfooz

There are two patches that didn't make it into Linux 6.6 that reduce the stack size in kfd_topology_add_device. Can you check if those fix the problem?

commit aa5a9b2ccda2fa834fddb4bd30a2ab831598f551

Author: Alex Deucher <[email protected]>
Date:   Tue Sep 26 12:00:23 2023 -0400

drm/amdkfd: drop struct kfd_cu_info

I think this was an abstraction back from when kfd supported both radeon and amdgpu. Since we just support amdgpu now, there is no more need for this and we can use the amdgpu structures directly.

This also avoids having the kfd_cu_info structures on the stack when inlining which can blow up the stack.

commit 1f3b515578a1d73926993629a06a7f3b60535b59

Author: Alex Deucher <[email protected]>
Date:   Thu Sep 21 10:32:09 2023 -0400

drm/amdkfd: reduce stack size in kfd_topology_add_device()

kfd_topology.c:2082:1: warning: the frame size of 1440 bytes is larger than 1024 bytes

Regards,
  Felix

Quoted 33 lines · Hamza Mahfooz

+ amd-gfx
+ Felix

Quoted 29 lines · On 11/20/23 10:16, [email protected] wrote:

https://bugzilla.kernel.org/show_bug.cgi?id=218168

             Bug ID: 218168
            Summary: amdgpu: kfd_topology.c warning: the frame size of 1408 bytes is larger than 1024 bytes
            Product: Drivers
            Version: 2.5
           Hardware: All
                 OS: Linux
             Status: NEW
           Severity: normal
           Priority: P3
          Component: Video(DRI - non Intel)
           Assignee: [email protected]
           Reporter: [email protected]
         Regression: No

Trying to compile Linux 6.6.2 with GCC 13.2.1 and CONFIG_WERROR=y:

[...]
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c: In function 'kfd_topology_add_device':
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:2082:1: error: the frame size of 1408 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] 2082 | }
       | ^
cc1: all warnings being treated as errors
[...]

author Acked-by Arnd Bergmann Reviewed-by Felix Kuehling Acked-by Christian König Acked-by Arnd Bergmann Acked-by Christian König Reviewed-by Felix Kuehling
#8 lore raw

[Bug 218168] amdgpu: kfd_topology.c warning: the frame size of 1408 bytes is larger than 1024 bytes

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218168

--- Comment #5 from Felix Kuehling ([email protected]) --- There are two patches that didn't make it into Linux 6.6 that reduce the stack size in kfd_topology_add_device. Can you check if those fix the problem?

commit aa5a9b2ccda2fa834fddb4bd30a2ab831598f551

Author: Alex Deucher <[email protected]>
Date:   Tue Sep 26 12:00:23 2023 -0400

drm/amdkfd: drop struct kfd_cu_info

I think this was an abstraction back from when kfd supported both radeon and amdgpu. Since we just support amdgpu now, there is no more need for this and we can use the amdgpu structures directly.

This also avoids having the kfd_cu_info structures on the stack when inlining which can blow up the stack.

commit 1f3b515578a1d73926993629a06a7f3b60535b59

Author: Alex Deucher <[email protected]>
Date:   Thu Sep 21 10:32:09 2023 -0400

drm/amdkfd: reduce stack size in kfd_topology_add_device()

kfd_topology.c:2082:1: warning: the frame size of 1440 bytes is larger
than 1024 bytes

Regards,
  Felix

Quoted 36 lines · Hamza Mahfooz

+ amd-gfx
+ Felix

Quoted 32 lines · On 11/20/23 10:16, [email protected] wrote:

https://bugzilla.kernel.org/show_bug.cgi?id=218168

             Bug ID: 218168
            Summary: amdgpu: kfd_topology.c warning: the frame size of 1408
                     bytes is larger than 1024 bytes
            Product: Drivers
            Version: 2.5
           Hardware: All
                 OS: Linux
             Status: NEW
           Severity: normal
           Priority: P3
          Component: Video(DRI - non Intel)
           Assignee: [email protected]
           Reporter: [email protected]
         Regression: No

Trying to compile Linux 6.6.2 with GCC 13.2.1 and CONFIG_WERROR=y:

[...] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c: In function 'kfd_topology_add_device':
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:2082:1: error:
the frame
size of 1408 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
  2082 | }
       | ^
cc1: all warnings being treated as errors
[...]

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.