From: Christian König Date: Mon, 22 Oct 2012 15:42:38 +0000 (+0200) Subject: drm/radeon: remove set_page check from VM code X-Git-Tag: v3.7-rc3~22^2^2~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=204a393c5b88106d7485e20ec834add1013e410a;p=karo-tx-linux.git drm/radeon: remove set_page check from VM code It's better to handle this in the chipset specific code. Signed-off-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/radeon/radeon_gart.c b/drivers/gpu/drm/radeon/radeon_gart.c index 4f6b09e78159..926dc9db644f 100644 --- a/drivers/gpu/drm/radeon/radeon_gart.c +++ b/drivers/gpu/drm/radeon/radeon_gart.c @@ -1036,8 +1036,7 @@ static void radeon_vm_update_ptes(struct radeon_device *rdev, pte = radeon_sa_bo_gpu_addr(vm->page_tables[pt_idx]); pte += (addr & mask) * 8; - if (((last_pte + 8 * count) != pte) || - ((count + nptes) > 1 << 11)) { + if ((last_pte + 8 * count) != pte) { if (count) { radeon_asic_vm_set_page(rdev, last_pte,