aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJammy Zhou2015-07-15 21:29:58 -0500
committerAlex Deucher2015-08-05 12:47:52 -0500
commit95d0f35dafff6c588da47c28332c252881f2e07c (patch)
treed87cc97fe1a9f6b681b721649aa878826ecc63fd /amdgpu/amdgpu_vamgr.c
parent926c80568691e04abdfcd21b6e9be61331e95b03 (diff)
downloadexternal-libgbm-95d0f35dafff6c588da47c28332c252881f2e07c.tar.gz
external-libgbm-95d0f35dafff6c588da47c28332c252881f2e07c.tar.xz
external-libgbm-95d0f35dafff6c588da47c28332c252881f2e07c.zip
amdgpu: add flags parameter for amdgpu_va_range_alloc
The flags is added for extensibility to cover some special requirements in the future, i.e, request VA range in the first 4GB of address space Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Christian K├Ânig <christian.koenig@amd.com>
Diffstat (limited to 'amdgpu/amdgpu_vamgr.c')
-rw-r--r--amdgpu/amdgpu_vamgr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/amdgpu/amdgpu_vamgr.c b/amdgpu/amdgpu_vamgr.c
index d6ec9b4f..ced4f4fd 100644
--- a/amdgpu/amdgpu_vamgr.c
+++ b/amdgpu/amdgpu_vamgr.c
@@ -242,7 +242,8 @@ int amdgpu_va_range_alloc(amdgpu_device_handle dev,
242 uint64_t va_base_alignment, 242 uint64_t va_base_alignment,
243 uint64_t va_base_required, 243 uint64_t va_base_required,
244 uint64_t *va_base_allocated, 244 uint64_t *va_base_allocated,
245 amdgpu_va_handle *va_range_handle) 245 amdgpu_va_handle *va_range_handle,
246 uint64_t flags)
246{ 247{
247 va_base_alignment = MAX2(va_base_alignment, dev->vamgr->va_alignment); 248 va_base_alignment = MAX2(va_base_alignment, dev->vamgr->va_alignment);
248 size = ALIGN(size, vamgr.va_alignment); 249 size = ALIGN(size, vamgr.va_alignment);