]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit60c16f94c2ad0ae3a0fda8692f68ff12357512a4
tree1d8e937921fc8ea6d9f36b636649d93a7d012bd5
parentac8b8923fc1e2a0897aeec9a70704273247e7fd2
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