summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorKen Wang2016-07-27 13:12:15 +0200
committerAlex Deucher2016-08-08 17:33:08 +0200
commitecf6a637090c8034bc0d843c48905bfa5e2a4e0c (patch)
tree12b138ef32889b3ae3ca75ca1fe5e15d32b8b3a4 /drivers/gpu
parentdrm/amd/powrplay: delete code no longer in use on Polaris. (diff)
downloadkernel-qcow2-linux-ecf6a637090c8034bc0d843c48905bfa5e2a4e0c.tar.gz
kernel-qcow2-linux-ecf6a637090c8034bc0d843c48905bfa5e2a4e0c.tar.xz
kernel-qcow2-linux-ecf6a637090c8034bc0d843c48905bfa5e2a4e0c.zip
drm/ttm: Add interface to export kernel_zone max memory size in ttm
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/ttm/ttm_memory.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_memory.c b/drivers/gpu/drm/ttm/ttm_memory.c
index a1803fbcc898..29855be96be0 100644
--- a/drivers/gpu/drm/ttm/ttm_memory.c
+++ b/drivers/gpu/drm/ttm/ttm_memory.c
@@ -600,3 +600,9 @@ size_t ttm_round_pot(size_t size)
return 0;
}
EXPORT_SYMBOL(ttm_round_pot);
+
+uint64_t ttm_get_kernel_zone_memory_size(struct ttm_mem_global *glob)
+{
+ return glob->zone_kernel->max_mem;
+}
+EXPORT_SYMBOL(ttm_get_kernel_zone_memory_size);