]> 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)
commit6961a3fba424bce90fc2c3408722f963fadb711d
tree1d8e937921fc8ea6d9f36b636649d93a7d012bd5
parent69448ad836bcc1d7891815c4b36d056a028ea25d
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