Arnd Bergmann
9e0896fa6f
drm/amd/display: avoid large stack allocation in commit_planes_do_stream_update_sequence
...
The function has two arrays on the stack to hold temporary dsc_optc_config
and dsc_config objects. The combination blows through common stack frame
warning limits in combination with the other local variables:
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:4070:22: error: stack frame size (1352) exceeds limit
(1280) in 'commit_planes_do_stream_update_sequence' [-Werror,-Wframe-larger-than]
Since neither array is initialized or used outside of the
add_link_update_dsc_config_sequence() function, there is no actual
need to keep each element around.
Replace the arrays with a single instance each to reduce the stack usage
to less than half.
Fixes: 9f49d3cd7e ("drm/amd/display: Implement block sequencing infrastructure for modular hardware operations.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Tested-by: Dan Wheeler <daniel.wheeler@amd.com >
Acked-by: George Zhang <george.zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2026-07-01 11:18:10 -04:00
..
2026-05-08 14:16:04 +10:00
2026-07-01 11:18:10 -04:00
2026-05-04 14:05:04 +10:00
2026-05-04 14:05:04 +10:00
2026-05-06 10:12:25 +10:00
2026-05-04 14:05:04 +10:00
2026-05-28 11:27:53 +02:00
2026-06-04 06:41:22 +10:00
2026-05-27 16:36:58 +03:00
2026-05-28 09:58:36 +02:00
2026-05-28 09:58:36 +02:00
2026-05-04 14:05:04 +10:00
2026-05-28 09:58:36 +02:00
2026-05-12 08:35:00 +02:00
2026-05-19 10:57:25 +02:00
2026-05-08 14:16:04 +10:00
2026-06-03 16:28:43 +10:00
2026-05-20 10:52:10 +02:00
2026-05-08 14:16:04 +10:00
2026-05-08 14:16:04 +10:00
2026-05-08 14:16:04 +10:00
2026-04-17 14:43:29 +02:00
2026-05-04 14:05:04 +10:00
2026-05-28 09:58:36 +02:00
2026-02-23 10:10:34 +01:00
2026-05-28 09:58:36 +02:00
2026-05-08 14:16:04 +10:00
2026-05-08 14:16:04 +10:00
2026-06-04 06:41:22 +10:00
2026-05-08 14:16:04 +10:00
2026-05-28 22:49:53 +02:00
2026-06-02 22:51:16 +02:00
2026-05-08 14:16:04 +10:00
2026-05-28 11:27:53 +02:00
2026-05-28 09:58:36 +02:00
2026-05-28 16:47:37 +02:00
2026-05-28 09:58:36 +02:00
2026-06-17 16:23:16 -04:00
2026-05-22 07:31:55 +01:00
2026-05-21 11:35:04 +02:00
2026-05-29 10:37:12 +01:00
2026-05-04 14:05:04 +10:00
2026-05-04 14:05:04 +10:00
2026-05-04 14:05:04 +10:00
2026-05-28 09:58:36 +02:00
2026-05-04 14:05:04 +10:00
2026-05-21 11:45:53 +02:00
2026-05-08 14:16:04 +10:00
2026-05-28 17:19:30 +02:00
2026-05-08 14:16:04 +10:00
2026-05-08 14:16:04 +10:00
2026-05-08 14:16:04 +10:00
2026-05-28 09:58:36 +02:00
2026-05-14 15:32:29 +02:00
2026-05-05 11:16:39 +02:00
2026-06-02 22:51:16 +02:00
2026-05-04 14:05:04 +10:00
2026-06-01 18:40:55 -03:00
2026-05-04 14:05:04 +10:00
2026-05-06 10:12:25 +10:00
2026-05-26 16:05:53 +08:00
2026-05-20 18:12:11 +03:00
2026-05-04 14:05:04 +10:00
2026-05-08 14:16:04 +10:00
2026-06-03 15:47:53 +10:00
2026-05-19 10:57:26 +02:00
2026-05-04 14:05:04 +10:00
2026-05-04 14:05:04 +10:00
2026-05-04 14:05:04 +10:00
2026-05-08 14:16:04 +10:00
2026-04-21 22:05:51 +08:00
2026-05-04 14:05:04 +10:00
2026-05-19 10:57:25 +02:00
2026-05-08 19:16:19 +05:30
2026-05-04 14:05:04 +10:00
2026-03-03 09:28:31 +01:00
2026-05-04 14:05:04 +10:00
2026-04-17 03:11:21 +08:00
2026-06-17 16:22:17 -04:00
2026-05-04 14:05:04 +10:00
2026-05-04 14:05:04 +10:00
2026-03-25 15:05:22 +01:00
2026-05-04 14:05:04 +10:00
2026-06-17 16:22:17 -04:00
2026-05-18 15:16:47 +02:00
2026-06-17 16:22:17 -04:00
2026-04-16 09:08:42 +02:00
2026-05-25 10:45:38 +02:00
2026-05-28 09:58:36 +02:00
2026-03-26 14:09:26 +01:00
2026-05-05 14:04:29 +03:00
2026-05-04 14:05:04 +10:00
2026-03-25 15:05:22 +01:00
2026-03-26 14:35:18 +08:00
2026-04-27 11:27:22 +02:00
2026-06-02 13:16:40 -04:00
2026-04-09 09:34:28 +02:00
2026-05-28 09:58:36 +02:00
2026-05-07 14:07:36 -04:00
2026-06-05 09:13:12 +10:00
2026-04-02 08:24:55 +02:00
2026-05-04 14:05:04 +10:00
2026-04-24 10:12:16 -07:00
2026-04-07 12:36:31 +02:00
2026-05-04 14:05:04 +10:00
2026-05-04 14:05:04 +10:00
2026-05-19 10:57:26 +02:00
2026-03-17 15:39:07 +01:00
2026-05-07 14:07:36 -04:00
2026-05-26 16:00:32 +02:00
2026-03-23 13:23:29 +08:00
2026-03-05 19:38:55 -05:00
2026-04-24 08:43:42 -04:00
2026-04-24 08:43:42 -04:00
2026-04-24 08:43:42 -04:00
2026-05-04 14:05:04 +10:00
2026-05-04 14:05:04 +10:00
2026-03-03 10:37:29 +10:00
2026-05-18 11:19:59 +01:00
2026-05-04 14:05:04 +10:00
2026-03-27 13:40:44 +02:00
2026-02-23 16:14:19 +01:00
2026-05-05 12:59:41 +02:00
2026-03-24 16:19:04 +01:00
2026-03-12 07:23:23 -07:00