Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915 Unwire pages when we're ...
details: https://anonhg.NetBSD.org/src/rev/eb70dffbeb66
branches: trunk
changeset: 336534:eb70dffbeb66
user: riastradh <riastradh%NetBSD.org@localhost>
date: Thu Mar 05 00:55:34 2015 +0000
description:
Unwire pages when we're done in i915_gem_object_attach_phys.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_gem.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r f0c65cf41607 -r eb70dffbeb66 sys/external/bsd/drm2/dist/drm/i915/i915_gem.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c Thu Mar 05 00:26:17 2015 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c Thu Mar 05 00:55:34 2015 +0000
@@ -379,7 +379,10 @@
memcpy(vaddr, src, PAGE_SIZE);
kunmap_atomic(src);
-#ifndef __NetBSD__
+#ifdef __NetBSD__
+ uvm_obj_unwirepages(obj->base.gemo_shm_uao, i*PAGE_SIZE,
+ (i + 1)*PAGE_SIZE);
+#else
mark_page_accessed(page);
page_cache_release(page);
#endif
Home |
Main Index |
Thread Index |
Old Index