Browse Source

drm/radeon: fix page directory update size estimation

Take padding into account as well.

Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=75651

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Christian König 11 years ago
parent
commit
4906f6891e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gpu/drm/radeon/radeon_vm.c

+ 1 - 1
drivers/gpu/drm/radeon/radeon_vm.c

@@ -595,7 +595,7 @@ int radeon_vm_update_page_directory(struct radeon_device *rdev,
 	ndw = 64;
 	ndw = 64;
 
 
 	/* assume the worst case */
 	/* assume the worst case */
-	ndw += vm->max_pde_used * 12;
+	ndw += vm->max_pde_used * 16;
 
 
 	/* update too big for an IB */
 	/* update too big for an IB */
 	if (ndw > 0xfffff)
 	if (ndw > 0xfffff)