]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Use kvmalloc instead of kmalloc for VCRAT
authorKent Russell <kent.russell@amd.com>
Fri, 18 Sep 2020 18:47:47 +0000 (14:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 22 Sep 2020 16:27:03 +0000 (12:27 -0400)
commitd48d68b684a547a937a765459f02aba8847a7e2a
treed0203d1ac28605084a32a69327699b5115a5088a
parent2d34aa32e88655cffe53eeea12e8048cf9a8f7fa
drm/amdkfd: Use kvmalloc instead of kmalloc for VCRAT

Since we're dynamically allocating the CPU VCRAT, use kvmalloc in case
the allocation size is huge.

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_crat.c