set_pte_pde commands need 10 dwords.
Signed-off-by: Felix Kuehling <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index 4cdfb70..587a166 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -1037,7 +1037,7 @@ static int amdgpu_vm_update_level(struct amdgpu_device
*adev,
ndw = 64;
/* assume the worst case */
- ndw += parent->last_entry_used * 6;
+ ndw += parent->last_entry_used * 10;
pd_addr = amdgpu_bo_gpu_offset(parent->base.bo);
@@ -1545,7 +1545,7 @@ static int amdgpu_vm_bo_update_mapping(struct
amdgpu_device *adev,
ndw = 64;
/* one PDE write for each huge page */
- ndw += ((nptes >> adev->vm_manager.block_size) + 1) * 6;
+ ndw += ((nptes >> adev->vm_manager.block_size) + 1) * 10;
if (src) {
/* only copy commands needed */
--
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx