aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJammy Zhou2015-08-16 22:09:09 -0500
committerAlex Deucher2015-08-17 15:29:26 -0500
commit56d8dd6a9c03680700e0b0043cb56e0af7e3e3de (patch)
treed9f049c3c8d8ce7010436add5ad76c6f36e32943 /amdgpu/amdgpu_internal.h
parentffa305d0fc926418e4dff432381ead8907dc18d9 (diff)
downloadexternal-libdrm-56d8dd6a9c03680700e0b0043cb56e0af7e3e3de.tar.gz
external-libdrm-56d8dd6a9c03680700e0b0043cb56e0af7e3e3de.tar.xz
external-libdrm-56d8dd6a9c03680700e0b0043cb56e0af7e3e3de.zip
amdgpu: make vamgr per device v2
Each device can have its own vamgr, so make it per device now. This can fix the failure with multiple GPUs used in one single process. v2: rebase Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Christian K├Ânig <christian.koenig@amd.com>
Diffstat (limited to 'amdgpu/amdgpu_internal.h')
-rw-r--r--amdgpu/amdgpu_internal.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/amdgpu/amdgpu_internal.h b/amdgpu/amdgpu_internal.h
index 3ce0969e..5d866030 100644
--- a/amdgpu/amdgpu_internal.h
+++ b/amdgpu/amdgpu_internal.h
@@ -52,7 +52,6 @@ struct amdgpu_bo_va_hole {
52}; 52};
53 53
54struct amdgpu_bo_va_mgr { 54struct amdgpu_bo_va_mgr {
55 atomic_t refcount;
56 /* the start virtual address */ 55 /* the start virtual address */
57 uint64_t va_offset; 56 uint64_t va_offset;
58 uint64_t va_max; 57 uint64_t va_max;
@@ -125,13 +124,6 @@ struct amdgpu_context {
125 124
126drm_private void amdgpu_bo_free_internal(amdgpu_bo_handle bo); 125drm_private void amdgpu_bo_free_internal(amdgpu_bo_handle bo);
127 126
128drm_private struct amdgpu_bo_va_mgr*
129amdgpu_vamgr_get_global(struct amdgpu_device *dev);
130
131drm_private void
132amdgpu_vamgr_reference(struct amdgpu_bo_va_mgr **dst,
133 struct amdgpu_bo_va_mgr *src);
134
135drm_private void amdgpu_vamgr_init(struct amdgpu_bo_va_mgr *mgr, uint64_t start, 127drm_private void amdgpu_vamgr_init(struct amdgpu_bo_va_mgr *mgr, uint64_t start,
136 uint64_t max, uint64_t alignment); 128 uint64_t max, uint64_t alignment);
137 129