Re: [PATCH 08/53] drm/amd/display/dc/calcs/dce_calcs: Move some large variables from the stack to the heap

2021-03-03 Thread Christian König
Hi Lee, I'm not an expert for the DC code base, but I think that this won't work. This function is not allowed to sleep and the structures are a bit large to be allocated on the heap in an atomic context. Regards, Christian. Am 03.03.21 um 14:42 schrieb Lee Jones: Fixes the following W=1 ke

[PATCH 08/53] drm/amd/display/dc/calcs/dce_calcs: Move some large variables from the stack to the heap

2021-03-03 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c: In function ‘calculate_bandwidth’: drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:2016:1: warning: the frame size of 1216 bytes is larger than 1024 bytes [-Wframe-larger-tha