]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: do not allocate entries separately
authorNirmoy Das <nirmoy.das@amd.com>
Fri, 28 May 2021 10:32:16 +0000 (12:32 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Jun 2021 02:55:38 +0000 (22:55 -0400)
commit47473116707551e0ff08c81e7af1fe9f6ae7c859
tree36d13b5f249d6264a0d67e45deefdf1a7fddd379
parentac9f42d326d30b8a31e13be7353b690848121d9b
drm/amdgpu: do not allocate entries separately

Allocate PD/PT entries while allocating VM BOs and use that
instead of allocating those entries separately.

v2: create a new var for num entries.

Signed-off-by: Nirmoy Das <nirmoy.das@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_vm.c