aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_gart.c
diff options
context:
space:
mode:
authorChristian König <deathsimple@vodafone.de>2012-10-22 11:42:39 -0400
committerAlex Deucher <alexander.deucher@amd.com>2012-10-23 10:23:51 -0400
commit08eda32b13c045b6219464764d6028d86d3c58a8 (patch)
treee7cc8c2b56d9280af5f71c9105ec84d07bc3b120 /drivers/gpu/drm/radeon/radeon_gart.c
parent204a393c5b88106d7485e20ec834add1013e410a (diff)
drm/radeon: fix header size estimation in VM code
Only NI uses 3dw headers, SI uses 4dw headers. Signed-off-by: Christian König <deathsimple@vodafone.de> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_gart.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_gart.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_gart.c b/drivers/gpu/drm/radeon/radeon_gart.c
index 926dc9db644f..e9e8953e74a8 100644
--- a/drivers/gpu/drm/radeon/radeon_gart.c
+++ b/drivers/gpu/drm/radeon/radeon_gart.c
@@ -1147,17 +1147,17 @@ int radeon_vm_bo_update_pte(struct radeon_device *rdev,
1147 1147
1148 if (RADEON_VM_BLOCK_SIZE > 11) 1148 if (RADEON_VM_BLOCK_SIZE > 11)
1149 /* reserve space for one header for every 2k dwords */ 1149 /* reserve space for one header for every 2k dwords */
1150 ndw += (nptes >> 11) * 3; 1150 ndw += (nptes >> 11) * 4;
1151 else 1151 else
1152 /* reserve space for one header for 1152 /* reserve space for one header for
1153 every (1 << BLOCK_SIZE) entries */ 1153 every (1 << BLOCK_SIZE) entries */
1154 ndw += (nptes >> RADEON_VM_BLOCK_SIZE) * 3; 1154 ndw += (nptes >> RADEON_VM_BLOCK_SIZE) * 4;
1155 1155
1156 /* reserve space for pte addresses */ 1156 /* reserve space for pte addresses */
1157 ndw += nptes * 2; 1157 ndw += nptes * 2;
1158 1158
1159 /* reserve space for one header for every 2k dwords */ 1159 /* reserve space for one header for every 2k dwords */
1160 ndw += (npdes >> 11) * 3; 1160 ndw += (npdes >> 11) * 4;
1161 1161
1162 /* reserve space for pde addresses */ 1162 /* reserve space for pde addresses */
1163 ndw += npdes * 2; 1163 ndw += npdes * 2;