]> 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)
commit14a3194a72144649bad080a9599a1acfc1720674
tree515b7b7197b24e8d1216c255a27cab227089d05b
parent567669228bb06edf8b60481667fa5262fa258da2
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