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)
commitd0e63b343e575e8b74c185565b0d79a93494bcaa
treed0203d1ac28605084a32a69327699b5115a5088a
parente8f58ee143edff15894b132d86797fe06891ddd0
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