Skip to content

Commit

Permalink
drm/radeon: fix page directory update size estimation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christian König committed May 20, 2014
1 parent d8ade35 commit 4906f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/radeon/radeon_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ int radeon_vm_update_page_directory(struct radeon_device *rdev,
ndw = 64;

/* assume the worst case */
ndw += vm->max_pde_used * 12;
ndw += vm->max_pde_used * 16;

/* update too big for an IB */
if (ndw > 0xfffff)
Expand Down

0 comments on commit 4906f68

Please sign in to comment.