[PATCH 2/3] drm/amdgpu: Add wrap function for fence driver to expose cpu and gpu address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Change-Id: I5c6267253bfe5507a882aaaa1a482cf378852946
Signed-off-by: Shaoyun Liu <Shaoyun.Liu at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
index bc8dec9..3f0bbc4 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
@@ -211,5 +211,14 @@ static inline void amdgpu_ring_clear_ring(struct amdgpu_ring *ring)
 		ring->ring[i++] = ring->funcs->nop;
 
 }
+static inline uint64_t amdgpu_fence_drv_gpu_addr(struct amdgpu_ring *ring)
+{
+	return ring->fence_drv.gpu_addr;
+}
+
+static inline volatile void * amdgpu_fence_drv_cpu_addr(struct amdgpu_ring *ring)
+{
+	return ring->fence_drv.cpu_addr;
+}
 
 #endif
-- 
1.9.1



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux