diff options
author | Chen Li <chenli@uniontech.com> | 2021-03-02 14:42:12 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-03-02 14:31:57 -0500 |
commit | 3fcb4f01deedfa290e903e030956b8e1a5cb764f (patch) | |
tree | 9906880792b416b5cadd289f52e6b3a1532b6fab /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | |
parent | 7c7dd77489540d676c2b72304825c6175621e362 (diff) | |
download | linux-3fcb4f01deedfa290e903e030956b8e1a5cb764f.tar.gz linux-3fcb4f01deedfa290e903e030956b8e1a5cb764f.tar.bz2 linux-3fcb4f01deedfa290e903e030956b8e1a5cb764f.zip |
drm/radeon: Use kvmalloc for CS chunks
The number of chunks/chunks_array may be passed in
by userspace and can be large.
It has been observed to cause kcalloc failures from trinity fuzzy test:
WARNING: CPU: 0 PID: 5487 at mm/page_alloc.c:4385
__alloc_pages_nodemask+0x2d8/0x14d0
Obviously, the required order in this case is larger than MAX_ORDER.
So, just use kvmalloc instead.
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h')
0 files changed, 0 insertions, 0 deletions