From: kettenis Date: Sun, 4 Jun 2017 15:06:22 +0000 (+0000) Subject: Switch the radeondrm(4) driver over to TTM using the new DRM VMA manager. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=37bc6d24329cef9dd408902b71803274ff0d29bd;p=openbsd Switch the radeondrm(4) driver over to TTM using the new DRM VMA manager. ok jsg@ --- 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,