drm/ttm: rework bulk move handling v5
authorChristian König <christian.koenig@amd.com>
Mon, 24 Jan 2022 10:07:15 +0000 (11:07 +0100)
committerChristian König <christian.koenig@amd.com>
Tue, 29 Mar 2022 08:55:32 +0000 (10:55 +0200)
commitfee2ede155423b0f7a559050a39750b98fe9db69
tree1d8e937921fc8ea6d9f36b636649d93a7d012bd5
parent7842cf65b0401814a9df518a86a41641255c84d3
drm/ttm: rework bulk move handling v5

Instead of providing the bulk move structure for each LRU update set
this as property of the BO. This should avoid costly bulk move rebuilds
with some games under RADV.

v2: some name polishing, add a few more kerneldoc words.
v3: add some lockdep
v4: fix bugs, handle pin/unpin as well
v5: improve kerneldoc

Signed-off-by: Christian König <christian.koenig@amd.com>
Tested-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220321132601.2161-5-christian.koenig@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_resource.c
include/drm/ttm/ttm_bo_api.h
include/drm/ttm/ttm_bo_driver.h
include/drm/ttm/ttm_device.h
include/drm/ttm/ttm_resource.h