]> 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)
commitea676782b0557446ca81d64332e023aed3cca90a
treed0203d1ac28605084a32a69327699b5115a5088a
parent646ba9a7df7a476a1edcc713a15a5bae2d144406
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