summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-05-12 14:46:11 +0200
committerChristian König <christian.koenig@amd.com>2014-05-20 14:42:01 +0200
commit4906f6891ef987637b766dfaef1c6fc95804253a (patch)
treef589af469b819c669002bc22af222ecf8c20981c /drivers/gpu
parentd8ade3526b2aa0505132c404c05a38b73ea15490 (diff)
downloadlinux-4906f6891ef987637b766dfaef1c6fc95804253a.tar.gz
linux-4906f6891ef987637b766dfaef1c6fc95804253a.tar.bz2
linux-4906f6891ef987637b766dfaef1c6fc95804253a.zip
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/radeon_vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_vm.c b/drivers/gpu/drm/radeon/radeon_vm.c
index 2aae6ce49d32..d9ab99f47612 100644
--- a/drivers/gpu/drm/radeon/radeon_vm.c
+++ b/drivers/gpu/drm/radeon/radeon_vm.c
@@ -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)