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/ttm Need the page's uvm objec...
details: https://anonhg.NetBSD.org/src/rev/c954da0ba59a
branches: trunk
changeset: 337299:c954da0ba59a
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri Apr 10 13:30:01 2015 +0000
description:
Need the page's uvm object lock to do pmap_page_protect.
diffstat:
sys/external/bsd/drm2/dist/drm/ttm/ttm_bo.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 652297ee0d9e -r c954da0ba59a sys/external/bsd/drm2/dist/drm/ttm/ttm_bo.c
--- a/sys/external/bsd/drm2/dist/drm/ttm/ttm_bo.c Fri Apr 10 13:02:15 2015 +0000
+++ b/sys/external/bsd/drm2/dist/drm/ttm/ttm_bo.c Fri Apr 10 13:30:01 2015 +0000
@@ -1624,9 +1624,11 @@
} else if (bo->ttm != NULL) {
unsigned i;
+ mutex_enter(bo->uvmobj.vmobjlock);
for (i = 0; i < bo->ttm->num_pages; i++)
pmap_page_protect(&bo->ttm->pages[i]->p_vmp,
VM_PROT_NONE);
+ mutex_exit(bo->uvmobj.vmobjlock);
}
#else
drm_vma_node_unmap(&bo->vma_node, bdev->dev_mapping);
Home |
Main Index |
Thread Index |
Old Index