aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
diff options
context:
space:
mode:
authorJammy Zhou <[email protected]>2015-05-12 14:46:45 +0000
committerAlex Deucher <[email protected]>2015-06-04 01:03:34 +0000
commit02b70c8c9f0351f5ddf70716b9049f3fe50d62e7 (patch)
tree7bc6995fa8952781d7646f7ed82fb86a5aadcc8f /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
parentdrm/amdgpu: fix context switch (diff)
downloadkernel-02b70c8c9f0351f5ddf70716b9049f3fe50d62e7.tar.gz
kernel-02b70c8c9f0351f5ddf70716b9049f3fe50d62e7.zip
drm/amdgpu: expose the max virtual address
Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
index 02c450d0be1a..35185d6b7d46 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
@@ -428,6 +428,7 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file
if (adev->flags & AMDGPU_IS_APU)
dev_info.ids_flags |= AMDGPU_IDS_FLAGS_FUSION;
dev_info.virtual_address_offset = AMDGPU_VA_RESERVED_SIZE;
+ dev_info.virtual_address_max = (uint64_t)adev->vm_manager.max_pfn * AMDGPU_GPU_PAGE_SIZE;
dev_info.virtual_address_alignment = max(PAGE_SIZE, 0x10000UL);
dev_info.pte_fragment_size = (1 << AMDGPU_LOG2_PAGES_PER_FRAG) *
AMDGPU_GPU_PAGE_SIZE;