Arnd Bergmann and Greg Kroah-Hartman
86777de67a
drm/amd/pm: avoid large variable on kernel stack
...
[ Upstream commit d118b18fb1 ]
The activity_monitor_external[] array is too big to fit on the
kernel stack, resulting in this warning with clang:
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c:1438:12: error: stack frame size (1040) exceeds limit (1024) in 'smu_v13_0_7_get_power_profile_mode' [-Werror,-Wframe-larger-than]
Use dynamic allocation instead. It should also be possible to
have single element here instead of the array, but this seems
easier.
v2: fix up argument to sizeof() (Alex)
Fixes: 334682ae81 ("drm/amd/pm: enable workload type change on smu_v13_0_7")
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2022-12-31 13:33:07 +01:00
..
2022-12-31 13:32:58 +01:00
2022-12-31 13:32:02 +01:00
2022-12-31 13:32:38 +01:00
2022-12-31 13:32:15 +01:00
2022-12-31 13:33:05 +01:00
2022-11-22 23:12:18 +01:00
2022-12-31 13:32:59 +01:00
2022-12-31 13:33:04 +01:00
2022-12-31 13:31:59 +01:00
2022-12-31 13:32:41 +01:00
2022-12-31 13:31:58 +01:00
2022-12-31 13:31:55 +01:00
2022-12-31 13:33:05 +01:00
2022-11-21 15:34:40 -08:00
2022-12-31 13:32:38 +01:00
2022-12-31 13:32:47 +01:00
2022-11-22 18:27:56 +05:30
2022-12-31 13:31:57 +01:00
2022-12-31 13:32:39 +01:00
2022-12-31 13:32:40 +01:00
2022-12-31 13:32:42 +01:00
2022-12-31 13:33:07 +01:00
2022-12-31 13:33:00 +01:00
2022-12-31 13:32:45 +01:00
2022-12-31 13:32:56 +01:00
2022-12-31 13:33:06 +01:00
2022-12-31 13:32:41 +01:00
2022-12-31 13:32:42 +01:00
2022-12-31 13:32:41 +01:00
2022-12-31 13:32:45 +01:00
2022-12-31 13:32:19 +01:00
2022-12-31 13:32:39 +01:00
2022-12-31 13:32:53 +01:00
2022-12-31 13:31:57 +01:00
2022-12-31 13:32:53 +01:00
2022-12-31 13:32:45 +01:00
2022-12-31 13:32:50 +01:00
2022-12-31 13:32:55 +01:00
2022-12-31 13:32:41 +01:00
2022-12-31 13:33:02 +01:00
2022-12-31 13:33:04 +01:00
2022-12-31 13:31:48 +01:00
2022-12-31 13:32:25 +01:00
2022-12-31 13:32:52 +01:00
2022-12-31 13:33:07 +01:00
2022-12-31 13:33:04 +01:00
2022-12-31 13:32:15 +01:00
2022-12-31 13:33:04 +01:00
2022-12-31 13:32:54 +01:00
2022-12-31 13:33:02 +01:00
2022-11-22 18:22:05 +01:00
2022-12-31 13:32:26 +01:00
2022-12-31 13:33:05 +01:00
2022-12-31 13:31:53 +01:00
2022-12-31 13:32:48 +01:00
2022-12-31 13:32:23 +01:00
2022-12-31 13:33:04 +01:00
2022-12-31 13:31:56 +01:00
2022-12-31 13:32:45 +01:00
2022-12-31 13:32:51 +01:00
2022-12-31 13:32:00 +01:00
2022-12-31 13:33:05 +01:00
2022-12-31 13:32:52 +01:00
2022-12-31 13:32:55 +01:00
2022-12-31 13:33:01 +01:00
2022-12-31 13:33:06 +01:00
2022-12-31 13:32:55 +01:00
2022-12-31 13:32:25 +01:00
2022-12-31 13:32:42 +01:00
2022-12-31 13:33:06 +01:00
2022-12-31 13:32:57 +01:00
2022-12-31 13:32:40 +01:00
2022-12-31 13:33:05 +01:00
2022-12-31 13:32:38 +01:00
2022-12-31 13:32:42 +01:00
2022-12-31 13:32:41 +01:00
2022-12-31 13:32:56 +01:00
2022-12-31 13:32:09 +01:00
2022-12-31 13:32:44 +01:00
2022-12-31 13:31:59 +01:00