drm/amdgpu: Use kvmalloc for allocating UVD/VCE/VCN BO backup memory
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 3 Aug 2018 15:24:32 +0000 (17:24 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Aug 2018 17:59:11 +0000 (12:59 -0500)
commitc9533d1bca3393fbdfe5b24ccb4cfe6a1a02d794
tree515b7b7197b24e8d1216c255a27cab227089d05b
parentdddc0557e3a02499ce336b1e2e67f5afaecccc80
drm/amdgpu: Use kvmalloc for allocating UVD/VCE/VCN BO backup memory

The allocated size can be (at least?) as large as megabytes, and
there's no need for it to be physically contiguous.

May avoid spurious failures to initialize / suspend the corresponding
block while there's memory pressure.

Bugzilla: https://bugs.freedesktop.org/107432
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
drivers/gpu/drm/amd/amdgpu/vce_v4_0.c