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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Jul 2018 13:30:48 +0000 (15:30 +0200)
commita1bf87cfb6ea83a262d218b2bc123a11b949caaa
tree28ffea19fe95eadfa8a64c75df3e1bf8b2b1e96e
parentaf597bb61370e337eec93ae655625d3dbd1fc0bb
drm/amdgpu: Use kvmalloc_array for allocating VRAM manager nodes array

commit 6fa39bc1e01dab8b4f54b23e95a181a2ed5a2d38 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c