The AMDGPU_VA_RANGE_32_BIT flag is added to request VA range in the 32bit address space for amdgpu_va_range_alloc.
The 32bit address space is reserved at initialization time, and managed with a separate VAMGR as part of the global VAMGR. And if no enough VA space available in range above 4GB, this reserved range can be used as fallback.
v2: add comment for AMDGPU_VA_RANGE_32_BIT, and add vamgr to va_range
v3: rebase to Emil's drm_private series
v4: fix one warning
ffa305d amdgpu: add flag to support 32bit VA address v4
amdgpu/amdgpu.h | 5 +++++
amdgpu/amdgpu_device.c | 20 ++++++++++++++++++++
amdgpu/amdgpu_internal.h | 9 +++++++++
amdgpu/amdgpu_vamgr.c | 32 +++++++++++++++++++++++++-------
4 files changed, 59 insertions(+), 7 deletions(-)
Upstream: cgit.freedesktop.org