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 For reasons beyond me, m...



details:   https://anonhg.NetBSD.org/src/rev/2b21101f4136
branches:  trunk
changeset: 364775:2b21101f4136
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 14:45:31 2018 +0000

description:
For reasons beyond me, map does size/offset but unmap does start/end.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r a5a3b009f37b -r 2b21101f4136 sys/external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c     Mon Aug 27 14:45:11 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c     Mon Aug 27 14:45:31 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_cmd_parser.c,v 1.12 2018/08/27 14:44:30 riastradh Exp $   */
+/*     $NetBSD: i915_cmd_parser.c,v 1.13 2018/08/27 14:45:31 riastradh Exp $   */
 
 /*
  * Copyright © 2013 Intel Corporation
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_cmd_parser.c,v 1.12 2018/08/27 14:44:30 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_cmd_parser.c,v 1.13 2018/08/27 14:45:31 riastradh Exp $");
 
 #include "i915_drv.h"
 
@@ -982,7 +982,7 @@
 
 unmap_src:
 #ifdef __NetBSD__
-       uvm_unmap(kernel_map, srcva, srclen);
+       uvm_unmap(kernel_map, srcva, srcva + srclen);
 #else
        vunmap(src_base);
 #endif
@@ -1239,7 +1239,7 @@
 
 #ifdef __NetBSD__
        uvm_unmap(kernel_map, (vaddr_t)batch_base,
-           roundup(batch_len, PAGE_SIZE));
+           (vaddr_t)batch_base + roundup(batch_len, PAGE_SIZE));
 #else
        vunmap(batch_base);
 #endif



Home | Main Index | Thread Index | Old Index