Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2012 08:50:45 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r237131 - head/sys/dev/drm2/i915
Message-ID:  <201206150850.q5F8oj2s056805@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Jun 15 08:50:44 2012
New Revision: 237131
URL: http://svn.freebsd.org/changeset/base/237131

Log:
  Use right size when freeing unneeded GTT mapping.
  
  MFC after:	3 days

Modified:
  head/sys/dev/drm2/i915/i915_gem.c

Modified: head/sys/dev/drm2/i915/i915_gem.c
==============================================================================
--- head/sys/dev/drm2/i915/i915_gem.c	Fri Jun 15 08:37:50 2012	(r237130)
+++ head/sys/dev/drm2/i915/i915_gem.c	Fri Jun 15 08:50:44 2012	(r237131)
@@ -1064,7 +1064,7 @@ i915_gem_gtt_write(struct drm_device *de
 	    IDX_TO_OFF(obj_pi), size, PAT_WRITE_COMBINING);
 	ret = -copyin_nofault((void *)(uintptr_t)data_ptr, (char *)mkva +
 	    obj_po, size);
-	pmap_unmapdev(mkva, PAGE_SIZE);
+	pmap_unmapdev(mkva, size);
 	return (ret);
 }
 



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