]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4b6ffafa90658aa6cba8b48b168dcae6dbdb8619
tree515b7b7197b24e8d1216c255a27cab227089d05b
parent785def1f169b203c0b1913c5a821c0ca8115801f
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