drm/amdgpu: Attach eviction fence on alloc
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 16 Mar 2022 22:03:59 +0000 (18:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Nov 2023 16:18:32 +0000 (12:18 -0400)
commit0e2e7c5b3d712f4589b3bf0eb2988337966648b6
tree54a45820a1f7b03e49648906a0d2870e1de205a5
parent5a104cb97c4e2bc8918b026a770188313b1d5fb3
drm/amdgpu: Attach eviction fence on alloc

Instead of attaching the eviction fence when a KFD BO is first mapped,
attach it when it is allocated or imported. This in preparation to allow
KFD BOs to be mapped using the render node API.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c