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/gem i915: Zero the kerne...
details: https://anonhg.NetBSD.org/src/rev/9da87df90a18
branches: trunk
changeset: 1028782:9da87df90a18
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:00:57 2021 +0000
description:
i915: Zero the kernel's ptes before freeing the va.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_pages.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r e2e756afacab -r 9da87df90a18 sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_pages.c
--- a/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_pages.c Sun Dec 19 12:00:48 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_pages.c Sun Dec 19 12:00:57 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i915_gem_pages.c,v 1.5 2021/12/19 11:33:30 riastradh Exp $ */
+/* $NetBSD: i915_gem_pages.c,v 1.6 2021/12/19 12:00:57 riastradh Exp $ */
/*
* SPDX-License-Identifier: MIT
@@ -7,7 +7,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_gem_pages.c,v 1.5 2021/12/19 11:33:30 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_gem_pages.c,v 1.6 2021/12/19 12:00:57 riastradh Exp $");
#include "i915_drv.h"
#include "i915_gem_object.h"
@@ -171,6 +171,8 @@
static void unmap_object(struct drm_i915_gem_object *obj, void *ptr)
{
#ifdef __NetBSD__
+ pmap_kremove((vaddr_t)ptr, obj->base.size);
+ pmap_update(pmap_kernel());
uvm_km_free(kernel_map, (vaddr_t)ptr, obj->base.size, UVM_KMF_VAONLY);
#else
if (is_vmalloc_addr(ptr))
Home |
Main Index |
Thread Index |
Old Index