Re: [PATCH] drm/amd/pm: avoid large variable on kernel stack

2022-12-16 Thread Alex Deucher
On Thu, Dec 15, 2022 at 2:46 PM Christophe JAILLET wrote: > > Le 15/12/2022 à 17:36, Arnd Bergmann a écrit : > > From: Arnd Bergmann > > > > 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/..

Re: [PATCH] drm/amd/pm: avoid large variable on kernel stack

2022-12-15 Thread Marion & Christophe JAILLET
Le 15/12/2022 à 20:46, Christophe JAILLET a écrit : Le 15/12/2022 à 17:36, Arnd Bergmann a écrit : From: Arnd Bergmann 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

Re: [PATCH] drm/amd/pm: avoid large variable on kernel stack

2022-12-15 Thread Christophe JAILLET
Le 15/12/2022 à 17:36, Arnd Bergmann a écrit : From: Arnd Bergmann 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

Re: [PATCH] drm/amd/pm: avoid large variable on kernel stack

2022-12-15 Thread Alex Deucher
Applied. Thanks! Alex On Thu, Dec 15, 2022 at 11:37 AM Arnd Bergmann wrote: > > From: Arnd Bergmann > > 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:1

[PATCH] drm/amd/pm: avoid large variable on kernel stack

2022-12-15 Thread Arnd Bergmann
From: Arnd Bergmann 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_m