linux_dsm_epyc7002/drivers/gpu/drm/amd
Arnd Bergmann 7fcffecf79 drm/amdgpu: allocate large structures dynamically
After the structure was padded to 1024 bytes, it is no longer
suitable for being a local variable, as the function surpasses
the warning limit for 32-bit architectures:

drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:587:5: error: stack frame size of 1072 bytes in function 'amdgpu_ras_feature_enable' [-Werror,-Wframe-larger-than=]
int amdgpu_ras_feature_enable(struct amdgpu_device *adev,
    ^

Use kzalloc() instead to get it from the heap.

Fixes: a0d254820f ("drm/amdgpu: update RAS TA to Host interface")
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-05-05 13:12:55 -04:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amdgpu: allocate large structures dynamically 2020-05-05 13:12:55 -04:00
amdkfd drm/amdkfd: Use a systematic method to calculate queue mask bit 2020-05-01 15:19:08 -04:00
display drm/amd/display: 3.2.84 2020-05-05 13:12:47 -04:00
include drm/amd/display: move location of dmub_srv.h file 2020-05-05 13:12:33 -04:00
powerplay drm/amdgpu/smu10: remove duplicate assignment of smu10_hwmgr_funcs members 2020-04-30 16:48:07 -04:00