drm/radeon: remove set_page check from VM code
authorChristian König <deathsimple@vodafone.de>
Mon, 22 Oct 2012 15:42:38 +0000 (17:42 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Oct 2012 14:23:51 +0000 (10:23 -0400)
It's better to handle this in the chipset specific code.

Signed-off-by: Christian König <deathsimple@vodafone.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_gart.c

index 4f6b09e781595d9c642b5c5f440edafc9534c918..926dc9db644f585f7dffb751119dfc157c5a852e 100644 (file)
@@ -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,