diff options
author | Jammy Zhou | 2015-08-16 22:09:09 -0500 |
---|---|---|
committer | Alex Deucher | 2015-08-17 15:29:26 -0500 |
commit | 56d8dd6a9c03680700e0b0043cb56e0af7e3e3de (patch) | |
tree | d9f049c3c8d8ce7010436add5ad76c6f36e32943 /amdgpu/amdgpu_internal.h | |
parent | ffa305d0fc926418e4dff432381ead8907dc18d9 (diff) | |
download | external-libgbm-56d8dd6a9c03680700e0b0043cb56e0af7e3e3de.tar.gz external-libgbm-56d8dd6a9c03680700e0b0043cb56e0af7e3e3de.tar.xz external-libgbm-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.h | 8 |
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 | ||
54 | struct amdgpu_bo_va_mgr { | 54 | struct 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 | ||
126 | drm_private void amdgpu_bo_free_internal(amdgpu_bo_handle bo); | 125 | drm_private void amdgpu_bo_free_internal(amdgpu_bo_handle bo); |
127 | 126 | ||
128 | drm_private struct amdgpu_bo_va_mgr* | ||
129 | amdgpu_vamgr_get_global(struct amdgpu_device *dev); | ||
130 | |||
131 | drm_private void | ||
132 | amdgpu_vamgr_reference(struct amdgpu_bo_va_mgr **dst, | ||
133 | struct amdgpu_bo_va_mgr *src); | ||
134 | |||
135 | drm_private void amdgpu_vamgr_init(struct amdgpu_bo_va_mgr *mgr, uint64_t start, | 127 | drm_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 | ||