drm/amdgpu: Use kvmalloc for CS chunks
authorChen Li <chenli@uniontech.com>
Wed, 3 Mar 2021 03:53:20 +0000 (11:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Mar 2021 15:51:37 +0000 (10:51 -0500)
commitb4d916ee0e947f727b48c5abfc1fa5aed3243763
tree1510f92b04b11ae425a7e4eed1d582f68c793d6c
parentfec432f557ebbd05975b07db43e5375593e6cad5
drm/amdgpu: Use kvmalloc for CS chunks

The number of chunks/chunks_array may be passed in
by userspace and can be large.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Chen Li <chenli@uniontech.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c