]> 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)
commitc7b9aa7a9220538d1a99c1c6f8d00b9b5e51b0f2
tree36d13b5f249d6264a0d67e45deefdf1a7fddd379
parent9c3fec688f4570437fb8b6a290bcf4decc139e7f
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