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 Implement set_page_dirty. Reduce diff...
details: https://anonhg.NetBSD.org/src/rev/c6f2442704fb
branches: trunk
changeset: 365955:c6f2442704fb
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 07:23:22 2018 +0000
description:
Implement set_page_dirty. Reduce diff a little.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_gem.c | 7 +++----
sys/external/bsd/drm2/include/linux/mm.h | 10 ++++++++--
2 files changed, 11 insertions(+), 6 deletions(-)
diffs (62 lines):
diff -r 4c1cf179ca2b -r c6f2442704fb sys/external/bsd/drm2/dist/drm/i915/i915_gem.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c Mon Aug 27 07:23:10 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c Mon Aug 27 07:23:22 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i915_gem.c,v 1.43 2018/08/27 07:19:01 riastradh Exp $ */
+/* $NetBSD: i915_gem.c,v 1.44 2018/08/27 07:23:22 riastradh Exp $ */
/*
* Copyright © 2008-2015 Intel Corporation
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_gem.c,v 1.43 2018/08/27 07:19:01 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_gem.c,v 1.44 2018/08/27 07:23:22 riastradh Exp $");
#ifdef __NetBSD__
#if 0 /* XXX uvmhist option? */
@@ -310,13 +310,12 @@
memcpy(dst, vaddr, PAGE_SIZE);
kunmap_atomic(dst);
+ set_page_dirty(page);
#ifdef __NetBSD__
- page->p_vmp.flags &= ~PG_CLEAN;
/* XXX mark page accessed */
uvm_obj_unwirepages(obj->base.filp, i*PAGE_SIZE,
(i+1)*PAGE_SIZE);
#else
- set_page_dirty(page);
if (obj->madv == I915_MADV_WILLNEED)
mark_page_accessed(page);
page_cache_release(page);
diff -r 4c1cf179ca2b -r c6f2442704fb sys/external/bsd/drm2/include/linux/mm.h
--- a/sys/external/bsd/drm2/include/linux/mm.h Mon Aug 27 07:23:10 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/mm.h Mon Aug 27 07:23:22 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mm.h,v 1.7 2018/08/27 06:06:41 riastradh Exp $ */
+/* $NetBSD: mm.h,v 1.8 2018/08/27 07:23:22 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -37,7 +37,6 @@
#include <asm/page.h>
#include <linux/shrinker.h>
-
struct file;
/* XXX Ugh bletch! Whattakludge! Linux's sense is reversed... */
@@ -84,4 +83,11 @@
panic("Unimplemented");
}
+static inline void
+set_page_dirty(struct page *page)
+{
+
+ page->p_vmp.flags &= ~PG_CLEAN;
+}
+
#endif /* _LINUX_MM_H_ */
Home |
Main Index |
Thread Index |
Old Index