OSDN Git Service

drm/amdgpu: fix frame size of amdgpu_xgmi_add_devices excceed 1024 bytes
authorHawking Zhang <Hawking.Zhang@amd.com>
Wed, 7 Nov 2018 04:00:50 +0000 (12:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Nov 2018 22:05:54 +0000 (17:05 -0500)
commitdb0049129359eca348e5cc2782a90e78fda5bc85
tree1cd26359a18764af00fe4cf205631d09cd5cac2f
parentbb8310cc22d7acd34db72f890c267b513dbc24ff
drm/amdgpu: fix frame size of amdgpu_xgmi_add_devices excceed 1024 bytes

Instead of stack-allocated psp_xgmi_topology_info in function
amdgpu_xgmi_add_device, dynamically allocated this structure to
avoid the frame size of this function excceed 1024 bytes

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c