]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Account for shadow PTs in mapping update IB size.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 7 Sep 2017 11:23:21 +0000 (13:23 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Sep 2017 18:23:52 +0000 (14:23 -0400)
commitd4ee10bc54b0e1e59c086793b5528240b882ff49
tree49231f545cbdf988e61bcba673037799d47643e5
parent27709e66483a20ea9f3a3a03081c41fdf07ab06d
drm/amdgpu: Account for shadow PTs in mapping update IB size.

When amdgpu_vm_frag_ptes calls amdgpu_vm_update_ptes and the pt
has a shadow PT we mirror all the write to the shadow PT too, which
results in twice the commands.

Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c