summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2017-06-04 15:06:23 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2017-06-04 15:06:23 +0000
commit15907406c9a9a4c2b5e48d05196845a79ce29cee (patch)
tree70ed64db42fc21dc4d44adbdd39f381e06116844 /sys/dev/pci/drm
parent84fd1e53c9840f2247601eb8a5a1c24d14b0ad9e (diff)
Switch the radeondrm(4) driver over to TTM using the new DRM VMA manager.
ok jsg@
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r--sys/dev/pci/drm/radeon/radeon_object.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/pci/drm/radeon/radeon_object.h b/sys/dev/pci/drm/radeon/radeon_object.h
index 86d59e3d9be..5ed17ffffca 100644
--- a/sys/dev/pci/drm/radeon/radeon_object.h
+++ b/sys/dev/pci/drm/radeon/radeon_object.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: radeon_object.h,v 1.2 2014/02/09 23:57:04 jsg Exp $ */
+/* $OpenBSD: radeon_object.h,v 1.3 2017/06/04 15:06:22 kettenis Exp $ */
/*
* Copyright 2008 Advanced Micro Devices, Inc.
* Copyright 2008 Red Hat Inc.
@@ -99,13 +99,10 @@ static inline unsigned radeon_bo_gpu_page_alignment(struct radeon_bo *bo)
* @bo: radeon object for which we query the offset
*
* Returns mmap offset of the object.
- *
- * Note: addr_space_offset is constant after ttm bo init thus isn't protected
- * by any lock.
*/
static inline u64 radeon_bo_mmap_offset(struct radeon_bo *bo)
{
- return bo->tbo.addr_space_offset;
+ return drm_vma_node_offset_addr(&bo->tbo.vma_node);
}
extern int radeon_bo_wait(struct radeon_bo *bo, u32 *mem_type,