Ver Fonte

drm/radeon: r600 ptes are 64-bit, cleanup cleanup function.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Dave Airlie há 16 anos atrás
pai
commit
06f0a488c1
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      drivers/gpu/drm/radeon/r600_cp.c

+ 1 - 1
drivers/gpu/drm/radeon/r600_cp.c

@@ -125,7 +125,7 @@ void r600_page_table_cleanup(struct drm_device *dev, struct drm_ati_pcigart_info
 		return;
 
 	if (gart_info->bus_addr) {
-		max_pages = (gart_info->table_size / sizeof(u32));
+		max_pages = (gart_info->table_size / sizeof(u64));
 		pages = (entry->pages <= max_pages)
 		  ? entry->pages : max_pages;