]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: remove all KFD fences from the BO on release
authorChristian König <christian.koenig@amd.com>
Wed, 29 Jan 2025 15:28:49 +0000 (16:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:11 +0000 (11:13 +0200)
commit707c6718e89dd9997aeb8de3bd9dcef63744629d
tree644875203696e189c6b97f4a8cceba9709368197
parent2b78f4ae2a6dd18a4bd84432375959551ca12166
drm/amdgpu: remove all KFD fences from the BO on release

[ Upstream commit cb0de06d1b0afb2d0c600ad748069f5ce27730ec ]

Remove all KFD BOs from the private dma_resv object.

This prevents the KFD from being evict unecessarily when an exported BO
is released.

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Reviewed-and-tested-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c