Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Aug 2013 15:12:26 +0000 (UTC)
From:      Jean-Sebastien Pedron <dumbbell@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r254875 - head/sys/dev/drm2/ttm
Message-ID:  <201308251512.r7PFCQwO060074@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dumbbell
Date: Sun Aug 25 15:12:26 2013
New Revision: 254875
URL: http://svnweb.freebsd.org/changeset/base/254875

Log:
  ttm: "to_page->valid = VM_PAGE_BITS_ALL" before vm_page_dirty(to_page)
  
  Approved by;	kib@

Modified:
  head/sys/dev/drm2/ttm/ttm_tt.c

Modified: head/sys/dev/drm2/ttm/ttm_tt.c
==============================================================================
--- head/sys/dev/drm2/ttm/ttm_tt.c	Sun Aug 25 15:06:48 2013	(r254874)
+++ head/sys/dev/drm2/ttm/ttm_tt.c	Sun Aug 25 15:12:26 2013	(r254875)
@@ -353,8 +353,8 @@ int ttm_tt_swapout(struct ttm_tt *ttm, v
 			continue;
 		to_page = vm_page_grab(obj, i, VM_ALLOC_NORMAL);
 		pmap_copy_page(from_page, to_page);
-		vm_page_dirty(to_page);
 		to_page->valid = VM_PAGE_BITS_ALL;
+		vm_page_dirty(to_page);
 		vm_page_xunbusy(to_page);
 	}
 	vm_object_pip_wakeup(obj);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308251512.r7PFCQwO060074>