OSDN Git Service

amdgpu: add flag to support 32bit VA address v4
authorJammy Zhou <Jammy.Zhou@amd.com>
Mon, 17 Aug 2015 03:09:08 +0000 (11:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2015 20:26:26 +0000 (16:26 -0400)
commitffa305d0fc926418e4dff432381ead8907dc18d9
tree1581c8b5ba358942fe6a376bf85e7750af6d3d3a
parent102ab6f0049c2c85857fd19f098bc5b51e2a8a60
amdgpu: add flag to support 32bit VA address v4

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

Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
amdgpu/amdgpu.h
amdgpu/amdgpu_device.c
amdgpu/amdgpu_internal.h
amdgpu/amdgpu_vamgr.c