summaryrefslogtreecommitdiffstats
path: root/include/uapi/drm
diff options
context:
space:
mode:
authorJunwei Zhang <Jerry.Zhang@amd.com>2016-09-21 10:33:26 +0800
committerAlex Deucher <alexander.deucher@amd.com>2016-10-25 14:38:13 -0400
commitcfa32556e58d8a353666fb007f708a4955c6711c (patch)
tree87d10b8d7cfcfc6454b68c9c6a007d1517ebd0fc /include/uapi/drm
parent9f6163e7e342bd150efd01aa51432a2e73039762 (diff)
downloadlinux-cfa32556e58d8a353666fb007f708a4955c6711c.tar.bz2
drm/amd/amdgpu: add info about vram and gtt max allocation size
Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/uapi/drm')
-rw-r--r--include/uapi/drm/amdgpu_drm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h
index dbfce2035b1f..0db0d66dc2ba 100644
--- a/include/uapi/drm/amdgpu_drm.h
+++ b/include/uapi/drm/amdgpu_drm.h
@@ -489,6 +489,8 @@ struct drm_amdgpu_cs_chunk_data {
#define AMDGPU_INFO_NUM_EVICTIONS 0x18
/* Query the total size of VRAM and GTT domains */
#define AMDGPU_INFO_VRAM_GTT_TOTAL 0x19
+/* Query the max allocation size of VRAM and GTT domains */
+#define AMDGPU_INFO_VRAM_GTT_MAX 0x1a
#define AMDGPU_INFO_MMR_SE_INDEX_SHIFT 0
#define AMDGPU_INFO_MMR_SE_INDEX_MASK 0xff
@@ -580,6 +582,12 @@ struct drm_amdgpu_info_vram_gtt_total {
__u64 gtt_total_size;
};
+struct drm_amdgpu_info_vram_gtt_max {
+ __u64 vram_max_size;
+ __u64 vram_cpu_accessible_max_size;
+ __u64 gtt_max_size;
+};
+
struct drm_amdgpu_info_firmware {
__u32 ver;
__u32 feature;