]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Use kvmalloc_array for allocating VRAM manager nodes array
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 8 Jun 2018 10:58:15 +0000 (12:58 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Jun 2018 17:43:27 +0000 (12:43 -0500)
commit291c0d6e6c799456bffb4bd9892f6fed3091721a
tree770a3142a0d0147483d8ad0f6b288c1adce8d008
parentc8432c5782cba00862814048305099ab824c3c2e
drm/amdgpu: Use kvmalloc_array for allocating VRAM manager nodes array

It can be quite big, and there's no need for it to be physically
contiguous. This is less likely to fail under memory pressure (has
actually happened while running piglit).

Cc: stable@vger.kernel.org
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c