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/4309030e8953
branches:  trunk
changeset: 993006:4309030e8953
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 4063e21f99a9 -r 4309030e8953 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